Skip to content

Commit

Permalink
Merge branch 'gh-pages' into too-verbose-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fippo authored Apr 6, 2022
2 parents 8b73e06 + 3cf0c18 commit 527ac04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/content/datachannel/datatransfer/js/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let driver;
const path = '/src/content/datachannel/datatransfer/index.html';
const url = `${process.env.BASEURL ? process.env.BASEURL : ('file://' + process.cwd())}${path}`;

describe.skip('datachannel datatransfer', () => {
describe('datachannel datatransfer', () => {
before(() => {
driver = seleniumHelpers.buildDriver();
});
Expand Down
19 changes: 4 additions & 15 deletions src/content/devices/input-output/js/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
/* eslint-env node, mocha */
'use strict';

const webdriver = require('selenium-webdriver');
const seleniumHelpers = require('../../../../../test/webdriver');
const {expect} = require('chai');

let driver;
const path = '/src/content/devices/input-output/index.html';
const url = `${process.env.BASEURL ? process.env.BASEURL : ('file://' + process.cwd())}${path}`;

describe.skip('input-output', () => {
describe('input-output', () => {
before(() => {
driver = seleniumHelpers.buildDriver();
});
Expand All @@ -30,32 +28,23 @@ describe.skip('input-output', () => {

it('shows at least one audio input device', async () => {
await driver.wait(driver.executeScript(() => {
window.stream !== undefined; // eslint-disable-line no-undef
return document.getElementById('audioSource').childElementCount > 0;
}));
const numberOfSources = await driver.findElement(webdriver.By.id('audioSource'))
.getAttribute('childElementCount');
expect(numberOfSources >>> 0).to.be.above(0);
});

it('shows at least one video input device', async () => {
await driver.wait(driver.executeScript(() => {
window.stream !== undefined; // eslint-disable-line no-undef
return document.getElementById('videoSource').childElementCount > 0;
}));
const numberOfSources = await driver.findElement(webdriver.By.id('videoSource'))
.getAttribute('childElementCount');
expect(numberOfSources >>> 0).to.be.above(0);
});

it('shows at least one audio output device device', async function() {
if (process.env.BROWSER === 'firefox') {
this.skip();
}
await driver.wait(driver.executeScript(() => {
window.stream !== undefined; // eslint-disable-line no-undef
return document.getElementById('audioOutput').childElementCount > 0;
}));
const numberOfSinks = await driver.findElement(webdriver.By.id('audioOutput'))
.getAttribute('childElementCount');
expect(numberOfSinks >>> 0).to.be.above(0);
});
});

2 changes: 1 addition & 1 deletion src/content/peerconnection/pc1/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/pc1/index.html';
const url = `${process.env.BASEURL ? process.env.BASEURL : ('file://' + process.cwd())}${path}`;

describe.skip('simple peerconnection', () => {
describe('simple peerconnection', () => {
before(() => {
driver = seleniumHelpers.buildDriver();
});
Expand Down
2 changes: 1 addition & 1 deletion src/content/peerconnection/trickle-ice/js/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Trickle-Ice', () => {
return driver.executeScript(() => localStorage.clear());
});

it.skip('gathers a candidate', async () => {
it('gathers a candidate', async () => {
await driver.findElement(webdriver.By.id('gather')).click();
await driver.wait(() => driver.executeScript(() => pc === null && candidates.length > 0), 30 * 1000); // eslint-disable-line no-undef
});
Expand Down

0 comments on commit 527ac04

Please sign in to comment.