Skip to content

Commit

Permalink
Merge pull request #573 from EYBlockchain/liju.jose/nightfall-browser…
Browse files Browse the repository at this point in the history
…/make-e2e-test-run-generic

(nightfall-browser) update e2e-test run on generic ENV
  • Loading branch information
Ilyas Ridhuan authored Mar 11, 2022
2 parents 3f787ae + 941cbb7 commit e8c4cf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/browser-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Start Containers
run: |
npm ci
docker-compose build
docker-compose -f docker-compose.dev.yml build
./start-nightfall -g -d -s &> docker-compose.log &disown
- name: wait 1000s for Containers startup and setup completion
Expand Down Expand Up @@ -75,8 +75,15 @@ jobs:
if: always()
run: cat wallet/browser-app.log

# in local machine
# NETWORK_NAME=ganache-nightfall RPC_URL=http://localhost:8546 CHAIN_ID=1337 PRIVATE_KEY=0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e npm run e2e-test
- name: Run e2e test
run: cd wallet && npm run e2e-test
env:
NETWORK_NAME: 'ganache-nightfall'
RPC_URL: 'http://localhost:8546'
CHAIN_ID: 1337
PRIVATE_KEY: '0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e'

- name: test video
if: always()
Expand Down
2 changes: 1 addition & 1 deletion wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"deploy": "npm run build && aws s3 sync build s3://pnf-dev-browser --cache-control max-age=172800 --delete && aws configure set preview.cloudfront true && aws cloudfront create-invalidation --distribution-id ENV3X13MLR5YT --paths \"/*\"",
"test": "craco test --env=jsdom",
"eject": "craco eject",
"e2e-test": "NETWORK_NAME=ganache-nightfall RPC_URL=http://localhost:8546 CHAIN_ID=1337 PRIVATE_KEY=0x4775af73d6dc84a0ae76f8726bda4b9ecf187c377229cb39e1afa7a18236a69e npx synpress run --env TRANSACTIONS_PER_BLOCK=2"
"e2e-test": "npx synpress run --env TRANSACTIONS_PER_BLOCK=2"
},
"browserslist": {
"production": [
Expand Down

0 comments on commit e8c4cf6

Please sign in to comment.