updated branch and create a test for the other formats upload

This commit is contained in:
Gabriel Porfirio 2023-08-08 13:05:09 -03:00
parent 869a35e25f
commit ad4a1f4720
2 changed files with 11 additions and 0 deletions

View File

@ -84,13 +84,18 @@ class Presentation extends MultiUsers {
await expect(userWhiteboardLocator).toHaveScreenshot('viewer-new-presentation-screenshot.png', {
maxDiffPixels: 1000,
});
}
async uploadOtherPresentationsFormat() {
await uploadSinglePresentation(this.modPage, e.uploadPresentationFileName, UPLOAD_PDF_WAIT_TIME);
await this.modPage.waitAndClick(e.smallToastMsg);
await this.modPage.wasRemoved(e.smallToastMsg, ELEMENT_WAIT_LONGER_TIME);
await this.userPage.wasRemoved(e.presentationStatusInfo);
await this.userPage.wasRemoved(e.smallToastMsg);
const modWhiteboardLocator = this.modPage.getLocator(e.whiteboard);
const userWhiteboardLocator = this.userPage.getLocator(e.whiteboard);
await expect(modWhiteboardLocator).toHaveScreenshot('moderator-png-presentation-screenshot.png', {
maxDiffPixels: 1000,
});

View File

@ -76,6 +76,12 @@ test.describe.parallel('Presentation', () => {
await presentation.uploadSinglePresentationTest();
});
test('Upload Other Presentations Format', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page, true);
await presentation.uploadOtherPresentationsFormat();
});
// https://docs.bigbluebutton.org/2.6/release-tests.html#uploading-multiple-presentations-automated
test('Upload multiple presentations', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);