fix few polling, presentation, parameter test

This commit is contained in:
Gabriel Porfirio 2024-02-02 08:37:28 -03:00
parent bd75a489b9
commit 7e8bde03c1
7 changed files with 16 additions and 8 deletions

View File

@ -424,7 +424,7 @@ test.describe.parallel('Custom Parameters', () => {
test.describe.parallel('Audio', () => {
// see https://github.com/bigbluebutton/bigbluebutton/issues/19427
test('Auto join @ci @flaky', async ({ browser, context, page }) => {
test('Auto join @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, false, { joinParameter: c.autoJoin });
await customParam.autoJoin();
@ -437,7 +437,7 @@ test.describe.parallel('Custom Parameters', () => {
});
// see https://github.com/bigbluebutton/bigbluebutton/issues/19428
test('Force Listen Only @ci @flaky', async ({ browser, context, page }) => {
test('Force Listen Only @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initUserPage(false, context, { useModMeetingId: false, joinParameter: c.forceListenOnly });
await customParam.forceListenOnly(page);
@ -458,7 +458,7 @@ test.describe.parallel('Custom Parameters', () => {
test.describe.parallel('Presentation', () => {
// see https://github.com/bigbluebutton/bigbluebutton/issues/19456
test('Hide Presentation on join @ci @flaky', async ({ browser, context, page }) => {
test('Hide Presentation on join @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
await customParam.initModPage(page, true, { joinParameter: c.hidePresentationOnJoin });
await customParam.initUserPage(true, context, { useModMeetingId: true, joinParameter: c.hidePresentationOnJoin });

View File

@ -130,7 +130,7 @@ class Polling extends MultiUsers {
}
async customInput() {
await uploadSinglePresentation(this.modPage, e.questionSlideFileName);
await uploadSinglePresentation(this.modPage, e.uploadPresentationFileName);
await this.modPage.waitAndClick(e.actions);
await this.modPage.waitAndClick(e.polling);
@ -139,6 +139,8 @@ class Polling extends MultiUsers {
await this.modPage.type(e.pollQuestionArea, 'Test');
await this.modPage.waitAndClick(e.addPollItem);
await this.modPage.type(e.pollOptionItem, 'test1');
await this.modPage.waitAndClick(e.addPollItem);
await this.modPage.type(e.pollOptionItem2, 'test2');
await this.modPage.waitAndClick(e.startPoll);
await this.userPage.hasElement(e.pollingContainer);

View File

@ -20,11 +20,11 @@ test.describe('Polling', async () => {
await polling.pollAnonymous();
});
test.only('Create quick poll - from the slide @ci', async () => {
test('Create quick poll - from the slide @ci', async () => {
await polling.quickPoll();
});
test.only('Create poll with user response @ci @flaky', async () => {
test('Create poll with user response @ci', async () => {
await polling.pollUserResponse();
});
@ -40,7 +40,7 @@ test.describe('Polling', async () => {
await polling.notAbleStartNewPollWithoutPresentation();
});
test.only('Custom input @ci @flaky', async () => {
test('Custom input @ci', async () => {
await polling.customInput();
});

View File

@ -91,11 +91,17 @@ class Presentation extends MultiUsers {
await this.userPage.wasRemoved(e.presentationStatusInfo);
await this.userPage.wasRemoved(e.smallToastMsg);
await this.modPage.reloadPage();
await this.modPage.closeAudioModal();
await this.modPage.closeAllToastNotifications();
const modWhiteboardLocator = this.modPage.getLocator(e.whiteboard);
await expect(modWhiteboardLocator).toHaveScreenshot('moderator-new-presentation-screenshot.png', {
maxDiffPixels: 1000,
});
await this.userPage.reloadPage();
await this.userPage.closeAudioModal();
await this.userPage.closeAllToastNotifications();
const userWhiteboardLocator = this.userPage.getLocator(e.whiteboard);
await expect(userWhiteboardLocator).toHaveScreenshot('viewer-new-presentation-screenshot.png', {
maxDiffPixels: 1000,

View File

@ -73,7 +73,7 @@ test.describe.parallel('Presentation', () => {
test.describe.parallel('Manage', () => {
// https://docs.bigbluebutton.org/2.6/release-tests.html#uploading-a-presentation-automated
test('Upload single presentation @ci @flaky', async ({ browser, context, page }) => {
test('Upload single presentation @ci', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page, true);
await presentation.uploadSinglePresentationTest();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 29 KiB