Просмотр исходного кода

fix(ci): await token stats before aria snapshot

Tianyi Cui 1 месяц назад
Родитель
Сommit
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()