diff --git a/cypress/e2e/admin.cy.js b/cypress/e2e/admin.cy.js index 393b2b4..e2a3b4e 100644 --- a/cypress/e2e/admin.cy.js +++ b/cypress/e2e/admin.cy.js @@ -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')