Browse Source

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

master
Dean 5 years ago
parent
commit
3a563fe922
  1. 5
      packages/builder/cypress/integration/autoScreensUI.spec.js
  2. 2
      packages/builder/cypress/integration/createScreen.js

5
packages/builder/cypress/integration/autoScreensUI.spec.js

@ -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')
})
})

2
packages/builder/cypress/integration/createScreen.js

@ -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…
Cancel
Save