UNPKG

@nice-digital/wdio-cucumber-steps

Version:

Shared step definitions for Cucumber JS BDD tests in WebdriverIO

19 lines 702 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkInURLPath = void 0; /** * Check if the given string is in the URL path * @param {String} falseCase Whether to check if the given string is in * the URL path or not * @param {String} expectedUrlPart The string to check for */ async function checkInURLPath(falseCase, expectedUrlPart) { if (falseCase) { expect(browser).not.toHaveUrlContaining(expectedUrlPart); } else { expect(browser).toHaveUrlContaining(expectedUrlPart); } } exports.checkInURLPath = checkInURLPath; //# sourceMappingURL=checkInURLPath.js.map