@controlla/cli
Version:
Command line interface for rapid Controlla projects development
32 lines (30 loc) • 765 B
JavaScript
/* eslint-disable */
// For authoring Nightwatch tests, see
// http://nightwatchjs.org/guide#usage
module.exports = {
'Login': browser => {
browser
.url(process.env.VUE_DEV_SERVER_URL)
.waitForElementVisible('#app', 5000)
.assert.elementPresent('form')
.setValue('input[type=text]', 'admin@example.com')
.setValue('input[type=password]', 'admin')
.click('button')
.pause(5000)
.assert.elementPresent('.dashboard')
},
'Users': browser => {
browser
.useXpath()
.click("//a[normalize-space()='Usuarios']")
.useCss()
.pause(5000)
.assert.elementPresent('.crud')
.assert.containsText('.heading h2', 'Usuarios:')
},
// New Test
'End': browser => {
browser
.end()
}
}