cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
42 lines • 986 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.When_I_find_form = When_I_find_form;
var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
var utils_1 = require("../utils");
/**
* When I find form:
*
* ```gherkin
* When I find form
* ```
*
* This finds one or more `<form>` elements.
*
* @example
*
* ```gherkin
* When I find form
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_submit | "When I submit"}. For example:
*
* ```gherkin
* When I find form
* And I submit
* ```
*
* If multiple forms are found, then use {@link When_I_get_nth_element | "When I get nth element"}. For example:
*
* ```gherkin
* When I find form
* And I get 1st element
* And I submit
* ```
*/
function When_I_find_form() {
(0, utils_1.setCypressElement)(cy.get('form'));
}
(0, cypress_cucumber_preprocessor_1.When)('I find form', When_I_find_form);
//# sourceMappingURL=form.js.map