waiting command

This commit is contained in:
Ulf Gebhardt 2021-04-12 19:19:30 +02:00
parent 64a83a7a63
commit 877f436313
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -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");
});