File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -209,8 +209,17 @@ describe("Video playback", () => {
209
209
expect ( element [ 0 ] . paused ) . to . be . true ;
210
210
} ) ;
211
211
212
+ // should have both captions and playback rate controls enabled
212
213
cy . get ( '[aria-label="Playback Speed"]' ) . should ( "exist" ) . should ( "be.enabled" ) ;
213
214
cy . get ( '[aria-label="Closed Captions"]' ) . should ( "exist" ) . should ( "be.enabled" ) ;
215
+
216
+ // skip the video
217
+ cy . get ( ".video-controls button" ) . eq ( 3 ) . click ( ) ;
218
+ cy . get ( "video" ) . should ( "not.exist" ) ;
219
+
220
+ // should have both captions and playback rate controls disabled when the video goes away
221
+ cy . get ( '[aria-label="Playback Speed"]' ) . should ( "exist" ) . should ( "be.disabled" ) ;
222
+ cy . get ( '[aria-label="Closed Captions"]' ) . should ( "exist" ) . should ( "be.disabled" ) ;
214
223
} ) ;
215
224
} )
216
225
You can’t perform that action at this time.
0 commit comments