Merge branch 'fix/set-back-label'

This commit is contained in:
Yisroel Baum 2026-08-15 23:02:52 +03:00
commit 1b12447c78
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 6 additions and 2 deletions

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',

View file

@ -55,7 +55,7 @@ function toggleElement(elementId: number): void {
<section class="set-layout"> <section class="set-layout">
<RouterLink class="back-link" :to="{ name: 'dashboard' }"> <RouterLink class="back-link" :to="{ name: 'dashboard' }">
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
Back to sets Back to dashboard
</RouterLink> </RouterLink>
<p v-if="loading" class="layout-state" role="status">Loading set layout...</p> <p v-if="loading" class="layout-state" role="status">Loading set layout...</p>