From c8a778499c2f3722e1230dab2b70ea927bde6de0 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Mon, 29 Jul 2024 13:27:43 +0200 Subject: [PATCH] ov-components: Toggle fullscreen in e2e --- .../e2e/nested-components/events.test.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/openvidu-components-angular/e2e/nested-components/events.test.ts b/openvidu-components-angular/e2e/nested-components/events.test.ts index 1387300d96..114a3ae1e9 100644 --- a/openvidu-components-angular/e2e/nested-components/events.test.ts +++ b/openvidu-components-angular/e2e/nested-components/events.test.ts @@ -101,8 +101,15 @@ describe('Testing EVENTS', () => { await utils.toggleFullscreenFromToolbar(); - await utils.waitForElement('#onFullscreenEnabledChanged'); - expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true; + try { + await utils.waitForElement('#onFullscreenEnabledChanged'); + expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true; + } catch (error) { + browser.takeScreenshot().then((screen) => { + // log the screenshot in base64 to be able to see it in chrome + console.log('data:image/png;base64,' + screen); + }); + } }); it('should receive the onRecordingStartRequested event', async () => {