Sfoglia il codice sorgente

fix(tests): add more time for getNotificationText.

The lobby tests were failing.
factor2
Hristo Terezov 4 mesi fa
parent
commit
ae983645d1

+ 1
- 1
tests/pageobjects/Notifications.ts Vedi File

153
     private async getNotificationText(testId: string) {
153
     private async getNotificationText(testId: string) {
154
         const notificationElement = this.participant.driver.$(`[data-testid="${testId}"]`);
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
         return await notificationElement.getText();
158
         return await notificationElement.getText();
159
     }
159
     }

+ 1
- 1
tests/pageobjects/PreMeetingScreen.ts Vedi File

55
      */
55
      */
56
     isLobbyRoomJoined() {
56
     isLobbyRoomJoined() {
57
         return this.participant.driver.execute(
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…
Annulla
Salva