fixes the tests

This commit is contained in:
Paul Schneider 2026-09-11 18:37:14 +01:00
commit 4b2e2a1c08
5 changed files with 45 additions and 26 deletions

View file

@ -64,9 +64,7 @@ public class MainPageSaveTests
const string typed = "Mon premier billet";
titleBox.Text = typed;
var saveButton = window.GetVisualDescendants()
.OfType<Button>()
.Single(b => b.Content as string == "Save");
var saveButton = page.SaveButton;
saveButton.Command!.Execute(null);
// The Save command is async (RelayCommand over Task) but