UNPKG

cypress-cucumber-steps

Version:
43 lines 987 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.When_I_blur = When_I_blur; var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor"); var utils_1 = require("../utils"); /** * When I blur: * * ```gherkin * When I blur * ``` * * Blurs the element with focus. * * @example * * ```gherkin * When I blur * ``` * * With [options](https://docs.cypress.io/api/commands/blur#Arguments): * * ```gherkin * When I blur * | log | true | * | force | false | * | timeout | 4000 | * ``` * * @remarks * * A preceding step like {@link When_I_find_input_by_label_text | "When I find input by label text"} is required. For example: * * ```gherkin * When I find input by label text "Text" * And I blur * ``` */ function When_I_blur(options) { cy.focused().blur((0, utils_1.getOptions)(options)); } (0, cypress_cucumber_preprocessor_1.When)('I blur', When_I_blur); //# sourceMappingURL=blur.js.map