Ocelot-Social/cypress/integration/common/I_search_for_{string}.js
2021-04-12 19:19:30 +02:00

12 lines
315 B
JavaScript

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);
cy.wait("@graphqlRequest");
});