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:
Yisroel Baum 2026-05-02 21:47:20 +03:00
parent 6d11f7e887
commit 71e5fb8fda
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 114 additions and 0 deletions

View file

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