Skip to content

Commit

Permalink
fixed SKIP_RESOURCES_WAIT functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey committed Dec 15, 2021
1 parent e383f30 commit bcf3e3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ If you want to use Etherscan API helpers, you will have to provide Etherscan API

To fail a test if there are any browser console errors, set `FAIL_ON_ERROR` to `1` or `true`.

Automatic waiting for XHR requests to finish before tests start can be turned off with `SKIP_RESOURCES_WAIT` environmental variable, set it to `1` or `true`.
Automatic waiting for XHR requests to finish before tests start can be turned off with `CYPRESS_SKIP_RESOURCES_WAIT` environmental variable, set it to `1` or `true`.

If you want to skip metamask extension installation or metamask setup, you can use `SKIP_METAMASK_INSTALL` and `SKIP_METAMASK_SETUP` separately. Both variables accept `1` or `true`.

Expand Down
2 changes: 1 addition & 1 deletion support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Cypress.Commands.add('waitForResources', (resources = []) => {
});

// overwrite default cypress commands
if (!process.env.SKIP_RESOURCES_WAIT) {
if (!Cypress.env('SKIP_RESOURCES_WAIT')) {
Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
originalFn(url, options);
return cy.waitForResources();
Expand Down

0 comments on commit bcf3e3c

Please sign in to comment.