This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -152,16 +152,16 @@ public ICommand OtherCommand
152
152
[ Category ( UITestCategories . UwpIgnore ) ]
153
153
public void Bugzilla31330Test ( )
154
154
{
155
- RunningApp . WaitForElement ( c => c . Marked ( "Something 2" ) ) ;
155
+ RunningApp . WaitForElement ( c => c . Marked ( "Something 2" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
156
156
RunningApp . ActivateContextMenu ( "Something 1" ) ;
157
157
RunningApp . WaitForElement ( c => c . Marked ( "Delete" ) ) ;
158
158
RunningApp . Tap ( c => c . Marked ( "Delete" ) ) ;
159
159
RunningApp . DismissContextMenu ( ) ;
160
160
RunningApp . Tap ( c => c . Marked ( "Something 2" ) ) ;
161
161
RunningApp . ActivateContextMenu ( "Something 2" ) ;
162
- RunningApp . WaitForElement ( c => c . Marked ( "Delete" ) ) ;
162
+ RunningApp . WaitForElement ( c => c . Marked ( "Delete" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
163
163
RunningApp . Tap ( c => c . Marked ( "Delete" ) ) ;
164
- RunningApp . WaitForNoElement ( c => c . Marked ( "Something 2" ) ) ;
164
+ RunningApp . WaitForNoElement ( c => c . Marked ( "Something 2" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
165
165
}
166
166
#endif
167
167
}
Original file line number Diff line number Diff line change @@ -78,15 +78,15 @@ public void PagesAreCollected()
78
78
{
79
79
RunningApp . WaitForElement ( q => q . Marked ( "Open" ) ) ;
80
80
RunningApp . Tap ( q => q . Marked ( "Open" ) ) ;
81
- RunningApp . WaitForElement ( q => q . Marked ( "Testing..." ) ) ;
81
+ RunningApp . WaitForElement ( q => q . Marked ( "Testing..." ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
82
82
RunningApp . Back ( ) ;
83
- RunningApp . WaitForElement ( q => q . Marked ( "Open" ) ) ;
83
+ RunningApp . WaitForElement ( q => q . Marked ( "Open" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
84
84
RunningApp . Tap ( q => q . Marked ( "Open" ) ) ;
85
- RunningApp . WaitForElement ( q => q . Marked ( "Testing..." ) ) ;
85
+ RunningApp . WaitForElement ( q => q . Marked ( "Testing..." ) , timeout : TimeSpan . FromSeconds ( 1 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
86
86
RunningApp . Back ( ) ;
87
- RunningApp . WaitForElement ( q => q . Marked ( "Open" ) ) ;
87
+ RunningApp . WaitForElement ( q => q . Marked ( "Open" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
88
88
RunningApp . Tap ( q => q . Marked ( "Open" ) ) ;
89
- RunningApp . WaitForElement ( q => q . Marked ( "Success" ) ) ;
89
+ RunningApp . WaitForElement ( q => q . Marked ( "Success" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
90
90
}
91
91
#endif
92
92
}
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ public void Issue51503Test()
68
68
{
69
69
for ( int i = 0 ; i < 3 ; i ++ )
70
70
{
71
- RunningApp . WaitForElement ( q => q . Marked ( "Button" ) ) ;
71
+ RunningApp . WaitForElement ( q => q . Marked ( "Button" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
72
72
73
73
RunningApp . Tap ( q => q . Marked ( "Button" ) ) ;
74
74
75
- RunningApp . WaitForElement ( q => q . Marked ( "VisualElement" ) ) ;
75
+ RunningApp . WaitForElement ( q => q . Marked ( "VisualElement" ) , timeout : TimeSpan . FromSeconds ( 2 ) , postTimeout : TimeSpan . FromSeconds ( 1 ) ) ;
76
76
77
77
RunningApp . Back ( ) ;
78
78
}
Original file line number Diff line number Diff line change @@ -146,15 +146,17 @@ class Issue4187Model
146
146
#if UITEST && __ANDROID__
147
147
148
148
UITest . Queries . AppResult [ ] GetPickerEditText ( UITest . IApp RunningApp ) =>
149
- RunningApp . Query ( q => q . TextField ( ) ) . Where ( x => x . Class . Contains ( "PickerEditText" ) ) . ToArray ( ) ;
149
+ RunningApp . Query ( q => q . TextField ( ) ) . Where ( x => x . Class . Contains ( "PickerEditText" ) || x . Class . Contains ( "PickerAppCompatEditText" ) ) . ToArray ( ) ;
150
150
151
151
[ Test ]
152
152
public void Issue4187Test ( )
153
153
{
154
154
RunningApp . WaitForElement ( "Text 1" ) ;
155
155
UITest . Queries . AppResult [ ] fields = RunningApp . Query ( q => q . TextField ( ) ) ;
156
156
157
- Assert . AreEqual ( 7 , GetPickerEditText ( RunningApp ) . Length , "picker count" ) ;
157
+ var edittexts = GetPickerEditText ( RunningApp ) ;
158
+
159
+ Assert . AreEqual ( 7 , edittexts . Length , "picker count" ) ;
158
160
TapOnPicker ( 1 ) ;
159
161
Assert . IsTrue ( DialogIsOpened ( ) , "#1" ) ;
160
162
RunningApp . Tap ( "Text 2" ) ;
You can’t perform that action at this time.
0 commit comments