From 3f259176a1315427276d8d406848b9b60e4b2d6a Mon Sep 17 00:00:00 2001 From: Isidro Date: Sun, 4 Feb 2024 09:50:13 -0600 Subject: [PATCH] test: Add puppet args and env variables --- .github/workflows/action.yml | 4 +++- packages/app/scripts/test-e2e.sh | 2 +- packages/app/tests/e2e-dl-zkp.test.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index ea7c2c5..cd1c824 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -62,6 +62,7 @@ jobs: run_app_unit_and_e2e_tests: runs-on: ubuntu-latest + environment: development steps: - uses: actions/checkout@v3 - name: Set Node.js 16.x @@ -70,7 +71,8 @@ jobs: node-version: 16 cache: 'yarn' env: - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true' + VITE_CONTRACT_ADDRESS: ${{ vars.CONTRACT_ADDRESS }} + VITE_CIRCUIT_ARTIFACTS_URL: ${{ vars.CIRCUIT_ARTIFACTS_URL }} - name: Install Yarn dependencies working-directory: ./packages/app run: yarn install diff --git a/packages/app/scripts/test-e2e.sh b/packages/app/scripts/test-e2e.sh index 252a325..691aa51 100644 --- a/packages/app/scripts/test-e2e.sh +++ b/packages/app/scripts/test-e2e.sh @@ -2,4 +2,4 @@ # Execute E2E test # This file is required in the CI -yarn start-e2e-test-server & yarn test:e2e-ui & yarn test:e2e-dl \ No newline at end of file +yarn start-e2e-test-server & (yarn test:e2e-zkp && yarn test:e2e-ui) \ No newline at end of file diff --git a/packages/app/tests/e2e-dl-zkp.test.ts b/packages/app/tests/e2e-dl-zkp.test.ts index 0da80f7..08105c4 100644 --- a/packages/app/tests/e2e-dl-zkp.test.ts +++ b/packages/app/tests/e2e-dl-zkp.test.ts @@ -57,6 +57,8 @@ describe("App.js", () => { beforeAll(async () => { browser = await puppeteer.launch({ // headless: true, + args: ['--no-sandbox'], + executablePath: process.env.PUPPETEER_EXEC_PATH, headless: false, slowMo: 100 });