mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
waiting command
This commit is contained in:
parent
d5fa1bda00
commit
1edef05fec
@ -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