Skip to content

test(e2e): de-flake tasks + marketplace journeys - #257

Merged
catomean merged 1 commit into
mainfrom
fix/flaky-e2e-journeys
Jul 28, 2026
Merged

test(e2e): de-flake tasks + marketplace journeys#257
catomean merged 1 commit into
mainfrom
fix/flaky-e2e-journeys

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

Fixes the two intermittent Local E2E Journeys failures (both localhost, unrelated to product changes — they reddened #254 and #256):

  • tasks-journey: getByText('E2E erledigt') matched 2 elements under strict mode — the completion note renders in two panes (list + detail). Added .first() (mirrors the empty-state handling already in the same test).
  • marketplace-checkout-journey: read-after-write race — the UI confirmed the answer, but a single API re-fetch sometimes still read status open. Replaced with expect.poll(...).toBe('answered').

Scoped to the two observed flakes; no product code touched.

🤖 Generated with Claude Code

Two intermittent failures in "Local E2E Journeys" (both against localhost, unrelated
to any product change):

- tasks-journey: `getByText('E2E erledigt')` matched 2 elements under strict mode —
  the completion note renders in two panes (list + detail), the same case the empty
  state already handled with `.first()`. Add `.first()` here too.
- marketplace-checkout-journey: read-after-write race — after the UI confirms the
  answer, a single API re-fetch sometimes read the question status still 'open'.
  Replace with `expect.poll(...).toBe('answered')` so it waits for the write to reflect.

No product code changed; scoped to the two observed flakes (other journeys use unique
or scoped locators and initial-state asserts, left as-is).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@catomean
catomean merged commit 2f49959 into main Jul 28, 2026
7 checks passed
@catomean
catomean deleted the fix/flaky-e2e-journeys branch July 28, 2026 13:18
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