login as admin in admin text toggle cypress spec

This commit is contained in:
Yisroel Baum 2026-04-24 16:08:03 +03:00
parent 3ee6057978
commit e8fcac654b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -1,6 +1,7 @@
describe('Toggle display of child nodes', () => {
beforeEach(() => {
cy.exec('npm run db:seed')
cy.loginAsAdmin()
cy.intercept('GET', '/api/texts/0').as('getText')
cy.intercept('GET', '/api/nodes/0').as('getNodes')
cy.visit('/admin/texts/0')