diff --git a/frontend/website/cypress/e2e/set-layout.cy.ts b/frontend/website/cypress/e2e/set-layout.cy.ts index eab270a..aad6b24 100644 --- a/frontend/website/cypress/e2e/set-layout.cy.ts +++ b/frontend/website/cypress/e2e/set-layout.cy.ts @@ -8,7 +8,7 @@ const bibleLayout = { levels: [ { id: 1, kind: 'book', depth: 0, elementCount: 2 }, { id: 2, kind: 'portion', depth: 1, elementCount: 2 }, - { id: 3, kind: 'chapter', depth: 2, elementCount: 1 }, + { id: 3, kind: 'Chapter_sections-v2', depth: 2, elementCount: 1 }, ], elements: [ { @@ -26,7 +26,7 @@ const bibleLayout = { { id: 4, name: 'Chapter 1', - kind: 'chapter', + kind: 'Chapter_sections-v2', levelId: 3, children: [], }, @@ -90,7 +90,9 @@ describe('set element layout', () => { .and('have.attr', 'data-element-id', '4') cy.contains('.element-node__card', 'Chapter 1') .should('be.visible') - .and('contain.text', 'chapter') + .find('.element-node__kind') + .should('have.text', 'Chapter_sections-v2') + .and('have.css', 'text-transform', 'none') }) it('shows loading and empty layout states', () => {