Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcialRosales committed Jul 25, 2023
1 parent d75769f commit 53caf21
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deps/rabbitmq_management/selenium/test/pageobjects/BasePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,20 @@ module.exports = class BasePage {
let table_model = []
for (const index in optionList) {
const t = await optionList[index].getText()
const v = await optionList[index].getAttribute('value')
const v = await optionList[index].getAttribute('value')
table_model.push({"text":t, "value": v})
}

return table_model
}

getSelectableVhosts() {
return getSelectableOptions(SELECT_VHOSTS)
async getSelectableVhosts() {
let table_model = await this.getSelectableOptions(SELECT_VHOSTS)
let new_table_model = []
for (let i = 0; i < table_model.length; i++) {
new_table_model.push(await table_model[i].text)
}
return new_table_model
}


Expand Down

0 comments on commit 53caf21

Please sign in to comment.