File tree 2 files changed +14
-5
lines changed
TestCases.Shared.Tests/Tests/Issues
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,12 @@ public DemoPage()
70
70
Text = "Click"
71
71
} ;
72
72
73
+ var label = new Label
74
+ {
75
+ AutomationId = "NavigatedPageLabel" ,
76
+ Text = "Navigated Page"
77
+ } ;
78
+
73
79
button . Clicked += ( sender , e ) =>
74
80
{
75
81
Navigation . PopAsync ( ) ;
@@ -79,7 +85,8 @@ public DemoPage()
79
85
{
80
86
Children =
81
87
{
82
- button
88
+ button ,
89
+ label
83
90
}
84
91
} ;
85
92
}
Original file line number Diff line number Diff line change 1
- #if ! MACCATALYST
2
- using NUnit . Framework ;
1
+ using NUnit . Framework ;
2
+ using NUnit . Framework . Legacy ;
3
3
using UITest . Appium ;
4
4
using UITest . Core ;
5
5
@@ -22,7 +22,9 @@ public void TableViewTextCellCommand()
22
22
App . Tap ( "NavigatedPageButton" ) ;
23
23
App . WaitForElement ( "MainPageButton" ) ;
24
24
App . Tap ( "MainPageButton" ) ;
25
+ App . WaitForElement ( "NavigatedPageLabel" ) ;
26
+ ClassicAssert . AreEqual ( "Navigated Page" , App . FindElement ( "NavigatedPageLabel" ) . GetText ( ) ) ;
27
+
25
28
}
26
29
}
27
- }
28
- #endif
30
+ }
You can’t perform that action at this time.
0 commit comments