Merge pull request #4663 from Budibase/cypress-testing
Increasing wait times for Assign User Roles test
This commit is contained in:
commit
9baa4efc6c
|
@ -46,7 +46,7 @@ filterTests(['smoke', 'all'], () => {
|
||||||
cy.get(".spectrum-Table-body").eq(1).find('tr').eq(0).click()
|
cy.get(".spectrum-Table-body").eq(1).find('tr').eq(0).click()
|
||||||
cy.wait(500)
|
cy.wait(500)
|
||||||
cy.get(".spectrum-Dialog-grid").contains("Choose an option").click().then(() => {
|
cy.get(".spectrum-Dialog-grid").contains("Choose an option").click().then(() => {
|
||||||
cy.wait(500)
|
cy.wait(1000)
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
cy.get(".spectrum-Popover").contains("Admin").click()
|
cy.get(".spectrum-Popover").contains("Admin").click()
|
||||||
}
|
}
|
||||||
|
@ -56,12 +56,12 @@ filterTests(['smoke', 'all'], () => {
|
||||||
if (i == 2) {
|
if (i == 2) {
|
||||||
cy.get(".spectrum-Popover").contains("Basic").click()
|
cy.get(".spectrum-Popover").contains("Basic").click()
|
||||||
}
|
}
|
||||||
cy.wait(500)
|
cy.wait(1000)
|
||||||
cy.get(".spectrum-Button").contains("Update role").click({ force: true })
|
cy.get(".spectrum-Button").contains("Update role").click({ force: true })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// Confirm roles exist within Configure roles table
|
// Confirm roles exist within Configure roles table
|
||||||
cy.wait(500)
|
cy.wait(2000)
|
||||||
cy.get(".spectrum-Table-body").eq(0).within((assginedRoles) => {
|
cy.get(".spectrum-Table-body").eq(0).within((assginedRoles) => {
|
||||||
expect(assginedRoles).to.contain("Admin")
|
expect(assginedRoles).to.contain("Admin")
|
||||||
expect(assginedRoles).to.contain("Power")
|
expect(assginedRoles).to.contain("Power")
|
||||||
|
|
Loading…
Reference in New Issue