diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue23399.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue23399.cs index f5efef194efa..736bc02e9007 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue23399.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue23399.cs @@ -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"); } } }