Skip to content

test(e2e): check each home page task list in the scoped role test - #833

Merged
pikann merged 1 commit into
masterfrom
fix/e2e-home-scoped-task-lists
Nov 27, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/e2e-home-scoped-task-lists

Conversation

@pikann

@pikann pikann commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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.

  • Each task title is now looked up inside its own section.
  • The scoping check is stronger: no S2 task, assigned or not, may appear anywhere on the page, checked after both lists have loaded.
  • The scenario text in list-scoping.feature matches.

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 9a569169 plus 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

  • Other (e2e test fix)

Checklist

  • The change is focused and scoped.
  • Related documentation is updated.
  • New structure or direction is explained clearly.
  • I avoided unnecessary detail or premature abstraction.

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.ts resolves "My Tasks" and "Waiting tasks" through page.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 S2 and Unassigned in S2 are asserted absent page-wide after both lists have rendered.
  • Feature text — list-scoping.feature now 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.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit 50da27c into master Nov 27, 2026
2 checks passed
@pikann
pikann deleted the fix/e2e-home-scoped-task-lists branch November 27, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant