Skip to content

Commit c78aed5

Browse files
jagregoryKent C. Dodds
authored and
Kent C. Dodds
committed
fix: set timeout on the outer command then chain (#90)
1 parent a2660e3 commit c78aed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function createCommand(queryName, implementationName) {
7373

7474
return cy
7575
.window({log: false})
76-
.then((thenArgs) => {
76+
.then({timeout: waitOptions.timeout + 100}, (thenArgs) => {
7777
const getValue = () => {
7878
const value = commandImpl(thenArgs.document);
7979
const result = Cypress.$(value);

0 commit comments

Comments
 (0)