Skip to content

Commit

Permalink
chore: turn off resources wait by default
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Sep 11, 2022
1 parent c2d3a0d commit 025f56d
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 @@ -205,7 +205,7 @@ 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 `CYPRESS_SKIP_RESOURCES_WAIT` environmental variable, set it to `1` or
on with `CYPRESS_RESOURCES_WAIT` environmental variable, set it to `1` or
`true`.

If you want to skip metamask extension installation or metamask setup, you can
Expand Down
2 changes: 1 addition & 1 deletion support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Cypress.Commands.add('waitForResources', (resources = []) => {
});

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

0 comments on commit 025f56d

Please sign in to comment.