diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 6d627e631..4a30efca3 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -174,11 +174,11 @@ Cypress.Commands.add('closeLeftMenu', (element) => { Cypress.Commands.add('clearSearchbar', (element) => { if (element) cy.waitForElement(element); - cy.get('#searchbar > form > label > div:nth-child(1) input').clear(); + cy.get('#searchbar > form > div:nth-child(1) > label > div:nth-child(1) input').clear(); }); Cypress.Commands.add('writeSearchbar', (value) => { - cy.get('#searchbar > form > label > div:nth-child(1) input').type(value); + cy.get('#searchbar > form > div:nth-child(1) > label > div:nth-child(1) input').type(value); }); Cypress.Commands.add('validateContent', (selector, expectedValue) => { cy.get(selector).should('have.text', expectedValue);