cypress-cucumber-steps
Version:
Cypress Cucumber step definitions
34 lines • 883 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.When_I_get_focused_element = When_I_get_focused_element;
var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
var utils_1 = require("../utils");
/**
* When I get focused element:
*
* ```gherkin
* When I get focused element
* ```
*
* Get the DOM element that is currently focused.
*
* @example
*
* ```gherkin
* When I get focused element
* ```
*
* @remarks
*
* This precedes steps like {@link When_I_type | "When I type"}. For example:
*
* ```gherkin
* When I get focused element
* And I type "something"
* ```
*/
function When_I_get_focused_element() {
(0, utils_1.setCypressElement)(cy.focused());
}
(0, cypress_cucumber_preprocessor_1.When)('I get focused element', When_I_get_focused_element);
//# sourceMappingURL=focused.js.map