diff --git a/test-browser/commands/journalLastChildIncludes.js b/test-browser/commands/journalLastChildIncludes.js index 765a2847d6..056d5dd45a 100644 --- a/test-browser/commands/journalLastChildIncludes.js +++ b/test-browser/commands/journalLastChildIncludes.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 diff --git a/test-browser/tests/homepage.js b/test-browser/tests/homepage.js index 546c6be681..96aaa0886e 100644 --- a/test-browser/tests/homepage.js +++ b/test-browser/tests/homepage.js @@ -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')