Minor updates for cypress tests. Check that access filtering is reflected

This commit is contained in:
Dean 2022-04-08 10:29:19 +01:00
parent 27f231d41f
commit 3a563fe922
2 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,11 @@ filterTests(['smoke', 'all'], () => {
cy.get(".nav-item").contains("/table-four").click() cy.get(".nav-item").contains("/table-four").click()
cy.get(".nav-item").should('contain', 'table-four/:id') cy.get(".nav-item").should('contain', 'table-four/:id')
.and('contain', 'table-four/new/row') .and('contain', 'table-four/new/row')
//The access level should now be set to admin. Previous screens should be filtered.
cy.get(".nav-item").contains("/table-two").should('not.exist')
cy.get(".nav-item").contains("/cypress-tests").should('not.exist')
}) })
}) })

View File

@ -33,6 +33,8 @@ filterTests(["smoke", "all"], () => {
cy.get(".nav-items-container").within(() => { cy.get(".nav-items-container").within(() => {
cy.contains("/open-to-all").should("exist") cy.contains("/open-to-all").should("exist")
//The access level should now be set to admin. Previous screens should be filtered.
cy.get(".nav-item").contains("/test-screen").should('not.exist')
}) })
}) })
}) })