test(web): use supported sidebar visibility assertion

This commit is contained in:
imccyu committed 2026-09-09 12:15:00 +08:00
1 parent 3481d4043e
commit ff3ccb4d7c
1 file changed
+1 -1
+1 -1
View File
@@ -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