Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Feb 4, 2024
1 parent bc5ca1c commit 85ebc50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/tests/components/vp-link.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ it('vp-link', () => {

cy.get(`.e2e-theme-content #active + ul > li`).each((el, index) => {
cy.wrap(el).within(() => {
if (index < 2) cy.get('a').should('have.attr', 'class', /vp-link-active/)
else cy.get('a').should('not.have.attr', 'class', /vp-link-active/)
if (index < 2)
cy.get('a').should('have.attr', 'class', 'vp-link vp-link-active')
else cy.get('a').should('not.have.attr', 'class', 'vp-link')
cy.get('a').should('have.text', 'text')
})
})
Expand Down

0 comments on commit 85ebc50

Please sign in to comment.