Merge pull request #21599 from mikewoudenberg/master

Adds optional timeout config to 'then' method of the cypress package
This commit is contained in:
Nathan Shively-Sanders
2017-11-17 15:04:31 -08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ cy
cy
.get('form')
.find('input')
.then($input => $input.click());
.then($input => $input.click())
.then($input => $input.click(), {timeout: 12});
cy
.wrap({ sum: (a: number, b: number, c: number) => a + b + c })
+1 -1
View File
@@ -369,7 +369,7 @@ declare namespace Cypress {
/**
* @see https://on.cypress.io/api/then
*/
then(fn: (currentSubject: any) => any): Chainable;
then(fn: (currentSubject: any) => any, options?: Timeoutable): Chainable;
/**
* @see https://on.cypress.io/api/title