Skip to content

Commit

Permalink
Add ignore in platform and remove catch in favor of rebasing main
Browse files Browse the repository at this point in the history
  • Loading branch information
tj-devel709 committed Apr 26, 2024
1 parent ac7c480 commit c353562
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/Controls/tests/UITests/Tests/Issues/Issue21726.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,14 @@ public Issue21726(TestDevice device) : base(device)
[Test]
public void PushViewControllerWithNullWindow()
{
try
{
App.WaitForElement("AddVC");
App.Click("AddVC");
App.WaitForElement("TextField1").Click();
App.WaitForElement("Button1").Click();
var mainPageElement = App.WaitForElement("AddVC");
Assert.NotNull(mainPageElement);
}
catch
{
// Just in case these tests leave the app in an unreliable state
App.ResetApp();
FixtureSetup();
throw;
}
this.IgnoreIfPlatforms([TestDevice.Android, TestDevice.Mac, TestDevice.Windows]);

App.WaitForElement("AddVC");
App.Click("AddVC");
App.WaitForElement("TextField1").Click();
App.WaitForElement("Button1").Click();
var mainPageElement = App.WaitForElement("AddVC");
Assert.NotNull(mainPageElement);
}
}
}

0 comments on commit c353562

Please sign in to comment.