Skip to content

Await the cancel click in the Blazor edit test - #69

Merged
jeff377 merged 1 commit into
mainfrom
claude/await-cancel-edit-click
Dec 1, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/await-cancel-edit-click

Conversation

@jeff377

@jeff377 jeff377 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

ComposingTests.Edit_CancelButton failed on main after #68 (run), while the same commit passed on its pull request.

The test clicked the banner's cancel button with bUnit's synchronous Click(), which starts the dispatch without waiting for it. When the renderer is still busy with the runner's last render, the dispatch is queued and the assertion runs first. The test now awaits ClickAsync, as it already does for the edit button two lines above. The assertions are unchanged.

No change to the packages.

The synchronous Click dispatches without waiting, so on a busy renderer the
assertion could run before the cancel handler. It failed once on main.
@jeff377
jeff377 enabled auto-merge (squash) December 1, 2026 16:32
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@jeff377
jeff377 merged commit 319a7cd into main Dec 1, 2026
4 checks passed
@jeff377
jeff377 deleted the claude/await-cancel-edit-click branch December 1, 2026 16:35
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