Skip to content

Commit

Permalink
Set timeout on the outer command then chain
Browse files Browse the repository at this point in the history
  • Loading branch information
jagregory committed Sep 28, 2019
1 parent 6c6c0b7 commit d7fe43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function createCommand(queryName, implementationName) {

return cy
.window({log: false})
.then((thenArgs) => {
.then({timeout: waitOptions.timeout + 100}, (thenArgs) => {
const getValue = () => {
const value = commandImpl(thenArgs.document);
const result = Cypress.$(value);
Expand Down

0 comments on commit d7fe43e

Please sign in to comment.