mirror of https://github.com/OpenVidu/openvidu.git
ov-components: enhance error handling and add screenshot capture during room leave process
parent
5f9fb06c2a
commit
442b99771a
|
@ -26,10 +26,7 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
try {
|
try {
|
||||||
// leaving room if connected
|
// leaving room if connected
|
||||||
await utils.leaveRoom();
|
await utils.leaveRoom();
|
||||||
} catch (error) {
|
} catch (error) {}
|
||||||
console.error('Error leaving room:', error);
|
|
||||||
}
|
|
||||||
console.log('data:image/png;base64,' + (await browser.takeScreenshot()));
|
|
||||||
await browser.quit();
|
await browser.quit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -618,10 +615,14 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
|
|
||||||
await utils.checkToolbarIsPresent();
|
await utils.checkToolbarIsPresent();
|
||||||
|
|
||||||
|
console.log('data:image/png;base64,' + (await browser.takeScreenshot()));
|
||||||
|
|
||||||
// Clicking to leave button
|
// Clicking to leave button
|
||||||
const leaveButton = await utils.waitForElement('#leave-btn');
|
const leaveButton = await utils.waitForElement('#leave-btn');
|
||||||
expect(await utils.isPresent('#leave-btn')).toBeTrue();
|
expect(await utils.isPresent('#leave-btn')).toBeTrue();
|
||||||
await leaveButton.click();
|
await leaveButton.click();
|
||||||
|
await browser.sleep(1000);
|
||||||
|
console.log('data:image/png;base64,' + (await browser.takeScreenshot()));
|
||||||
|
|
||||||
await utils.waitForElement('#events');
|
await utils.waitForElement('#events');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue