瀏覽代碼

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…
取消
儲存