1
0
Fork 0
mirror of synced 2024-09-10 22:46:09 +12:00

Moving assign/unassign user role type tests to test env only

The assign roles test seems to be quite flakey.

I am moving it and the unassign roles test to only run in the test environment while i isolate and fix the issue
This commit is contained in:
Mitch-Budibase 2022-03-29 18:32:36 +01:00
parent f8f8d3c9cb
commit 760a746c7d

View file

@ -26,6 +26,7 @@ filterTests(["smoke", "all"], () => {
cy.get(".spectrum-Table").eq(0).contains("No rows found")
})
if (Cypress.env("TEST_ENV")) {
it("should assign role types", () => {
// 3 apps minimum required - to assign an app to each role type
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
@ -122,6 +123,7 @@ filterTests(["smoke", "all"], () => {
// Confirm Configure roles table no longer has any apps in it
cy.get(".spectrum-Table").eq(0).contains("No rows found")
})
}
it("should enable Developer access", () => {
// Enable Developer access