1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00

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").should('contain', 'table-four/:id')
.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.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')
})
})
})