-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] page.route not working properly #38
Comments
@aesyondu hm! This is strange, I'm not sure what can be wrong with it. it('this is the second test', async () => {
await page.route('**/*.{png,jpg,jpeg}', request => request.abort());
await page.goto('https://example.com')
}) Looks like |
@aesyondu I suppose it came from jest, but actually I'm not sure. It's very confusing |
Gottem... hahaha. I will try to make a pull request to playwright. if (match instanceof RegExp || match.constructor.name == "RegExp")
return match.test(urlString); https://stackoverflow.com/questions/4339288/typeof-for-regexp#comment4724685_4339350 |
First encountered at jest-playwright repo: playwright-community/jest-playwright#38 Solution based on: https://stackoverflow.com/questions/4339288/typeof-for-regexp#comment4724685_4339350
…ect (#1048) First encountered at jest-playwright repo: playwright-community/jest-playwright#38 Solution based on: https://stackoverflow.com/questions/4339288/typeof-for-regexp#comment4724685_4339350
Closed since the upstream PR looks like it was merged. |
Context:
Code Snippet
Describe the bug
page.route
throws the error below, works fine when instantiating playwright manually:The text was updated successfully, but these errors were encountered: