Merge pull request #4295 from google/dependabot/npm_and_yarn/develop/webdriverio-6.5.2

Bump webdriverio from 5.22.4 to 6.5.2
This commit is contained in:
Rachel Fenichel
2020-09-21 17:49:44 -07:00
committed by GitHub
4 changed files with 610 additions and 138 deletions

728
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -77,7 +77,7 @@
"selenium-standalone": "^6.17.0",
"through2": "^4.0.2",
"typescript-closure-tools": "^0.0.7",
"webdriverio": "^5.22.4",
"webdriverio": "^6.5.2",
"yargs": "^16.0.3"
},
"dependencies": {

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,9 @@ 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');