add cypress coverage for user text pages
loginAsSecondUser helper backs new specs that cover the
/texts list (own-only scoping, create form, link to
/texts/{id}) and /texts/{id} detail (own access, 403 on
another user's text, owner can add a child node).
This commit is contained in:
parent
6d11f7e887
commit
71e5fb8fda
3 changed files with 114 additions and 0 deletions
|
|
@ -13,3 +13,7 @@ Cypress.Commands.add('loginAsAdmin', () => {
|
|||
Cypress.Commands.add('loginAsUser', () => {
|
||||
cy.login('user@example.com', 'password1')
|
||||
})
|
||||
|
||||
Cypress.Commands.add('loginAsSecondUser', () => {
|
||||
cy.login('user2@example.com', 'password2')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue