@@ -42,7 +42,7 @@ public void TestThumbnailPreview()
42
42
} ;
43
43
} ) ;
44
44
AddStep ( "enable dim" , ( ) => thumbnail . Dimmed . Value = true ) ;
45
- AddUntilStep ( "button visible" , ( ) => playButton . IsPresent ) ;
45
+ AddUntilStep ( "button visible" , ( ) => playButton . Alpha == 1 ) ;
46
46
47
47
AddStep ( "click button" , ( ) =>
48
48
{
@@ -70,15 +70,15 @@ public void TestThumbnailPreview()
70
70
71
71
AddStep ( "disable dim" , ( ) => thumbnail . Dimmed . Value = false ) ;
72
72
AddWaitStep ( "wait some" , 3 ) ;
73
- AddAssert ( "button still visible" , ( ) => playButton . IsPresent ) ;
73
+ AddAssert ( "button still visible" , ( ) => playButton . Alpha == 1 ) ;
74
74
75
75
// The track plays in real-time, so we need to check for progress in increments to avoid timeout.
76
76
AddUntilStep ( "progress > 0.25" , ( ) => thumbnail . ChildrenOfType < PlayButton > ( ) . Single ( ) . Progress . Value > 0.25 ) ;
77
77
AddUntilStep ( "progress > 0.5" , ( ) => thumbnail . ChildrenOfType < PlayButton > ( ) . Single ( ) . Progress . Value > 0.5 ) ;
78
78
AddUntilStep ( "progress > 0.75" , ( ) => thumbnail . ChildrenOfType < PlayButton > ( ) . Single ( ) . Progress . Value > 0.75 ) ;
79
79
80
80
AddUntilStep ( "wait for track to end" , ( ) => ! playButton . Playing . Value ) ;
81
- AddUntilStep ( "button hidden" , ( ) => ! playButton . IsPresent ) ;
81
+ AddUntilStep ( "button hidden" , ( ) => playButton . Alpha == 0 ) ;
82
82
}
83
83
84
84
private void iconIs ( IconUsage usage ) => AddUntilStep ( "icon is correct" , ( ) => playButton . ChildrenOfType < SpriteIcon > ( ) . Any ( icon => icon . Icon . Equals ( usage ) ) ) ;
0 commit comments