Skip to content

Commit

Permalink
Merge pull request #774 from adessoSE/CUC-725_Fix_ThenWebsite
Browse files Browse the repository at this point in the history
Cuc 725 fix then website
  • Loading branch information
sMeilbeck authored Nov 15, 2024
2 parents a7311b6 + 7e0bfa5 commit 5cad831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/features/step_definitions/stepdefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Then('So I will be navigated to the website: {string}', async function checkUrl(
const world = this;
try {
await driver.getCurrentUrl().then(async (currentUrl) => {
expect(currentUrl).to.equal(url, 'Error');
expect(currentUrl.replace(/\/$/g, '') == url.replace(/[\s]|\/\s*$/g, '') , 'ERROR expected: ' + url.replace(/[\s]|\/\s*$/g, '') + '; actual: ' + currentUrl.replace(/\/$/g, '')).to.be.true
});
} catch (e) {
await driver.takeScreenshot().then(async (buffer) => {
Expand Down

0 comments on commit 5cad831

Please sign in to comment.