mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-01 02:49:52 +03:00
fix: fixed e2e tests for changed headings
This commit is contained in:
parent
840b2cb475
commit
54869d77f8
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user