test child node of root node exists
This commit is contained in:
parent
1fb5307062
commit
c99e1eeeb5
1 changed files with 7 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue