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