Assign user roles test fix

Changing the conditionals for creating user and assigning roles. Should assist with the test issues
This commit is contained in:
Mitch-Budibase 2022-05-05 11:22:04 +01:00
parent 24e901d47e
commit c2d6b12749
1 changed files with 5 additions and 5 deletions

View File

@ -66,13 +66,13 @@ filterTests(["smoke", "all"], () => {
.then(() => {
cy.wait(1000)
if (i == 0) {
cy.get(".spectrum-Popover").contains("Admin").click()
cy.get(".spectrum-Menu").contains("Admin").click({ force: true })
}
if (i == 1) {
cy.get(".spectrum-Popover").contains("Power").click()
else if (i == 1) {
cy.get(".spectrum-Menu").contains("Power").click({ force: true })
}
if (i == 2) {
cy.get(".spectrum-Popover").contains("Basic").click()
else if (i == 2) {
cy.get(".spectrum-Menu").contains("Basic").click({ force: true })
}
cy.wait(1000)
cy.get(".spectrum-Button")