remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/test-browser/commands/journalLastChild.js

15 lines
387 B

const EventEmitter = require('events')
class JournalLastChild extends EventEmitter {
command (val) {
5 years ago
this.api
.waitForElementVisible('*[data-id="terminalJournal"] > div:last-child', 10000)
.assert.containsText('*[data-id="terminalJournal"] > div:last-child', val).perform(() => {
this.emit('complete')
})
return this
}
}
module.exports = JournalLastChild