Skip to content

Commit

Permalink
Update Playwright.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 25, 2023
1 parent 5c8fd84 commit 69ba14a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -2133,8 +2133,9 @@ class Playwright extends Helper {
throw new Error(`Method ${method} is not allowed, use the one from a list ${allowedMethods} or switch to using REST helper`);
}

if (url.startsWith('/') && this.options.url.includes('localhost')) { // local url
if (url.startsWith('/')) { // local url
url = this.options.url + url;
console.log('url is', url)
this.debugSection('URL', url);
}

Expand Down

0 comments on commit 69ba14a

Please sign in to comment.