chore: try to fix e2e tests

This commit is contained in:
Alex Varchuk 2024-10-15 19:28:14 +02:00
parent 250771ff5b
commit ce8920213e
No known key found for this signature in database
GPG Key ID: 8A9260AE529FF454

View File

@ -53,6 +53,8 @@ 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)
@ -60,6 +62,7 @@ describe('Menu', () => {
.children('span[type="badge"]')
.should('have.text', 'Beta')
.should('be.visible');
cy.contains('h2 > span', 'Alpha')
.scrollIntoView()
.wait(100)
@ -67,6 +70,7 @@ describe('Menu', () => {
.children('span[type="badge"]')
.should('have.text', 'Alpha')
.should('be.visible');
cy.contains('h2 > span', 'Gamma')
.scrollIntoView()
.wait(100)