forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for custom step timeout
Add support for passing in a config param, matching the signature of cucumber-js, to set the step timeout in cypress.
- Loading branch information
1 parent
8fe016d
commit ee59a4e
Showing
4 changed files
with
151 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
export function given( | ||
expression: RegExp | string, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function when( | ||
expression: RegExp | string, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function then( | ||
expression: RegExp | string, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function and( | ||
expression: RegExp | string, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function but( | ||
expression: RegExp | string, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function given( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function when( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function then( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function and( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function but( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function defineStep( | ||
expression: RegExp | string, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function defineParameterType(): void; | ||
|
||
// Aliased versions of the above funcs. | ||
export function Given( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function When( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function Then( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function And( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function But( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function Given( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function When( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function Then( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function And( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function But( | ||
expression: RegExp | string, | ||
config: { timeout?: number }, | ||
implementation: (...args: any[]) => void | ||
): void; | ||
export function Before( | ||
optionsOrImplementation: object | ((...args: any[]) => void), | ||
implementation?: (...args: any[]) => void | ||
): void; | ||
export function After( | ||
optionsOrImplementation: object | ((...args: any[]) => void), | ||
implementation?: (...args: any[]) => void | ||
): void; |