ov-components: enhance error handling and add screenshot capture during room leave process

master
Carlos Santos 2025-05-23 11:41:56 +02:00
parent 5f9fb06c2a
commit 442b99771a
1 changed files with 5 additions and 4 deletions

View File

@ -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');