Skip to content

Commit c8a7784

Browse files
committed
ov-components: Toggle fullscreen in e2e
1 parent d52dc9b commit c8a7784

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

openvidu-components-angular/e2e/nested-components/events.test.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,15 @@ describe('Testing EVENTS', () => {
101101

102102
await utils.toggleFullscreenFromToolbar();
103103

104-
await utils.waitForElement('#onFullscreenEnabledChanged');
105-
expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true;
104+
try {
105+
await utils.waitForElement('#onFullscreenEnabledChanged');
106+
expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true;
107+
} catch (error) {
108+
browser.takeScreenshot().then((screen) => {
109+
// log the screenshot in base64 to be able to see it in chrome
110+
console.log('data:image/png;base64,' + screen);
111+
});
112+
}
106113
});
107114

108115
it('should receive the onRecordingStartRequested event', async () => {

0 commit comments

Comments
 (0)