Skip to content

audit F23 [tech-debt]: longPress post-touchend waitForTimeout(300) with no condition #590

@intendednull

Description

@intendednull

File: e2e/helpers/touch.ts:68
Severity: tech-debt
Obvious? no

After dispatching touchend, real-time longPress sleeps 300ms for "settle" with no observable condition. Pair test (longPressWithClock at line 137) uses page.clock.runFor(300) — proves a clock-driven path exists.

Fix: migrate the real-time variant to wait on the post-press outcome (e.g. .mobile-action-sheet visibility) rather than a fixed timer; otherwise this guarantees a 300ms tax per call and risks flake on slow runners.


Filed by /general-audit @ 6404719 (2026-05-03). master: #567.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions