Reproduce issue

Select not to refresh
This commit is contained in:
Marcial Rosales 2024-05-14 11:59:36 +02:00
parent d893c8403b
commit 4323dcf120
2 changed files with 5 additions and 2 deletions

View File

@ -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()
})

View File

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