diff --git a/cypress/integration/common/I_search_for_{string}.js b/cypress/integration/common/I_search_for_{string}.js index 9040de7d6..eaad481f7 100644 --- a/cypress/integration/common/I_search_for_{string}.js +++ b/cypress/integration/common/I_search_for_{string}.js @@ -1,8 +1,12 @@ import { When } from "cypress-cucumber-preprocessor/steps"; When("I search for {string}", value => { + cy.intercept({ + method: "POST", + url: "http://localhost:3000/api", + }).as("graphqlRequest"); cy.get(".searchable-input .ds-select input") .focus() - .type(value) - .wait(750); + .type(value); + cy.wait("@graphqlRequest"); }); \ No newline at end of file