Skip to content

Commit

Permalink
fix: set timeout on the outer command then chain (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagregory authored and Kent C. Dodds committed Oct 11, 2019
1 parent a2660e3 commit c78aed5
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 c78aed5

Please sign in to comment.