Skip to content

e2e list-no-actions-column-35554: the side-record cases fail when the drawer is the worker's first mount (getByText matches the side record's h1 too) #36119

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Found by the #36024 card thread (phone list toolbar) on a local e2e list-* run of head 74cf9d88: 49 of 51 pass; the two failures are in ui/e2e/list-no-actions-column-35554.spec.ts, the "side record" cases from #35678, which #36024 does not touch.

What happens

When the record drawer is the first thing a Playwright worker mounts, the spec's first-mount wait getByText('商机 1') matches two elements, the list cell and the side record's h1, and strict mode throws. When an earlier test in the same worker has already mounted the drawer, the wait resolves before the side record renders and the case passes, so the failure depends on test order.

To do

Scope the wait to the list (the grid cell's role or a data-* hook) or to the side record's heading, whichever the case means to wait for, so it matches exactly one element regardless of order. Run the spec alone and inside the full list-* set, both green.

Acceptance

  • ui/e2e/list-no-actions-column-35554.spec.ts passes run alone (--workers=1, first in its worker) and as part of the list-* set.

Activity

  1. added
    bug
    pm:queue
    domain:ui
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (e2e) · pm:queue; rationale: area:ux · Bug · list-no-actions-column-35554.spec.ts side-record cases fail when the drawer is the worker's first mount, because the first-mount getByText matches the list cell and the side record's heading (strict mode); order-dependent, seen on a local run (49/51) → p3 as filed (test-only; it becomes p2 if it reds CI) · size XS.

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg

    Claim: PM loop · area f7-view
    Session: session_01QsR2jREBdDtYvSLn38xUCg
    Account: zhuangjianguo
    Branch: claude/issue-36119-e2e-side-record-wait
    Worktree: objectstack-issue-36119
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-view
    File surface: ui/e2e/list-no-actions-column-35554.spec.ts only (test-only; no changeset, skip-changeset) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: medium (XS test scope fix)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack ui/e2e/list-no-actions-column-35554.spec.ts (first-mount getByText matches the list cell and the side record's h1) | none | CI and local e2e runs: the side-record cases fail by test order
    Thread-read: 7065129035
    Premise: holds by the #36024 thread's local run (49/51 on 74cf9d88); the dev re-measures alone and in the list-* set on origin/main first.
    Pre-claim lane: repo:objectstack seat 7 area f7-view (p3 rider named in the area brief; no same-file p2 in area, so its own test-only PR while #36289 waits).
    Pre-claim deps: none.
    Prior rulings read: list-no-actions-column → 0 hits; none; thread: none (triage only, 7065129035); repo: objectstack-ai/objectstack
    Fold-or-serial: not folded (no other card on this spec).
    Serial constraints cleared: none (only #35129 release PR names its changeset) — overlap-check before push

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg
    os-dev-report

    {
      "issue": 36119,
      "status": "done",
      "branch": "claude/issue-36119-e2e-side-record-wait",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36436",
      "session": "session_01QsR2jREBdDtYvSLn38xUCg",
      "premise_still_valid": true,
      "summary": "Both mount waits in ui/e2e/list-no-actions-column-35554.spec.ts used getByText('商机 1'), which on the drawer face matches the list row cell AND the side record h1 (probe after mount: 2 matches; tr-scoped 1; heading 1). A new mounted(page, c) helper waits for the list row cell (page.locator('tr').getByText) on list/drawer faces and the heading by role on the tab face (no list there; tr-scoped = 0). No source edit, no data-* hook. Red NOT reproduced locally: the side-record cases alone, first in worker, on base 4e55e4eb passed 7/7 (light x3, dark x2, 375px x2); the race goes the other way on this box, so the two-element match is evidenced by the probe, not by a red run.",
      "tests": "chromium, --trace off, scratch config without webServer (spec self-bundles via vite; built @objectstack/spec,formula,client,sdui-parser,lint first under os-verify-lock). Before fix (base 4e55e4eb): side-record cases alone --workers=1: 7 runs, 7 passed (red not reproduced). Probe copy of pre-fix spec (deleted after): 'PROBE drawer light 2 1 1', 'PROBE tab 0 1'. After fix (head 395ea5d0; merge head f58ee314 carries identical spec bytes): 'light: the side record' alone --workers=1: 1 passed; '375px, the side record' alone: 1 passed; 'a record page' alone: 2 passed; whole spec --workers=1: 24 passed; list-.*.spec.ts set (8 files) --workers=2: 57 passed. Lock VERDICT command-exit 0. No ablation: test-only, the change is the test locator itself.",
      "gates": "local: dispatch-gates --commands (tree f58ee3140, not stale after merging origin/main) derived 20; all 20 run, each exit 0 captured before any pipe (check-closing-keyword-parity + --self-test, check-comment-mask-corpus, adr-anchors, cross-package-test-inputs, driver-memory-census, engine-double-contract, gitlink-declared, nul-bytes, published-files, query-options-erasure, refd-timer-probe, registry-log-declared, rest-log-spy-declared, tier-file-adoption, type-check-coverage, type-check-debt, undeclared-dep-imports, watch-hint-literal, where-matcher); --ran reconciliation: 20 derived, 20 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0. CI on f58ee314 at report time: 25 success, 18 skipped, 4 in_progress (Lint & Repo Gates, Lint UI, Test UI (1/16), Build & E2E UI). NOT MEASURED: type-check:e2e (tsconfig.e2e.json) locally, reason: CI Type Check lanes own it.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay writes — pr_create (POST pulls + assignee + label skip-changeset, run 45017770507) and this os-dev-report comment via post-stamped; plus git push x3 (empty branch, fix commit, merge of origin/main)",
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": [],
      "line_budget": "+12 / -2 in 1 file (under ~30)",
      "files_changed": ["ui/e2e/list-no-actions-column-35554.spec.ts"],
      "deviations": "1) first commit attempt carried a model-named Co-Authored-By trailer; the pre-push hook refused it, amended to the model-free pair before any push. 2) red reading not reproduced (7/7 green alone on base); evidence of the double match is the post-mount count probe. 3) merged origin/main into the branch because dispatch-gates flagged the tree stale. L2: none owed by this test-only diff beyond the seat's standard review."
    }
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg

    L1 (area self-review) ACCEPT on PR #36436 at f58ee314: 7078735522. Landed (ready + auto-merge).

  7. added a commit that references this issue on Nov 22, 2026
    d8628ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions