UNPKG

cypress-cucumber-steps

Version:
80 lines 1.77 kB
import { DataTable } from '@badeball/cypress-cucumber-preprocessor'; /** * When I check: * * ```gherkin * When I check * ``` * * This element must be an `<input>` with type `checkbox` or `radio`. * * @example * * Check checkbox(es) or radio(s): * * ```gherkin * When I check * ``` * * With [options](https://docs.cypress.io/api/commands/check#Arguments): * * ```gherkin * When I check * | animationDistanceThreshold | 5 | * | log | true | * | force | false | * | scrollBehavior | top | * | timeout | 4000 | * | waitForAnimations | true | * ``` * * @remarks * * A preceding step like {@link When_I_find_input_by_label_text | "When I find input by label text"} is required. For example: * * ```gherkin * When I find input by label text "Checkbox" * And I check * ``` * * @see * * - {@link When_I_check_input | When I check input} * - {@link When_I_uncheck | When I uncheck} */ export declare function When_I_check(options?: DataTable): void; /** * When I check input: * * ```gherkin * When I check input {string} * ``` * * Check checkbox or radio input by label text. * * @example * * ```gherkin * When I check input "Text" * ``` * * With [options](https://docs.cypress.io/api/commands/check#Arguments): * * ```gherkin * When I check input "Text" * | animationDistanceThreshold | 5 | * | log | true | * | force | false | * | scrollBehavior | top | * | timeout | 4000 | * | waitForAnimations | true | * | pseudoSelector | visible | * ``` * * @see * * - {@link When_I_check | When I check} * - {@link When_I_uncheck_input | When I uncheck input} */ export declare function When_I_check_input(text: string, options?: DataTable): void; //# sourceMappingURL=check.d.ts.map