From 495347bc4e4891970532d0f2704e604801382788 Mon Sep 17 00:00:00 2001 From: Vignesh-SF3580 Date: Wed, 9 Oct 2024 18:05:15 +0530 Subject: [PATCH] updated testcases. --- src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs | 2 +- .../tests/TestCases.Shared.Tests/Tests/Issues/Issue21112.cs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs b/src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs index 366ea7748952e..f8e5c2147b821 100644 --- a/src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs @@ -73,7 +73,7 @@ public DemoPage() var label = new Label { AutomationId = "NavigatedPageLabel", - Text = "Navigated Page" + Text = "Main Page" }; button.Clicked += (sender, e) => diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21112.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21112.cs index f8287a12ea6de..3559f7e91ed09 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21112.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21112.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using NUnit.Framework.Legacy; using UITest.Appium; using UITest.Core; @@ -22,9 +21,8 @@ public void TableViewTextCellCommand() App.Tap("NavigatedPageButton"); App.WaitForElement("MainPageButton"); App.Tap("MainPageButton"); - App.WaitForElement("NavigatedPageLabel"); - ClassicAssert.AreEqual("Navigated Page", App.FindElement("NavigatedPageLabel").GetText()); - + var label = App.WaitForElement("NavigatedPageLabel"); + Assert.That(label.GetText(), Is.EqualTo("Main Page")); } } } \ No newline at end of file