File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
TestCases.Shared.Tests/Tests/Issues Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public Issue14497Page()
2929 AutomationId = "ChangeSearchText"
3030 } ;
3131
32- button . Clicked += Button_Clicked ;
32+ button . Clicked += ( s , e ) => _searchHandler . SetQuery ( "Hello World" ) ;
3333
3434 VerticalStackLayout stackLayout = new VerticalStackLayout
3535 {
@@ -39,11 +39,6 @@ public Issue14497Page()
3939 Content = stackLayout ;
4040 Shell . SetSearchHandler ( this , _searchHandler ) ;
4141 }
42-
43- private void Button_Clicked ( object sender , EventArgs e )
44- {
45- _searchHandler . SetQuery ( "Hello World" ) ;
46- }
4742}
4843
4944public class Issue14497CustomSearchHandler : SearchHandler
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ public class Issue14497 : _IssuesUITest
99 public Issue14497 ( TestDevice device ) : base ( device ) { }
1010
1111 public override string Issue => "Dynamically setting SearchHandler Query property does not update text in the search box" ;
12+ const string ChangeSearchText = "ChangeSearchText" ;
1213
1314 [ Test ]
1415 [ Category ( UITestCategories . Shell ) ]
1516 [ Category ( UITestCategories . SearchBar ) ]
1617 public void DynamicallyQueryNotUpdating ( )
1718 {
18- const string ChangeSearchText = "ChangeSearchText" ;
1919 App . WaitForElement ( ChangeSearchText ) ;
2020 App . Tap ( ChangeSearchText ) ;
2121 VerifyScreenshot ( ) ;
You can’t perform that action at this time.
0 commit comments