Skip to content

Commit

Permalink
UITest/BookLib: Try to improve stability of CreateReportTest (#54)
Browse files Browse the repository at this point in the history
* UITest/BookLib: try to improve CreateReportTest

* UITest/BookLib: try no. 2 to improve CreateReportTest
  • Loading branch information
jbe2277 authored Oct 31, 2024
1 parent 4a76943 commit a1b9407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Samples.UITest/BookLibrary.Test/Tests/ReportingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ void PrintAsPdf(string fileName)
var saveFileDialog = window.FirstModalWindow().As<SaveFileDialog>();
saveFileDialog.SetFileName(fileName);
saveFileDialog.SaveButton.Click();

// Wait until the button is enabled again -> indication that the PDF print is completed
Retry.WhileFalse(() => reportView.PrintButton.IsEnabled, throwOnTimeout: true);
}
});
}

0 comments on commit a1b9407

Please sign in to comment.