test dashboard back label

This commit is contained in:
Yisroel Baum 2026-08-15 22:40:40 +03:00
parent 0bd2b357cf
commit 1d05bf7957
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -69,7 +69,11 @@ describe('set element layout', () => {
cy.location('pathname').should('equal', '/sets/41') cy.location('pathname').should('equal', '/sets/41')
cy.get('h1').should('have.text', 'Bible') cy.get('h1').should('have.text', 'Bible')
cy.contains('a', 'Back to sets').should('have.attr', 'href', '/dashboard') cy.contains('a', 'Back to dashboard').should(
'have.attr',
'href',
'/dashboard',
)
cy.get('ol[aria-label="Bible element layout"] > li').then(($nodes) => { cy.get('ol[aria-label="Bible element layout"] > li').then(($nodes) => {
expect([...$nodes].map((node) => node.dataset.elementId)).to.deep.equal([ expect([...$nodes].map((node) => node.dataset.elementId)).to.deep.equal([
'1', '1',