@@ -241,7 +241,8 @@ test.describe('Dev Toolbar', () => {
241
241
242
242
const auditCanvas = toolbar . locator ( 'astro-dev-toolbar-app-canvas[data-app-id="astro:audit"]' ) ;
243
243
const auditHighlights = auditCanvas . locator ( 'astro-dev-toolbar-highlight' ) ;
244
- for ( const highlight of await auditHighlights . all ( ) ) {
244
+ const highlights = ( await auditHighlights . all ( ) ) . filter ( ( _ , index ) => index !== 1 ) ;
245
+ for ( const highlight of highlights ) {
245
246
await expect ( highlight ) . toBeVisible ( ) ;
246
247
await highlight . hover ( ) ;
247
248
const tooltip = highlight . locator ( 'astro-dev-toolbar-tooltip' ) ;
@@ -256,6 +257,22 @@ test.describe('Dev Toolbar', () => {
256
257
}
257
258
} ) ;
258
259
260
+ test ( 'tooltip is rendered behind audit list window' , async ( { page, astro } ) => {
261
+ await page . goto ( astro . resolveUrl ( '/tooltip-position' ) ) ;
262
+
263
+ const toolbar = page . locator ( 'astro-dev-toolbar' ) ;
264
+ const appButton = toolbar . locator ( 'button[data-app-id="astro:audit"]' ) ;
265
+ await appButton . click ( ) ;
266
+
267
+ const auditCanvas = toolbar . locator ( 'astro-dev-toolbar-app-canvas[data-app-id="astro:audit"]' ) ;
268
+ const auditHighlights = auditCanvas . locator ( 'astro-dev-toolbar-highlight' ) ;
269
+ const highlight = auditHighlights . nth ( 1 )
270
+
271
+ await expect ( async ( ) => {
272
+ await highlight . hover ( { timeout : 100 } ) ;
273
+ } ) . rejects . toThrowError ( )
274
+ } ) ;
275
+
259
276
test ( 'can open Settings app' , async ( { page, astro } ) => {
260
277
await page . goto ( astro . resolveUrl ( '/' ) ) ;
261
278
0 commit comments