소스 검색

test(web): wait for model selection menu closure

Tianyi Cui 1 개월 전
부모
커밋
fd5d68586f
1개의 변경된 파일과 2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      apps/web/tests/feedback-release.e2e.ts

+ 2 - 0
apps/web/tests/feedback-release.e2e.ts

@@ -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 () => {