File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
src/Controls/tests/TestCases.Shared.Tests/Tests Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,9 @@ public void PlatformDragEventArgs()
161
161
App . WaitForElement ( "LabelDragElement" ) ;
162
162
App . DragAndDrop ( "LabelDragElement" , "DragTarget" ) ;
163
163
164
+ // Add an additional drag and drop to avoid the flakiness in CI.
165
+ App . DragAndDrop ( "LabelDragElement" , "DragTarget" ) ;
166
+
164
167
App . WaitForElement ( "DragStartEventsLabel" ) ;
165
168
var textAfterDragStart = App . FindElement ( "DragStartEventsLabel" ) . GetText ( ) ;
166
169
Original file line number Diff line number Diff line change @@ -20,26 +20,26 @@ public Issue8870(TestDevice testDevice) : base(testDevice)
20
20
[ Category ( UITestCategories . CollectionView ) ]
21
21
[ FailsOnMacWhenRunningOnXamarinUITest ( "SetOrientationPortrait method not implemented" ) ]
22
22
[ FailsOnWindowsWhenRunningOnXamarinUITest ( "SetOrientationPortrait method not implemented" ) ]
23
- public async Task RotatingCollectionViewWithHTMLShouldNotHangOrCrash ( )
23
+ public void RotatingCollectionViewWithHTMLShouldNotHangOrCrash ( )
24
24
{
25
- int delay = 3000 ;
25
+ int delay = 1000 ;
26
26
27
27
App . WaitForElement ( CheckResult ) ;
28
28
29
29
App . SetOrientationPortrait ( ) ;
30
- await Task . Delay ( delay ) ;
30
+ Thread . Sleep ( delay ) ;
31
31
32
32
App . SetOrientationLandscape ( ) ;
33
- await Task . Delay ( delay ) ;
33
+ Thread . Sleep ( delay ) ;
34
34
35
35
App . SetOrientationPortrait ( ) ;
36
- await Task . Delay ( delay ) ;
36
+ Thread . Sleep ( delay ) ;
37
37
38
38
App . SetOrientationLandscape ( ) ;
39
- await Task . Delay ( delay ) ;
39
+ Thread . Sleep ( delay ) ;
40
40
41
41
App . SetOrientationPortrait ( ) ;
42
- await Task . Delay ( delay ) ;
42
+ Thread . Sleep ( delay ) ;
43
43
44
44
App . WaitForElement ( CheckResult ) ;
45
45
App . Tap ( CheckResult ) ;
You can’t perform that action at this time.
0 commit comments