Просмотр исходного кода

fix(tests): Fixes AVModeration test hovering over more menu in thumbnail.

factor2
damencho 8 месяцев назад
Родитель
Сommit
b0d0b3ac11
1 измененных файлов: 4 добавлений и 3 удалений
  1. 4
    3
      tests/pageobjects/Filmstrip.ts

+ 4
- 3
tests/pageobjects/Filmstrip.ts Просмотреть файл

@@ -113,10 +113,11 @@ export default class Filmstrip extends BasePageObject {
113 113
      * @private
114 114
      */
115 115
     private async clickOnRemoteMenuLink(participantId: string, linkClassname: string, dialogConfirm: boolean) {
116
-        const thumbnail = this.participant.driver.$(
117
-            `//span[@id='participant_${participantId}']//span[@id='remotevideomenu']`);
116
+        await this.participant.driver.$(`//span[@id='participant_${participantId}']`).moveTo();
118 117
 
119
-        await thumbnail.moveTo();
118
+        await this.participant.driver.$(
119
+            `//span[@id='participant_${participantId
120
+            }']//span[@id='remotevideomenu']//div[@id='remote-video-menu-trigger']`).moveTo();
120 121
 
121 122
         const popoverElement = this.participant.driver.$(
122 123
             `//div[contains(@class, 'popover')]//div[contains(@class, '${linkClassname}')]`);

Загрузка…
Отмена
Сохранить