Skip to content

Commit

Permalink
Merge pull request webrtc#1544 from fippo/unskip-test
Browse files Browse the repository at this point in the history
upgrade: enable e2e test
  • Loading branch information
fippo authored Apr 25, 2022
2 parents 0e58ed5 + 2b65320 commit 9ff988f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/content/peerconnection/upgrade/js/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let driver;
const path = '/src/content/peerconnection/upgrade/index.html';
const url = `${process.env.BASEURL ? process.env.BASEURL : ('file://' + process.cwd())}${path}`;

describe.skip('peerconnection upgrade from audio-only to audio-video', () => {
describe('peerconnection upgrade from audio-only to audio-video', () => {
before(() => {
driver = seleniumHelpers.buildDriver();
});
Expand All @@ -32,17 +32,20 @@ describe.skip('peerconnection upgrade from audio-only to audio-video', () => {
await driver.wait(() => driver.executeScript(() => {
return localStream !== null; // eslint-disable-line no-undef
}));
await driver.wait(() => driver.findElement(webdriver.By.id('callButton')).isEnabled());
await driver.findElement(webdriver.By.id('callButton')).click();

await driver.wait(() => driver.executeScript(() => {
return pc2 && pc2.connectionState === 'connected'; // eslint-disable-line no-undef
}));

await driver.wait(() => driver.findElement(webdriver.By.id('upgradeButton')).isEnabled());
await driver.findElement(webdriver.By.id('upgradeButton')).click();
await driver.wait(() => driver.executeScript(() => {
return remoteVideo.videoWidth > 0; // eslint-disable-line no-undef
}));

await driver.wait(() => driver.findElement(webdriver.By.id('hangupButton')).isEnabled());
await driver.findElement(webdriver.By.id('hangupButton')).click();
await driver.wait(() => driver.executeScript(() => {
return pc1 === null; // eslint-disable-line no-undef
Expand Down

0 comments on commit 9ff988f

Please sign in to comment.