Compare commits

...

6 Commits

Author SHA1 Message Date
damencho
498dd79d05 drop: debug5. 2025-08-19 12:20:19 -05:00
damencho
d5924fc04b drop: debug4. 2025-08-19 12:03:18 -05:00
damencho
346989d1cb drop: debug3. 2025-08-19 11:18:29 -05:00
damencho
52f375dc18 drop: debug2. 2025-08-19 11:01:14 -05:00
damencho
84bd18a604 drop: debug. 2025-08-19 10:53:41 -05:00
damencho
12d8e75063 fix(tests): Increase breakout rooms wait times. 2025-08-19 10:36:15 -05:00
2 changed files with 74 additions and 24 deletions

View File

@@ -28,21 +28,71 @@ describe('BreakoutRooms', () => {
// there should be no breakout rooms initially, list is sent with a small delay
await p1.driver.pause(2000);
expect(await p1BreakoutRooms.getRoomsCount()).toBe(0);
console.log('0000');
console.log('willl add listeners');
await p2.execute(() => {
console.log('adddingggggggg listeners');
APP.store.getState()['features/base/conference'].conference.on('conference.breakout-rooms.updated', ({ rooms, roomCounter }) => {
console.log('receiveddd1', roomCounter);
});
APP.store.getState()['features/base/conference'].conference.room.addListener(
'xmpp.breakout-rooms.updated',
({ rooms, roomCounter }) => {
console.log('receiveddd2', roomCounter);
}
);
APP.store.getState()['features/base/conference'].conference.room.xmpp.addListener(
'xmpp.breakout-rooms.event',
(payload) => {
console.log('receiveddd3', JSON.stringify(payload));
}
);
});
await p1.execute(() => {
console.log('adddingggggggg listeners');
APP.store.getState()['features/base/conference'].conference.on('conference.breakout-rooms.updated', ({ rooms, roomCounter }) => {
console.log('receiveddd1', roomCounter);
});
APP.store.getState()['features/base/conference'].conference.room.addListener(
'xmpp.breakout-rooms.updated',
({ rooms, roomCounter }) => {
console.log('receiveddd2', roomCounter);
}
);
APP.store.getState()['features/base/conference'].conference.room.xmpp.addListener(
'xmpp.breakout-rooms.event',
(payload) => {
console.log('receiveddd3', JSON.stringify(payload));
}
);
});
// add one breakout room
await p1BreakoutRooms.addBreakoutRoom();
console.log('1111');
await p1.driver.waitUntil(
async () => await p1BreakoutRooms.getRoomsCount() === 1, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'No breakout room added for p1'
});
console.log('22222');
await p2.getParticipantsPane().open();
let res = await p2.execute(() => JSON.stringify(Object.getOwnPropertyNames(
APP.store.getState()['features/base/conference'].conference.eventEmitter._events)));
console.log('33333', res);
// second participant should also see one breakout room
await p2.driver.waitUntil(
async () => await p2.getBreakoutRooms().getRoomsCount() === 1, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'No breakout room seen by p2'
});
});
@@ -54,7 +104,7 @@ describe('BreakoutRooms', () => {
// there should be one breakout room
await p1.driver.waitUntil(
async () => await p1BreakoutRooms.getRoomsCount() === 1, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'No breakout room seen by p1'
});
@@ -80,7 +130,7 @@ describe('BreakoutRooms', () => {
return list[0].name === MAIN_ROOM_NAME;
}, {
timeout: 5000,
timeout: 6000,
timeoutMsg: 'P1 did not join breakout room'
});
@@ -95,7 +145,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'P2 is not seeing p1 in the breakout room'
});
});
@@ -122,7 +172,7 @@ describe('BreakoutRooms', () => {
return list[0].name !== MAIN_ROOM_NAME;
}, {
timeout: 5000,
timeout: 6000,
timeoutMsg: 'P1 did not leave breakout room'
});
@@ -137,7 +187,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 0;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'P2 is seeing p1 in the breakout room'
});
});
@@ -152,14 +202,14 @@ describe('BreakoutRooms', () => {
// there should be no breakout rooms
await p1.driver.waitUntil(
async () => await p1BreakoutRooms.getRoomsCount() === 0, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'Breakout room was not removed for p1'
});
// the second participant should also see no breakout rooms
await p2.driver.waitUntil(
async () => await p2.getBreakoutRooms().getRoomsCount() === 0, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'Breakout room was not removed for p2'
});
});
@@ -176,7 +226,7 @@ describe('BreakoutRooms', () => {
// there should be two breakout rooms
await p1.driver.waitUntil(
async () => await p1BreakoutRooms.getRoomsCount() === 2, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'Breakout room was not created by p1'
});
@@ -198,7 +248,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1 && list[1].participantCount === 1;
}, {
timeout: 5000,
timeout: 6000,
timeoutMsg: 'P1 did not auto assigned participants to breakout rooms'
});
@@ -220,7 +270,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1 && list[1].participantCount === 1
&& (list[0].name === MAIN_ROOM_NAME || list[1].name === MAIN_ROOM_NAME);
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'P2 is not seeing p1 in the main room'
});
});
@@ -244,7 +294,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1 && list[1].participantCount === 1;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'P1 is not seeing two breakout rooms'
});
@@ -266,7 +316,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 0 || list[1].participantCount === 0;
}, {
timeout: 5000,
timeout: 6000,
timeoutMsg: 'P1 is not seeing an empty breakout room'
});
@@ -305,7 +355,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount + list[1].participantCount === 1;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: `${p.name} is not seeing an empty breakout room and one with one participant`
});
@@ -336,7 +386,7 @@ describe('BreakoutRooms', () => {
await p1.driver.waitUntil(
async () => await p1BreakoutRooms.getRoomsCount() === 1
&& (await p1BreakoutRooms.getRooms())[0].participantCount === 0, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'No breakout room added for p1'
});
@@ -354,7 +404,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1;
}, {
timeout: 5000,
timeout: 6000,
timeoutMsg: 'P1 is not seeing p2 in the breakout room'
});
});
@@ -374,7 +424,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'P1 is not seeing p2 in the breakout room'
});
@@ -420,7 +470,7 @@ describe('BreakoutRooms', () => {
return list[0].name === myNewRoomName;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'The breakout room was not renamed for p1'
});
@@ -442,7 +492,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 0;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'The breakout room not found or not empty for p1'
});
@@ -452,7 +502,7 @@ describe('BreakoutRooms', () => {
return list?.length === 1;
}, {
timeout: 3000,
timeout: 6000,
timeoutMsg: 'The breakout room not seen by p2'
});
@@ -472,7 +522,7 @@ describe('BreakoutRooms', () => {
return list[0].participantCount === 1;
}, {
timeout: 5000,
timeout: 6000,
timeoutMsg: 'The breakout room was not rename for p1'
});

View File

@@ -58,7 +58,7 @@ const chromePreferences = {
};
const specs = [
'specs/**/*.spec.ts'
'specs/3way/breakoutRooms.spec.ts'
];
/**