Răsfoiți Sursa

test(web): use supported sidebar visibility assertion

imccyu 4 săptămâni în urmă
părinte
comite
ff3ccb4d7c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      apps/web/tests/sidebar-right.e2e.ts

+ 1 - 1
apps/web/tests/sidebar-right.e2e.ts

@@ -950,7 +950,7 @@ describe('web e2e: shipped right Sidebar', () => {
       expect(await column.locator('[data-dockkit-tab-close]').count()).toBe(0)
       expect(await column.locator('[data-dockkit-tab-close]').count()).toBe(0)
       expect(await column.locator('[data-dockkit-tab-quiet]').count()).toBe(1)
       expect(await column.locator('[data-dockkit-tab-quiet]').count()).toBe(1)
       await column.locator('[data-dockkit-tab]').first().click({ button: 'right' })
       await column.locator('[data-dockkit-tab]').first().click({ button: 'right' })
-      await expect(page.locator('[data-dockkit-tab-menu]')).toBeHidden()
+      expect(await page.locator('[data-dockkit-tab-menu]').isVisible()).toBe(false)
       expect(await page.getByRole('menu').count()).toBe(0)
       expect(await page.getByRole('menu').count()).toBe(0)
 
 
       // Any other tab standing alone closes together with the column. Open the
       // Any other tab standing alone closes together with the column. Open the