parent
32ae568157
commit
a13feb3e45
@ -0,0 +1,15 @@ |
||||
const EventEmitter = require('events') |
||||
|
||||
class ExecuteScript extends EventEmitter { |
||||
command (script) { |
||||
this.api |
||||
.click('#terminalCli') |
||||
.keys(script) |
||||
.perform(() => { |
||||
this.emit('complete') |
||||
}) |
||||
return this |
||||
} |
||||
} |
||||
|
||||
module.exports = ExecuteScript |
@ -0,0 +1,13 @@ |
||||
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') |
||||
}) |
||||
return this |
||||
} |
||||
} |
||||
|
||||
module.exports = JournalLastChild |
@ -0,0 +1,18 @@ |
||||
'use strict' |
||||
var init = require('../helpers/init') |
||||
var sauce = require('./sauce') |
||||
|
||||
module.exports = { |
||||
before: function (browser, done) { |
||||
init(browser, done) |
||||
}, |
||||
'SimpleExecutionConsole': function (browser) { |
||||
browser |
||||
.waitForElementVisible('#terminalCli', 10000) |
||||
.executeScript(['\uE01B','\uE025','\uE01B','\uE006','\uE006','\uE006']) |
||||
.waitForElementVisible('#journal div:last-child span.text-info', 10000) |
||||
.journalLastChild('2') |
||||
.end() |
||||
}, |
||||
tearDown: sauce |
||||
} |
Loading…
Reference in new issue