Repository navigation
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 intoNov 2, 2026
Conversation
…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
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
…udio-journey-e2e-s3
This was referenced Nov 2, 2026
Contributor
Author
|
domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd 席位核对 — ACCEPT ·
|
objectstack-fleet
Bot
deleted the
claude/issue-28579-studio-journey-e2e-s3
branch
November 2, 2026 19:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 田騏 · project thread
Fixes #28579
Clause-②: no
Metadata-protocol: none
维护者速读
region__c字段,最后尝试卸载基础包并确认被拒(422)。这条测试已加入必跑的 Live E2E UI 任务。同时按清单跑了一轮 ADR-0146 七条新测试项,修正了跑测中发现写错的条款。测试、清单之外不改任何产品代码。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 秒通过。What changes
The live spec.
ui/e2e/live/studio-customize-journey.spec.tsis one test with four steps. It runs as the signed-in admin on the read-onlycom.example.showcase:showcase_task.in_progressand drops Due Date. It asserts:package=com.example.showcase.customand carriesoverrides: { package, basedOn }with the edited columns;region__c. Add field on the base object's Form sends the exactobject_extensiondraft body to the pair. After publish, the base object listsregion__c, and the pair's extension read and export carry it.mainanswers:DELETE /api/v1/packages/com.example.showcasereturns 422WRITABLE_PACKAGE_REQUIRED, and the base and the pair are still served.requireWritablePackageis 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, whichpackages-uninstall-refuse-before-mutate.test.tspins 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 UIjob'stest:e2e:live:ciallowlist, not nightly. It meets the promotion rule:The specs step's budget is under 2 minutes.
The checklist. Each touched item gets revision +1 and one history row, ref #28579.
studio-authoring.package-customize-restore-displayautomatednames the spec, with the view variant's clauses and layers; kinde2estudio-authoring.package-extension-field-cautomatednames the spec (kinde2e). steps[6] names the object with the package's namespace prefix: without it the server answers 422NAMESPACE_PREFIXbefore the__cjudge runsplatform-core.customization-pair-ensure-doorautomatedadds the spec for acceptance[4] (the live 422)automation.package-flow-overrideautomatedno longer says the e2e is owed; the spec does not drive a flowstudio-authoring.package-customization-counts-and-marksplatform-core.setup-metadata-redirects-to-studiostudio-authoring.access-permission-set-lifecycleautomatedblock (kindunit) scoped to acceptance[5]. Its two pins areStudioDesignSurface.accessNewSimilar-28573.test.tsxandpermission-set-clone.test.ts; acceptance[0]–[4] have noneFOLLOW-UPS.md§15 records the run, the fixed assertion defects and the six product findings.coverage.jsondoes not change, because no kind changed.Tests
The spec on the merged head
0482a02c69. Each run usedcd ui && LIVE_API_URL=http://localhost:4417 LIVE_APP_URL=http://localhost:5291 pnpm test:e2e:live studio-customize-journey.spec.ts.The failing variant changed the post-publish expectation from the customized columns to the shipped ones. It failed at
toEqualwith the threedue_dateentries missing. The file was then restored, its hash matches the HEAD blob, andgit diff HEADis 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-runissue #29560, which also carries thesystem_overviewmeasurement.__cfieldTier 1 pins. These are the 6 vitest sets the items cite, and each exited 0:
Acceptance notes
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.Verification
pnpm check:platform-checklistexited 0 after the merge: 359 items, symbol anchors 1134/1144 with the residual unchanged.pnpm type-check:e2eandpnpm exec eslint e2e/live/studio-customize-journey.spec.tsboth exited 0 inui/.node scripts/pm/dispatch-gates.mjs --commandsderived the gate list, and--ranreconciled it: 38 derived, 38 run, every one exit 0, 0 NOT-MEASURED, 0 UNRUN (--ranexit 0).origin/mainwas merged once at0482a02c69. The build state was then refreshed withpnpm install --frozen-lockfile && pnpm build, both exiting 0, andrm -rf packages/runtime/.objectstack. The console was rebuilt, the backend started fresh, and the spec, its variant and the CI allowlist were re-run.skip-changeset.ui/e2eis not a published package, theuiroot package is private, and the rest of the diff is docs.🤖 Generated with Claude Code