update test

pull/1/head
Rob Stupay 5 years ago
parent 567cc2b140
commit 2ba263cb7a
  1. 1
      test-browser/commands/executeScript.js
  2. 9
      test-browser/commands/journalLastChild.js
  3. 3
      test-browser/tests/console.js

@ -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(() => {
this.emit('complete')
})
this.api
.waitForElementVisible('#journal div:last-child span.text-info', 10000)
.assert.containsText('#journal div:last-child span.text-info', val).perform(() => {
this.emit('complete')
})
return this
}
}

@ -9,8 +9,7 @@ module.exports = {
'SimpleExecutionConsole': function (browser) {
browser
.waitForElementVisible('#terminalCli', 10000)
.executeScript(['\uE01B','\uE025','\uE01B','\uE006','\uE006','\uE006'])
.waitForElementVisible('#journal div:last-child span.text-info', 10000)
.executeScript('1+1')
.journalLastChild('2')
.end()
},

Loading…
Cancel
Save