mirror of
https://github.com/Redocly/redoc.git
synced 2025-09-24 13:06:42 +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', () => {
|
it('should sync active menu items while scroll', () => {
|
||||||
cy.contains('h1', 'Introduction')
|
cy.contains('h2', 'Introduction')
|
||||||
.scrollIntoView()
|
.scrollIntoView()
|
||||||
.get('[role=menuitem] > label.active')
|
.get('[role=menuitem] > label.active')
|
||||||
.should('have.text', 'Introduction');
|
.should('have.text', 'Introduction');
|
||||||
|
@ -35,7 +35,7 @@ describe('Menu', () => {
|
||||||
|
|
||||||
cy.contains('h1', 'Swagger Petstore').scrollIntoView().wait(100);
|
cy.contains('h1', 'Swagger Petstore').scrollIntoView().wait(100);
|
||||||
|
|
||||||
cy.contains('h1', 'Introduction')
|
cy.contains('h2', 'Introduction')
|
||||||
.scrollIntoView()
|
.scrollIntoView()
|
||||||
.wait(100)
|
.wait(100)
|
||||||
.get('[role=menuitem] > label.active')
|
.get('[role=menuitem] > label.active')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user