Skip to content

Commit

Permalink
chore: use e2e test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Jan 31, 2024
1 parent f829c75 commit 42839e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ jobs:
env:
CI: "true"
with:
args: yarn workspace @zk-email/twitter-verifier-app test:full-e2e
args: yarn workspace @zk-email/twitter-verifier-app test:e2e-zkp

2 changes: 2 additions & 0 deletions packages/app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_CONTRACT_ADDRESS=0x86D390fDed54447fD244eD0718dbFCFCcbbA7edc
VITE_CIRCUIT_ARTIFACTS_URL=https://storage.googleapis.com/proof-of-twitter-artifacts/
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 start-e2e-test-server & yarn test:e2e-zkp
3 changes: 2 additions & 1 deletion packages/app/tests/e2e-dl-zkp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ describe("App.js", () => {

beforeAll(async () => {
browser = await puppeteer.launch({
// headless: true,
headless: false,
args: ['--no-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
slowMo: 100
});
page = await browser.newPage();
Expand Down

0 comments on commit 42839e7

Please sign in to comment.