Peach: Local-first video metadata scraper and media manager.
test(web): 等待操作与代理请求完整结束
longmeidao223c2b69910f
diff --git a/frontend/e2e/http-configuration.test.ts b/frontend/e2e/http-configuration.test.tsindex c2c952f1c..639f66b79 100644--- a/frontend/e2e/http-configuration.test.ts+++ b/frontend/e2e/http-configuration.test.ts@@ -69,7 +69,11 @@ describe('普通 HTTP 的配置与播放', () => {await page.goto(`${origin}/assets/${requiredEnv('PEACH_E2E_ITEM')}`, { waitUntil: 'load' });await page.locator('#stage .video-js video.vjs-tech').waitFor();assert.deepEqual(problems, []);- } finally { await opened.close() }+ } finally {+ await page.goto('about:blank');+ await page.unrouteAll({ behavior: 'wait' });+ await opened.close();+ }});}});diff --git a/frontend/e2e/tag-management.test.ts b/frontend/e2e/tag-management.test.tsindex f9b468df9..fca9f2fbb 100644--- a/frontend/e2e/tag-management.test.ts+++ b/frontend/e2e/tag-management.test.ts@@ -52,11 +52,13 @@ describe('标签管理的完整操作', () => {await page.getByRole('button', { name: '隐藏', exact: true }).click();await page.getByRole('button', { name: '隐藏标签', exact: true }).click();await chip(survivor.k).waitFor({ state: 'detached' });+ await page.getByRole('group', { name: '标签管理操作', exact: true }).waitFor({ state: 'detached' });await page.getByRole('button', { name: '已隐藏', exact: true }).click();await chip(survivor.k).click();await page.getByRole('button', { name: '恢复', exact: true }).click();await page.getByRole('button', { name: '恢复标签', exact: true }).click();await chip(survivor.k).waitFor({ state: 'detached' });+ await page.getByRole('group', { name: '标签管理操作', exact: true }).waitFor({ state: 'detached' });await page.getByRole('button', { name: '使用中', exact: true }).click();await chip(survivor.k).waitFor();const edit = page.getByRole('button', { name: `编辑标签 ${survivor.k}`, exact: true });