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

Add Cypress E2E tests #6

Open
bahmutov opened this issue Sep 4, 2019 · 3 comments
Open

Add Cypress E2E tests #6

bahmutov opened this issue Sep 4, 2019 · 3 comments

Comments

@bahmutov
Copy link

bahmutov commented Sep 4, 2019

Let me find a moment

@RobertBroersma
Copy link

RobertBroersma commented Sep 12, 2019

After reading @davidkpiano's article on CSS Tricks I tried it out in our React app with Jest. Works like a charm!

Great stuff!

Then I tried implementing it in Cypress, but I ran into issues with running Cyptess commands inside promises (I'm guessing because path.test returns a promise). Curious to see how you would go about this!

@rjdestigter
Copy link

I tried really hard to make this work with Cypress for intercepting network requests but no luck. It's also pretty verbose as you have to return a new Cypress.Promise in every test and even handler. You can check it out here https://github.com/rjdestigter/xstate-test-demo/tree/feature/cypress

@rjdestigter
Copy link

I actually got it to work by looking at how cypress-unfetch polyfills.

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

No branches or pull requests

3 participants