diff --git a/bigbluebutton-tests/playwright/core/settings.js b/bigbluebutton-tests/playwright/core/settings.js index b0e565454e..b810509228 100644 --- a/bigbluebutton-tests/playwright/core/settings.js +++ b/bigbluebutton-tests/playwright/core/settings.js @@ -40,6 +40,8 @@ async function generateSettingsData(page) { webcamSharingEnabled: settingsData.kurento.enableVideo, skipVideoPreview: settingsData.kurento.skipVideoPreview, skipVideoPreviewOnFirstJoin: settingsData.kurento.skipVideoPreviewOnFirstJoin, + // User + userStatusEnabled: settingsData.userStatus.enabled, } return settings; diff --git a/bigbluebutton-tests/playwright/user/status.js b/bigbluebutton-tests/playwright/user/status.js index cbc972f058..8ab8151608 100644 --- a/bigbluebutton-tests/playwright/user/status.js +++ b/bigbluebutton-tests/playwright/user/status.js @@ -1,7 +1,9 @@ +const { default: test } = require('@playwright/test'); const Page = require('../core/page'); const { setStatus } = require('./util'); const { waitAndClearNotification, waitAndClearDefaultPresentationNotification } = require('../notifications/util'); const e = require('../core/elements'); +const { getSettings } = require('../core/settings'); class Status extends Page { constructor(browser, page) { @@ -9,6 +11,9 @@ class Status extends Page { } async changeUserStatus() { + const { userStatusEnabled } = getSettings(); + test.fail(!userStatusEnabled, 'User status is disabled'); + await waitAndClearDefaultPresentationNotification(this); await setStatus(this, e.applaud); await this.waitForSelector(e.smallToastMsg);