updated branch and create a test for the other formats upload
This commit is contained in:
parent
869a35e25f
commit
ad4a1f4720
@ -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,
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user