Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

test(web): 用键盘切换名册版式

longmeidaod06a5bf39c99
diff --git a/frontend/e2e/index-people.test.ts b/frontend/e2e/index-people.test.ts
index f9e108381..000967413 100644
--- a/frontend/e2e/index-people.test.ts
+++ b/frontend/e2e/index-people.test.ts
@@ -33,7 +33,9 @@ describe('本地与在线艺人共用名册布局', () => {
}));
for (const label of ['紧凑 · 圆形头像', '大图 · 竖幅头像']) {
await page.getByRole('tab', { name: '本地', exact: true }).click();
- await page.getByRole('radio', { name: label, exact: true }).check();
+ await page.getByRole('radio', { name: label, exact: true }).press('Space');
+ const layout = label.startsWith('紧凑') ? 'compact' : 'big';
+ await page.locator(`#index [data-index-grid][data-layout="${layout}"]`).waitFor();
await settle(page);
const local = await measure();
await page.getByRole('tab', { name: '在线', exact: true }).click();