fix initial test data expectations to match seed data

This commit is contained in:
Yisroel Baum 2026-04-23 09:45:25 +03:00
parent 70f0574330
commit c8c901a306
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -13,15 +13,15 @@ describe('The admin text detail page', () => {
})
it('shows the text name as a heading', () => {
cy.get('h1').should('contain', 'test text')
cy.get('h1').should('contain', 'Tanach')
})
it('shows the root node', () => {
cy.get('#text-detail li').first().should('contain', 'Chapter 1')
cy.get('#text-detail li').first().should('contain', 'Tanach')
})
it('shows a child node under the root node', () => {
cy.get('#text-detail > ul > li > ul > li').should('contain', 'Section 1.1')
cy.get('#text-detail > ul > li > ul > li').should('contain', 'Torah')
})
it('shows an "Add child" button on each node', () => {