From 99aec2fffd53d7c7ed1230310fc19d11427991a1 Mon Sep 17 00:00:00 2001 From: Depickere Sven Date: Wed, 22 Feb 2023 09:58:10 +0100 Subject: [PATCH] test(): Fix tests --- e2e/integration/search.e2e.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/integration/search.e2e.ts b/e2e/integration/search.e2e.ts index 35b30dbb..152bd8ac 100644 --- a/e2e/integration/search.e2e.ts +++ b/e2e/integration/search.e2e.ts @@ -1,7 +1,7 @@ describe('Search', () => { const getSearchInput = () => cy.get('[role="search"] input'); const getSearchResults = () => cy.get('[data-role="search:results"]'); - const getResult = i => cy.get('[role=search] [role=menuitem]').eq(i); + const getResult = i => cy.get('[role=search] [role=menuitem]').eq(i).find('label'); beforeEach(() => { cy.visit('e2e/standalone.html'); @@ -45,7 +45,7 @@ describe('Search', () => { getSearchInput().type('{enter}', { force: true }); - cy.contains('[role=menu] [role=menuitem]', 'Introduction').should('have.class', 'active'); + cy.contains('[role=menu] [role=menuitem] label', 'Introduction').should('have.class', 'active'); }); it('should mark search results', () => {