Skip to content

Commit c523220

Browse files
testcases updated.
1 parent 8dee0fc commit c523220

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/Controls/tests/TestCases.HostApp/Issues/Issue21112.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ public DemoPage()
7070
Text = "Click"
7171
};
7272

73+
var label = new Label
74+
{
75+
AutomationId = "NavigatedPageLabel",
76+
Text = "Navigated Page"
77+
};
78+
7379
button.Clicked += (sender, e) =>
7480
{
7581
Navigation.PopAsync();
@@ -79,7 +85,8 @@ public DemoPage()
7985
{
8086
Children =
8187
{
82-
button
88+
button,
89+
label
8390
}
8491
};
8592
}

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21112.cs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#if !MACCATALYST
2-
using NUnit.Framework;
1+
using NUnit.Framework;
2+
using NUnit.Framework.Legacy;
33
using UITest.Appium;
44
using UITest.Core;
55

@@ -22,7 +22,9 @@ public void TableViewTextCellCommand()
2222
App.Tap("NavigatedPageButton");
2323
App.WaitForElement("MainPageButton");
2424
App.Tap("MainPageButton");
25+
App.WaitForElement("NavigatedPageLabel");
26+
ClassicAssert.AreEqual("Navigated Page", App.FindElement("NavigatedPageLabel").GetText());
27+
2528
}
2629
}
27-
}
28-
#endif
30+
}

0 commit comments

Comments
 (0)