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

Frontend tests #39

Open
foxfriends opened this issue Jan 16, 2021 · 0 comments
Open

Frontend tests #39

foxfriends opened this issue Jan 16, 2021 · 0 comments
Labels
frontend Requires updating the frontend (JS/Svelte) code

Comments

@foxfriends
Copy link
Owner

I have had a good time with Cypress for frontend testing. Set up Cypress and use it to write tests for the frontend.

There's not tons to test so far, mostly just the lobby flow. The difficulty is that multiple clients will need to be running at once to test interactions. We will need to stub the server's socket endpoint (maybe with mock-socket) instead of actually hitting the server.

@foxfriends foxfriends added the frontend Requires updating the frontend (JS/Svelte) code label Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Requires updating the frontend (JS/Svelte) code
Projects
None yet
Development

No branches or pull requests

1 participant