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 fead975 commit 017dd9dCopy full SHA for 017dd9d
test/helpers/run-browser.js
@@ -50,6 +50,22 @@ function runBrowser(config) {
50
page = newPage;
51
page.emulate(options);
52
53
+ return page.setRequestInterception(true);
54
+ })
55
+ .then(() => {
56
+ page.on("request", (interceptedRequest) => {
57
+ if (interceptedRequest.isInterceptResolutionHandled()) return;
58
+ if (interceptedRequest.url().includes("favicon.ico")) {
59
+ interceptedRequest.respond({
60
+ status: 200,
61
+ contentType: "image/png",
62
+ body: "Empty",
63
+ });
64
+ } else {
65
+ interceptedRequest.continue();
66
+ }
67
68
+
69
resolve({ page, browser });
70
})
71
.catch(reject);
0 commit comments