diff --git a/openvidu-components-angular/e2e/nested-components/events.test.ts b/openvidu-components-angular/e2e/nested-components/events.test.ts index 1387300d96..b85bc07faf 100644 --- a/openvidu-components-angular/e2e/nested-components/events.test.ts +++ b/openvidu-components-angular/e2e/nested-components/events.test.ts @@ -91,18 +91,26 @@ describe('Testing EVENTS', () => { }); it('should receive the onFullscreenEnabledChanged event', async () => { - await browser.get(`${url}`); + try { + await browser.get(`${url}`); - await utils.clickOn('#ovToolbar-checkbox'); + await utils.clickOn('#ovToolbar-checkbox'); - await utils.clickOn('#apply-btn'); + await utils.clickOn('#apply-btn'); - await utils.checkToolbarIsPresent(); + await utils.checkToolbarIsPresent(); + + await utils.toggleFullscreenFromToolbar(); - await utils.toggleFullscreenFromToolbar(); + await browser.sleep(1000); - await utils.waitForElement('#onFullscreenEnabledChanged'); - expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true; + await utils.waitForElement('#onFullscreenEnabledChanged'); + expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true; + } catch (error) { + // log base64 screenshot for preview in browser + const screenshot = await browser.takeScreenshot(); + console.log('data:image/png;base64,' + screenshot); + } }); it('should receive the onRecordingStartRequested event', async () => {