Commit f331d1a0 authored by ioedeveloper's avatar ioedeveloper

Updated journalLastChildIncludes assertion and added loads terminal test.

parent 8930a042
......@@ -10,6 +10,7 @@ class JournalLastChildIncludes extends EventEmitter {
.getText('#journal > div:last-child', (result) => {
console.log('JournalLastChildIncludes', result.value)
if (result.value.indexOf(val) === -1) return this.api.assert.fail(`wait for ${val} in ${result.value}`)
else this.api.assert.ok(`<#journal > div:last-child> contains ${val}.`)
this.emit('complete')
})
return this
......
......@@ -28,6 +28,12 @@ module.exports = {
.waitForElementVisible('#main-panel div[class^="panel"] > div[class^="terminal_container"]:nth-child(2)')
},
'Loads terminal': function (browser) {
browser
.waitForElementVisible('#terminalCli', 10000)
.journalLastChildIncludes('Welcome to Remix');
},
'Toggles Side Panel': function (browser) {
browser.waitForElementVisible('#side-panel')
.assert.visible('#side-panel')
......
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