diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 389ce42f..942c403e 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T07:48:05Z", + "updated_at": "2026-11-20T10:44:13Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -317,9 +317,9 @@ }, ".github/workflows/webui-ci.yml": { "role": "index", - "sha256": "f25bb83c77e06d4b82def3deba39f334f28097256ba55e6613a33fee91d8026e", - "size": 6206, - "normalized_sha256": "f25bb83c77e06d4b82def3deba39f334f28097256ba55e6613a33fee91d8026e" + "sha256": "d145b227385b4c57b26af11ffc25cc5736fa83adf6cc7975a5ee98d78a5ae298", + "size": 6267, + "normalized_sha256": "d145b227385b4c57b26af11ffc25cc5736fa83adf6cc7975a5ee98d78a5ae298" }, ".gitignore": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "25e7e75372030b87a948820132e14caa2af625c328e19786fe7b2abae01b647a", - "size": 637855, - "normalized_sha256": "25e7e75372030b87a948820132e14caa2af625c328e19786fe7b2abae01b647a" + "sha256": "a8c909897c9fd56baac348d81d13888fe6a67cface1601909d50041cacd43ff7", + "size": 638265, + "normalized_sha256": "a8c909897c9fd56baac348d81d13888fe6a67cface1601909d50041cacd43ff7" }, "aoci.meta.txt": { "role": "index", @@ -28542,9 +28542,9 @@ }, "packages/webui/test/browser/harness.mjs": { "role": "index", - "sha256": "5a07df7ef468852002734de03fb83c9092a6b672db1832a9f95e8ab331bda343", - "size": 13075, - "normalized_sha256": "5a07df7ef468852002734de03fb83c9092a6b672db1832a9f95e8ab331bda343" + "sha256": "af0e95b49485c650378c0e9ab38f1087001d78616e3707c9f8dedea166766fba", + "size": 13137, + "normalized_sha256": "af0e95b49485c650378c0e9ab38f1087001d78616e3707c9f8dedea166766fba" }, "packages/webui/test/browser/miniapp-panel.spec.mjs": { "role": "index", @@ -28953,9 +28953,9 @@ }, "packages/webui/test/browser/select-dynamic-options.spec.mjs": { "role": "index", - "sha256": "b9490b52fd607543ed707f7f24a86a52a74df02dc5838a4c31f6d1b539f03497", - "size": 6219, - "normalized_sha256": "b9490b52fd607543ed707f7f24a86a52a74df02dc5838a4c31f6d1b539f03497" + "sha256": "926d2dcdfa97cdbb27fa6f31ebd583dc5017ce909a7a50cc4f98085d64ddba81", + "size": 6373, + "normalized_sha256": "926d2dcdfa97cdbb27fa6f31ebd583dc5017ce909a7a50cc4f98085d64ddba81" }, "packages/webui/test/browser/select-keyboard.spec.mjs": { "role": "index", @@ -31820,9 +31820,9 @@ }, "test/source-sync.test.mjs": { "role": "index", - "sha256": "44f2309463aa1089caef099c49c0b92c6250ded6fcd8927b14826edefa105441", - "size": 97004, - "normalized_sha256": "44f2309463aa1089caef099c49c0b92c6250ded6fcd8927b14826edefa105441" + "sha256": "571fadf30890f870b4d50292dd435a4666f2ac92973dd51c43e9146fcfd6532a", + "size": 97175, + "normalized_sha256": "571fadf30890f870b4d50292dd435a4666f2ac92973dd51c43e9146fcfd6532a" }, "test/sqlite-message-contention.test.ts": { "role": "observe", diff --git a/.github/workflows/webui-ci.yml b/.github/workflows/webui-ci.yml index c5bca7d4..1a9c2495 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -83,7 +83,7 @@ jobs: run: pnpm install:webui-browsers - name: Install FFmpeg if: matrix.lane.name == 'units' || matrix.lane.shard - timeout-minutes: 8 + timeout-minutes: ${{ runner.os == 'Linux' && 15 || 8 }} shell: bash run: | # The native Design media paths run FFmpeg for real: the tests cut a @@ -98,7 +98,7 @@ jobs: exit 0 elif [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get update - sudo apt-get install -y ffmpeg + sudo apt-get install -y --no-install-recommends ffmpeg elif [ "$RUNNER_OS" = "macOS" ]; then brew install ffmpeg else diff --git a/aoci.code.txt b/aoci.code.txt index 6a36b825..bd7ab875 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -109,7 +109,7 @@ sync-issue-to-feishu.yml[FV4M]: F:Defines legacy Feishu notification for eligibl webui-npm-preview.yml[FV4S]: F:Defines legacy npm preview package verification for the WebUI branch. | R:- | A:- | S:- ===//.github/workflows/=== -webui-ci.yml[FV4S]: F:Runs WebUI CI as independent checks, integration, browser shard, and package jobs on three operating systems. | R:code:package.json,code:playwright.config.mjs,code:.github/workflows/update-visual-baselines.yml | A:- | S:Browser file shards isolate single-worker fixture servers; macOS keeps windowed Chromium. Test jobs save diagnostics by platform, lane, and attempt even on failure. +webui-ci.yml[FV4S]: F:Runs independent WebUI checks, unit and integration tests, browser shards, and package jobs on three operating systems. | R:code:package.json,code:playwright.config.mjs,code:.github/workflows/update-visual-baselines.yml | A:- | S:macOS uses windowed Chromium. Linux skips recommended FFmpeg packages and allows a longer install for slow mirrors. Diagnostics isolate platform, lane and attempt. update-visual-baselines.yml[FV4S]: F:Re-records the per-platform Playwright visual baselines of the named WebUI browser specs on the three CI runners and commits each runner's own pixels. | R:code:.github/workflows/webui-ci.yml | A:- | S:The refresh selects the browser mode the CI compares with — windowed Chromium on macOS — in a step of its own, because a step cannot read back the environment file it writes. ===//.plan/browser-use/board/=== @@ -5682,7 +5682,7 @@ feedback.spec.mjs[SE4S]: F:Tests accessible field error feedback. | R:- | A:- | field-contract.spec.mjs[SE4S]: F:Tests that form controls have accessible names. | R:- | A:- | S:- fixture.mjs[SE4L]: F:Installs the browser fixture transport. | R:- | A:- | S:- goal-retention.spec.mjs[SE4S]: F:Tests retention of session goal state during a pending refresh. | R:- | A:- | S:- -harness.mjs[TQ4M]: F:Provides built-client browser fixtures, readiness checks and failure artifacts. | R:code:playwright.config.mjs | A:openApp, waitForLocalImages | S:Windows buffer errors trigger a bounded TCP-state census. Image evidence omits URL query parameters. +harness.mjs[TQ4M]: F:Provides built-client browser fixtures, readiness checks and failure artifacts. | R:code:playwright.config.mjs,code:packages/webui/test/browser/server.mjs | A:openApp, waitForLocalImages | S:Assert the synchronously injected server ID after navigation without polling. Windows buffer errors trigger a bounded TCP census; image evidence omits URL queries. miniapp-panel.spec.mjs[SE4L]: F:Tests Mini App launcher refresh behavior. | R:- | A:- | S:- miniapp-standalone-tab.spec.mjs[SE4S]: F:Tests promotion of inline Mini Apps to standalone tabs. | R:- | A:- | S:- model-picker-interactions.spec.mjs[SE4M]: F:Tests model picker interactions and display of the selected model. | R:- | A:- | S:- @@ -5708,7 +5708,7 @@ responsive-layout.spec.mjs[SE4L]: F:Tests responsive layout at supported viewpor review-consumers.spec.mjs[SE4S]: F:Tests that review consumers read data through the review owner. | R:- | A:- | S:- review-diff-colors.spec.mjs[SE4S]: F:Tests diff color presentation in the browser. | R:- | A:- | S:- scheduling-panel.spec.mjs[SE4S]: F:Tests interactions in the scheduled tasks panel. | R:- | A:- | S:- -select-dynamic-options.spec.mjs[SE4S]: F:Tests that select options track changes to available hosts. | R:- | A:- | S:- +select-dynamic-options.spec.mjs[TE4S]: F:Verifies the SSH project host picker as the available host list shrinks or becomes empty. | R:code:packages/webui/test/browser/harness.mjs,code:packages/webui/src/client/features/ssh/ui/ssh-project-form.tsx | A:- | S:Submit through the form event to trigger a rejected save and refresh without dismissing the open popup with an outside click. select-keyboard.spec.mjs[SE4M]: F:Tests keyboard navigation and focus behavior in select controls. | R:- | A:- | S:- server.mjs[SE4T]: F:Starts the server used by WebUI browser tests. | R:- | A:- | S:- settings-account-tab.spec.mjs[SE4L]: F:Tests account settings navigation. | R:- | A:- | S:- @@ -5860,7 +5860,7 @@ network-deny.mjs[SE4T]: F:Provides test helpers that deny network access. | R:- offline-environment.mjs[SE4T]: F:Prepares an offline environment for verification. | R:- | A:- | S:- public-artifact.test.mjs[SE4T]: F:Checks the contents and contracts of public artifacts. | R:- | A:- | S:- smoke.test.mjs[SE4M]: F:Runs smoke checks for the public distribution. | R:- | A:- | S:- -source-sync.test.mjs[TV6L]: F:Tests source synchronization, WebUI workflow contracts, and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:Requires all three browser shards per OS, native test provisioning before suites, independent lane failures, unique diagnostics, and read-only workflow permissions. +source-sync.test.mjs[TV6L]: F:Tests source synchronization, WebUI workflow contracts, and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:Requires three browser shards per OS, native provisioning before suites, a Linux-only FFmpeg timeout increase, independent lane failures, unique diagnostics, and read-only workflow permissions. vitest-suites.json[FQ6L]: F:Declares the Vitest files every verification suite runs, per group. | R:- | A:- | S:A new Vitest file is registered in its group here; the Vitest config and the package scripts read this file instead of naming files themselves. windows-contract.test.mjs[SE4S]: F:Tests Windows-specific distribution and runtime contracts. | R:- | A:- | S:- diff --git a/packages/webui/test/browser/harness.mjs b/packages/webui/test/browser/harness.mjs index b39d0dac..192b715e 100644 --- a/packages/webui/test/browser/harness.mjs +++ b/packages/webui/test/browser/harness.mjs @@ -119,7 +119,8 @@ async function assertHarnessServerHealth(page) { /** The harness server and the page must both report this run's server id. */ async function assertHarnessServer(page) { await assertHarnessServerHealth(page); - await expect.poll(() => page.evaluate(() => window.__WEBUI_TEST_SERVER_ID__)).toBe(expectedServerId()); + // The fixture HTML sets this synchronously before page.goto resolves. + expect(await page.evaluate(() => window.__WEBUI_TEST_SERVER_ID__)).toBe(expectedServerId()); } // The server half runs before the test body, so a run aimed at the wrong server diff --git a/packages/webui/test/browser/select-dynamic-options.spec.mjs b/packages/webui/test/browser/select-dynamic-options.spec.mjs index 5dc0a009..01c03406 100644 --- a/packages/webui/test/browser/select-dynamic-options.spec.mjs +++ b/packages/webui/test/browser/select-dynamic-options.spec.mjs @@ -61,6 +61,7 @@ async function openProjectForm(page, alias) { await page.locator(`[data-webui-ssh-new-project="${alias}"]`).click(); const dialog = page.getByTestId("ssh-create-project-dialog"); await expect(dialog).toBeVisible(); + await dialog.locator('[data-webui-ssh-project-name="true"]').fill("远程项目"); return dialog; } @@ -96,8 +97,9 @@ async function reloadHosts(page, aliases) { window.__fixture.setResponse("saveSshProject", { success: false, error: "没有权限保存项目。" }); }, hosts(aliases)); const dialog = page.getByTestId("ssh-create-project-dialog"); - await dialog.locator('[data-webui-ssh-project-name="true"]').fill("远程项目"); - await dialog.locator('[data-webui-ssh-project-submit="true"]').click(); + // Submit through the native form event while the listbox is open. Clicking + // the footer would also dismiss the listbox as an outside pointer action. + await dialog.locator("form").evaluate((form) => form.requestSubmit()); // The save failed, so the form is still open: the list behind it is what // changed, not the form. await expect(dialog).toBeVisible(); diff --git a/test/source-sync.test.mjs b/test/source-sync.test.mjs index 51b12afa..df355e55 100644 --- a/test/source-sync.test.mjs +++ b/test/source-sync.test.mjs @@ -85,6 +85,8 @@ test('public WebUI CI runs only WebUI checks and cannot publish packages', () => const ffmpeg = job.steps.find(step => step.name === 'Install FFmpeg'); assert.ok(ffmpeg, 'the native Design media paths run FFmpeg for real'); assert.match(ffmpeg.run, /ffmpeg/); + assert.equal(ffmpeg['timeout-minutes'], "${{ runner.os == 'Linux' && 15 || 8 }}"); + assert.match(ffmpeg.run, /sudo apt-get install -y --no-install-recommends ffmpeg/); assert.doesNotMatch(ffmpeg.run, /npm publish|wget /); assert.equal((ffmpeg.run.match(/\bcurl /g) ?? []).length, 1); assert.match(ffmpeg.run, /https:\/\/github\.com\/GyanD\/codexffmpeg\/releases\/download\/\d+\.\d+\.\d+\//);