Skip to content

Commit

Permalink
Remove .png extensions - not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed May 26, 2024
1 parent 340ebfe commit 77068f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Samples.UITest/BookLibrary.Test/Tests/GeneralTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void AboutTest() => Run(() =>
Assert.Equal("Waf Book Library", messageBox.Title);
Log.WriteLine(messageBox.Message);
Assert.StartsWith("Waf Book Library ", messageBox.Message);
Capture.Screen().ToFile(GetScreenshotFile("About.png"));
Capture.Screen().ToFile(GetScreenshotFile("About"));
messageBox.Buttons[0].Click();

var dataMenu = window.DataMenu;
Expand Down
8 changes: 4 additions & 4 deletions src/Samples.UITest/Writer.Test/Tests/WriterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void AboutTest() => Run(() =>
Assert.Equal("Waf Writer", messageBox.Title);
Log.WriteLine(messageBox.Message);
Assert.StartsWith("Waf Writer ", messageBox.Message);
Capture.Screen().ToFile(GetScreenshotFile("About.png"));
Capture.Screen().ToFile(GetScreenshotFile("About"));
messageBox.Buttons[0].Click();

var fileRibbonMenu = window.FileRibbonMenu;
Expand Down Expand Up @@ -129,9 +129,9 @@ public void MultipleNewSaveRestartOpenRecentChangeAskToSave() => Run(() =>
var saveFileDialog = window.FirstModalWindow().As<SaveFileDialog>();
var fileName = GetTempFileName("rtf");
saveFileDialog.SetFileName(fileName);
Capture.Screen().ToFile(GetScreenshotFile("FullSaveScreen.png"));
Capture.Screen().ToFile(GetScreenshotFile("FullSaveScreen"));
saveFileDialog.SaveButton.Click();
Capture.Screen().ToFile(GetScreenshotFile("AfterSaveFile.png"));
Capture.Screen().ToFile(GetScreenshotFile("AfterSaveFile"));

// Exit app, save the document, define custom filename and save
fileRibbonMenu.MenuButton.Click();
Expand All @@ -150,7 +150,7 @@ public void MultipleNewSaveRestartOpenRecentChangeAskToSave() => Run(() =>
Launch(resetSettings: false);
window = GetShellWindow();
startView = window.StartView;
Capture.Screen().ToFile(GetScreenshotFile("RestartScreen.png"));
Capture.Screen().ToFile(GetScreenshotFile("RestartScreen"));
Assert.Equal([fileName2, fileName], startView.RecentFileListItems.Select(x => x.ToolTip));
startView.RecentFileListItems[1].PinButton.Click();
Assert.Equal([fileName, fileName2], startView.RecentFileListItems.Select(x => x.ToolTip));
Expand Down

0 comments on commit 77068f7

Please sign in to comment.