Skip to content

GUI provider deep-link test can dispatch hashchange twice #6009

Closed

Description

@Ingwannu

Summary

gui/tests/providers-deep-link.test.tsx is flaky because its hash() helper both assigns location.hash and manually dispatches hashchange for every navigation. Happy DOM can also emit the native event for a changed hash, so the Accounts callback sometimes runs twice for one navigation.

Evidence

Expected fix

Make the helper mirror browser/navigation behavior:

  • changed hash: assign the hash and rely on its normal event;
  • unchanged hash: dispatch one explicit event, matching openProviderAccounts re-application semantics.

Keep the existing assertions for Back/Forward and repeating an unchanged Accounts link. Run the focused file repeatedly under an isolated DOM.

Activity

  1. added
    bug
    gui
    priority: P2
    on Sep 26, 2026
  2. lidge-jun commented on Sep 27, 2026

    @lidge-jun
    Owner

    Fixed on dev by #6010, carried in #6070 (merge 29cef45a86).

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

    bugguipriority: P2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions