From dba722527fb78e54337e54b82c90afd78ef7b831 Mon Sep 17 00:00:00 2001 From: Dimitris Klouvas Date: Thu, 19 Oct 2023 16:11:07 +0300 Subject: [PATCH] feat(repo): Enable express tests in CICD --- .github/workflows/checks.yml | 8 ++++++++ integration/tests/sign-in-smoke.test.ts | 2 +- package.json | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a56ec49cc3..17609d4408 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -96,6 +96,14 @@ jobs: SCRIPT: 'npm run test:integration:nextjs' secrets: inherit + integration-express: + name: Integration (NextJS) + needs: build + uses: ./.github/workflows/base-e2e.yml + with: + SCRIPT: 'npm run test:integration:express' + secrets: inherit + integration-remix: name: Integration (Remix) needs: build diff --git a/integration/tests/sign-in-smoke.test.ts b/integration/tests/sign-in-smoke.test.ts index 39cf9c0b97..8c43893672 100644 --- a/integration/tests/sign-in-smoke.test.ts +++ b/integration/tests/sign-in-smoke.test.ts @@ -38,7 +38,7 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withEmailCodes] })('sign in s await u.page.pause(); }); - test('access protected page', async ({ page, context }) => { + test('access protected page @express', async ({ page, context }) => { const u = createTestUtils({ app, page, context }); await u.po.signIn.goTo(); await u.po.signIn.signInWithEmailAndInstantPassword({ email: fakeUser.email, password: fakeUser.password }); diff --git a/package.json b/package.json index 8d4bbc9c11..5682067794 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "test:integration:deployment:nextjs": "DEBUG=1 npx playwright test --config integration/playwright.deployments.config.ts", "test:integration:generic": "E2E_APP_ID=react.vite.* npm run test:integration:base -- --grep @generic", "test:integration:nextjs": "E2E_APP_ID=next.appRouter.withEmailCodes npm run test:integration:base -- --grep \"@generic|@nextjs\"", + "test:integration:express": "E2E_APP_ID=express.* npm run test:integration:base -- --grep \"@generic|@express\"", "test:integration:remix": "echo 'placeholder'", "update:lockfile": "npm run nuke && npm install -D --arch=x64 --platform=linux turbo && npm install -D --arch=arm64 --platform=darwin turbo", "version": "changeset version && ./scripts/version-info.sh",