Skip to content

flaky: #180 packets URL E2E 'reload shows the same list' depends on fixture age (default 15-min window) #271

Description

@dborup

Problem

The step "desktop (1400): Clear Filters on #/packets/?… closes the detail, writes #/packets, and a reload shows the same list" in test-issue-180-packets-url-modal-e2e.js fails intermittently in CI:

Neither change touched the packets page.

Likely cause (not verified)

The step compares the row count after Clear Filters with the row count after a reload. Both use the default time window of 15 minutes. The CI fixture is freshened once and then ages while the E2E job runs. When the step runs, the newest fixture packets sit near the edge of the window, so a packet can drop out between the two renders. That makes it the same class of problem as #244, which #252 fixed for the Details test by pinning timeWindow.

Proposed fix

  • Confirm the cause by reproducing it locally with an aged fixture (for example 12–15 min).
  • Then make the comparison independent of the clock:
  • Keep what the step is meant to prove: Clear Filters writes #/packets, closes the detail, and a reload shows the same list.

Acceptance

  • The cause is shown with an aged fixture (red before the fix).
  • The step passes 20/20 at fixture ages of 0, 13 and 120 min.
  • A mutant where Clear Filters keeps ?timeWindow= or the detail still fails the test.

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

    bugSomething isn't workingtype:bugSomething broken

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions