cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
190 lines • 5.62 kB
TypeScript
/**
* When I find elements by placeholder text:
*
* ```gherkin
* When I find elements by placeholder text {string}
* ```
*
* _A placeholder is not a good substitute for a label so you should generally use {@link When_I_find_element_by_label_text | "When I find element by label text"} instead._
*
* @example
*
* ```gherkin
* When I find element by placeholder text "Text"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I find elements by placeholder text "Name"
* And I get 1st element
* And I type "John Smith"
* ```
*
* Inspired by Testing Library's [ByPlaceholderText](https://testing-library.com/docs/queries/byplaceholdertext).
*
* @see
*
* - {@link When_I_find_element_by_placeholder_text | When I find element by placeholder text}
*/
export declare function When_I_find_elements_by_placeholder_text(placeholderText: string): void;
/**
* When I find element by placeholder text:
*
* ```gherkin
* When I find element by placeholder text {string}
* ```
*
* _A placeholder is not a good substitute for a label so you should generally use {@link When_I_find_element_by_label_text | "When I find element by label text"} instead._
*
* @example
*
* ```gherkin
* When I find element by placeholder text "Text"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I find element by placeholder text "Name"
* And I type "John Smith"
* ```
*
* Inspired by Testing Library's [ByPlaceholderText](https://testing-library.com/docs/queries/byplaceholdertext).
*
* @see
*
* - {@link When_I_find_elements_by_placeholder_text | When I find elements by placeholder text}
*/
export declare function When_I_find_element_by_placeholder_text(placeholderText: string): void;
/**
* When I find inputs by placeholder text:
*
* ```gherkin
* When I find inputs by placeholder text {string}
* ```
*
* _A placeholder is not a good substitute for a label so you should generally use {@link When_I_find_input_by_label_text | "When I find input by label text"} instead._
*
* @example
*
* ```gherkin
* When I find inputs by placeholder text "Text"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I find inputs by placeholder text "Password"
* And I get 1st element
* And I type "password"
* ```
*
* Inspired by Testing Library's [ByPlaceholderText](https://testing-library.com/docs/queries/byplaceholdertext).
*
* @see
*
* - {@link When_I_find_input_by_placeholder_text | When I find input by placeholder text}
*/
export declare function When_I_find_inputs_by_placeholder_text(placeholderText: string): void;
/**
* When I find input by placeholder text:
*
* ```gherkin
* When I find input by placeholder text {string}
* ```
*
* _A placeholder is not a good substitute for a label so you should generally use {@link When_I_find_input_by_label_text | "When I find input by label text"} instead._
*
* @example
*
* ```gherkin
* When I find input by placeholder text "Text"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I find input by placeholder text "Password"
* And I type "password"
* ```
*
* Inspired by Testing Library's [ByPlaceholderText](https://testing-library.com/docs/queries/byplaceholdertext).
*
* @see
*
* - {@link When_I_find_inputs_by_placeholder_text | When I find inputs by placeholder text}
*/
export declare function When_I_find_input_by_placeholder_text(placeholderText: string): void;
/**
* When I find textareas by placeholder text:
*
* ```gherkin
* When I find textareas by placeholder text {string}
* ```
*
* _A placeholder is not a good substitute for a label so you should generally use {@link When_I_find_textarea_by_label_text | "When I find textarea by label text"} instead._
*
* @example
*
* ```gherkin
* When I find textareas by placeholder text "Text"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I find textareas by placeholder text "Comments"
* And I get 1st element
* And I type "Lorem ipsum"
* ```
*
* Inspired by Testing Library's [ByPlaceholderText](https://testing-library.com/docs/queries/byplaceholdertext).
*
* @see
*
* - {@link When_I_find_textarea_by_placeholder_text | When I find textarea by placeholder text}
*/
export declare function When_I_find_textareas_by_placeholder_text(placeholderText: string): void;
/**
* When I find textarea by placeholder text:
*
* ```gherkin
* When I find textarea by placeholder text {string}
* ```
*
* _A placeholder is not a good substitute for a label so you should generally use {@link When_I_find_textarea_by_label_text | "When I find textarea by label text"} instead._
*
* @example
*
* ```gherkin
* When I find textarea by placeholder text "Text"
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I find textarea by placeholder text "Comments"
* And I type "Lorem ipsum"
* ```
*
* Inspired by Testing Library's [ByPlaceholderText](https://testing-library.com/docs/queries/byplaceholdertext).
*
* @see
*
* - {@link When_I_find_textareas_by_placeholder_text | When I find textareas by placeholder text}
*/
export declare function When_I_find_textarea_by_placeholder_text(placeholderText: string): void;
//# sourceMappingURL=placeholder.d.ts.map