-
Notifications
You must be signed in to change notification settings - Fork 0
Setup e2e #27
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
base: main
Are you sure you want to change the base?
Setup e2e #27
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
In my latest commit, I have added a few things that should help you with debugging. I've disabled headless mode, which opens the browser instances that you create in the test. This way, you can actually see what is happening in the test. I have also increased the timeout of the assertions in the test. It seems to default to 5 seconds, which doesn't give much time to inspect the browser and know what is happening before the test fails. I've also made it only run in one browser temporarily as having multiple browsers open is quite annoying when they all fail anyway. Finally, I believe the issue is happening because the application doesn't seem to reliably take the player into a game when the page is loaded. It takes them into the game sometimes and not all the time. This happens during manual testing too. So, your job now is to figure out why that's happening so the test passes |
|
I figured out why the test failed, which the second player couldn't join the game automatically after the first player selected the game mode. The test was trying to access the frontend via I changed the |
…st because more than the expected number of players in the server simultaneously
…and `GameMode` enum
I have found the problem. Last test didn't clean up the browser properly, as it should be |

No description provided.