Repository navigation
test(ui): Setup navigation e2e per role on desktop and phone, checklist re-pointed to the regrouped Setup (#39060) - #39318
Merged
Conversation
…uditor, desktop and phone (#39060) Live Playwright specs drive the regrouped Setup navigation against a real backend: per role the groups and entries its gates allow and withhold, a closed group stays closed after a reload (and an opened one stays open), and the command palette finds a renamed entry by its old name. Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
Replace the retired Setup group ids in access-security, approvals and automation with their renamedFrom successors, rewrite the approvals Setup-nav item for Routing & Approvals, and add access-security.setup-nav-role-audience for the per-role groups, entries and old-name search the new e2e drives. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
2 tasks
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
Contributor
Author
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39318 (#39060, epic #39050) · head 席位核对ACCEPT · repo:objectstack@os-justin · head
|
This was referenced Dec 3, 2026
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.
Part of #39060
Clause-②: no (tests and the QA checklist only; no accept set or public surface moves)
Metadata-protocol: none
维护者速读
What changes
ui/e2e/live/setup-nav-39060.spec.ts(desktop, 1280x900) andui/e2e/live/setup-nav-39060-phone.spec.ts(phone, 390x844, touch), both drivingui/e2e/live/helpers/setup-nav-39060.ts. For each role and viewport, three tests:requiredPermissionsgates onorigin/main(setup.app.ts,setup-nav.contributions.ts, plugin nav contributions). Entries the gates withhold are asserted absent by name.Localizationfinds exactly one row,Company Settings › Language & Region, with the former-name note, and opens/settings/localization.Mail DeliveryfindsNotifications › Email Channelfor the admin and no row for the auditor, because that entry carriesmanage_platform_settings.admin_full_access).setup.access+view_all_audit_logand nothing else. This is the separation-of-duties audit officer thatsetup.app.tsnames ongroup_audit_data. No shipped set carries exactly that pair, so the helper saves one through the metadata door (PUT /api/v1/meta/permission/e2e_setup_auditor_39060) and creates the member withsignInMember.main. Per the dispatch it is an open question on the card, not an invented set.docs/qa/platform-checklist/areas/):access-security.jsonaccess-security.sharing-rule-authoring-uire-pointed togroup_access_sharing(rev 4).access-security.setup-nav-role-audience(rev 1): per-role groups and entries, the gated negatives, and the old-name search. It isautomatedby the two specs.approvals.json:approvals.setup-nav-entryrewritten for Routing & Approvals (rev 3). It covers the group order, the ruled absence of an Approvals Inbox entry, the zh-CN labels, and a negative for members withoutmanage_platform_settings.automation.json:automation.setup-packaged-automation-boardre-pointed togroup_apps_ai(rev 16).Tests
Live e2e: 12 of 12 green (admin and auditor × desktop and phone × 3)
Ran against a real backend:
ui/e2e/live/ci/start-backend.sh, showcase on its own port and DB, and a console bundle built atdc4a2cdbd6. The final run was after both ablation restores, on a fresh backend.Ablation 1: visibility (auditor, desktop)
requiredPermissions: ['manage_platform_settings']dropped from the Data Retention entry (thekeywords: ['Data Lifecycle']line, a marker added).015f8780b61ebecameb014b1758605. The dist preflight found the marker in 4 built files.+ Data Retention.015f8780b61e. A rebuild found the marker in 0 of 66 files, the tree was clean, and the test was green.-g "auditor, desktop › shows"matched no tests, so that run measured nothing. The red above is from the rerun with the regexauditor, desktop.*shows the groups.Ablation 2: collapse persists (all four role and viewport pairs)
readRememberedGroupOpen(storageKey) ?? firstViewbecame a global that is never set, so the remembered state is never read.8bef662fe5a3becameecf5357c77da. The marker was in 1 dist file.expected "false", received "true".8bef662fe5a3. The marker was in 0 dist files, the tree was clean, and the run was 12 passed.Typecheck, lint, checklist
All at head
c14f50548b:npx tsc -p tsconfig.e2e.json --noEmit(ui): exit 0.--listFilesnames all 3 new files.npx eslinton the 3 new files: exit 0.node scripts/check-platform-checklist.mjs: exit 0, "OK — 16 areas, 451 items (440 active, 5 planned)".dispatch-gates --commandsderived 44 commands. All 44 were run, every one exit 0. That includespnpm --dir ui exec vitest run scripts/under the verify lock: 172 files and 5161 tests passed.check:doc-formula-expressionsfirst exited 3 (PREREQUISITE NOT MET:@objectstack/formulanot built). It passed after building that package.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0. It merges cleanly with origin/main23e859ae39.dispatch-gates --ran: "44 derived famil(ies) accounted for — 44 run, 0 NOT-MEASURED (a DERIVED zero — all 44 recorded an exit code and none of them is 3)".Acceptance notes
main, so it is not covered here. That is why this isPart of, notFixes. The options are on the card.platform-core.jsonis a remainder. It is serial behind fix(plugin-auth): the dev admin seed stops storing the host's time zone and currency #39302, which was still open at the time of writing. Onorigin/maindc4a2cdbd6it carries the retired ids on 7 lines: 670 (group_overview), 812 (group_configuration), 2417, 2420, 2426, 2428 and 2504 (group_apps/group_integrations).test:e2e:live:nightlyinui/package.json, driven byexamples/app-showcase/test/console-live-specs.live.test.ts. They are not in the required:ciallowlist, so a pull request does not run them.service-automation's Connector Credentials contribution still namesgroup: 'group_integrations'.objectstack devwarnsnav_contribution_group_renamedfor it at boot. Reported to the seat to file.Verification
Read first:
ui/e2e/live/helpers/setup-nav-39060.ts, theROLEStable. Each entry list is a claim about a gate, and this is the one place a wrong expectation would hide.docs/qa/platform-checklist/areas/approvals.json,approvals.setup-nav-entry. It was rewritten, not only re-pointed.docs/qa/platform-checklist/areas/access-security.json, the newaccess-security.setup-nav-role-audience.Two-minute check:
bash ui/e2e/live/ci/start-backend.sh, thenpnpm --dir ui exec playwright test --config=playwright.live.config.ts setup-nav-39060. You should see12 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2