Upgrade webdriverio to v6

This commit is contained in:
Rachel Fenichel
2020-09-21 17:42:26 -07:00
parent 469d7f507f
commit 70f518985a
3 changed files with 23 additions and 13 deletions

View File

@@ -39,9 +39,10 @@ async function runLangGeneratorInBrowser(browser, filename, codegenFn) {
*/
async function runGeneratorsInBrowser() {
var options = {
capabilities: {
browserName: 'firefox'
}
capabilities: {
browserName: 'firefox'
},
path: '/wd/hub'
};
// Run in headless mode on Travis.
if (process.env.TRAVIS_CI) {

View File

@@ -19,9 +19,10 @@ module.exports = runMochaTestsInBrowser;
*/
async function runMochaTestsInBrowser() {
var options = {
capabilities: {
browserName: 'chrome'
}
capabilities: {
browserName: 'chrome'
},
path: '/wd/hub'
};
// Run in headless mode on Travis.
if (process.env.TRAVIS_CI) {
@@ -40,7 +41,10 @@ async function runMochaTestsInBrowser() {
var elem = await browser.$('#failureCount');
var text = await elem.getAttribute('tests_failed');
return text != 'unset';
}, 33000);
}
, {
timeout: 50000
});
const elem = await browser.$('#failureCount');
const numOfFailure = await elem.getAttribute('tests_failed');