@@ -12,12 +12,17 @@ context('A video app user', () => {
1212 describe ( 'before entering a room' , ( ) => {
1313 it ( 'should see their audio level indicator moving in the media device panel' , ( ) => {
1414 cy . visit ( '/' ) ;
15+
16+ cy . get ( '#input-user-name' ) . type ( 'testuser' ) ;
17+ cy . get ( '#input-room-name' ) . type ( getRoomName ( ) ) ;
18+ cy . get ( '[type="submit"]' ) . click ( ) ;
19+
1520 cy . get ( 'clipPath rect' )
1621 . invoke ( 'attr' , 'y' )
17- . should ( 'be' , 21 ) ;
22+ . should ( 'be' , 14 ) ;
1823 cy . get ( 'clipPath rect' )
1924 . invoke ( 'attr' , 'y' )
20- . should ( 'be.lessThan' , 21 ) ;
25+ . should ( 'be.lessThan' , 14 ) ;
2126 } ) ;
2227 } ) ;
2328
@@ -34,7 +39,7 @@ context('A video app user', () => {
3439 } ) ;
3540
3641 it ( 'should be inside the correct room' , ( ) => {
37- cy . get ( 'header ' ) . should ( 'contain' , ROOM_NAME ) ;
42+ cy . get ( 'footer ' ) . should ( 'contain' , ROOM_NAME ) ;
3843 cy . getParticipant ( 'testuser' ) . should ( 'contain' , 'testuser' ) ;
3944 } ) ;
4045
@@ -53,10 +58,10 @@ context('A video app user', () => {
5358 cy . getParticipant ( 'test1' )
5459 . get ( 'clipPath rect' )
5560 . invoke ( 'attr' , 'y' )
56- . should ( 'be' , 21 ) ;
61+ . should ( 'be' , 14 ) ;
5762 cy . get ( 'clipPath rect' )
5863 . invoke ( 'attr' , 'y' )
59- . should ( 'be.lessThan' , 21 ) ;
64+ . should ( 'be.lessThan' , 14 ) ;
6065 } ) ;
6166
6267 it ( 'should see other participants disconnect when they close their browser' , ( ) => {
@@ -158,32 +163,32 @@ context('A video app user', () => {
158163 it ( 'should see participant "test1" when they are the dominant speaker' , ( ) => {
159164 cy . task ( 'toggleParticipantAudio' , 'test2' ) ;
160165 cy . task ( 'toggleParticipantAudio' , 'test3' ) ;
161- cy . getParticipant ( 'test2' ) . find ( '[data-cy -audio-mute-icon]' ) ;
162- cy . getParticipant ( 'test3' ) . find ( '[data-cy -audio-mute-icon]' ) ;
166+ cy . getParticipant ( 'test2' ) . find ( '[data-test -audio-mute-icon]' ) ;
167+ cy . getParticipant ( 'test3' ) . find ( '[data-test -audio-mute-icon]' ) ;
163168 cy . getParticipant ( 'test1' ) . shouldBeSameVideoAs ( '[data-cy-main-participant]' ) ;
164169 } ) ;
165170
166171 it ( 'should see participant "test2" when they are the dominant speaker' , ( ) => {
167172 cy . task ( 'toggleParticipantAudio' , 'test1' ) ;
168173 cy . task ( 'toggleParticipantAudio' , 'test2' ) ;
169- cy . getParticipant ( 'test1' ) . find ( '[data-cy -audio-mute-icon]' ) ;
170- cy . getParticipant ( 'test3' ) . find ( '[data-cy -audio-mute-icon]' ) ;
174+ cy . getParticipant ( 'test1' ) . find ( '[data-test -audio-mute-icon]' ) ;
175+ cy . getParticipant ( 'test3' ) . find ( '[data-test -audio-mute-icon]' ) ;
171176 cy . getParticipant ( 'test2' ) . shouldBeSameVideoAs ( '[data-cy-main-participant]' ) ;
172177 } ) ;
173178
174179 it ( 'should see participant "test3" when they are the dominant speaker' , ( ) => {
175180 cy . task ( 'toggleParticipantAudio' , 'test2' ) ;
176181 cy . task ( 'toggleParticipantAudio' , 'test3' ) ;
177- cy . getParticipant ( 'test1' ) . find ( '[data-cy -audio-mute-icon]' ) ;
178- cy . getParticipant ( 'test2' ) . find ( '[data-cy -audio-mute-icon]' ) ;
182+ cy . getParticipant ( 'test1' ) . find ( '[data-test -audio-mute-icon]' ) ;
183+ cy . getParticipant ( 'test2' ) . find ( '[data-test -audio-mute-icon]' ) ;
179184 cy . getParticipant ( 'test3' ) . shouldBeSameVideoAs ( '[data-cy-main-participant]' ) ;
180185 } ) ;
181186
182187 it ( 'should see participant "test3" when there is no dominant speaker' , ( ) => {
183188 cy . task ( 'toggleParticipantAudio' , 'test3' ) ;
184- cy . getParticipant ( 'test1' ) . find ( '[data-cy -audio-mute-icon]' ) ;
185- cy . getParticipant ( 'test2' ) . find ( '[data-cy -audio-mute-icon]' ) ;
186- cy . getParticipant ( 'test3' ) . find ( '[data-cy -audio-mute-icon]' ) ;
189+ cy . getParticipant ( 'test1' ) . find ( '[data-test -audio-mute-icon]' ) ;
190+ cy . getParticipant ( 'test2' ) . find ( '[data-test -audio-mute-icon]' ) ;
191+ cy . getParticipant ( 'test3' ) . find ( '[data-test -audio-mute-icon]' ) ;
187192 cy . getParticipant ( 'test3' ) . shouldBeSameVideoAs ( '[data-cy-main-participant]' ) ;
188193 } ) ;
189194 } ) ;
0 commit comments