Minor updates for cypress tests. Check that access filtering is reflected
This commit is contained in:
parent
3890977ad0
commit
fe9f3aeafc
|
@ -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')
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue