avoid presentation notifications

This commit is contained in:
Gabriel Porfirio 2024-03-13 10:28:39 -03:00
parent a51e00c1e8
commit 7f36f22e9c
2 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,10 @@ const { test } = require('@playwright/test');
const { fullyParallel } = require('../playwright.config');
const { Options } = require('./options');
const { initializePages } = require('../core/helpers');
const { encodeCustomParams } = require('../parameters/util');
const { PARAMETER_HIDE_PRESENTATION_TOAST } = require('../core/constants');
const hidePresentationToast = encodeCustomParams(PARAMETER_HIDE_PRESENTATION_TOAST);
test.describe('Options', () => {
const options = new Options();
@ -9,7 +13,7 @@ test.describe('Options', () => {
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
const { context: innerContext } = await initializePages(options, browser);
const { context: innerContext } = await initializePages(options, browser, { createParameter: hidePresentationToast });
context = innerContext;
});

View File

@ -5,9 +5,13 @@ const { GuestPolicy } = require('./guestPolicy');
const { LockViewers } = require('./lockViewers');
const { MobileDevices } = require('./mobileDevices');
const { Timer } = require('./timer');
const { encodeCustomParams } = require('../parameters/util');
const { PARAMETER_HIDE_PRESENTATION_TOAST } = require('../core/constants');
const motoG4 = devices['Moto G4'];
const iPhone11 = devices['iPhone 11'];
const hidePresentationToast = encodeCustomParams(PARAMETER_HIDE_PRESENTATION_TOAST);
test.describe.parallel('User', () => {
test.describe.parallel('Actions', () => {
// https://docs.bigbluebutton.org/2.6/release-tests.html#set-status--raise-hand-automated
@ -206,7 +210,8 @@ test.describe.parallel('User', () => {
test('Lock see other viewers annotations @flaky', async ({ browser, context, page }) => {
const lockViewers = new LockViewers(browser, context);
await lockViewers.initPages(page);
await lockViewers.initModPage(page, true, { createParameter: hidePresentationToast });
await lockViewers.initUserPage(true, context, { createParameter: hidePresentationToast });
await lockViewers.lockSeeOtherViewersAnnotations();
});