UNPKG

@nice-digital/wdio-cucumber-steps

Version:

Shared step definitions for Cucumber JS BDD tests in WebdriverIO

19 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkUrl = void 0; /** * Check the URL of the given browser window * @param {String} falseCase Whether to check if the URL matches the * expected value or not * @param {String} expectedUrl The expected URL to check against */ async function checkUrl(falseCase, expectedUrl) { if (falseCase) { expect(browser).not.toHaveUrl(expectedUrl); } else { expect(browser).toHaveUrl(expectedUrl); } } exports.checkUrl = checkUrl; //# sourceMappingURL=checkURL.js.map