Skip to content

Commit

Permalink
UITest: try to fix test by opening the ContextMenu a second time
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Apr 30, 2024
1 parent 3cd26ae commit c27faab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Samples.UITest/Writer.Test/Tests/WriterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ public void MultipleNewSaveRestartOpenRecentChangeAskToSave()
var contextMenu = startView.RecentFileListItems[0].ShowContextMenu();
contextMenu.UnpinFileMenuItem.Invoke();
Assert.False(startView.RecentFileListItems[0].PinButton.IsToggled);

contextMenu = startView.RecentFileListItems[0].ShowContextMenu();
contextMenu.RemoveFileMenuItem.Invoke();
Assert.Equal([ fileName2 ], startView.RecentFileListItems.Select(x => x.ToolTip));

Expand Down

0 comments on commit c27faab

Please sign in to comment.