diff --git a/src/Samples.UITest/BookLibrary.Test/Tests/GeneralTest.cs b/src/Samples.UITest/BookLibrary.Test/Tests/GeneralTest.cs index dd404333..74226de8 100644 --- a/src/Samples.UITest/BookLibrary.Test/Tests/GeneralTest.cs +++ b/src/Samples.UITest/BookLibrary.Test/Tests/GeneralTest.cs @@ -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; diff --git a/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs b/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs index afafe4ae..693ebcf4 100644 --- a/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs +++ b/src/Samples.UITest/Writer.Test/Tests/WriterTest.cs @@ -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; @@ -129,9 +129,9 @@ public void MultipleNewSaveRestartOpenRecentChangeAskToSave() => Run(() => var saveFileDialog = window.FirstModalWindow().As(); 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(); @@ -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));