@ -5,6 +5,7 @@ class ExecuteScript extends EventEmitter {
this.api
.click('#terminalCli')
.keys(script)
.keys(this.api.Keys.ENTER)
.perform(() => {
this.emit('complete')
})
@ -2,10 +2,11 @@ const EventEmitter = require('events')
class JournalLastChild extends EventEmitter {
command (val) {
this.api.assert.containsText('#journal div:last-child span.text-info', val).perform(() => {
.waitForElementVisible('#journal div:last-child span.text-info', 10000)
.assert.containsText('#journal div:last-child span.text-info', val).perform(() => {
return this
}
@ -9,8 +9,7 @@ module.exports = {
'SimpleExecutionConsole': function (browser) {
browser
.waitForElementVisible('#terminalCli', 10000)
.executeScript(['\uE01B','\uE025','\uE01B','\uE006','\uE006','\uE006'])
.executeScript('1+1')
.journalLastChild('2')
.end()
},