Commit c02a3173 authored by LianaHus's avatar LianaHus Committed by ioedeveloper

added command

parent dfaa3c28
......@@ -139,7 +139,6 @@
"ethereumjs-tx": "^2.1.2",
"ethereumjs-vm": "4.1.3",
"http-server": "^0.11.1",
"npm-install-version": "^6.0.2",
"time-stamp": "^2.2.0",
"winston": "^3.3.3"
},
......@@ -221,6 +220,7 @@
"nanohtml": "^1.6.3",
"nightwatch": "^1.3.5",
"notify-error": "^1.2.0",
"npm-install-version": "^6.0.2",
"npm-link-local": "^1.1.0",
"npm-merge-driver": "^2.3.5",
"npm-run-all": "^4.0.2",
......
const EventEmitter = require('events')
class NoWorkerErrorFor extends EventEmitter {
command (version, content) {
this.api.perform((done) => {
noWorkerErrorFor(this.api, version, content, () => {
done()
this.emit('complete')
})
})
return this
}
}
function noWorkerErrorFor (browser, version, done) {
browser
.clickLaunchIcon('solidity')
.setSolidityCompilerVersion(version)
.waitForElementPresent('*[data-id="compiledErrors"]')
.notContainsText('*[data-id="compiledErrors"]', 'worker error:undefined')
.notContainsText('*[data-id="compiledErrors"]', 'Uncaught RangeError: Maximum call stack size exceeded')
.notContainsText('*[data-id="compiledErrors"]', 'RangeError: Maximum call stack size exceeded')
.perform(function (done) {
done()
})
}
module.exports = NoWorkerErrorFor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment