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 frontend testing for react components #1548

Open
SaptakS opened this issue Dec 2, 2022 · 0 comments
Open

Add frontend testing for react components #1548

SaptakS opened this issue Dec 2, 2022 · 0 comments
Assignees

Comments

@SaptakS
Copy link
Contributor

SaptakS commented Dec 2, 2022

We already have some basic react components in the filter sidebar and charts. So I think we can start adding tests to catch some of the errors by JS unittesting. We might need to add further integration tests (or end-to-end tests). I think we can use jest and react-testing-library to write most of the unittest (it technically does integration tests for react components since it actually checks the dom generated, but not an E2E test with the backend). For an E2E testing further we can consider selenium or cypress maybe.

I think the deliverable for this issue can be to test all the react components used in the sidebar to prevent issues like #1546

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