More Selenium suite updates

This commit is contained in:
Michael Klishin 2023-06-10 23:21:32 +04:00
parent f4aed7a55e
commit f54b2906bd
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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