test(): Fix tests

This commit is contained in:
Depickere Sven 2023-02-22 09:58:10 +01:00
parent dd6299b612
commit 99aec2fffd

View File

@ -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', () => {