mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Upgrade webdriverio to v6
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user