diff --git a/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4 b/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4
index e230836a56..287d0b3c4a 100644
--- a/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4
+++ b/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4
@@ -6,6 +6,8 @@ Array [
]
`;
+exports[`magicHtml option disabled should not handle GET request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option disabled should not handle GET request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option disabled should not handle GET request to magic async html: response status 1`] = `404`;
@@ -16,6 +18,8 @@ Array [
]
`;
+exports[`magicHtml option disabled should not handle HEAD request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option disabled should not handle HEAD request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option disabled should not handle HEAD request to magic async html: response status 1`] = `404`;
@@ -29,12 +33,16 @@ Array [
]
`;
+exports[`magicHtml option enabled should handle GET request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option enabled should handle GET request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option enabled should handle GET request to magic async html: response status 1`] = `200`;
exports[`magicHtml option enabled should handle HEAD request to magic async html: console messages 1`] = `Array []`;
+exports[`magicHtml option enabled should handle HEAD request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option enabled should handle HEAD request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option enabled should handle HEAD request to magic async html: response status 1`] = `200`;
diff --git a/test/e2e/__snapshots__/magic-html.test.js.snap.webpack5 b/test/e2e/__snapshots__/magic-html.test.js.snap.webpack5
index e230836a56..287d0b3c4a 100644
--- a/test/e2e/__snapshots__/magic-html.test.js.snap.webpack5
+++ b/test/e2e/__snapshots__/magic-html.test.js.snap.webpack5
@@ -6,6 +6,8 @@ Array [
]
`;
+exports[`magicHtml option disabled should not handle GET request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option disabled should not handle GET request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option disabled should not handle GET request to magic async html: response status 1`] = `404`;
@@ -16,6 +18,8 @@ Array [
]
`;
+exports[`magicHtml option disabled should not handle HEAD request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option disabled should not handle HEAD request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option disabled should not handle HEAD request to magic async html: response status 1`] = `404`;
@@ -29,12 +33,16 @@ Array [
]
`;
+exports[`magicHtml option enabled should handle GET request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option enabled should handle GET request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option enabled should handle GET request to magic async html: response status 1`] = `200`;
exports[`magicHtml option enabled should handle HEAD request to magic async html: console messages 1`] = `Array []`;
+exports[`magicHtml option enabled should handle HEAD request to magic async html: page errors 1`] = `Array []`;
+
exports[`magicHtml option enabled should handle HEAD request to magic async html: response headers content-type 1`] = `"text/html; charset=utf-8"`;
exports[`magicHtml option enabled should handle HEAD request to magic async html: response status 1`] = `200`;
diff --git a/test/e2e/magic-html.test.js b/test/e2e/magic-html.test.js
index 5d1f8f9fb3..90e72315f4 100644
--- a/test/e2e/magic-html.test.js
+++ b/test/e2e/magic-html.test.js
@@ -54,6 +54,8 @@ describe("magicHtml option", () => {
expect(consoleMessages.map((message) => message.text())).toMatchSnapshot(
"console messages"
);
+
+ expect(pageErrors).toMatchSnapshot("page errors");
});
it("should handle HEAD request to magic async html", async () => {
@@ -83,6 +85,8 @@ describe("magicHtml option", () => {
expect(consoleMessages.map((message) => message.text())).toMatchSnapshot(
"console messages"
);
+
+ expect(pageErrors).toMatchSnapshot("page errors");
});
});
@@ -133,6 +137,8 @@ describe("magicHtml option", () => {
expect(consoleMessages.map((message) => message.text())).toMatchSnapshot(
"console messages"
);
+
+ expect(pageErrors).toMatchSnapshot("page errors");
});
it("should not handle HEAD request to magic async html", async () => {
@@ -162,6 +168,8 @@ describe("magicHtml option", () => {
expect(consoleMessages.map((message) => message.text())).toMatchSnapshot(
"console messages"
);
+
+ expect(pageErrors).toMatchSnapshot("page errors");
});
});
});