fix(tests): add more time for getNotificationText.

The lobby tests were failing.
This commit is contained in:
Hristo Terezov
2025-02-11 10:20:53 -06:00
committed by Дамян Минков
parent 3514b22191
commit ae983645d1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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