cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
66 lines • 1.53 kB
TypeScript
import { DataTable } from '@badeball/cypress-cucumber-preprocessor';
/**
* Then I see role:
*
* ```gherkin
* Then I see role {string}
* ```
*
* Assert role **_exists_** and is **_visible_** in the screen.
*
* @example
*
* ```gherkin
* Then I see role "progressbar"
* ```
*
* With [options](https://docs.cypress.io/api/commands/get#Arguments):
*
* ```gherkin
* Then I see role "progressbar"
* | log | true |
* | timeout | 4000 |
* | withinSubject | null |
* | includeShadowDom | false |
* ```
*
* Inspired by Testing Library's [ByRole](https://testing-library.com/docs/queries/byrole/).
*
* @see
*
* - {@link Then_I_do_not_see_role | Then I do not see role}
*/
export declare function Then_I_see_role(role: string, options?: DataTable): void;
/**
* Then I do not see role:
*
* ```gherkin
* Then I do not see role {string}
* ```
*
* Assert role **_does not exist_** in the screen.
*
* @example
*
* ```gherkin
* Then I do not see role "progressbar"
* ```
*
* With [options](https://docs.cypress.io/api/commands/get#Arguments):
*
* ```gherkin
* Then I do not see role "progressbar"
* | log | true |
* | timeout | 4000 |
* | withinSubject | null |
* | includeShadowDom | false |
* ```
*
* Inspired by Testing Library's [ByRole](https://testing-library.com/docs/queries/byrole/).
*
* @see
*
* - {@link Then_I_see_role | Then I see role}
*/
export declare function Then_I_do_not_see_role(role: string, options?: DataTable): void;
//# sourceMappingURL=role.d.ts.map