You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and my baseUrl is set to: https://some.url.com/ It will not work. Maybe this is intended? Since breaking out the response.url is expecting the entire url? FWIW It does work if I do response.url() === (baseUrl + '/settings/1000') for example.
Expected behavior
I would expect that the response.url should be merged similar to if you use it without a predicate
Actual behavior
response.url does not merge baseUrl when used with a predicate
response.url() returns a string, it will always contain absolute URL - it can't contain a different value based on the baseURL setting - everything will fall apart then.
Version
1.42.1
Steps to reproduce
When using
page.waitForResponse
with a predicate such as below:It seems to be working just fine. However if I do this:
and my
baseUrl
is set to:https://some.url.com/
It will not work. Maybe this is intended? Since breaking out theresponse.url
is expecting the entire url? FWIW It does work if I doresponse.url() === (baseUrl + '/settings/1000')
for example.Expected behavior
I would expect that the
response.url
should be merged similar to if you use it without a predicateActual behavior
response.url
does not merge baseUrl when used with a predicateAdditional context
No response
Environment
The text was updated successfully, but these errors were encountered: