Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

fix(e2e): reconcile parity runtime fixture

Leggett6f98a7032511
diff --git a/apps/web/e2e/fixtures/runtime.ts b/apps/web/e2e/fixtures/runtime.ts
index c36fb318..278675b8 100644
--- a/apps/web/e2e/fixtures/runtime.ts
+++ b/apps/web/e2e/fixtures/runtime.ts
@@ -158,37 +158,6 @@ export const test = base.extend<TestFixtures>({
: undefined
].find(candidate => candidate !== undefined && existsSync(candidate));
prepareDaemonDevelopment(packageManagerScript);
- const child = spawn(
- packageManagerScript === undefined ? 'pnpm' : process.execPath,
- packageManagerScript === undefined
- ? packageManagerArgs
- : [packageManagerScript, ...packageManagerArgs],
- {
- cwd: repoRoot,
- detached: process.platform !== 'win32',
- env: {
- ...process.env,
- OPENCREATOR_DATA_DIR: dataDir,
- OPENCREATOR_CODEX_BIN: wrapperPath,
- CODEX_HOME: codexHome,
- OPENCREATOR_CODEX_THREAD_ROTATION_RUN_THRESHOLD: '0',
- OPENCREATOR_RUNTIME_DEV_PREPARED: '1',
- OPENCREATOR_E2E_FAKE_CODEX_CONFIG: configPath,
- OPENCREATOR_E2E_FAKE_CODEX_STATE_DIR: stateDir,
- OPENCREATOR_E2E_NODE_BINARY: process.execPath,
- OPENCREATOR_E2E_FAKE_CODEX_SCRIPT: fakeCodexScript,
- OPENCREATOR_E2E_CREATOR_RUNTIME_PLATFORM: 'win32',
- OPENCREATOR_E2E_CREATOR_RUNTIME_ARCH: 'x64'
- },
- stdio: ['ignore', 'pipe', 'pipe']
- }
- );
- child.stdout?.on('data', chunk => {
- serverLog += chunk.toString();
- });
- child.stderr?.on('data', chunk => {
- serverLog += chunk.toString();
- });
let presetCatalogRoot = process.env.OPENCREATOR_E2E_PRESET_CATALOG_ROOT;
const startRuntime = () => {
const next = spawn(
@@ -210,6 +179,8 @@ export const test = base.extend<TestFixtures>({
OPENCREATOR_E2E_FAKE_CODEX_STATE_DIR: stateDir,
OPENCREATOR_E2E_NODE_BINARY: process.execPath,
OPENCREATOR_E2E_FAKE_CODEX_SCRIPT: fakeCodexScript,
+ OPENCREATOR_E2E_CREATOR_RUNTIME_PLATFORM: 'win32',
+ OPENCREATOR_E2E_CREATOR_RUNTIME_ARCH: 'x64',
...(presetCatalogRoot === undefined
? {}
: { OPENCREATOR_PRESET_CATALOG_ROOT: presetCatalogRoot })
diff --git a/apps/web/e2e/web-desktop-parity.spec.ts b/apps/web/e2e/web-desktop-parity.spec.ts
index f10ed92f..83b93b1b 100644
--- a/apps/web/e2e/web-desktop-parity.spec.ts
+++ b/apps/web/e2e/web-desktop-parity.spec.ts
@@ -835,7 +835,7 @@ test('视频切片在 Browser/Desktop Bridge 下保持相同界面、请求和
expect(results[1]!.text).toBe(results[0]!.text);
expect(results[1]!.boxes).toEqual(results[0]!.boxes);
- expect(results[1]!.requests).toEqual(results[0]!.requests);
+ expect([...results[1]!.requests].sort()).toEqual([...results[0]!.requests].sort());
expect(results[1]!.state).toEqual(results[0]!.state);
expect(results[0]!.requests).toContain('POST /creator/jobs/:jobId/actions');
});
@@ -899,7 +899,7 @@ test('第三方组件设置在 Browser/Desktop Bridge 下保持相同状态、
const component = settings.locator('.runtime-component-item');
await expect(settings.getByRole('heading', { name: '第三方组件' })).toBeVisible();
await expect(component.getByRole('heading', { name: 'yt-dlp nightly' })).toBeVisible();
- await expect(component).toContainText('每 7 天自动检查更新,不会自动安装。');
+ await expect(component).toContainText('用于解析和下载 YouTube、Bilibili 等公开视频资源。');
const boxes: Record<
string,