We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e3396 commit a630555Copy full SHA for a630555
bin/test-browser.js
@@ -161,6 +161,15 @@ async function startTest() {
161
const page = await browser.newPage();
162
163
page.on('pageerror', err => {
164
+ if (browserName === 'webkit' && err.toString()
165
+ .match(/^Fetch API cannot load http.* due to access control checks.$/)) {
166
+ // This is an _uncatchable_, error seen in playwright v1.36.1 webkit. If
167
+ // it is ignored, fetch() will also throw a _catchable_:
168
+ // `TypeError: Load failed`
169
+ console.log('Ignoring error:', err);
170
+ return;
171
+ }
172
+
173
console.log('Unhandled error in test page:', err);
174
process.exit(1);
175
});
0 commit comments