Skip to content

Commit

Permalink
add category on the test and remove catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-lkroneman committed Jul 8, 2024
1 parent 2f3432c commit a964d40
Showing 1 changed file with 9 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,17 @@ public class Issue23399(TestDevice device) : _IssuesUITest(device)
public override string Issue => "Closing Modal While App is Backgrounded Fails";

[Test]
[Category(UITestCategories.Navigation)]
public void MakingFragmentRelatedChangesWhileAppIsBackgroundedFails()
{
try
{
App.WaitForElement("OpenModal");
App.Tap("OpenModal");
App.WaitForElement("StartCloseModal");
App.Tap("StartCloseModal");
App.BackgroundApp();
App.WaitForNoElement("StartCloseModal");
App.ForegroundApp();
App.WaitForElement("OpenModal");
}
catch
{
SaveUIDiagnosticInfo();

// Just in case these tests leave the app in an unreliable state
App.ResetApp();
FixtureSetup();
throw;
}
App.WaitForElement("OpenModal");
App.Tap("OpenModal");
App.WaitForElement("StartCloseModal");
App.Tap("StartCloseModal");
App.BackgroundApp();
App.WaitForNoElement("StartCloseModal");
App.ForegroundApp();
App.WaitForElement("OpenModal");
}
}
}
Expand Down

0 comments on commit a964d40

Please sign in to comment.