diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1245dbedd..45c30afb4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -151,6 +151,8 @@ jobs: role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }} aws-region: us-east-1 role-duration-seconds: 10800 + - name: Install Playwright with Chrome + run: npx playwright install --with-deps chromium - name: Run e2e tests run: run e2e - uses: actions/upload-artifact@v3 diff --git a/test/e2e/package.json b/test/e2e/package.json index d8e15bf44..edb378a08 100644 --- a/test/e2e/package.json +++ b/test/e2e/package.json @@ -6,8 +6,8 @@ "description": "", "main": "index.js", "scripts": { - "e2e": "playwright test", - "e2e:ui": "playwright test --ui" + "e2e": "playwright test --project=state-user-chrome", + "e2e:ui": "playwright test --ui --project=state-user-chrome" }, "dependencies": { "shared-utils": "*" diff --git a/test/e2e/playwright.config.ts b/test/e2e/playwright.config.ts index 5f71bbf85..941b6b0ce 100644 --- a/test/e2e/playwright.config.ts +++ b/test/e2e/playwright.config.ts @@ -48,7 +48,7 @@ export default defineConfig({ { // we can have different projects for different users/use cases - name: "logged in state user", + name: "state-user-chrome", use: { ...devices["Desktop Chrome"], // Use prepared auth state for state submitter.