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

E2E testing for components #132

Open
AnatoleLucet opened this issue Sep 12, 2023 · 0 comments
Open

E2E testing for components #132

AnatoleLucet opened this issue Sep 12, 2023 · 0 comments

Comments

@AnatoleLucet
Copy link
Collaborator

Even though we have a few tests for the src/lib/ folder - which contains essential internals - we also need to test the rendering of the components when added to the map.

I tried to setup visual regression testing with Vitest and JSDom (see #130 (comment)) but it seems to be a dead end as Google Maps won't render in JSDom.

@MicheleBertoli is currently exploring Cypress, which seems more promising #130 (comment)

One question stands, how can we test animated components? Visual regression in JSDom with the right thresholds seemed like a good option IMO, but it won't work. Maybe the current unit tests are enough, since animated components inherits from base components?

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

1 participant