From 55568618caf0470f09e7e33c31197dd02bea5ed7 Mon Sep 17 00:00:00 2001 From: Anton B Date: Wed, 15 May 2024 15:12:45 -0300 Subject: [PATCH] test: update presentation test checks --- .../playwright/presentation/presentation.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-tests/playwright/presentation/presentation.js b/bigbluebutton-tests/playwright/presentation/presentation.js index 2d10436fef..f044a51e0c 100644 --- a/bigbluebutton-tests/playwright/presentation/presentation.js +++ b/bigbluebutton-tests/playwright/presentation/presentation.js @@ -44,7 +44,10 @@ class Presentation extends MultiUsers { await this.modPage.wasRemoved(e.screenshareConnecting); await this.modPage.hasElement(e.screenShareVideo); - await waitAndClearNotification(this.modPage); + // close all notifications displayed before comparing screenshots + for (const closeButton of await this.modPage.getLocator(e.closeToastBtn).all()) { + await closeButton.click(); + } const modWhiteboardLocator = this.modPage.getLocator(e.screenShareVideo); await expect(modWhiteboardLocator).toHaveScreenshot('moderator-share-camera-as-content.png', { maxDiffPixels: 1000, @@ -52,8 +55,10 @@ class Presentation extends MultiUsers { await this.userPage.wasRemoved(e.screenshareConnecting); await this.userPage.hasElement(e.screenShareVideo); - await waitAndClearNotification(this.userPage); - + // close all notifications displayed before comparing screenshots + for (const closeButton of await this.userPage.getLocator(e.closeToastBtn).all()) { + await closeButton.click(); + } const viewerWhiteboardLocator = this.userPage.getLocator(e.screenShareVideo); await expect(viewerWhiteboardLocator).toHaveScreenshot('viewer-share-camera-as-content.png', { maxDiffPixels: 1000,