test(app): general settings, shortcuts, providers and status popover (#11517)

This commit is contained in:
Filip
2026-01-31 21:01:21 +01:00
committed by GitHub
parent e70d984320
commit 33252a65b4
13 changed files with 1187 additions and 69 deletions

View File

@@ -269,3 +269,25 @@ export async function withSession<T>(
await sdk.session.delete({ sessionID: session.id }).catch(() => undefined)
}
}
export async function openStatusPopover(page: Page) {
await defocus(page)
const rightSection = page.locator(titlebarRightSelector)
const trigger = rightSection.getByRole("button", { name: /status/i }).first()
const popoverBody = page.locator(popoverBodySelector).filter({ has: page.locator('[data-component="tabs"]') })
const opened = await popoverBody
.isVisible()
.then((x) => x)
.catch(() => false)
if (!opened) {
await expect(trigger).toBeVisible()
await trigger.click()
await expect(popoverBody).toBeVisible()
}
return { rightSection, popoverBody }
}