Skip to content

Commit

Permalink
fix: 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
simboonlong committed Jul 14, 2023
1 parent 1cefaa7 commit 22da88b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
command: >
bash -c 'echo -n "======> local noVNC URL:
http://localhost:8080/vnc.html?autoconnect=true " && npx wait-on
http://display:8080 && npm ci && METAMASK_WAIT=6000 RENDERER_WAIT=6000 CYPRESS_RESOURCES_WAIT=1 STABLE_MODE=true SLOW_MODE=true npm run integration:headful'
http://display:8080 && npm ci && npm run integration:headful'
networks:
- x11
display:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"integration:testcafe": "run-s blockchain:contracts:testcafe integration:testcafe:prod",
"integration:testcafe:ci": "concurrently -k -s first \"npm:blockchain\" \"npm:integration:testcafe\"",
"integration:metamask": "run-s wait blockchain:contracts:synpress integration:synpress",
"integration:synpress": "cross-env SECRET_WORDS='indicate swing place chair flight used hammer soon photo region volume shuffle' NETWORK_NAME='localhost' synpress run --config supportFile='tests/e2e/support/index.js',fixturesFolder='tests/e2e/fixtures',video=false,screenshotOnRunFailure=false,retries=1",
"integration:synpress": "cross-env CYPRESS_RESOURCES_WAIT=1 STABLE_MODE=true SECRET_WORDS='indicate swing place chair flight used hammer soon photo region volume shuffle' NETWORK_NAME='localhost' synpress run --config supportFile='tests/e2e/support/index.js',fixturesFolder='tests/e2e/fixtures',video=false,screenshotOnRunFailure=false,retries=1",
"integration:local": "cross-env NET=local npm run dev",
"integration:headful": "concurrently -k -s first \"npm:blockchain\" \"npm:integration:local\" \"npm:integration:metamask\"",
"lint": "eslint ./src --ext .js,.ts,.tsx --max-warnings 0",
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/support/commands.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "cypress-file-upload";

const METAMASK_WAIT = process.env.METAMASK_WAIT || 3000;
const RENDERER_WAIT = process.env.RENDERER_WAIT || 3000;
const METAMASK_WAIT = 5000;
const RENDERER_WAIT = 5000;

Cypress.Commands.add("waitAndUploadFile", (file) => {
cy.get("input[type=file]").attachFile(file);
Expand Down

0 comments on commit 22da88b

Please sign in to comment.