cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
129 lines • 3.47 kB
TypeScript
/**
* When I get element by display value:
*
* ```gherkin
* When I get element by display value {string}
* ```
*
* Returns the `input`, `textarea`, or `select` element that has the matching display value.
*
* _This query will throw an error if no element is found and will not wait and retry._
*
* @example
*
* ```gherkin
* When I get element by display value "Hello World"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_set_value | "When I set value"}. For example:
*
* ```gherkin
* When I get element by display value "Display Value"
* And I set value "Value"
* ```
*
* Inspired by Testing Library's [ByDisplayValue](https://testing-library.com/docs/queries/bydisplayvalue).
*
* @see
*
* - {@link When_I_find_input_by_display_value | When I find input by display value}
* - {@link When_I_find_select_by_display_value | When I find select by display value}
* - {@link When_I_find_textarea_by_display_value | When I find textarea by display value}
*/
export declare function When_I_get_element_by_display_value(value: string): void;
/**
* When I find input by display value:
*
* ```gherkin
* When I find input by display value {string}
* ```
*
* Returns the `input` element that has the matching display value.
*
* @example
*
* ```gherkin
* When I find input by display value "Input"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_set_value | "When I set value"}. For example:
*
* ```gherkin
* When I find input by display value "Input"
* And I set value "Value"
* ```
*
* Inspired by Testing Library's [ByDisplayValue](https://testing-library.com/docs/queries/bydisplayvalue).
*
* @see
*
* - {@link When_I_get_element_by_display_value | When I get element by display value}
*/
export declare function When_I_find_input_by_display_value(value: string): void;
/**
* When I find textarea by display value:
*
* ```gherkin
* When I find textarea by display value {string}
* ```
*
* Returns the `textarea` element that has the matching display value.
*
* @example
*
* ```gherkin
* When I find textarea by display value "Textarea"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_set_value | "When I set value"}. For example:
*
* ```gherkin
* When I find textarea by display value "Textarea"
* And I set value "Value"
* ```
*
* Inspired by Testing Library's [ByDisplayValue](https://testing-library.com/docs/queries/bydisplayvalue).
*
* @see
*
* - {@link When_I_get_element_by_display_value | When I get element by display value}
*/
export declare function When_I_find_textarea_by_display_value(value: string): void;
/**
* When I find select by display value:
*
* ```gherkin
* When I find select by display value {string}
* ```
*
* Returns the `select` element that has the matching display value.
*
* @example
*
* ```gherkin
* When I find select by display value "Option"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_set_value | "When I set value"}. For example:
*
* ```gherkin
* When I find select by display value "Option"
* And I set value "Value"
* ```
*
* Inspired by Testing Library's [ByDisplayValue](https://testing-library.com/docs/queries/bydisplayvalue).
*
* @see
*
* - {@link When_I_get_element_by_display_value | When I get element by display value}
*/
export declare function When_I_find_select_by_display_value(value: string): void;
//# sourceMappingURL=value.d.ts.map