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

Start writing some frontend tests #1184

Open
razzeee opened this issue Mar 4, 2023 · 4 comments
Open

Start writing some frontend tests #1184

razzeee opened this issue Mar 4, 2023 · 4 comments

Comments

@razzeee
Copy link
Contributor

razzeee commented Mar 4, 2023

Probably using https://nextjs.org/docs/testing#jest-and-react-testing-library

@Claudio-code
Copy link

@razzeee What are the main components of the frontend that should be tested more?

@razzeee
Copy link
Contributor Author

razzeee commented Jul 12, 2023

Btw, I would probably look at playwright and not cypress, but it's been a while.

I'm actually not too sure, I can't think of anything specific, that keeps breaking, but tests usually help you anyway. I would guess, that the logged in part would have the most value, but it's probably also the hardest to do.

@Claudio-code
Copy link

Claudio-code commented Jul 13, 2023

So the login tests should focus on the ProviderLink component that redirects to the provider's login route, right?

@Claudio-code
Copy link

@razzeee maded one pr with some tests to login, i try remove duplicate code and organize tests but i not have much experience with jest if you can review

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

2 participants