Skip to content

test(setup): wait for the window to be shown - #59

Merged
httpsphl merged 1 commit into
mainfrom
fix/setup-test-race
Sep 30, 2026
Merged

httpsphl merged 1 commit into
mainfrom
fix/setup-test-race

Conversation

@httpsphl

Copy link
Copy Markdown
Owner

What

setup.test.tsx > installs, then opens the app failed now and then with expected [ 'state' ] to include 'show': once on my machine and once in the App (Windows) check of #56 (run 36725378541), on code that does not touch the setup window.

The setup window calls host.show() in an effect, once the first page is drawn. The test looked for the call right after finding the page, and the effect can run after that. It now waits for the call.

Tests

  • src/setup/setup.test.tsx passes; only the test changed.

The setup window is shown in an effect, which can run after the test finds the first page. The check failed now and then, locally and in CI.
@httpsphl
httpsphl merged commit a6a1605 into main Sep 30, 2026
3 checks passed
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