UNPKG

cypress-cucumber-steps

Version:
69 lines 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Then_I_see_hash = Then_I_see_hash; exports.Then_I_see_hash_contains = Then_I_see_hash_contains; var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor"); var utils_1 = require("../../utils"); /** * Then I see hash: * * ```gherkin * Then I see hash {string} * ``` * * @example * * ```gherkin * Then I see hash "#hash" * ``` * * With [options](https://docs.cypress.io/api/commands/hash#Arguments): * * ```gherkin * Then I see hash "#hash" * | log | true | * | timeout | 4000 | * ``` * * @remarks * * The URL hash includes the `#` character. * * @see * * - {@link Then_I_see_hash_contains | Then I see hash contains} */ function Then_I_see_hash(hash, options) { cy.hash((0, utils_1.getOptions)(options)).should('equal', hash); } (0, cypress_cucumber_preprocessor_1.Then)('I see hash {string}', Then_I_see_hash); /** * Then I see hash contains: * * ```gherkin * Then I see hash contains {string} * ``` * * @example * * ```gherkin * Then I see hash contains "hash" * ``` * * With [options](https://docs.cypress.io/api/commands/hash#Arguments): * * ```gherkin * Then I see hash contains "hash" * | log | true | * | timeout | 4000 | * ``` * * @see * * - {@link Then_I_see_hash | Then I see hash} */ function Then_I_see_hash_contains(hash, options) { cy.hash((0, utils_1.getOptions)(options)).should('contain', hash); } (0, cypress_cucumber_preprocessor_1.Then)('I see hash contains {string}', Then_I_see_hash_contains); //# sourceMappingURL=hash.js.map