Преглед на файлове

fix(tests): add more time for getNotificationText.

The lobby tests were failing.
factor2
Hristo Terezov преди 4 месеца
родител
ревизия
ae983645d1
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      tests/pageobjects/Notifications.ts
  2. 1
    1
      tests/pageobjects/PreMeetingScreen.ts

+ 1
- 1
tests/pageobjects/Notifications.ts Целия файл

@@ -153,7 +153,7 @@ export default class Notifications extends BasePageObject {
153 153
     private async getNotificationText(testId: string) {
154 154
         const notificationElement = this.participant.driver.$(`[data-testid="${testId}"]`);
155 155
 
156
-        await notificationElement.waitForExist();
156
+        await notificationElement.waitForExist({ timeout: 2_000 });
157 157
 
158 158
         return await notificationElement.getText();
159 159
     }

+ 1
- 1
tests/pageobjects/PreMeetingScreen.ts Целия файл

@@ -55,7 +55,7 @@ export default abstract class PreMeetingScreen extends BasePageObject {
55 55
      */
56 56
     isLobbyRoomJoined() {
57 57
         return this.participant.driver.execute(
58
-            () => APP.conference._room?.room?.getLobby()?.lobbyRoom?.joined === true);
58
+            () => APP?.conference?._room?.room?.getLobby()?.lobbyRoom?.joined === true);
59 59
     }
60 60
 
61 61
     /**

Loading…
Отказ
Запис