浏览代码

fix(ci): await token stats before aria snapshot

Tianyi Cui 1 月之前
父节点
当前提交
580d85d2a8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      apps/web/tests/message-actions.e2e.ts

+ 1 - 0
apps/web/tests/message-actions.e2e.ts

@@ -128,6 +128,7 @@ describe('web e2e: message IconActions and clocks on settled history', () => {
     onTestFailed(() => saveFailureShot(page, 'web-e2e-message-actions-aria'))
     await page.getByRole('button', { name: /^Select model, current/ })
       .waitFor({ timeout: 10_000 })
+    await page.getByText(/Cache hit \d+%/u).first().waitFor({ timeout: 10_000 })
     // Keep a footer focused so opacity-hidden actions stay in the a11y tree
     // as an active/focused control during the capture.
     await page.getByRole('button', { name: 'Copy' }).first().focus()