Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waitForActiveSubscription not waiting for sub update in Cypress #23

Open
kacper-rogowski-wttech opened this issue Jun 3, 2022 · 1 comment

Comments

@kacper-rogowski-wttech
Copy link

kacper-rogowski-wttech commented Jun 3, 2022

Hi,
I'm using this library to test apollo's subscription to our app. We doing everything according to documentation regarding the setup. But Cypress is unable to wait for the subscription to update. We tried both with async/await and with cy.wrap

        .then(() => (
          cy
            .log('Wait for subscription to return - Queued')
            .wrap(subActivityEntry.waitForActiveSubscription())
            .log('Subscription received data')
        ))

@niieani
Copy link
Contributor

niieani commented Jul 19, 2022

Hi Kacper!
Can you post more of your code, or ideally a reproduction of the problem in CodeSandbox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants