test child node of root node exists

This commit is contained in:
Yisroel Baum 2026-04-17 10:58:32 +03:00
parent 1fb5307062
commit c99e1eeeb5
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -26,6 +26,13 @@ describe('The admin page', () => {
cy.contains('Test Text')
})
it('shows one root node and child node on the seeded text page', () => {
cy.visit('/admin/texts/0')
cy.intercept('GET', '/api/texts/0/nodes').as('getNodes')
cy.wait('@getNodes')
cy.get('#text-detail > ul > li > ul > li').should('have.length', 1)
})
it('shows one root node on the text page', () => {
cy.visit('/admin/texts')
cy.get('#newTextName').type('My Node Text')