Skip to content

Commit

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

0 comments on commit ade37f1

Please sign in to comment.