Skip to content

Commit

Permalink
updated testcases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh-SF3580 authored and PureWeen committed Oct 25, 2024
1 parent 98098ea commit fa61fae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public DemoPage()
var label = new Label
{
AutomationId = "NavigatedPageLabel",
Text = "Navigated Page"
Text = "Main Page"
};

button.Clicked += (sender, e) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using NUnit.Framework;
using NUnit.Framework.Legacy;
using UITest.Appium;
using UITest.Core;

Expand All @@ -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"));
}
}
}

0 comments on commit fa61fae

Please sign in to comment.