Skip to content

Commit

Permalink
chore: Log more commandbar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 4, 2024
1 parent 00d5b31 commit f0b6abc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5231,7 +5231,11 @@ private async Task CloseCommandBar(CommandBar cmdBar)
var closedRegistration = CreateSafeEventRegistration<CommandBar, EventHandler<object>>("Closed");
closedRegistration.Attach(cmdBar, (s, e) => closedEvent.Set());

await RunOnUIThread(() => cmdBar.IsOpen = false);
await RunOnUIThread(() =>
{
Assert.IsTrue(cmdBar.IsOpen, "Command bar is not opened");
cmdBar.IsOpen = false;
});
await closedEvent.WaitForDefault();
await WindowHelper.WaitForIdle();
}
Expand Down

0 comments on commit f0b6abc

Please sign in to comment.