Skip to content

test(ui): live e2e for the Studio customization journey on a read-only base (#28579 slice 3) - #29559

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-28579-studio-journey-e2e-s3
Nov 2, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-28579-studio-journey-e2e-s3

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Requested by 田騏 · project thread

Fixes #28579

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:新增一条真实浏览器端到端测试,在只读的 showcase 上走完 Studio 的整条定制流程:定制视图并核对服务端返回的列,恢复包原版,添加 region__c 字段,最后尝试卸载基础包并确认被拒(422)。这条测试已加入必跑的 Live E2E UI 任务。同时按清单跑了一轮 ADR-0146 七条新测试项,修正了跑测中发现写错的条款。测试、清单之外不改任何产品代码。
  • 为什么改:ADR-0146 的定制能力此前只有 jsdom 和协议层的单元测试,没有任何测试真正在服务端和浏览器上走一遍。
  • 风险与回滚:只新增测试、改清单文档,不影响运行时。新测试为必跑任务增加约 13 秒,仍在 2 分钟预算内(完整白名单 75 秒)。若出现不稳定,从 ui/package.json 的 test:e2e:live:ci 移除即可,或直接 revert 本 PR。
  • 先看:ui/e2e/live/studio-customize-journey.spec.ts,以及 FOLLOW-UPS §15b,其中列出跑测发现的 6 个产品问题(未立卡)。
  • 两分钟验证:在 ui/ 下,后端和控制台起好后,运行 LIVE_API_URL=… LIVE_APP_URL=… pnpm test:e2e:live studio-customize-journey.spec.ts,约 20 秒通过。
  • 需要你做的:席位为 §15b 的产品问题立卡,其中最要紧的是基础包导出会带出仪表盘和报表的覆盖。

What changes

The live spec. ui/e2e/live/studio-customize-journey.spec.ts is one test with four steps. It runs as the signed-in admin on the read-only com.example.showcase:

  1. Customize a view. It customizes showcase_task.in_progress and drops Due Date. It asserts:
    • the ensure door answers 200 or 201;
    • the draft PUT names package=com.example.showcase.custom and carries overrides: { package, basedOn } with the edited columns;
    • after publish, three server reads serve the customized column set: the read naming no package, the read naming the base, and the list;
    • the override chip is shown.
  2. Restore package original. Two DELETEs at the pair answer 200, and the three reads serve the shipped columns again.
  3. Add region__c. Add field on the base object's Form sends the exact object_extension draft body to the pair. After publish, the base object lists region__c, and the pair's extension read and export carry it.
  4. Uninstall the base. It asserts what main answers: DELETE /api/v1/packages/com.example.showcase returns 422 WRITABLE_PACKAGE_REQUIRED, and the base and the pair are still served. requireWritablePackage is asked before the pair check, so the 409 that names the pair is never reached on a read-only base. That 409 is reachable only for a writable base with an exported pair, which packages-uninstall-refuse-before-mutate.test.ts pins and the QA run drove live.

The test cleans up after itself. If the pair did not exist before the test, the test deletes it. If the pair already existed, only the test's own rows are removed.

CI placement. The spec is in the required Live E2E UI job's test:e2e:live:ci allowlist, not nightly. It meets the promotion rule:

  • the spec green alone on every run: on the pre-merge head, during the QA run, and on the merged head (more than 3 in a row);
  • 5/5 green runs of the enlarged allowlist, each on a fresh backend: 17 passed, 72.9 to 76.3 s wall each, with the journey taking 13.1 to 13.7 s;
  • one more green run of the whole allowlist on the merged head: 74.9 s wall.

The specs step's budget is under 2 minutes.

The checklist. Each touched item gets revision +1 and one history row, ref #28579.

Item Revision Change
studio-authoring.package-customize-restore-display r2 automated names the spec, with the view variant's clauses and layers; kind e2e
studio-authoring.package-extension-field-c r2 automated names the spec (kind e2e). steps[6] names the object with the package's namespace prefix: without it the server answers 422 NAMESPACE_PREFIX before the __c judge runs
platform-core.customization-pair-ensure-door r2 automated adds the spec for acceptance[4] (the live 422)
automation.package-flow-override r2 automated no longer says the e2e is owed; the spec does not drive a flow
studio-authoring.package-customization-counts-and-marks r2 acceptance[2] and steps[4] corrected (assertion defect): the All metadata area asks every package except a pair, as its pin asserts
platform-core.setup-metadata-redirects-to-studio r2 steps[0] and acceptance[0]–[2] corrected (assertion defects): the app-segment rewrite, the Data pillar hop and the real datasource pages
studio-authoring.access-permission-set-lifecycle r7 new automated block (kind unit) scoped to acceptance[5]. Its two pins are StudioDesignSurface.accessNewSimilar-28573.test.tsx and permission-set-clone.test.ts; acceptance[0]–[4] have none

FOLLOW-UPS.md §15 records the run, the fixed assertion defects and the six product findings. coverage.json does not change, because no kind changed.

Tests

The spec on the merged head 0482a02c69. Each run used cd ui && LIVE_API_URL=http://localhost:4417 LIVE_APP_URL=http://localhost:5291 pnpm test:e2e:live studio-customize-journey.spec.ts.

Run Exit Wall Test
Pass 0 21.2 s 15.4 s
Failing variant 1 11.9 s —

The failing variant changed the post-publish expectation from the customized columns to the shipped ones. It failed at toEqual with the three due_date entries missing. The file was then restored, its hash matches the HEAD blob, and git diff HEAD is empty.

The same pair on the pre-merge head 81d186b605. The pass run took 17.8 s wall (exit 0). The variant failed at the same assertion: exit 1, 12.0 s.

The QA run. The checklist-test run covered the 7 new items at revision 1, judging all 7: 4 PASS / 0 PARTIAL / 3 FAIL / 0 BLOCKED / 0 NOT-RUN. The record is the qa-run issue #29560, which also carries the system_overview measurement.

Item Verdict
ensure door PASS
__c field PASS
flow override PASS
ceremony PASS
restore-display FAIL: acceptance[4], product. The base export carries dashboard and report overrides
counts-and-marks FAIL: acceptance[2], assertion defect, fixed here
redirects FAIL: acceptance[0] and [3], product, where Studio's cross-package type list is rewritten to one package's leg; and acceptance[1], an assertion defect fixed here

Tier 1 pins. These are the 6 vitest sets the items cite, and each exited 0:

Package Files Tests
ui 14 242
objectql 4 65
service-automation 1 16
runtime 4 97
metadata-protocol 2 41
cli (integration project) 1 5

Acceptance notes

  • Wanted 3 of the card. The journey runs through the Studio door, not the API alone. Customize, Publish, Restore and Add field are pressed in the console, and the server's reads are the oracle.
  • The asserted refusal is 422 WRITABLE_PACKAGE_REQUIRED. It is not the 409 that names the pair. The spec's header and step name both say so, and FOLLOW-UPS §14b explains why.
  • system_overview. It can be customized in its pair on the server: ensure answers 201, then the declared PUT and the publish succeed. Studio's door does not reach it, because Studio drops system-scope packages and so shows no read-only state and no Customize. This is finding 4 in §15b.
  • No product code. The six product findings in §15b are listed for the seat to card, and no issue was filed for them.

Verification

  • pnpm check:platform-checklist exited 0 after the merge: 359 items, symbol anchors 1134/1144 with the residual unchanged.
  • pnpm type-check:e2e and pnpm exec eslint e2e/live/studio-customize-journey.spec.ts both exited 0 in ui/.
  • node scripts/pm/dispatch-gates.mjs --commands derived the gate list, and --ran reconciled it: 38 derived, 38 run, every one exit 0, 0 NOT-MEASURED, 0 UNRUN (--ran exit 0).
  • origin/main was merged once at 0482a02c69. The build state was then refreshed with pnpm install --frozen-lockfile && pnpm build, both exiting 0, and rm -rf packages/runtime/.objectstack. The console was rebuilt, the backend started fresh, and the spec, its variant and the CI allowlist were re-run.
  • Changeset: skip-changeset. ui/e2e is not a published package, the ui root package is private, and the rest of the diff is docs.

🤖 Generated with Claude Code

…y base

Walks com.example.showcase through the Studio door: customize a list
view into the .custom pair and read the served columns, restore the
package original, add region__c as an extension in the pair, and read
the uninstall door's 422 WRITABLE_PACKAGE_REQUIRED on the read-only base.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
…cord the first run

The slice 3 live spec now appears in automated.ref for the display
item's view variant, the __c extension item and the ensure door's 422.
The flow, counts, and redirect items stop saying the e2e is owed.
access-permission-set-lifecycle gains an automated block scoped to
acceptance[5].

The run found assertion defects, fixed here:
- counts acceptance[2] said writable packages are never asked
- the redirect item missed the app-segment rewrite and the Data pillar
  hop, and cited the jsdom stub test ids
- the __c item's steps[6] named an object without the namespace prefix

FOLLOW-UPS section 15 records the product findings for the seat.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 2, 2026
@github-actions github-actions Bot added size/m dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation tests labels Nov 2, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd

席位核对 — ACCEPT · domain:devx#2 · head 0482a02c69c8d94a3ff4e30257b186e70e3d69fe · 2026-11-02T18:55Z

Checked against GitHub and the PR head, not against the report. This is slice 3 of 3 and carries Fixes #28579; slices 1 and 2 landed as Part of.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 2, 2026 18:58
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 2, 2026 18:58
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit dbca3ef Nov 2, 2026
67 of 68 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-28579-studio-journey-e2e-s3 branch November 2, 2026 19:31
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 documentation Improvements or additions to documentation size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QA checklist: rewrite the Setup-designer items to the Studio door and add the .custom customization journey, with one live e2e through Studio

1 participant