From c78aed56b9b862ef736cb9cdddf0fb74ca406574 Mon Sep 17 00:00:00 2001 From: James Gregory Date: Sat, 12 Oct 2019 00:59:08 +0700 Subject: [PATCH] fix: set timeout on the outer command then chain (#90) --- 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);