test: fix hide presentation on join
This commit is contained in:
parent
fecf42dada
commit
1cbec20499
@ -20,7 +20,7 @@ const cssCode = `${e.presentationTitle}{display: none;}`;
|
|||||||
exports.customStyle = `userdata-bbb_custom_style=${cssCode}`;
|
exports.customStyle = `userdata-bbb_custom_style=${cssCode}`;
|
||||||
exports.customStyleUrl = 'userdata-bbb_custom_style_url=https://develop.bigbluebutton.org/css-test-file.css';
|
exports.customStyleUrl = 'userdata-bbb_custom_style_url=https://develop.bigbluebutton.org/css-test-file.css';
|
||||||
exports.autoSwapLayout = 'userdata-bbb_auto_swap_layout=true';
|
exports.autoSwapLayout = 'userdata-bbb_auto_swap_layout=true';
|
||||||
exports.hidePresentation = 'userdata-bbb_hide_presentation=true';
|
exports.hidePresentationOnJoin = 'userdata-bbb_hide_presentation_on_join="true"';
|
||||||
exports.outsideToggleSelfVoice = 'userdata-bbb_outside_toggle_self_voice=true';
|
exports.outsideToggleSelfVoice = 'userdata-bbb_outside_toggle_self_voice=true';
|
||||||
exports.outsideToggleRecording = 'userdata-bbb_outside_toggle_recording=true';
|
exports.outsideToggleRecording = 'userdata-bbb_outside_toggle_recording=true';
|
||||||
exports.showPublicChatOnLogin = 'userdata-bbb_show_public_chat_on_login=false';
|
exports.showPublicChatOnLogin = 'userdata-bbb_show_public_chat_on_login=false';
|
||||||
|
@ -127,7 +127,7 @@ class CustomParameters extends MultiUsers {
|
|||||||
await expect(notificationBarColor).toBe(colorToRGB);
|
await expect(notificationBarColor).toBe(colorToRGB);
|
||||||
}
|
}
|
||||||
|
|
||||||
async hidePresentation() {
|
async hidePresentationOnJoin() {
|
||||||
await this.modPage.waitForSelector(e.actions);
|
await this.modPage.waitForSelector(e.actions);
|
||||||
const checkPresentationButton = await this.modPage.checkElement(e.restorePresentation);
|
const checkPresentationButton = await this.modPage.checkElement(e.restorePresentation);
|
||||||
await expect(checkPresentationButton).toBeTruthy();
|
await expect(checkPresentationButton).toBeTruthy();
|
||||||
|
@ -139,10 +139,10 @@ test.describe.parallel('CustomParameters', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test.describe.parallel('Presentation', () => {
|
test.describe.parallel('Presentation', () => {
|
||||||
test('Hide Presentation', async ({ browser, context, page }) => {
|
test('Hide Presentation on join', async ({ browser, context, page }) => {
|
||||||
const customParam = new CustomParameters(browser, context);
|
const customParam = new CustomParameters(browser, context);
|
||||||
await customParam.initModPage(page, true, { customParameter: encodeCustomParams(c.hidePresentation) });
|
await customParam.initModPage(page, true, { customParameter: encodeCustomParams(c.hidePresentationOnJoin) });
|
||||||
await customParam.hidePresentation();
|
await customParam.hidePresentationOnJoin();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Force Restore Presentation On New Events', async ({ browser, context, page }) => {
|
test('Force Restore Presentation On New Events', async ({ browser, context, page }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user