Repository navigation
test(showcase): the smoke's global setup declines the console's workspace prompt before any spec runs - #29889
Merged
objectstack-fleet[bot] merged 2 commits intoNov 3, 2026
Conversation
…pace prompt before any spec runs The console's one-time workspace prompt gained a currency arm (2ac698b): an administrator on a workspace whose localization.currency has no value is asked in a modal on the first app page. The showcase's dev seed leaves the currency unset on a host whose locale names no country, so every smoke spec met that modal; the page behind it is aria-hidden, and the three specs that read the page through role queries or click it went red in the nightly live tier. global-setup now answers the prompt once through its own decline button, as ui/e2e/live/global-setup.ts does, and saves the storageState that carries the prompt's per-device record. Declining writes nothing to the workspace. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
…ke's storageState Saving the whole context after the decline also stored the console's sidebar wide-open flag, recent items and active organization, which would change the fresh-context layout detail-shapes derives its 780 px window from. Keep the sign-in state as it was and add the prompt's per-device record alone; a decline that leaves no record throws. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
Contributor
Author
|
domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd 席位核对 — ACCEPT ·
|
objectstack-fleet
Bot
deleted the
claude/issue-29811-nightly-showcase-smoke
branch
November 3, 2026 10:13
This was referenced Nov 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.
Requested by 田騏 · project thread
Fixes #29811
Clause-②: no
Metadata-protocol: none
维护者速读
e2e/global-setup.ts在所有用例开跑前,用控制台工作区提示框自己的「Not now」按钮把它关掉一次,只把提示框「已问过」的本机记录带进各用例共用的 storageState;没有改任何用例、断言、超时或产品代码。2ac698baf1)让控制台在组织未设默认货币时弹出一个模态框询问管理员。showcase 的开发种子在主机未设区域/区域无国家时不写货币,于是夜间每个用例都撞上这个模态框:背后页面被标成aria-hidden,按角色查找的三个用例(批量操作勾选框、Money 分组按钮、相关列表表格)找不到元素,夜间 live 层因此变红。examples/app-showcase/e2e/global-setup.ts(declineWorkspacePrompt及其返回的记录过滤)。cd examples/app-showcase && CI=1 SMOKE_API_URL=http://localhost:39111 npx playwright test e2e/bulk-capability-gate.spec.ts e2e/detail-shapes.spec.ts,预期 4 passed。What changes
examples/app-showcase/e2e/global-setup.tsnow answers the console's one-time workspace prompt once, before any spec runs:GET /api/settings/localizationwith the signed-in admin's token and decides whether the console would ask, by the console's own condition per key (a timezone still the default and unlocked, or a currency resolving from the default with no value and unlocked). Nothing to ask ⇒ nothing is opened.OS_TEST_CHROMIUM_EXECUTABLE_PATHholds), waits forworkspace-timezone-prompt, and pressesworkspace-timezone-prompt-decline("Not now" / "Keep the default"). Declining writes nothing to the workspace.os:workspace-timezone-prompt:ORG:USER) from that context's localStorage and adds it to the storageState it already wrote. The rest of what the console stored while open (the sidebar's wide-open flag, recent items, the active organization) is left out, so every spec still starts from the fresh-context layout it measures from; detail-shapes derives its 780 px window from a context with no stored sidebar state.ui/e2e/live/global-setup.ts, which already answers the same prompt for the console's own live suite.No spec, assertion, timeout or product file changes.
Root cause, per failing test
All three reds have one cause:
2ac698baf1(#28953, card #28872, "the workspace prompt also asks an administrator for a still-unset default currency"), which landed between the last green nightly (494c7435f8, run 41394734666) and the red one (339f63da30, run 41584589032).git merge-base --is-ancestor 2ac698baf1: not an ancestor of494c7435f8(exit 1; control leg on the same shallow checkout:65a8d4ffb1=494c7435f8~3, deeper than the tested commit, exit 0), an ancestor of339f63da30(exit 0). The same commit taughtui/e2e/live/global-setup.tsto answer the prompt; the showcase smoke's global setup was not taught.The page snapshot of each failure (local reproduction at
4b71a82b76) showsdialog: heading "Set the default currency"with the console behind itaria-hidden:bulk-capability-gate.spec.ts:38:getByRole('checkbox').first()resolves, then the click waits behind the modal overlay until the 45 s test timeout.detail-shapes.spec.ts:95:getByRole('button', { name: 'Money' })excludes thearia-hiddensubtree, so "Money header icon svg" is not found. The icon itself renders.detail-shapes.spec.ts:161:getByRole('table')inside the details column is excluded for the same reason, soINV-1002is not found.The product change is intended, so the specs stay as they are and the harness answers the prompt the way a person would.
Tests
4b71a82b76: the two spec files,--retries=0, gave 3 failed and 1 passed, with the same three tests and the same errors as the nightly.--retries=0,CI=1, a free port each run): 4 passed, 4 passed, 4 passed. After each run the storageState held exactlyauth-session-tokenand the prompt record.pnpm --filter @objectstack/example-showcase typecheck: exit 0 (its tsconfig includese2e/**/*).--no-inline-configon the changed file: exit 0.Acceptance notes
showcase-smoke.spec.tsstayed green on the red night with the same modal over every surface they opened. A "renders cleanly" check that a modal over the whole page does not disturb is weaker than its name. Noted here only; no card.@objectstack/example-showcaseis private and the diff is an e2e fixture. Labelledskip-changeset.Verification
Derived gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 32 commands for the 1 changed path. Each one was run with its exit code captured before any pipe: 31 exit 0, andpnpm check:dual-build-cjs-loadsexit 3 (PREREQUISITE NOT MET: some packages had nodist/in this worktree, so nothing was measured; CI's Lint & Repo Gates runs it).--ranreconciliation: 32 derived families accounted for, 31 run, 1 NOT-MEASURED, 0 UNRUN.Full showcase live test
OS_TEST_TIERS=nightly pnpm --filter @objectstack/example-showcase testunder the verify lock, twice on head835ac408b2(main4b71a82b76), Console and the showcase's dependency closure built at that tree:test/showcase-smoke.live.test.ts(this card's file): passed both times, Playwright54 passed.test/console-live-specs.live.test.ts: failed both times on ONE spec ofui/e2e/live/,record-history-display.spec.ts:56("the timeline stream's Changes chip shows display values"). The Owner and Customer Since change lines render as field names with no values, soLive E2E showcase_manageris not found. That file passed on the red nightly at339f63da30, and it boots its own backend and its own global setup (ui/e2e/live/global-setup.ts), which this diff does not touch. So the package command exited 1 (lock VERDICTcommand-exit 1, twice). The cause is not attributed here; it is reported to the seat as a finding outside this card.🤖 Generated with Claude Code