mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
waiting command
This commit is contained in:
parent
64a83a7a63
commit
877f436313
@ -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");
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user