Skip to content

Commit 77b6523

Browse files
committed
chore: fix overlay tests
1 parent f1f47a5 commit 77b6523

File tree

77 files changed

+85
-585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+85
-585
lines changed

playwright.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
testDir: "./test/e2e",
1111
snapshotPathTemplate: "./test/e2e/__snapshots__/{testFilePath}/{arg}{ext}",
1212
fullyParallel: false,
13-
forbidOnly: !isCI,
13+
forbidOnly: isCI,
1414
retries: isCI ? MAX_RETRIES : 0,
1515
expect: {
1616
toHaveScreenshot: {
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"<body>\n <div\n id=\"webpack-dev-server-client-overlay-div\"\n style=\"\n position: fixed;\n box-sizing: border-box;\n inset: 0px;\n width: 100vw;\n height: 100vh;\n font-size: large;\n padding: 2rem 2rem 4rem;\n line-height: 1.2;\n white-space: pre-wrap;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.9);\n color: white;\n \"\n >\n <div\n style=\"\n color: rgb(232, 59, 70);\n font-size: 2em;\n white-space: pre-wrap;\n font-family: sans-serif;\n margin: 0px 2rem 2rem 0px;\n flex: 0 0 auto;\n max-height: 50%;\n overflow: auto;\n \"\n >\n Compiled with problems:\n </div>\n <button\n aria-label=\"Dismiss\"\n style=\"\n color: rgb(255, 255, 255);\n line-height: 1rem;\n font-size: 1.5rem;\n padding: 1rem;\n cursor: pointer;\n position: absolute;\n right: 0px;\n top: 0px;\n background-color: transparent;\n border: none;\n \"\n >\n ×\n </button>\n <div>\n <div\n style=\"\n background-color: rgba(206, 17, 38, 0.1);\n color: rgb(252, 207, 207);\n padding: 1rem 1rem 1.5rem;\n \"\n >\n <div\n data-can-open=\"true\"\n style=\"\n color: rgb(232, 59, 70);\n font-size: 1.2em;\n margin-bottom: 1rem;\n font-family: sans-serif;\n cursor: pointer;\n \"\n >\n ERROR in ./foo.js 1:1\n </div>\n <div\n style=\"\n line-height: 1.5;\n font-size: 1rem;\n font-family: Menlo, Consolas, monospace;\n \"\n >\n Module parse failed: Unterminated template (1:1) You may need an\n appropriate loader to handle this file type, currently no loaders are\n configured to process this file. See\n https://webpack.js.org/concepts#loaders &gt; `;a |\n </div>\n </div>\n </div>\n </div>\n</body>\n"
1+
"<body>\n <div\n id=\"webpack-dev-server-client-overlay-div\"\n style=\"\n position: fixed;\n box-sizing: border-box;\n inset: 0px;\n width: 100vw;\n height: 100vh;\n font-size: large;\n padding: 2rem 2rem 4rem;\n line-height: 1.2;\n white-space: pre-wrap;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.9);\n color: white;\n \"\n >\n <div\n style=\"\n color: rgb(232, 59, 70);\n font-size: 2em;\n white-space: pre-wrap;\n font-family: sans-serif;\n margin: 0px 2rem 2rem 0px;\n flex: 0 0 auto;\n max-height: 50%;\n overflow: auto;\n \"\n >\n Compiled with problems:\n </div>\n <button\n aria-label=\"Dismiss\"\n style=\"\n color: rgb(255, 255, 255);\n line-height: 1rem;\n font-size: 1.5rem;\n padding: 1rem;\n cursor: pointer;\n position: absolute;\n right: 0px;\n top: 0px;\n background-color: transparent;\n border: none;\n \"\n >\n ×\n </button>\n <div>\n <div\n style=\"\n background-color: rgba(206, 17, 38, 0.1);\n color: rgb(252, 207, 207);\n padding: 1rem 1rem 1.5rem;\n \"\n >\n <div\n data-can-open=\"true\"\n style=\"\n color: rgb(232, 59, 70);\n font-size: 1.2em;\n margin-bottom: 1rem;\n font-family: sans-serif;\n cursor: pointer;\n \"\n >\n ERROR in ./foo.js 1:1\n </div>\n <div\n style=\"\n line-height: 1.5;\n font-size: 1rem;\n font-family: Menlo, Consolas, monospace;\n \"\n >\n Module parse failed: Unterminated template (1:1) You may need an\n appropriate loader to handle this file type, currently no loaders are\n configured to process this file. See\n https://webpack.js.org/concepts#loaders &gt; `;\n </div>\n </div>\n </div>\n </div>\n</body>\n"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"<body>\n <h1>webpack-dev-server is running...</h1>\n <script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>\n</body>\n"
1+
"<body>\n <h1>webpack-dev-server is running...</h1>\n <script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>\n\n <iframe\n id=\"webpack-dev-server-client-overlay\"\n src=\"about:blank\"\n style=\"\n position: fixed;\n inset: 0px;\n width: 100vw;\n height: 100vh;\n border: none;\n z-index: 2147483647;\n \"\n ></iframe>\n</body>\n"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"<body>\n <h1>webpack-dev-server is running...</h1>\n <script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>\n</body>\n"
1+
"<body>\n <h1>webpack-dev-server is running...</h1>\n <script type=\"text/javascript\" charset=\"utf-8\" src=\"/main.js\"></script>\n\n <iframe\n id=\"webpack-dev-server-client-overlay\"\n src=\"about:blank\"\n style=\"\n position: fixed;\n inset: 0px;\n width: 100vw;\n height: 100vh;\n border: none;\n z-index: 2147483647;\n \"\n ></iframe>\n</body>\n"

test/e2e/__snapshots__/overlay.test.js/overlay-should-not-show-overlay-when-Trusted-Types-are-enabled-but-policy-is-not-allowed-page-html-snap.webpack5

-1
This file was deleted.
Loading

test/e2e/__snapshots__/overlay.test.js/overlay-should-show-a-warning-after-invalidation-overlay-html-snap.webpack5

-1
This file was deleted.

test/e2e/__snapshots__/overlay.test.js/overlay-should-show-a-warning-and-error-for-initial-compilation-and-protects-against-xss-overlay-html-snap.webpack5

-1
This file was deleted.

test/e2e/__snapshots__/overlay.test.js/overlay-should-show-a-warning-and-error-for-initial-compilation-and-protects-against-xss-page-html-snap.webpack5

-1
This file was deleted.

test/e2e/__snapshots__/overlay.test.js/overlay-should-show-a-warning-and-error-for-initial-compilation-overlay-html-snap.webpack5

-1
This file was deleted.

test/e2e/__snapshots__/overlay.test.js/overlay-should-show-a-warning-and-error-for-initial-compilation-page-html-snap.webpack5

-1
This file was deleted.

0 commit comments

Comments
 (0)