mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
12 lines
315 B
JavaScript
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");
|
|
}); |