1
0
Fork 0
mirror of synced 2024-09-17 17:57:47 +12:00

Merge pull request #5162 from Budibase/cypress-testing

Moving assign/unassign user role type tests to test env only
This commit is contained in:
Mitch-Budibase 2022-03-30 12:38:38 +01:00 committed by GitHub
commit f67f2ce29b

View file

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