Browse Source

fix(tests): add more time for getNotificationText.

The lobby tests were failing.
factor2
Hristo Terezov 8 months ago
parent
commit
ae983645d1
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      tests/pageobjects/Notifications.ts
  2. 1
    1
      tests/pageobjects/PreMeetingScreen.ts

+ 1
- 1
tests/pageobjects/Notifications.ts View 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 View 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…
Cancel
Save