Просмотр исходного кода

test(web): use supported sidebar visibility assertion

imccyu 3 недель назад
Родитель
Сommit
ff3ccb4d7c
1 измененных файлов с 1 добавлено и 1 удалено
  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-quiet]').count()).toBe(1)
       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)
 
       // Any other tab standing alone closes together with the column. Open the