File tree 3 files changed +9
-5
lines changed
TestCases.Shared.Tests/Tests
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,7 @@ async void InitCV()
64
64
65
65
cv . ScrollTo ( items . Count - 1 ) ;
66
66
67
- //give the cv time to scroll
68
- var rand = new Random ( ) ;
69
- await Task . Delay ( rand . Next ( 10 , 200 ) ) ;
67
+ await Task . Delay ( 200 ) ;
70
68
71
69
await Navigation . PopAsync ( false ) ;
72
70
Original file line number Diff line number Diff line change @@ -360,6 +360,12 @@ public void DropEventCoordinates()
360
360
App . WaitForElement ( "Green" ) ;
361
361
App . DragAndDrop ( "Blue" , "Green" ) ;
362
362
363
+ // Wait for all UI elements to confirm drag and drop operation completion
364
+ App . WaitForElement ( "DropRelativeLayout" ) ;
365
+ App . WaitForElement ( "DropRelativeScreen" ) ;
366
+ App . WaitForElement ( "DropRelativeLabel" ) ;
367
+ App . WaitForElement ( "DragStartRelativeScreen" ) ;
368
+
363
369
var dropRelativeToLayout = GetCoordinatesFromLabel ( App . FindElement ( "DropRelativeLayout" ) . GetText ( ) ) ;
364
370
var dropRelativeToScreen = GetCoordinatesFromLabel ( App . FindElement ( "DropRelativeScreen" ) . GetText ( ) ) ;
365
371
var dropRelativeToLabel = GetCoordinatesFromLabel ( App . FindElement ( "DropRelativeLabel" ) . GetText ( ) ) ;
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public void Issue10222Test()
18
18
{
19
19
App . WaitForElement ( "goTo" ) ;
20
20
App . Tap ( "goTo" ) ;
21
- App . WaitForElement ( "items1" ) ;
22
- App . WaitForElement ( "goTo" ) ;
21
+ App . WaitForElement ( "items1" , timeout : TimeSpan . FromSeconds ( 1 ) ) ;
22
+ App . WaitForElement ( "goTo" , timeout : TimeSpan . FromSeconds ( 2 ) ) ;
23
23
}
24
24
}
25
25
#endif
You can’t perform that action at this time.
0 commit comments