diff --git a/e2e/next/src/next-playwright.test.ts b/e2e/next/src/next-playwright.test.ts index 833012b77d2f97..7d5131a3a0d8a1 100644 --- a/e2e/next/src/next-playwright.test.ts +++ b/e2e/next/src/next-playwright.test.ts @@ -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` @@ -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` diff --git a/e2e/next/src/next.test.ts b/e2e/next/src/next.test.ts index 695c109ca01736..5cc90aeaa6a859 100644 --- a/e2e/next/src/next.test.ts +++ b/e2e/next/src/next.test.ts @@ -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: {