Skip to content

test(e2e): wait for the settled autocomplete status row - #179

Merged
audreyt merged 1 commit into
mainfrom
fix/e2e-autocomplete-status-race
Oct 16, 2026
Merged

audreyt merged 1 commit into
mainfrom
fix/e2e-autocomplete-status-race

Conversation

@audreyt

@audreyt audreyt commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes the E2E failure in CI run 38908437195 (dark-mode.spec.ts:786). searchbox.tsx swaps the 搜尋中…

  • for a separate 沒有符合結果
  • ; the test measured the first .is-status row and read the detached node (computed color \). It now waits for the settled row. Verified: --repeat-each=5 passes; vp check 0 errors.

  • searchbox.tsx renders "搜尋中…" and "沒有符合結果" as two different <li>
    elements. The dark-mode contrast test measured the first .is-status row,
    so on a slow runner it read the searching row after React had swapped it
    out: getComputedStyle on the detached node returned "" (CI run
    38908437195). Target the settled "沒有符合結果" row directly.
    @audreyt
    audreyt merged commit c9b7113 into main Oct 16, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    1 participant