Skip to content

Commit

Permalink
chore: try to fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk committed Oct 15, 2024
1 parent 8a929fc commit 649ffd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/integration/menu.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,24 @@ describe('Menu', () => {
});

it('should contains badge schema from x-badges', () => {
cy.contains('h2', 'Add a new pet to the store').scrollIntoView();

cy.contains('h2 > span', 'Beta')
.scrollIntoView()
.wait(100)
.get('[role=menuitem] > label.active')
.children('span[type="badge"]')
.should('have.text', 'Beta')
.should('be.visible');

cy.contains('h2 > span', 'Alpha')
.scrollIntoView()
.wait(100)
.get('[role=menuitem] > label.active')
.children('span[type="badge"]')
.should('have.text', 'Alpha')
.should('be.visible');

cy.contains('h2 > span', 'Gamma')
.scrollIntoView()
.wait(100)
Expand Down

0 comments on commit 649ffd6

Please sign in to comment.