test dashboard back label
This commit is contained in:
parent
0bd2b357cf
commit
1d05bf7957
1 changed files with 5 additions and 1 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue