diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index 70f45ff..0dd673b 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -43,11 +43,15 @@ jobs: run: yarn update-deposits && yarn build - name: Install Playwright Browsers + run: yarn playwright install + + - name: Setup xvfb run: | - yarn playwright install + sudo apt-get update + sudo apt-get install -y xvfb - name: Run tests - run: yarn run-e2e-tests + run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' yarn run-e2e-tests - name: Configure AWS Development credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/.github/workflows/prod_deploy.yml b/.github/workflows/prod_deploy.yml index a83cbe6..870c1d5 100644 --- a/.github/workflows/prod_deploy.yml +++ b/.github/workflows/prod_deploy.yml @@ -57,8 +57,13 @@ jobs: - name: Install Playwright Browsers run: yarn playwright install + - name: Setup xvfb + run: | + sudo apt-get update + sudo apt-get install -y xvfb + - name: Run tests - run: yarn run-e2e-tests + run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' yarn run-e2e-tests - name: Configure AWS Production credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/playwright.config.ts b/playwright.config.ts index 71e2441..449d7dd 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ actionTimeout: 0, baseURL: "http://localhost:3000", trace: "on-first-retry", - headless: true, + headless: false, }, projects: [ { diff --git a/tests/connect-wallet.spec.ts b/tests/connect-wallet.spec.ts index f0b8fed..1bb3f46 100644 --- a/tests/connect-wallet.spec.ts +++ b/tests/connect-wallet.spec.ts @@ -13,7 +13,7 @@ export const test = baseTest.extend<{ wallet: "metamask", version: "11.16.13", seed: "mango choose scrap wasp hill chest process cloud float clarify worth plastic", // Seed phrase for GC Deposit UI only - headless: true, + headless: false, }); // Add Hardhat as a custom network