test(web): wait for model selection menu closure

This commit is contained in:
Tianyi Cui committed 2026-09-09 11:26:48 +08:00
1 parent 43846e7032
commit fd5d68586f
1 file changed
+2
+2
View File
@@ -82,6 +82,8 @@ describe.each(MODE === 'record' ? ['deepseek-official'] : ['deepseek-official',
await page.getByRole('menuitem', { name: /^Model\b/ }).click()
await page.getByRole('menuitemradio', { name, exact: true }).click()
await expect.poll(() => trigger.getAttribute('aria-label')).toContain(name)
// The durable projection can update the label before the selection reply closes the menu.
await expect.poll(() => trigger.getAttribute('aria-expanded'), { timeout: 10_000 }).toBe('false')
}
beforeAll(async () => {