Skip to content

Commit

Permalink
ov-components: Toggle fullscreen in e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Jul 29, 2024
1 parent d52dc9b commit c8a7784
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions openvidu-components-angular/e2e/nested-components/events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit c8a7784

Please sign in to comment.