From c99e1eeeb5553df057f86152178b29a68665cf84 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 17 Apr 2026 10:58:32 +0300 Subject: [PATCH] test child node of root node exists --- cypress/e2e/admin.cy.js | 7 +++++++ 1 file changed, 7 insertions(+) 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')