From 9ddbd4ad1971875ee25ebd0e00e9a2de49a4f678 Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Wed, 20 Nov 2024 00:44:15 -0500 Subject: [PATCH] fix(nextjs): fix next e2e test --- e2e/next/src/next-playwright.test.ts | 4 ++-- e2e/next/src/next.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: {