Skip to content

Commit

Permalink
Wrap url to quotes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
schipiga committed Nov 1, 2018
1 parent 79fdbd7 commit 45ee76a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/steps/browser.js
Expand Up @@ -523,19 +523,19 @@ var BrowserSteps = {
var check = U.defVal(opts.check, true);
var timeout = U.defVal(opts.timeout, CONF.web.pageTimeout) * 1000;

allure.step(`Open URL ${webUrl} in browser`);
LOG.info(`Openning URL ${webUrl} in browser...`);
allure.step(`Open URL "${webUrl}" in browser`);
LOG.info(`Openning URL "${webUrl}" in browser...`);

await this.webdriver.url(webUrl);

if (check) {
var errMsg = `Browser didn't navigate to ${webUrl} ` +
var errMsg = `Browser didn't navigate to "${webUrl}" ` +
`during ${timeout} ms`;

await this.webdriver.waitUntil(async () => {
var curUrl = await this.webdriver.getUrl();
LOG.debug(`Compare current URL ${curUrl}`,
`with expected ${webUrl}`);
LOG.debug(`Compare current URL "${curUrl}"`,
`with expected "${webUrl}"`);
return curUrl.startsWith(webUrl);
}, timeout, errMsg);
};
Expand Down

0 comments on commit 45ee76a

Please sign in to comment.