wait for network to be idle in cypress tests

This commit is contained in:
mahula 2023-05-26 10:47:35 +02:00
parent b2b9ebc400
commit 18288efa1b

View File

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