Переглянути джерело

fix(tests): add more time for getNotificationText.

The lobby tests were failing.
factor2
Hristo Terezov 4 місяці тому
джерело
коміт
ae983645d1

+ 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
     /**

Завантаження…
Відмінити
Зберегти