fixes the tests
Some checks failed
Dotnet build and test / build (pull_request) Failing after 8m6s

This commit is contained in:
Paul Schneider 2026-09-11 18:37:14 +01:00
commit ddff760c41
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
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