Skip to content

Commit

Permalink
feat(repo): Enable express tests in CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkl committed Oct 19, 2023
1 parent 09dfbc5 commit dba7225
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration/tests/sign-in-smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dba7225

Please sign in to comment.