mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #21599 from mikewoudenberg/master
Adds optional timeout config to 'then' method of the cypress package
This commit is contained in:
@@ -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 })
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user