Merge branch 'swap_it' of https://github.com/ethereum/remix-ide into swap_it
commit
55ba1f23b5
@ -1,12 +1,31 @@ |
||||
var helpers = require('./contracts') |
||||
|
||||
module.exports = function (browser, callback) { |
||||
browser.clickLaunchIcon = helpers.clickLaunchIcon |
||||
browser |
||||
.url('http://127.0.0.1:8080/#version=builtin') |
||||
.injectScript('test-browser/helpers/applytestmode.js', function () { |
||||
browser.resizeWindow(2560, 1440, () => { |
||||
browser.click('#autoCompile') |
||||
initModules(browser, () => { |
||||
browser.clickLaunchIcon('solidity').click('#autoCompile') |
||||
.perform(function () { |
||||
callback() |
||||
}) |
||||
}) |
||||
}) |
||||
}) |
||||
} |
||||
|
||||
function initModules (browser, callback) { |
||||
browser.click('#icon-panel div[title="plugin manager"]') |
||||
.execute(function () { |
||||
document.querySelector('div[title="plugin manager"]').scrollTop = document.querySelector('div[title="plugin manager"]').scrollHeight |
||||
}, [], function () { |
||||
browser.click('#pluginManager div[title="solidity"] button') |
||||
.click('#pluginManager div[title="run transactions"] button') |
||||
.click('#pluginManager div[title="solidity static analysis"] button') |
||||
.click('#pluginManager div[title="debugger"] button') |
||||
.click('#icon-panel div[title="file explorers"]') |
||||
.perform(() => { callback() }) |
||||
}) |
||||
} |
||||
|
Loading…
Reference in new issue