Skip to content

Commit 991d49d

Browse files
committed
fix(tests): add flaky to After Uploading large presentation, apply some review suggestions
1 parent 15689e0 commit 991d49d

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

bigbluebutton-html5/imports/ui/components/breakout-room/breakout-observer/component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const BreakoutRoomsAppObserver = () => {
109109
pinApp(BREAKOUTS_APP_KEY);
110110
}
111111
setBreakoutsCreationIsOpen(false);
112-
}, [hasBreakoutRoom]);
112+
}, [hasBreakoutRoom, isBreakoutMeeting, isModerator, isBreakoutRoomsEnabled]);
113113

114114
useEffect(() => {
115115
setNotificationApp(BREAKOUTS_APP_KEY, isNotAssigned && !hasOpenedPanel);
@@ -162,6 +162,7 @@ const BreakoutRoomsAppObserver = () => {
162162
isModerator,
163163
isBreakoutMeeting,
164164
breakoutLabel,
165+
isBreakoutRoomsEnabled,
165166
]);
166167

167168
useEffect(() => {

bigbluebutton-tests/playwright/chat/chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Chat extends MultiUsers {
185185
await openPublicChat(this.modPage);
186186
if (!emojiPickerEnabled) {
187187
await this.modPage.hasElement(e.chatBox, 'should display the chat box element on the public chat');
188-
return this.modPage.wasRemoved(e.emojiPickerButton, 'should not display the emoji picker button on the public chat'); t
188+
return this.modPage.wasRemoved(e.emojiPickerButton, 'should not display the emoji picker button on the public chat');
189189
}
190190
await this.modPage.waitAndClick(e.emojiPickerButton);
191191
await this.modPage.getByLabelAndClick(e.thumbsUpEmoji);

bigbluebutton-tests/playwright/core/elements.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ exports.hasUnreadMessages = 'div[data-test="unreadMessages"]';
260260
exports.userJoinPushAlerts = 'input[data-test="userJoinPopupAlerts"]';
261261
exports.toastContainer = 'div[data-test="toastContainer"]';
262262
exports.presentationStatusInfo = 'span[data-test="presentationStatusInfo"]';
263-
exports.confirmRecordingButton = 'button[data-test="confirmRecordingButton"]';
264-
exports.cancelRecordingButton = 'button[data-test="cancelRecordingButton"]';
265263
exports.processingPresentationItem = 'span[data-test="processingPresentationItem"]';
266264
exports.uploadDoneIcon = 'i[data-test="uploadDoneIcon"]';
267265
exports.noButton = 'button[aria-label="No"]';

bigbluebutton-tests/playwright/parameters/parameters.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ test.describe.parallel('Custom Parameters', { tag: '@ci' }, () => {
641641
await customParam.hidePresentationOnJoinReturnFromBreakouts();
642642
});
643643

644-
test('After Uploading large presentation', async ({ browser, context, page }, testInfo) => {
644+
test('After Uploading large presentation', { tag: '@flaky-3.1' }, async ({ browser, context, page }, testInfo) => {
645645
const customParam = new CustomParameters(browser, context);
646646
await customParam.initModPage(page, true, { joinParameter: c.hidePresentationOnJoin, testInfo });
647647
await customParam.initUserPage(true, context, { useModMeetingId: true, joinParameter: c.hidePresentationOnJoin, testInfo });

bigbluebutton-tests/playwright/recording/recording.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ class Recording extends MultiUsers {
7979
const text = await recordingIndicatorButton.textContent();
8080
const match = text.match(/(\d+):(\d+)/);
8181
expect(match, 'should find time pattern in recording button text').not.toBeNull();
82-
const [_, minutes, seconds] = match;
83-
const totalSeconds = parseInt(minutes) * 60 + parseInt(seconds);
82+
const [, minutes, seconds] = match;
83+
const totalSeconds = Number.parseInt(minutes) * 60 + Number.parseInt(seconds);
8484
expect(totalSeconds).toBeGreaterThan(5);
8585
}, 'should display more than 5 seconds on the recording button counter').toPass({ timeout: ELEMENT_WAIT_LONGER_TIME });
8686
await this.modPage.waitAndClick(e.leaveMeetingDropdown);

0 commit comments

Comments
 (0)