cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
50 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.When_I_clear = When_I_clear;
var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
var utils_1 = require("../utils");
/**
* When I clear:
*
* ```gherkin
* When I clear
* ```
*
* Alias for {@link When_I_type | "When I type"}:
*
* ```gherkin
* When I type "{selectall}{backspace}"
* ```
*
* @example
*
* ```gherkin
* When I clear
* ```
*
* With [options](https://docs.cypress.io/api/commands/clear#Arguments):
*
* ```gherkin
* When I clear
* | animationDistanceThreshold | 5 |
* | force | false |
* | log | true |
* | scrollBehavior | top |
* | timeout | 4000 |
* | waitForAnimations | true |
* ```
*
* @remarks
*
* A preceding step like {@link When_I_find_element_by_label_text | "When I find element by label text"} is required. For example:
*
* ```gherkin
* When I find element by label text "Input"
* And I clear
* ```
*/
function When_I_clear(options) {
(0, utils_1.getCypressElement)().clear((0, utils_1.getOptions)(options));
}
(0, cypress_cucumber_preprocessor_1.When)('I clear', When_I_clear);
//# sourceMappingURL=clear.js.map