rename route for nodes and adjust calls to route
This commit is contained in:
parent
adc72961d0
commit
f5a8b8447f
4 changed files with 6 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ describe('The admin page', () => {
|
|||
|
||||
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.intercept('GET', '/api/nodes/0').as('getNodes')
|
||||
cy.wait('@getNodes')
|
||||
cy.get('#text-detail > ul > li > ul > li').should('have.length', 1)
|
||||
})
|
||||
|
|
@ -37,7 +37,7 @@ describe('The admin page', () => {
|
|||
cy.visit('/admin/texts')
|
||||
cy.get('#newTextName').type('My Node Text')
|
||||
cy.get('#submit').click()
|
||||
cy.intercept('GET', '/api/texts/1/nodes').as('getNodes')
|
||||
cy.intercept('GET', '/api/nodes/1').as('getNodes')
|
||||
cy.get('a').contains('My Node Text').click()
|
||||
cy.wait('@getNodes')
|
||||
cy.get('#text-detail > ul').should('have.length', 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue