Skip to content

test(e2e): pagination spec 2 (infinite scroll) flakes on firefox/webkit #277

Description

@ErickXavier

Symptom

e2e/tests/pagination.spec.ts test 2 (infinite scroll) intermittently fails on firefox and webkit: asserts initialCount === 2 but the scroll sentinel occasionally triggers early, pre-loading additional pages → count is 6.

Observed during NOJS-268 validation: 3 failures out of 240 runs at --repeat-each=10 (2 firefox, 1 webkit). Pre-existing — NOT the test fixed by NOJS-267 (test 4, which is now 30/30 solid).

Suggested fix

Same recipe as NOJS-267: make the initial-state assertion tolerant of the sentinel firing (assert on first-page content presence/order rather than exact pre-scroll count), or gate the fixture so the sentinel is out of viewport until after the initial assertion.

Acceptance

  • --repeat-each=10 ×3 browsers → 0 failures on pagination.spec.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions