Merge pull request #18328 from gabriellpr/set-status-test

test: fixing set status
This commit is contained in:
Anton Georgiev 2023-07-18 05:18:22 -04:00 committed by GitHub
commit e3aa12c743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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);