fix: 修复 macOS 端到端测试

This commit is contained in:
majun.jason
2026-08-04 20:13:07 +08:00
parent 60c501e148
commit e153ddb794
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -33,6 +33,10 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Chromium
if: runner.os == 'macOS'
run: pnpm exec playwright install chromium
- name: Type check
run: pnpm typecheck
+2 -2
View File
@@ -134,10 +134,10 @@ test('EXPORT-01 multi-chat selection stays local to export and forces HTML', asy
await expect(fixture.page.getByText('已选 2 / 5 个')).toBeVisible()
await expect(fixture.page.getByRole('button', { name: 'CSV' })).toBeDisabled()
await expect(fixture.page.getByRole('button', { name: /HTML/ })).toHaveClass(/active/)
await expect(fixture.page.getByText('2 个聊天 · 合并预览')).toBeVisible()
await expect(fixture.page.getByText('文件传输助手、产品测试群 · 共 2 个聊天')).toBeVisible()
await expect(
fixture.page.locator('.export-preview-bubble').filter({ hasText: '这是一条脱敏测试消息' })
).toBeVisible()
).toHaveCount(1)
await navigation.getByRole('button', { name: '档案' }).click()
await expect(fixture.page.getByText('转发多条内容', { exact: true })).toBeVisible()