More Selenium suite updates
This commit is contained in:
parent
f4aed7a55e
commit
f54b2906bd
|
@ -29,7 +29,7 @@ describe('administrator user without any vhosts permissions', function () {
|
|||
await overview.waitForQueuesTab()
|
||||
await overview.waitForExchangesTab()
|
||||
await overview.waitForAdminTab()
|
||||
await overview.waitForStreamTab()
|
||||
await overview.waitForStreamConnectionsTab()
|
||||
})
|
||||
it('can access all Admin menu options', async function () {
|
||||
await overview.clickOnAdminTab()
|
||||
|
|
|
@ -28,7 +28,7 @@ describe('management user without any vhosts permissions', function () {
|
|||
assert.rejects(overview.waitForQueuesTab())
|
||||
assert.rejects(overview.waitForExchangesTab())
|
||||
assert.rejects(overview.waitForAdminTab())
|
||||
assert.rejects(overview.waitForStreamTab())
|
||||
assert.rejects(overview.waitForStreamConnectionsTab())
|
||||
})
|
||||
|
||||
it('cannot see nor choose any available vhost', async function () {
|
||||
|
|
|
@ -29,7 +29,7 @@ describe('monitoring user without any vhosts permissions', function () {
|
|||
await overview.waitForQueuesTab()
|
||||
await overview.waitForExchangesTab()
|
||||
await overview.waitForAdminTab()
|
||||
await overview.waitForStreamTab()
|
||||
await overview.waitForStreamConnectionsTab()
|
||||
})
|
||||
it('can access all Admin menu options', async function () {
|
||||
await overview.clickOnAdminTab()
|
||||
|
|
|
@ -11,7 +11,7 @@ const CHANNELS_TAB = By.css('div#menu ul#tabs li#channels')
|
|||
const QUEUES_AND_STREAMS_TAB = By.css('div#menu ul#tabs li#queues-and-streams')
|
||||
const EXCHANGES_TAB = By.css('div#menu ul#tabs li#exchanges')
|
||||
const ADMIN_TAB = By.css('div#menu ul#tabs li#admin')
|
||||
const STREAM_CONNECTIONS_TAB = By.css('div#menu ul#tabs li#stream')
|
||||
const STREAM_CONNECTIONS_TAB = By.css('div#menu ul#tabs li#stream-connections')
|
||||
|
||||
module.exports = class BasePage {
|
||||
driver
|
||||
|
@ -83,7 +83,7 @@ module.exports = class BasePage {
|
|||
async clickOnStreamTab () {
|
||||
return this.click(STREAM_CONNECTIONS_TAB)
|
||||
}
|
||||
async waitForStreamTab() {
|
||||
async waitForStreamConnectionsTab() {
|
||||
return this.waitForDisplayed(STREAM_CONNECTIONS_TAB)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue