Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensures single click event invocation
Adds a wait to ensure that the click event is only invoked a single time after a click.
  • Loading branch information
Keboo committed Sep 26, 2025
commit 5a53e171ecf78d44f7e718461aed67cdfbc03d2e
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ public async Task SplitButton_WithButtonInPopup_CanBeInvoked()
await Task.Delay(50, TestContext.Current!.CancellationToken);

// Assert
var invocations = await clickEvent.GetInvocations();
await Assert.That(invocations).HasSingleItem();

await Wait.For(async () =>
{
var invocations = await clickEvent.GetInvocations();
await Assert.That(invocations).HasSingleItem();
});
recorder.Success();
}

Expand Down
Loading