-
Notifications
You must be signed in to change notification settings - Fork 25
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
feature request: passing subject from previous chained command to waitUntil #40
Comments
Thank you @peetjvv for the suggestion! Definitely we must add it! I'm pretty busy at the moment so I won't add it in the next days, would you like to submit a PR with that? |
I was planning on giving it a go and submitting a PR myself, but I'm also quite busy atm unfortunately |
@peetjvv I've just implemented and released it (1.4.0), let me know if it works for you and if you need something more 😉 |
@NoriSte v1.4.0 is working perfectly. It even works with my ideal solution that I wanted to use originally: cy.getStore().waitUntil(store => !!Object.keys(store.getState().things).length)); Thanks for your help, speedy updates and nice new tests! |
You're welcome ❤️ |
unfortunately the chaining only seems works for me with |
Ok, let me know if we can do something for you (or how you solved it). I have just read the Travis log and there is nothing wrong about |
It would be nice if I can pass the subject from the previous command in the chain of cypress commands into my checkfunction without having to use .then like this:
It would be ideal if I can do something like this:
The text was updated successfully, but these errors were encountered: