parent
d893c8403b
commit
4323dcf120
|
@ -22,6 +22,7 @@ describe('When a logged in user', function () {
|
|||
it('logs out', async function () {
|
||||
await loginPage.login('guest', 'guest')
|
||||
await overview.isLoaded()
|
||||
await overview.selectRefreshOption("Do not refresh")
|
||||
await overview.logout()
|
||||
await loginPage.isLoaded()
|
||||
})
|
||||
|
|
|
@ -4,7 +4,7 @@ const MENU_TABS = By.css('div#menu ul#tabs')
|
|||
const USER = By.css('li#logout')
|
||||
const LOGOUT_FORM = By.css('li#logout form')
|
||||
const SELECT_VHOSTS = By.css('select#show-vhost')
|
||||
|
||||
const SELECT_REFRESH = By.css('ul#topnav li#interval select#update-every')
|
||||
const OVERVIEW_TAB = By.css('div#menu ul#tabs li#overview')
|
||||
const CONNECTIONS_TAB = By.css('div#menu ul#tabs li#connections')
|
||||
const CHANNELS_TAB = By.css('div#menu ul#tabs li#channels')
|
||||
|
@ -36,7 +36,9 @@ module.exports = class BasePage {
|
|||
async getUser () {
|
||||
return this.getText(USER)
|
||||
}
|
||||
|
||||
async selectRefreshOption(option) {
|
||||
return this.selectOption(SELECT_REFRESH, option)
|
||||
}
|
||||
async waitForOverviewTab() {
|
||||
return this.waitForDisplayed(OVERVIEW_TAB)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue