|
1 | 1 | import { expect } from 'chai'; |
2 | 2 | import { Builder, By, WebDriver } from 'selenium-webdriver'; |
3 | 3 |
|
4 | | -import { AngularConfig } from '../selenium.conf'; |
| 4 | +import { NestedConfig } from '../selenium.conf'; |
5 | 5 | import { OpenViduComponentsPO } from '../utils.po.test'; |
6 | 6 |
|
7 | | -const url = AngularConfig.appUrl; |
| 7 | +const url = NestedConfig.appUrl; |
8 | 8 |
|
9 | 9 | describe('Testing TOOLBAR STRUCTURAL DIRECTIVES', () => { |
10 | 10 | let browser: WebDriver; |
11 | 11 | let utils: OpenViduComponentsPO; |
12 | 12 | async function createChromeBrowser(): Promise<WebDriver> { |
13 | 13 | return await new Builder() |
14 | | - .forBrowser(AngularConfig.browserName) |
15 | | - .withCapabilities(AngularConfig.browserCapabilities) |
16 | | - .setChromeOptions(AngularConfig.browserOptions) |
17 | | - .usingServer(AngularConfig.seleniumAddress) |
| 14 | + .forBrowser(NestedConfig.browserName) |
| 15 | + .withCapabilities(NestedConfig.browserCapabilities) |
| 16 | + .setChromeOptions(NestedConfig.browserOptions) |
| 17 | + .usingServer(NestedConfig.seleniumAddress) |
18 | 18 | .build(); |
19 | 19 | } |
20 | 20 |
|
@@ -147,10 +147,10 @@ describe('Testing PANEL STRUCTURAL DIRECTIVES', () => { |
147 | 147 |
|
148 | 148 | async function createChromeBrowser(): Promise<WebDriver> { |
149 | 149 | return await new Builder() |
150 | | - .forBrowser(AngularConfig.browserName) |
151 | | - .withCapabilities(AngularConfig.browserCapabilities) |
152 | | - .setChromeOptions(AngularConfig.browserOptions) |
153 | | - .usingServer(AngularConfig.seleniumAddress) |
| 150 | + .forBrowser(NestedConfig.browserName) |
| 151 | + .withCapabilities(NestedConfig.browserCapabilities) |
| 152 | + .setChromeOptions(NestedConfig.browserOptions) |
| 153 | + .usingServer(NestedConfig.seleniumAddress) |
154 | 154 | .build(); |
155 | 155 | } |
156 | 156 |
|
@@ -669,10 +669,10 @@ describe('Testing LAYOUT STRUCTURAL DIRECTIVES', () => { |
669 | 669 |
|
670 | 670 | async function createChromeBrowser(): Promise<WebDriver> { |
671 | 671 | return await new Builder() |
672 | | - .forBrowser(AngularConfig.browserName) |
673 | | - .withCapabilities(AngularConfig.browserCapabilities) |
674 | | - .setChromeOptions(AngularConfig.browserOptions) |
675 | | - .usingServer(AngularConfig.seleniumAddress) |
| 672 | + .forBrowser(NestedConfig.browserName) |
| 673 | + .withCapabilities(NestedConfig.browserCapabilities) |
| 674 | + .setChromeOptions(NestedConfig.browserOptions) |
| 675 | + .usingServer(NestedConfig.seleniumAddress) |
676 | 676 | .build(); |
677 | 677 | } |
678 | 678 |
|
@@ -767,10 +767,10 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => { |
767 | 767 |
|
768 | 768 | async function createChromeBrowser(): Promise<WebDriver> { |
769 | 769 | return await new Builder() |
770 | | - .forBrowser(AngularConfig.browserName) |
771 | | - .withCapabilities(AngularConfig.browserCapabilities) |
772 | | - .setChromeOptions(AngularConfig.browserOptions) |
773 | | - .usingServer(AngularConfig.seleniumAddress) |
| 770 | + .forBrowser(NestedConfig.browserName) |
| 771 | + .withCapabilities(NestedConfig.browserCapabilities) |
| 772 | + .setChromeOptions(NestedConfig.browserOptions) |
| 773 | + .usingServer(NestedConfig.seleniumAddress) |
774 | 774 | .build(); |
775 | 775 | } |
776 | 776 |
|
@@ -1049,31 +1049,4 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => { |
1049 | 1049 |
|
1050 | 1050 | expect(await utils.isPresent('ov-broadcasting-activity')).to.be.false; |
1051 | 1051 | }); |
1052 | | - |
1053 | | - it('should SHOW STREAMING ERROR', async () => { |
1054 | | - await browser.get(`${url}`); |
1055 | | - |
1056 | | - await utils.clickOn('#ovActivitiesPanel-checkbox'); |
1057 | | - |
1058 | | - await utils.clickOn('#broadcastingError-checkbox'); |
1059 | | - |
1060 | | - await utils.clickOn('#apply-btn'); |
1061 | | - |
1062 | | - await utils.checkToolbarIsPresent(); |
1063 | | - |
1064 | | - await utils.clickOn('#activities-panel-btn'); |
1065 | | - |
1066 | | - await browser.sleep(500); |
1067 | | - |
1068 | | - await utils.waitForElement('#custom-activities-panel'); |
1069 | | - |
1070 | | - const status = await utils.waitForElement('#broadcasting-status'); |
1071 | | - |
1072 | | - expect(await status.getAttribute('innerText')).equals('FAILED'); |
1073 | | - |
1074 | | - await utils.clickOn('#broadcasting-activity'); |
1075 | | - await browser.sleep(500); |
1076 | | - const error = await utils.waitForElement('#broadcasting-error'); |
1077 | | - expect(await error.getAttribute('innerText')).equals('TEST_ERROR'); |
1078 | | - }); |
1079 | 1052 | }); |
0 commit comments