Skip to content

Commit

Permalink
test: Add puppet args and env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
isidroamv committed Feb 4, 2024
1 parent 2126b46 commit 3f25917
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/app/scripts/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
yarn start-e2e-test-server & (yarn test:e2e-zkp && yarn test:e2e-ui)
2 changes: 2 additions & 0 deletions packages/app/tests/e2e-dl-zkp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit 3f25917

Please sign in to comment.