mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
wait for network to be idle in cypress tests
This commit is contained in:
parent
b2b9ebc400
commit
18288efa1b
@ -51,7 +51,7 @@ Cypress.Commands.add(
|
||||
(graphQLClient, mutation, variables, response) => {
|
||||
return new Cypress.Promise(async (resolve, reject) => {
|
||||
const response = await graphQLClient.request(mutation, variables)
|
||||
console.log('Cypress command mutate:', data)
|
||||
console.log('Cypress command mutate:', response)
|
||||
graphQLClient.request(mutation, variables).then(() => resolve(graphQLClient))
|
||||
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user