Skip to content

test(ui): pin the direct-URL record form save and nav CEL visibility in Live E2E UI - #28034

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-l72o5r
Oct 30, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-l72o5r

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #27555

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

  • New ui/e2e/live/record-form-direct-url.spec.ts (console: a full-page record form opened by direct URL saves silently and then leaves the app for /_console/home #27454). The test creates its own showcase_task through the data API (on a seeded project, status: backlog), opens /apps/com.example.showcase/showcase_task/record/ID/edit with page.goto (a fresh page, so the only earlier history entry is about:blank, the direct-URL entry the defect needs), renames the title, clicks Save and asserts: the save request answered 2xx; the toast Task "NEW TITLE" updated is visible; the URL path is exactly the record's detail path, inside the app; the form page is gone; GET /api/v1/data/showcase_task/ID returns the new title. The task is deleted in finally. A new file rather than an extension of action-modal.spec.ts: that file is about the modal transport, and a full-page form by URL is a different surface.
  • ui/e2e/live/list-row-action-cel.spec.ts gains a navigation case (console: a bare-string CEL predicate (nav visible, page visibleWhen) runs on the legacy evaluator and fails, though the spec defines a bare string as CEL shorthand #27457). It authors its own package and app through the metadata API the way Studio's menu-entry inspector writes VISIBLE WHEN (a bare string): one entry 'org_owner' in current_user.positions, one 'e2e_no_such_position' in current_user.positions, publishes the drafts, opens the app and asserts the first entry is shown, the second is absent, and no predicate could not be evaluated line reached the browser console (hidden because false, not because it faulted closed). in is CEL-only syntax, so on the legacy evaluator both entries are hidden. The test first asserts the seeded admin's get-session positions contain org_owner, and deletes the package in finally. The existing row-action case is unchanged.
  • ui/package.json: record-form-direct-url.spec.ts and list-row-action-cel.spec.ts join test:e2e:live:ci; list-row-action-cel.spec.ts leaves test:e2e:live:nightly. Both passed the promotion rule (readings below). Both headers say they are in the :ci allowlist since this card, the way studio-editor.spec.ts says it.
  • No changeset: the diff is tests plus two script lines in ui/package.json, the private workspace root (object-ui-monorepo, "private": true); no published package changes.

Acceptance notes

Verification

All runs: this branch's workspace backend (ui/e2e/live/ci/start-backend.sh, objectstack dev --seed-admin --fresh on examples/app-showcase, port 4110) and the Console production build (VITE_BASE_PATH=/ vite build) served by vite preview on 5290 with DEV_PROXY_TARGET, the Live E2E UI job's stack step for step after its turbo build filters; --retries 0; one long-lived backend across all runs (the CI job boots a fresh one per run, so this is the harder condition). Shared container, 4 cores.

Reading Runs Result Playwright total per run (wall)
Incumbent allowlist before this change (control) 1 12/12 34.8 s (36.0 s)
The two specs, 3 tests (3/3 consecutive, taken as 5 consecutive) 5 5/5 green, 15/15 tests 6.7–7.5 s (7.7–8.6 s)
Enlarged allowlist, pnpm run test:e2e:live:ci (the 5/5) 5 5/5 green, 75/75 tests 38.5–40.3 s (39.5–41.4 s)
Per-test time over the 5 pair runs (min–max)
Test Time
row-action visible predicates are CEL-evaluated (unchanged) 2.0–2.3 s
nav entry bare-string visible read as CEL (new) 1.5–1.7 s
full-page edit form opened by URL saves, toasts, stays in the app (new) 2.3–2.9 s

Budget: about +5 s on the step locally (incumbent 34.8 s, enlarged 38.5–40.3 s). The job comment in ci.yml measured the incumbent four-spec step at 14–24 s on CI; this PR's own Live E2E UI run is the first CI reading of the eight-file step, projected well inside the 120 s budget.

Ablations (one per scenario, through scripts/ablation-replace.mjs under the verify lock, Console rebuilt per leg)

Both specs ran in each leg, so each leg also shows the other scenario's test staying green.

Gate lines (command :: exit code)

node scripts/pm/dispatch-gates.mjs --commands derived 31 families from the three changed paths; each ran locally, plus node scripts/check-sdui-manifest.mjs, pnpm --dir ui run type-check:e2e (the program lists both changed spec files) and pnpm --dir ui check:new-line-citations: 34 lines, every one exit 0. --ran reconciliation: 31 derived, 31 run, 0 NOT-MEASURED. CI runs the rest (the repo-wide scans, Live E2E UI itself).

node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-osv-exemptions.mjs :: exit 0
node scripts/check-osv-exemptions.mjs --self-test :: exit 0
node scripts/osv-base-relative.mjs --self-test :: exit 0
pnpm --filter @objectstack/spec run check:llms-txt :: exit 0
pnpm check:changeset-fixed :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:manifest-repository-directory :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:override-consistency :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:turbo-task-graph :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:vendor-export-contract-resolve :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0
pnpm check:workspace-manifest-cycles :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
pnpm --dir ui run type-check:e2e :: exit 0
pnpm --dir ui check:new-line-citations :: exit 0

All readings on head 2b1c6d27.


Generated by Claude Code

…cs to Live E2E UI

A full-page edit form opened by direct URL saves, toasts and lands on the
record inside the app, with the stored value read back; a nav entry's
bare-string visible is read as CEL, shown when true and hidden when false.
list-row-action-cel.spec.ts moves from the nightly allowlist to the ci one.

Claude-Session: https://claude.ai/code/session_01Utp6CaJoinvGQSbHeDaWBe
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m dependencies Pull requests that update a dependency file tests labels Oct 30, 2026
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Oct 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#3 · os-bill · session_01Utp6CaJoinvGQSbHeDaWBe

席位核对

ACCEPT · head 2b1c6d276f44002941fc3e4a9349736b0dcf4dee · 2026-10-30T10:01Z


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

1 participant