Skip to content

armgit / peach

Public Imported from GitHub
0

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

test(amane): 补齐打包选测与浏览器交互等待

longmeidaofd1a9e8b019b
diff --git a/frontend/e2e/http-configuration.test.ts b/frontend/e2e/http-configuration.test.ts
index 639f66b79..258338993 100644
--- a/frontend/e2e/http-configuration.test.ts
+++ b/frontend/e2e/http-configuration.test.ts
@@ -70,8 +70,8 @@ describe('普通 HTTP 的配置与播放', () => {
await page.locator('#stage .video-js video.vjs-tech').waitFor();
assert.deepEqual(problems, []);
} finally {
- await page.goto('about:blank');
await page.unrouteAll({ behavior: 'wait' });
+ await page.goto('about:blank');
await opened.close();
}
});
diff --git a/frontend/e2e/setup.test.ts b/frontend/e2e/setup.test.ts
index 373281fd1..bddbaab58 100644
--- a/frontend/e2e/setup.test.ts
+++ b/frontend/e2e/setup.test.ts
@@ -60,6 +60,7 @@ describe('首次运行页', { skip: origin && media && dataRoot ? false : '只
await page.locator('[aria-labelledby="setup-proxy-title"] button[aria-haspopup="listbox"]').click();
await page.getByRole('option', { name: '自定义', exact: true }).click();
+ await page.locator('[data-trigger="Select"]').waitFor({ state: 'detached' });
const proxy = page.getByLabel('代理地址', { exact: true });
await proxy.fill('http://proxy.invalid');
const mobileForm = VIEWPORTS.find((candidate) => candidate.name === 'mobile')!;
diff --git a/scripts/test_runner.py b/scripts/test_runner.py
index 3f5f3698b..22fae0a0a 100644
--- a/scripts/test_runner.py
+++ b/scripts/test_runner.py
@@ -153,7 +153,7 @@ SCOPES: dict[str, tuple[str, ...]] = {
"test_cli.py", "test_server.py", "test_versioning.py", "test_frontend_build.py",
"test_cloudflared_packaging.py", "test_desktop_installer.py",
"test_ffmpeg_build.py", "test_ffmpeg_bundle.py", "test_untrunc_build.py", "test_macos_media.py",
- "test_face_models_bundle.py"),
+ "test_face_models_bundle.py", "test_metadata_amane_bridge.py"),
}
SCOPE_TEST_IDS: dict[str, tuple[str, ...]] = {