test verbatim layout kinds
This commit is contained in:
parent
00cfeebb9a
commit
2101ab50d2
1 changed files with 5 additions and 3 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue