Skip to content

Commit

Permalink
fix: how playwright parses the local url.
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 25, 2023
1 parent 71cbd92 commit fd98c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ 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('/')) { // local url
if (url.startsWith('/') && this.options.url.includes('localhost')) { // local url
url = this.options.url + url;
this.debugSection('URL', url);
}
Expand Down

0 comments on commit fd98c61

Please sign in to comment.