From 649ffd65d40a8d5a07c544eb10d8fdbbfc99deb7 Mon Sep 17 00:00:00 2001 From: Alex Varchuk Date: Tue, 15 Oct 2024 19:28:14 +0200 Subject: [PATCH] chore: try to fix e2e tests --- e2e/integration/menu.e2e.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/integration/menu.e2e.ts b/e2e/integration/menu.e2e.ts index 51788a524..91a56630b 100644 --- a/e2e/integration/menu.e2e.ts +++ b/e2e/integration/menu.e2e.ts @@ -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)