Skip to content

test: Details-clamp E2E 'advert links in Details stay visible and clickable' is time-dependent and flaky #244

Description

@dborup

Problem

The Playwright step "advert links in Details stay visible and clickable" (Kpa-clawbot#1122, Details clamp) fails intermittently at 1200 and 900 px:

advert link in Details is not hit-testable: {"found":true,"hitIsLink":false,"text":"R5-D4 300D Rak"}

This test failed before for the same reason (fixture age, Details-column wrap). PR #67 (the Details row clamp) fixed that case.

Proposed approach

  • Make the test deterministic. Pin the row it inspects, e.g. a seeded advert with a known name, instead of the first match in a time-dependent window. Freeze or seed the window, so the fixture age does not change the layout.
  • Before changing the test, check whether a real overlap exists for long advert names at 900–1200 px. Log the element that is actually hit (elementFromPoint) in the failure message. If it is a real layout bug, fix the CSS instead.

Acceptance

  • The failure message names the element that was hit.
  • The test passes 20/20 in CI-like runs at different fixture ages, e.g. freshened 0 and 2 hours earlier.
  • If a real overlap is found, it is fixed with a test.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions