|
|
@ -8,12 +8,11 @@ module.exports = function (browser, callback, url, preloadPlugins = true) { |
|
|
|
.injectScript('test-browser/helpers/applytestmode.js', function () { |
|
|
|
.injectScript('test-browser/helpers/applytestmode.js', function () { |
|
|
|
browser.fullscreenWindow(() => { |
|
|
|
browser.fullscreenWindow(() => { |
|
|
|
if (preloadPlugins) { |
|
|
|
if (preloadPlugins) { |
|
|
|
|
|
|
|
console.log('preloadPlugins: ', preloadPlugins) |
|
|
|
initModules(browser, () => { |
|
|
|
initModules(browser, () => { |
|
|
|
browser.clickLaunchIcon('solidity') |
|
|
|
browser.clickLaunchIcon('solidity') |
|
|
|
.pause(2000) |
|
|
|
.waitForElementPresent('[for="autoCompile"]') |
|
|
|
.execute(() => { |
|
|
|
.click('[for="autoCompile"]') |
|
|
|
document.getElementById('autoCompile').click() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|