@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
19 lines • 651 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkTitle = void 0;
/**
* Check the title of the current browser window
* @param {Type} falseCase Whether to check if the title matches the
* expected value or not
* @param {Type} expectedTitle The expected title
*/
async function checkTitle(falseCase, expectedTitle) {
if (falseCase) {
expect(browser).not.toHaveTitle(expectedTitle);
}
else {
expect(browser).toHaveTitle(expectedTitle);
}
}
exports.checkTitle = checkTitle;
//# sourceMappingURL=checkTitle.js.map