Skip to content

Commit

Permalink
ov-components: Updated e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed May 24, 2024
1 parent cc44e74 commit f756e48
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
6 changes: 3 additions & 3 deletions openvidu-components-angular/e2e/angular.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => {

await browser.sleep(500);

await utils.waitForElement('.mat-menu-content');
await utils.waitForElement('.mat-mdc-menu-content');

// Checking if fullscreen button is not present
expect(await utils.isPresent('#fullscreen-btn')).to.be.false;
Expand All @@ -894,7 +894,7 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => {
await utils.clickOn('#more-options-btn');
await browser.sleep(500);

await utils.waitForElement('.mat-menu-content');
await utils.waitForElement('.mat-mdc-menu-content');

// Checking if fullscreen button is not present
expect(await utils.isPresent('#broadcasting-btn')).to.be.false;
Expand Down Expand Up @@ -1181,7 +1181,7 @@ describe('Testing EVENTS', () => {

await browser.sleep(500);

await utils.waitForElement('.mat-menu-content');
await utils.waitForElement('.mat-mdc-menu-content');

await utils.clickOn('#fullscreen-btn');

Expand Down
24 changes: 12 additions & 12 deletions openvidu-components-angular/e2e/webcomponent.pro.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -81,8 +81,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -199,8 +199,8 @@ describe('Testing captions features', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand All @@ -224,8 +224,8 @@ describe('Testing captions features', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -261,8 +261,8 @@ describe('Testing captions features', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -304,8 +304,8 @@ describe('Testing captions features', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand Down
80 changes: 40 additions & 40 deletions openvidu-components-angular/e2e/webcomponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#toolbar-settings-btn');
Expand Down Expand Up @@ -301,8 +301,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if fullscreen button is not present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;
expect(await utils.getNumberOfElements('#fullscreen-btn')).equals(0);

});
Expand All @@ -321,8 +321,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is not present
expect(await utils.isPresent('#captions-btn')).to.be.false;
Expand Down Expand Up @@ -351,8 +351,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if recording button is not present
expect(await utils.isPresent('#recording-btn')).to.be.false;
Expand All @@ -372,8 +372,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if broadcasting button is not present
expect(await utils.isPresent('#broadcasting-btn')).to.be.false;
Expand All @@ -393,8 +393,8 @@ describe('Testing API Directives', () => {
await browser.sleep(500);

// Checking if fullscreen button is not present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

expect(await utils.isPresent('#toolbar-settings-btn')).to.be.false;
});
Expand Down Expand Up @@ -796,7 +796,7 @@ describe('Testing videoconference EVENTS', () => {
await element.click();

// Clicking to fullscreen button
await utils.waitForElement('.mat-menu-content');
await utils.waitForElement('.mat-mdc-menu-content');

const fullscreenButton = await utils.waitForElement('#fullscreen-btn');
expect(await utils.isPresent('#fullscreen-btn')).to.be.true;
Expand Down Expand Up @@ -869,7 +869,7 @@ describe('Testing videoconference EVENTS', () => {
await browser.sleep(500);

// Clicking to recording button
await utils.waitForElement('.mat-menu-content');
await utils.waitForElement('.mat-mdc-menu-content');

await utils.waitForElement('#recording-btn');
expect(await utils.isPresent('#recording-btn')).to.be.true;
Expand All @@ -894,7 +894,7 @@ describe('Testing videoconference EVENTS', () => {

// await browser.sleep(500);

// await utils.waitForElement('.mat-menu-content');
// await utils.waitForElement('.mat-mdc-menu-content');

// await utils.waitForElement('#broadcasting-btn');
// await utils.clickOn('#broadcasting-btn');
Expand All @@ -916,7 +916,7 @@ describe('Testing videoconference EVENTS', () => {

// await browser.sleep(500);

// await utils.waitForElement('.mat-menu-content');
// await utils.waitForElement('.mat-mdc-menu-content');

// await utils.waitForElement('#broadcasting-btn');
// await utils.clickOn('#broadcasting-btn');
Expand Down Expand Up @@ -1150,8 +1150,8 @@ describe('Testing replace track with emulated devices', () => {
await utils.clickOn('#more-options-btn');

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

await utils.clickOn('#toolbar-settings-btn');

Expand Down Expand Up @@ -1556,8 +1556,8 @@ describe('Testing panels', () => {
await browser.sleep(500);

// Checking if mat menu is present
element = await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
element = await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Get settings button and click into it
const settingsBtn = await utils.waitForElement('#toolbar-settings-btn');
Expand Down Expand Up @@ -1631,8 +1631,8 @@ describe('Testing panels', () => {
await browser.sleep(500);

// Checking if mat menu is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Get settings button and click into it
const settingsBtn = await utils.waitForElement('#toolbar-settings-btn');
Expand Down Expand Up @@ -1917,8 +1917,8 @@ describe('Testing WITHOUT MEDIA DEVICES permissions', () => {
await browser.sleep(500);

// Checking if fullscreen button is not present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

await utils.clickOn('#toolbar-settings-btn');

Expand Down Expand Up @@ -1990,8 +1990,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

await utils.waitForElement('#virtual-bg-btn');
await utils.clickOn('#virtual-bg-btn');
Expand All @@ -2014,8 +2014,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

await utils.waitForElement('#toolbar-settings-btn');
expect(await utils.isPresent('#toolbar-settings-btn')).to.be.true;
Expand All @@ -2033,8 +2033,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
await browser.sleep(500);

// Checking if button panel is present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// Checking if captions button is present
await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -2086,8 +2086,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
// await browser.sleep(500);

// // Checking if button panel is present
// await utils.waitForElement('.mat-menu-content');
// expect(await utils.isPresent('.mat-menu-content')).to.be.true;
// await utils.waitForElement('.mat-mdc-menu-content');
// expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// // Checking if captions button is present
// await utils.waitForElement('#captions-btn');
Expand All @@ -2111,8 +2111,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
// await browser.sleep(500);

// // Checking if button panel is present
// await utils.waitForElement('.mat-menu-content');
// expect(await utils.isPresent('.mat-menu-content')).to.be.true;
// await utils.waitForElement('.mat-mdc-menu-content');
// expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// // Checking if captions button is present
// await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -2148,8 +2148,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
// await browser.sleep(500);

// // Checking if button panel is present
// await utils.waitForElement('.mat-menu-content');
// expect(await utils.isPresent('.mat-menu-content')).to.be.true;
// await utils.waitForElement('.mat-mdc-menu-content');
// expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// // Checking if captions button is present
// await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -2191,8 +2191,8 @@ describe('Testing PRO features with OpenVidu CE', () => {
// await browser.sleep(500);

// // Checking if button panel is present
// await utils.waitForElement('.mat-menu-content');
// expect(await utils.isPresent('.mat-menu-content')).to.be.true;
// await utils.waitForElement('.mat-mdc-menu-content');
// expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

// // Checking if captions button is present
// await utils.waitForElement('#captions-btn');
Expand Down Expand Up @@ -2300,8 +2300,8 @@ describe('Testing WITHOUT MEDIA DEVICES permissions', () => {
await browser.sleep(500);

// Checking if fullscreen button is not present
await utils.waitForElement('.mat-menu-content');
expect(await utils.isPresent('.mat-menu-content')).to.be.true;
await utils.waitForElement('.mat-mdc-menu-content');
expect(await utils.isPresent('.mat-mdc-menu-content')).to.be.true;

await utils.clickOn('#toolbar-settings-btn');

Expand Down

0 comments on commit f756e48

Please sign in to comment.