Skip to content

Commit

Permalink
fix(nextjs): fix next e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Nov 20, 2024
1 parent 09a01eb commit 9ddbd4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/next/src/next-playwright.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Next Playwright e2e tests', () => {
afterAll(() => cleanupProject());

it('should execute e2e tests using playwright', () => {
if (runE2ETests()) {
if (runE2ETests('playwright')) {
const result = runCLI(`e2e ${appName}-e2e --verbose`);
expect(result).toContain(
`Successfully ran target e2e for project ${appName}-e2e`
Expand Down Expand Up @@ -53,7 +53,7 @@ describe('Next Playwright e2e tests', () => {
`
);

if (runE2ETests()) {
if (runE2ETests('playwright')) {
const result = runCLI(`e2e ${appName}-e2e --verbose`);
expect(result).toContain(
`Successfully ran target e2e for project ${appName}-e2e`
Expand Down
2 changes: 1 addition & 1 deletion e2e/next/src/next.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ describe('Next.js Applications', () => {

runCLI(`generate @nx/next:app ${appName} --no-interactive --style=css`);

if (runE2ETests('cypress')) {
if (runE2ETests('playwright')) {
const e2eResults = runCLI(`e2e-ci ${appName}-e2e --verbose`, {
verbose: true,
env: {
Expand Down

0 comments on commit 9ddbd4a

Please sign in to comment.