Преглед изворни кода

fix(tests): Moves muteAudio to ParticipantsPane.

factor2
damencho пре 8 месеци
родитељ
комит
e275f20055
2 измењених фајлова са 14 додато и 2 уклоњено
  1. 12
    0
      tests/pageobjects/ParticipantsPane.ts
  2. 2
    2
      tests/specs/3way/audioVideoModeration.spec.ts

+ 12
- 0
tests/pageobjects/ParticipantsPane.ts Прегледај датотеку

@@ -239,4 +239,16 @@ export default class ParticipantsPane extends BasePageObject {
239 239
         await rejectButton.waitForExist();
240 240
         await rejectButton.click();
241 241
     }
242
+
243
+    /**
244
+     * Mutes the audio of a participant.
245
+     * @param participant
246
+     */
247
+    async muteAudio(participant: Participant) {
248
+        const participantId = await participant.getEndpointId();
249
+
250
+        await this.participant.driver.$(`#participant-item-${participantId}`).moveTo();
251
+
252
+        await this.participant.driver.$(`button[data-testid="mute-audio-${participantId}"]`).click();
253
+    }
242 254
 }

+ 2
- 2
tests/specs/3way/audioVideoModeration.spec.ts Прегледај датотеку

@@ -165,7 +165,7 @@ describe('AVModeration', () => {
165 165
         await unmuteByModerator(p1, p2, true, false);
166 166
 
167 167
         // p1 mute audio on p2 and check
168
-        await p1.getFilmstrip().muteAudio(p2);
168
+        await p1.getParticipantsPane().muteAudio(p2);
169 169
         await p1.getFilmstrip().assertAudioMuteIconIsDisplayed(p2);
170 170
         await p2.getFilmstrip().assertAudioMuteIconIsDisplayed(p2);
171 171
 
@@ -205,7 +205,7 @@ describe('AVModeration', () => {
205 205
         await unmuteByModerator(p1, p2, false, false);
206 206
 
207 207
         // mute and check
208
-        await p1.getFilmstrip().muteAudio(p2);
208
+        await p1.getParticipantsPane().muteAudio(p2);
209 209
         await p1.getFilmstrip().assertAudioMuteIconIsDisplayed(p2);
210 210
         await p2.getFilmstrip().assertAudioMuteIconIsDisplayed(p2);
211 211
 

Loading…
Откажи
Сачувај