cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
42 lines • 944 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.When_I_submit = When_I_submit;
var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
var utils_1 = require("../utils");
/**
* When I submit:
*
* ```gherkin
* When I submit
* ```
*
* Submits a form.
*
* @example
*
* ```gherkin
* When I submit
* ```
*
* With [options](https://docs.cypress.io/api/commands/submit#Arguments):
*
* ```gherkin
* When I submit
* | log | true |
* | timeout | 4000 |
* ```
*
* @remarks
*
* A preceding step like {@link When_I_find_form | "When I find form"} is required. For example:
*
* ```gherkin
* When I find form
* And I submit
* ```
*/
function When_I_submit(options) {
(0, utils_1.getCypressElement)().submit((0, utils_1.getOptions)(options));
}
(0, cypress_cucumber_preprocessor_1.When)('I submit', When_I_submit);
//# sourceMappingURL=submit.js.map