Updated journalLastChildIncludes assertion and added loads terminal test.

pull/5370/head
ioedeveloper 5 years ago
parent a5e39279a0
commit ffb576efed
  1. 1
      test-browser/commands/journalLastChildIncludes.js
  2. 6
      test-browser/tests/homepage.js

@ -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')

Loading…
Cancel
Save