fix: fixed e2e tests for changed headings

This commit is contained in:
Max Krumpe 2024-04-25 11:31:53 +02:00
parent 840b2cb475
commit 54869d77f8

View File

@ -8,7 +8,7 @@ describe('Menu', () => {
});
it('should sync active menu items while scroll', () => {
cy.contains('h1', 'Introduction')
cy.contains('h2', 'Introduction')
.scrollIntoView()
.get('[role=menuitem] > label.active')
.should('have.text', 'Introduction');
@ -35,7 +35,7 @@ describe('Menu', () => {
cy.contains('h1', 'Swagger Petstore').scrollIntoView().wait(100);
cy.contains('h1', 'Introduction')
cy.contains('h2', 'Introduction')
.scrollIntoView()
.wait(100)
.get('[role=menuitem] > label.active')