Skip to content

e2e specs retry a whole interaction inside toPass or expect.poll #433

Closed

Description

@yansfil

Problem

docs/TESTING.md says a poll only observes: an action repeated inside toPass or expect.poll turns one intent into several and can satisfy the assertion with the wrong one.
The new lint rule hide-e2e/no-action-in-poll (PR from ci/test-lint) found 10 polls that do this on purpose, each a workaround for a readiness the product does not report.
Each carries eslint-disable-next-line hide-e2e/no-action-in-poll -- #<this issue> retried interaction: <why>.

The 10 sites (each needs a product readiness signal, then the retry goes away)

File Interaction retried Signal that would replace it
web/e2e/close-subtree.spec.ts (confirm sheet) click terminal, close chord, until the sheet summary has every state sheet reports its subtree state loaded
web/e2e/close-subtree.spec.ts (delete worktree) open checkout menu, choose Delete, unfolding Inactive first checkout row stops folding mid-step, or a ready attribute on the row
web/e2e/disk-cleanup.spec.ts open the sheet, cancel if disk-in-use is still shown (the core hears Herdr's status change late) the sheet reports the status it was read at
web/e2e/overview.spec.ts (leaveHoverCard) two mouse moves until the hover card is gone hover card reports its leave listener is armed
web/e2e/server-session-search.spec.ts x2 click the server button until the picker lists the server picker reports the scan finished
desktop/e2e/browser.spec.ts x2 native focus calls until the page holds focus host reports the page focus acknowledged
desktop/e2e/close-policy.spec.ts native focus calls until the page holds focus same
desktop/e2e/server-session-search.spec.ts click the server button until the picker lists two same as web

Done when

Each site waits for the signal once, the retry loop and its eslint-disable comment are gone, and the allow count in the lint PR reaches 0.

Activity

  1. yansfil commented on Oct 5, 2026

    @yansfil
    ContributorAuthor

    main 1ca784a 기준 #433 disable 0개입니다. 머지된 PR: #529 #531 #534. 남은 예외는 web/e2e/overview.spec.ts:189 하나입니다. Radix hoverable tooltip이 grace-area pointermove listener를 다음 render에서 거는데, 이를 알리는 DOM 상태가 없어서 고유 이유를 단 disable로 남겼습니다. 제품을 다시 구현하는 안(B)은 하지 않았습니다.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions