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 this.api
.click('#terminalCli') .click('#terminalCli')
.keys(script) .keys(script)
.keys(this.api.Keys.ENTER)
.perform(() => { .perform(() => {
this.emit('complete') this.emit('complete')
}) })

@ -2,10 +2,11 @@ const EventEmitter = require('events')
class JournalLastChild extends EventEmitter { class JournalLastChild extends EventEmitter {
command (val) { command (val) {
this.api
this.api.assert.containsText('#journal div:last-child span.text-info', val).perform(() => { .waitForElementVisible('#journal div:last-child span.text-info', 10000)
this.emit('complete') .assert.containsText('#journal div:last-child span.text-info', val).perform(() => {
}) this.emit('complete')
})
return this return this
} }
} }

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

Loading…
Cancel
Save