chore: try to fix e2e tests part 2

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

View File

@ -60,24 +60,21 @@ describe('Menu', () => {
.wait(100) .wait(100)
.get('[role=menuitem] > label.active') .get('[role=menuitem] > label.active')
.children('span[type="badge"]') .children('span[type="badge"]')
.should('have.text', 'Beta') .should('have.text', 'Beta');
.should('be.visible');
cy.contains('h2 > span', 'Alpha') cy.contains('h2 > span', 'Alpha')
.scrollIntoView() .scrollIntoView()
.wait(100) .wait(100)
.get('[role=menuitem] > label.active') .get('[role=menuitem] > label.active')
.children('span[type="badge"]') .children('span[type="badge"]')
.should('have.text', 'Alpha') .should('have.text', 'Alpha');
.should('be.visible');
cy.contains('h2 > span', 'Gamma') cy.contains('h2 > span', 'Gamma')
.scrollIntoView() .scrollIntoView()
.wait(100) .wait(100)
.get('[role=menuitem] > label.active') .get('[role=menuitem] > label.active')
.children('span[type="badge"]') .children('span[type="badge"]')
.should('have.text', 'Gamma') .should('have.text', 'Gamma');
.should('be.visible');
}); });
it('should contains Cat schema in Pet using x-tags', () => { it('should contains Cat schema in Pet using x-tags', () => {