mirror of https://github.com/OpenVidu/openvidu.git
ov-components: Fixed fullscreen e2e test
parent
d52dc9b6cf
commit
7b560b447c
|
@ -58,8 +58,10 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
- name: Run Browserless Chrome
|
# - name: Run Browserless Chrome
|
||||||
run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
|
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
|
||||||
|
- name: Run Chrome
|
||||||
|
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
|
||||||
- name: Run openvidu-local-deployment
|
- name: Run openvidu-local-deployment
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
|
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
|
||||||
|
@ -111,8 +113,10 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
- name: Run Browserless Chrome
|
# - name: Run Browserless Chrome
|
||||||
run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
|
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
|
||||||
|
- name: Run Chrome
|
||||||
|
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
|
||||||
- name: Run openvidu-local-deployment
|
- name: Run openvidu-local-deployment
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
|
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
|
||||||
|
@ -164,8 +168,10 @@ jobs:
|
||||||
# uses: actions/setup-node@v4
|
# uses: actions/setup-node@v4
|
||||||
# with:
|
# with:
|
||||||
# node-version: '20'
|
# node-version: '20'
|
||||||
# - name: Run Browserless Chrome
|
# - name: Run Browserless Chrome
|
||||||
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
|
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
|
||||||
|
# - name: Run Chrome
|
||||||
|
# run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
|
||||||
# - name: Run openvidu-local-deployment
|
# - name: Run openvidu-local-deployment
|
||||||
# run: |
|
# run: |
|
||||||
# git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
|
# git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
|
||||||
|
|
|
@ -101,6 +101,8 @@ describe('Testing EVENTS', () => {
|
||||||
|
|
||||||
await utils.toggleFullscreenFromToolbar();
|
await utils.toggleFullscreenFromToolbar();
|
||||||
|
|
||||||
|
await browser.sleep(1000);
|
||||||
|
|
||||||
await utils.waitForElement('#onFullscreenEnabledChanged');
|
await utils.waitForElement('#onFullscreenEnabledChanged');
|
||||||
expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true;
|
expect(await utils.isPresent('#onFullscreenEnabledChanged')).to.be.true;
|
||||||
});
|
});
|
||||||
|
|
|
@ -56,7 +56,7 @@ export const WebComponentConfig: BrowserConfig = {
|
||||||
|
|
||||||
export const NestedConfig: BrowserConfig = {
|
export const NestedConfig: BrowserConfig = {
|
||||||
appUrl: 'http://localhost:4200/#/testing',
|
appUrl: 'http://localhost:4200/#/testing',
|
||||||
seleniumAddress: LAUNCH_MODE === 'CI' ? 'http://localhost:3000/webdriver' : '',
|
seleniumAddress: LAUNCH_MODE === 'CI' ? 'http://localhost:4444/wd/hub' : '',
|
||||||
browserName: 'Chrome',
|
browserName: 'Chrome',
|
||||||
browserCapabilities: Capabilities.chrome().set('acceptInsecureCerts', true),
|
browserCapabilities: Capabilities.chrome().set('acceptInsecureCerts', true),
|
||||||
browserOptions: new chrome.Options().addArguments(...(LAUNCH_MODE === 'CI' ? chromeArgumentsCI : chromeArguments))
|
browserOptions: new chrome.Options().addArguments(...(LAUNCH_MODE === 'CI' ? chromeArgumentsCI : chromeArguments))
|
||||||
|
|
|
@ -123,9 +123,9 @@ export class OpenViduComponentsPO {
|
||||||
// Open more options menu
|
// Open more options menu
|
||||||
await this.toggleToolbarMoreOptions();
|
await this.toggleToolbarMoreOptions();
|
||||||
|
|
||||||
const fullscreenButton = await this.waitForElement('#fullscreen-btn');
|
await this.waitForElement('#fullscreen-btn');
|
||||||
expect(await this.isPresent('#fullscreen-btn')).to.be.true;
|
expect(await this.isPresent('#fullscreen-btn')).to.be.true;
|
||||||
await fullscreenButton.click();
|
await this.clickOn('#fullscreen-btn');
|
||||||
}
|
}
|
||||||
|
|
||||||
async togglePanel(panelName: string) {
|
async togglePanel(panelName: string) {
|
||||||
|
|
Loading…
Reference in New Issue