Skip to content

Commit 3c86d79

Browse files
Include queue and streams suite to CI
1 parent 239299b commit 3c86d79

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

selenium/full-suite-management-ui

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ mgt/definitions.sh
1919
mgt/exchanges.sh
2020
mgt/limits.sh
2121
mgt/mgt-only-exchanges.sh
22+
mgt/queuesAndStreams.sh

selenium/short-suite-management-ui

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ authnz-mgt/oauth-with-uaa.sh
55
authnz-mgt/oauth-idp-initiated-with-uaa-and-prefix.sh
66
mgt/vhosts.sh
77
mgt/exchanges.sh
8+
mgt/queuesAndStreams.sh
89
mgt/limits.sh
910
mgt/amqp10-connections.sh

selenium/test/pageobjects/BasePage.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ module.exports = class BasePage {
6868
await this.driver.sleep(250)
6969
return this.waitForDisplayed(ADMIN_TAB)
7070
}
71-
async clickOnOverviewTab () {
72-
return this.click(OVERVIEW_TAB)
73-
}
71+
7472
async clickOnChannelsTab () {
7573
return this.click(CHANNELS_TAB)
7674
}
@@ -154,6 +152,16 @@ module.exports = class BasePage {
154152
} catch(e) {
155153
return Promise.resolve(false)
156154
}
155+
/*
156+
let element = await driver.findElement(FORM_POPUP)
157+
return this.driver.wait(until.elementIsVisible(element), this.timeout / 2,
158+
'Timed out after [timeout=' + this.timeout + ';polling=' + this.polling + '] awaiting till visible ' + element,
159+
this.polling / 2).then(function onWarningVisible(e) {
160+
return Promise.resolve(true)
161+
}, function onError(e) {
162+
return Promise.resolve(false)
163+
})
164+
*/
157165
}
158166

159167
async isPopupWarningNotDisplayed() {
@@ -251,10 +259,8 @@ module.exports = class BasePage {
251259
try {
252260
return this.waitForVisible(await this.waitForLocated(locator))
253261
}catch(error) {
254-
console.log("Error: " + error)
255262
if (error.name.includes("StaleElementReferenceError")) {
256263
retry = true
257-
console.error("Failed to StaleElementReferenceError " + locator + " due to " + error)
258264
}else if (!error.name.includes("NoSuchSessionError")) {
259265
retry = false
260266
console.error("Failed to waitForDisplayed " + locator + " due to " + error)

selenium/test/pageobjects/QueuesAndStreamsPage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = class QueuesAndStreamsPage extends BasePage {
4040
}
4141
async filterQueues(filterValue) {
4242
await this.waitForDisplayed(FILTER_BY_QUEUE_NAME)
43-
await this.waitForDisplayed(FILTER_BY_QUEUE_NAME)
44-
return this.sendKeys(FILTER_BY_QUEUE_NAME, filterValue + Key.RETURN)
43+
return this.sendKeys(FILTER_BY_QUEUE_NAME, filterValue + Key.RETURN)
44+
4545
}
4646
}

selenium/test/queuesAndStreams/management.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe('Queues and Streams management', function () {
4444
await queuesAndStreams.ensureAddQueueSectionIsVisible()
4545
let queueName = "test_" + Math.floor(Math.random() * 1000)
4646
await queuesAndStreams.fillInAddNewQueue({"name" : queueName})
47+
await delay(1000)
4748
await queuesAndStreams.filterQueues(queueName)
4849
let table = await queuesAndStreams.getQueuesTable(5)
4950
assert.equal(1, table.length)

0 commit comments

Comments
 (0)