last changes suggested by Anton B

This commit is contained in:
Gabriel Porfirio 2023-06-13 17:31:47 -03:00
parent 7c366e98d4
commit f87ad26809
4 changed files with 43 additions and 43 deletions

View File

@ -153,7 +153,7 @@ exports.webcamMirroredVideoContainer = 'video[data-test="mirroredVideoContainer"
exports.usersList = 'div[data-test="userList"]';
exports.selectCameraQualityId = 'select[id="setQuality"]';
exports.virtualBackgrounds = 'div[data-test="virtualBackground"]';
exports.liveTranscription = 'div[data-test="speechRecognition"]';
exports.speechRecognition = 'div[data-test="speechRecognition"]';
exports.learningDashboard = 'li[data-test="learningDashboard"]';
exports.propagateLayout = 'li[data-test="propagateLayout"]';
exports.layoutModal = 'li[data-test="layoutModal"]';

View File

@ -40,26 +40,26 @@ exports.hideNavBar = 'userdata-bbb_hide_nav_bar=true';
exports.preferredCameraProfile = 'userdata-bbb_preferred_camera_profile=low';
// Disabled Features
exports.breakoutRooms = 'disabledFeatures=breakoutRooms';
exports.liveTranscription = 'disabledFeatures=liveTranscription';
exports.captions = 'disabledFeatures=captions';
exports.chat = 'disabledFeatures=chat';
exports.externalVideos = 'disabledFeatures=externalVideos';
exports.learningDashboard = 'disabledFeatures=learningDashboard';
exports.polls = 'disabledFeatures=polls';
exports.screenshare = 'disabledFeatures=screenshare';
exports.sharedNotes = 'disabledFeatures=sharedNotes';
exports.virtualBackgrounds = 'disabledFeatures=virtualBackgrounds';
exports.downloadPresentationWithAnnotations = 'disabledFeatures=downloadPresentationWithAnnotations';
exports.importPresentationWithAnnotationsFromBreakoutRooms = 'disabledFeatures=importPresentationWithAnnotationsFromBreakoutRooms';
exports.importSharedNotesFromBreakoutRooms = 'disabledFeatures=importSharedNotesFromBreakoutRooms';
exports.layouts = 'disabledFeatures=layouts';
exports.presentation = 'disabledFeatures=presentation';
exports.customVirtualBackground = 'disabledFeatures=customVirtualBackgrounds';
exports.breakoutRoomsDisabled = 'disabledFeatures=breakoutRooms';
exports.speechRecognitionDisabled = 'disabledFeatures=liveTranscription';
exports.captionsDisabled = 'disabledFeatures=captions';
exports.chatDisabled = 'disabledFeatures=chat';
exports.externalVideosDisabled = 'disabledFeatures=externalVideos';
exports.learningDashboardDisabled = 'disabledFeatures=learningDashboard';
exports.pollsDisabled = 'disabledFeatures=polls';
exports.screenshareDisabled = 'disabledFeatures=screenshare';
exports.sharedNotesDisabled = 'disabledFeatures=sharedNotes';
exports.virtualBackgroundsDisabled = 'disabledFeatures=virtualBackgrounds';
exports.downloadPresentationWithAnnotationsDisabled = 'disabledFeatures=downloadPresentationWithAnnotations';
exports.importPresentationWithAnnotationsFromBreakoutRoomsDisabled = 'disabledFeatures=importPresentationWithAnnotationsFromBreakoutRooms';
exports.importSharedNotesFromBreakoutRoomsDisabled = 'disabledFeatures=importSharedNotesFromBreakoutRooms';
exports.layoutsDisabled = 'disabledFeatures=layouts';
exports.presentationDisabled = 'disabledFeatures=presentation';
exports.customVirtualBackgroundDisabled = 'disabledFeatures=customVirtualBackgrounds';
// Disabled Features Exclude
exports.breakoutRoomsExclude = 'disabledFeatures=breakoutRooms,presentation,chat&disabledFeaturesExclude=breakoutRooms';
exports.liveTranscriptionExclude = 'disabledFeatures=breakoutRooms,presentation,chat,liveTranscription&disabledFeaturesExclude=liveTranscription';
exports.speechRecognitionExclude = 'disabledFeatures=breakoutRooms,presentation,chat,liveTranscription&disabledFeaturesExclude=liveTranscription';
exports.captionsExclude = 'disabledFeatures=captions,presentation,chat&disabledFeaturesExclude=captions';
exports.chatExclude = 'disabledFeatures=presentation,chat&disabledFeaturesExclude=chat';
exports.externalVideosExclude = 'disabledFeatures=presentation,chat,externalVideos&disabledFeaturesExclude=externalVideos';

View File

@ -240,9 +240,9 @@ class CustomParameters extends MultiUsers {
await this.modPage.wasRemoved(e.createBreakoutRooms);
}
async liveTranscription() {
async speechRecognition() {
await this.modPage.waitForSelector(e.audioModal, ELEMENT_WAIT_LONGER_TIME);
await this.modPage.wasRemoved(e.liveTranscription);
await this.modPage.wasRemoved(e.speechRecognition);
}
async captions() {
@ -324,11 +324,11 @@ class CustomParameters extends MultiUsers {
await this.modPage.hasElement(e.createBreakoutRooms);
}
async liveTranscriptionExclude() {
async speechRecognitionExclude() {
const { speechRecognitionEnabled } = getSettings();
test.fail(!speechRecognitionEnabled, 'Live Transcription is disabled');
await this.modPage.waitForSelector(e.audioModal, ELEMENT_WAIT_LONGER_TIME);
await this.modPage.hasElement(e.liveTranscription);
await this.modPage.hasElement(e.speechRecognition);
}
async captionsExclude() {

View File

@ -213,7 +213,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Breakout rooms', async ({ browser, context, page}) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.breakoutRooms });
await customParam.initModPage(page, true, { customParameter: c.breakoutRoomsDisabled });
await customParam.breakoutRooms();
});
test('Breakout rooms (exclude)', async ({ browser, context, page}) => {
@ -224,22 +224,22 @@ test.describe.parallel('CustomParameters', () => {
});
test.describe.serial(() => {
test('Live Transcription', async ({ browser, context, page}) => {
test('Speech Recognition', async ({ browser, context, page}) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, false, { customParameter: c.liveTranscription });
await customParam.liveTranscription();
await customParam.initModPage(page, false, { customParameter: c.speechRecognitionDisabled });
await customParam.speechRecognition();
});
test('Live Transcription (exclude)', async ({ browser, context, page}) => {
test('Speech Recognition (exclude)', async ({ browser, context, page}) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, false, { customParameter: c.liveTranscriptionExclude });
await customParam.liveTranscriptionExclude();
await customParam.initModPage(page, false, { customParameter: c.speechRecognitionExclude });
await customParam.speechRecognitionExclude();
});
});
test.describe.serial(() => {
test('Captions', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.captions });
await customParam.initModPage(page, true, { customParameter: c.captionsDisabled });
await customParam.captions();
});
test('Captions (exclude)', async ({ browser, context, page }) => {
@ -252,7 +252,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Chat', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.chat });
await customParam.initModPage(page, true, { customParameter: c.chatDisabled });
await customParam.chat();
});
test('Chat (exclude)', async ({ browser, context, page }) => {
@ -265,7 +265,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('External Videos', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.externalVideos });
await customParam.initModPage(page, true, { customParameter: c.externalVideosDisabled });
await customParam.externalVideos();
});
test('External Videos (exclude)', async ({ browser, context, page }) => {
@ -278,7 +278,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Layouts', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.layouts });
await customParam.initModPage(page, true, { customParameter: c.layoutsDisabled });
await customParam.layouts();
});
test('Layouts (exclude)', async ({ browser, context, page }) => {
@ -291,7 +291,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Learning Dashboard', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.learningDashboard });
await customParam.initModPage(page, true, { customParameter: c.learningDashboardDisabled });
await customParam.learningDashboard();
});
test('Learning Dashboard (exclude)', async ({ browser, context, page }) => {
@ -304,7 +304,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Polls', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.polls });
await customParam.initModPage(page, true, { customParameter: c.pollsDisabled });
await customParam.polls();
});
test('Polls (exclude)', async ({ browser, context, page }) => {
@ -317,7 +317,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Screenshare', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.screenshare });
await customParam.initModPage(page, true, { customParameter: c.screenshareDisabled });
await customParam.screenshare();
});
test('Screenshare (exclude)', async ({ browser, context, page }) => {
@ -330,7 +330,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Shared Notes', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.sharedNotes });
await customParam.initModPage(page, true, { customParameter: c.sharedNotesDisabled });
await customParam.sharedNotes();
});
test('Shared Notes (exclude)', async ({ browser, context, page }) => {
@ -343,7 +343,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Virtual Background', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.virtualBackgrounds });
await customParam.initModPage(page, true, { customParameter: c.virtualBackgroundsDisabled });
await customParam.virtualBackgrounds();
});
test('Virtual Background (exclude)', async ({ browser, context, page }) => {
@ -356,7 +356,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Download Presentation With Annotations', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.downloadPresentationWithAnnotations });
await customParam.initModPage(page, true, { customParameter: c.downloadPresentationWithAnnotationsDisabled });
await customParam.downloadPresentationWithAnnotations();
});
test('Download Presentation With Annotations (exclude)', async ({ browser, context, page }) => {
@ -369,7 +369,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Import Presentation With Annotations From Breakout Rooms', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.importPresentationWithAnnotationsFromBreakoutRooms });
await customParam.initModPage(page, true, { customParameter: c.importPresentationWithAnnotationsFromBreakoutRoomsDisabled });
await customParam.importPresentationWithAnnotationsFromBreakoutRooms();
});
test('Import Presentation With Annotations From Breakout Rooms (exclude)', async ({ browser, context, page }) => {
@ -382,7 +382,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Import Shared Notes From Breakout Rooms', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.importSharedNotesFromBreakoutRooms });
await customParam.initModPage(page, true, { customParameter: c.importSharedNotesFromBreakoutRoomsDisabled });
await customParam.importSharedNotesFromBreakoutRooms();
});
test('Import Shared Notes From Breakout Rooms (exclude)', async ({ browser, context, page }) => {
@ -395,7 +395,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Presentation', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.presentation });
await customParam.initModPage(page, true, { customParameter: c.presentationDisabled });
await customParam.presentation();
});
test('Presentation (exclude)', async ({ browser, context, page }) => {
@ -408,7 +408,7 @@ test.describe.parallel('CustomParameters', () => {
test.describe.serial(() => {
test('Custom Virtual Background', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { customParameter: c.customVirtualBackground });
await customParam.initModPage(page, true, { customParameter: c.customVirtualBackgroundDisabled });
await customParam.customVirtualBackground();
});
test('Custom Virtual Background (exclude)', async ({ browser, context, page }) => {