Repository navigation
test(e2e): check each home page task list in the scoped role test - #833
Conversation
The home page now has a "Waiting tasks" list next to "My Tasks", so an assigned open task appears twice and getByText() failed Playwright's strict mode. Look up each title inside its own section, and check that no S2 task shows anywhere on the page once both lists have loaded.
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound — the failure was a strict-mode violation from an assigned open task rendering in both home lists, and scoping each lookup to its section fixes the cause instead of loosening the assertion.
Reviewed changes — full two-file diff at 09d8dbe against master:
- Section-scoped lookups —
list-scoping.spec.tsresolves "My Tasks" and "Waiting tasks" throughpage.locator("section").filter({ has: getByRole("heading", …) })and asserts each title inside its own list, including the unassigned S1 task appearing only under "Waiting tasks". - Stronger scoping check —
Mine in S2andUnassigned in S2are asserted absent page-wide after both lists have rendered. - Feature text —
list-scoping.featurenow describes the two lists and the page-wide absence check.
I verified the locators against the app: each home widget is a <section> with an <h2> of exactly "My Tasks" / "Waiting tasks" (home/index.tsx, shared.json), the title renders once per row, and Waiting tasks is the scoped open-task list ordered by updated_at with a 10-item limit — the member can read exactly the three S1 tasks, so there is no pagination race.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Fixes the test that failed e2e run 45945408851 on Chromium, WebKit, mobile Chrome and mobile Safari: "The home page shows the scoped open-task count and assigned tasks" in
list-scoping.spec.ts.The test was out of date, not the app. The home page has a "Waiting tasks" list next to "My Tasks", so an assigned open task appears in both, and
getByText("Mine in S1 A")matched two elements. Firefox most likely passed because it checked before the second list had loaded.list-scoping.featurematches.No application code changes.
Testing
The three "workspace home" scoping tests ran three times each on Chromium, WebKit and mobile Chrome with retries off: 27/27 passed. This used a web image built from
9a569169plus this change, against an older local e2e backend. Firefox and mobile Safari were not run locally.The same CI run also had flaky tests that passed on retry; this PR does not touch them.
Type of Change
Checklist