From d7fe43ec6f21ca8ca21fd989f837d5822c793238 Mon Sep 17 00:00:00 2001 From: James Gregory Date: Sat, 28 Sep 2019 14:51:10 +1000 Subject: [PATCH] Set timeout on the outer command then chain --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3fcfb8f..6afc909 100644 --- a/src/index.js +++ b/src/index.js @@ -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);