UNPKG

cypress-cucumber-steps

Version:
44 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Then_I_see_option = Then_I_see_option; exports.Then_I_do_not_see_option = Then_I_do_not_see_option; var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor"); /** * Then I see option: * * ```gherkin * Then I see option {string} * ``` * * Assert option with text **_exists_** and is **_visible_** in the screen. * * @example * * ```gherkin * Then I see option "Option" * ``` */ function Then_I_see_option(text) { cy.contains('option:visible', text).should('exist'); } (0, cypress_cucumber_preprocessor_1.Then)('I see option {string}', Then_I_see_option); /** * Then I do not see option: * * ```gherkin * Then I do not see option {string} * ``` * * Assert option with text **_does not exist_** in the screen. * * @example * * ```gherkin * Then I do not see option "Option" * ``` */ function Then_I_do_not_see_option(text) { cy.contains('option:visible', text).should('not.exist'); } (0, cypress_cucumber_preprocessor_1.Then)('I do not see option {string}', Then_I_do_not_see_option); //# sourceMappingURL=option.js.map