test(editor): scoped overview card queries, group names

This commit is contained in:
bchanot committed 2026-11-07 03:03:39 +01:00
1 parent 6131225288
commit 7cca88592f
4 files changed
+92 -43

No files matched your search

+4 -1
View File
@@ -502,8 +502,11 @@ export async function pickAnnotation(
name: dict['editor.annotations.show_all'],
exact: true,
})
const list = annotationList(page, dict)
// Either the card (nothing selected) or the properties panel has settled.
await expect(all.or(list)).toBeVisible()
if (await all.isVisible()) await all.click()
await annotationList(page, dict).getByRole('button', { name }).click()
await list.getByRole('button', { name }).click()
}
export const toolButton = (page: Page, dict: Dict, id: string) =>