UNPKG

cypress-cucumber-steps

Version:
99 lines 1.95 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.When_I_go = When_I_go; exports.When_I_go_back = When_I_go_back; exports.When_I_go_forward = When_I_go_forward; var cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor"); /** * When I go: * * ```gherkin * When I go {int} * ``` * * @example * * Navigate forward to the next URL in the browser's history: * * ```gherkin * # equivalent to clicking the forward button * When I go 1 * ``` * * Navigate back to the previous URL in the browser's history: * * ```gherkin * # equivalent to clicking the back button * When I go -1 * ``` * * @see * * - {@link When_I_go_back | When I go back} * - {@link When_I_go_forward | When I go forward} */ function When_I_go(direction) { cy.go(direction); } (0, cypress_cucumber_preprocessor_1.When)('I go {int}', When_I_go); /** * When I go back: * * ```gherkin * When I go back * ``` * * Alias for {@link When_I_go | "When I go"}: * * ```gherkin * When I go -1 * ``` * * @example * * Navigate back to the previous URL in the browser's history: * * ```gherkin * When I go back * ``` * * @see * * - {@link When_I_go | When I go} * - {@link When_I_go_forward | When I go forward} */ function When_I_go_back() { cy.go('back'); } (0, cypress_cucumber_preprocessor_1.When)('I go back', When_I_go_back); /** * When I go forward: * * ```gherkin * When I go forward * ``` * * Alias for {@link When_I_go | "When I go"}: * * ```gherkin * When I go 1 * ``` * * @example * * Navigate forward to the next URL in the browser's history: * * ```gherkin * When I go forward * ``` * * @see * * - {@link When_I_go | When I go} * - {@link When_I_go_back | When I go back} */ function When_I_go_forward() { cy.go('forward'); } (0, cypress_cucumber_preprocessor_1.When)('I go forward', When_I_go_forward); //# sourceMappingURL=go.js.map