Skip to content

Commit

Permalink
chore(testing): add execution of playwright to rsbuild e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Dec 18, 2024
1 parent 457ea51 commit 4b4c029
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/react/src/react-rsbuild.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
newProject,
runCLI,
runCLIAsync,
runE2ETests,
uniq,
} from '@nx/e2e/utils';

Expand Down Expand Up @@ -98,5 +99,12 @@ describe('Build React applications and libraries with Rsbuild', () => {

await runCLIAsync(`build ${rsbuildApp}`);
checkFilesExist(`apps/${rsbuildApp}/dist/index.html`);

if (runE2ETests()) {
const result = runCLI(`e2e ${rsbuildApp}-e2e --verbose`);
expect(result).toContain(
`Successfully ran target e2e for project ${rsbuildApp}-e2e`
);
}
}, 300_000);
});

0 comments on commit 4b4c029

Please sign in to comment.