diff --git a/packages/vite/src/client/overlay.ts b/packages/vite/src/client/overlay.ts index f9a22b7db2c6b3..e094f5664a5bb6 100644 --- a/packages/vite/src/client/overlay.ts +++ b/packages/vite/src/client/overlay.ts @@ -1,8 +1,17 @@ import type { ErrorPayload } from 'types/hmrPayload' +// set :host styles to make playwright detect the element as visible const template = /*html*/ ` -
-
-

-  

-  

-  
- Click outside or fix the code to dismiss.
- You can also disable this overlay by setting - server.hmr.overlay to false in vite.config.js. +
+
+
+

+    

+    

+    
+ Click outside or fix the code to dismiss.
+ You can also disable this overlay by setting + server.hmr.overlay to false in vite.config.js. +
`