Skip to content

Commit

Permalink
UITest/BookLib: wait 500ms so that report generation can finish
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Nov 2, 2024
1 parent 5b1de4b commit 33c6445
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Samples.UITest/BookLibrary.Test/Tests/ReportingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ public void CreateReportTest() => Run(() =>

Assert.False(reportView.PrintButton.IsEnabled); // No report available

reportView.CreateBookListReportButton.Invoke();
reportView.CreateBookListReportButton.Click();
Thread.Sleep(500);
Assert.True(reportView.PrintButton.IsEnabled);
Capture.Screen().ToFile(GetScreenshotFile("BookListReport"));
PrintAsPdf(GetScreenshotFile("BookListReport.pdf"));

reportView.CreateBorrowedBooksReportButton.Invoke();
reportView.CreateBorrowedBooksReportButton.Click();
Thread.Sleep(500);
Capture.Screen().ToFile(GetScreenshotFile("BorrowedBooksReport"));
PrintAsPdf(GetScreenshotFile("BorrowedBooksReport.pdf"));

Expand Down

0 comments on commit 33c6445

Please sign in to comment.