Skip to content

Conversation

@Mateusz-Dobrzynski
Copy link
Member

@Mateusz-Dobrzynski Mateusz-Dobrzynski commented Mar 11, 2025

Resolves #107. Since this feature will be crucial for integrating with the tournament planner, all code introduced by this PR is covered with e2e tests.

Now, while Playwright is a great testing library, it still has some issues. I had to stabilize many of my tests, because Playwright acted too fast and performed actions before the page could fully load. For instance, most interactive elements are initially rendered with default values (e.g. empty motion text box) and are filled with proper content (e.g. motion parsed from URL) after a short time window. For the end user, this is barely noticeable, but playwright often jumps right in the middle of that time window, snatching default values and what not, causing the tests to fail. I made several decisions regarding explicit waits and double-checks that I'm not proud of, but I was determined to write reliable tests, while keeping these questionable practices at a minimum.

@Mateusz-Dobrzynski Mateusz-Dobrzynski self-assigned this Mar 11, 2025
@Mateusz-Dobrzynski Mateusz-Dobrzynski linked an issue Mar 11, 2025 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Mar 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
debate-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2025 11:13am

@Mateusz-Dobrzynski Mateusz-Dobrzynski marked this pull request as draft March 13, 2025 10:26
@Mateusz-Dobrzynski
Copy link
Member Author

I've found a bug of URL overlap when copying debate config more than once. A fix is underway.

- URL overlap when copying motion more than once
- URL params/config fields discrepancies
- predefined clock images not working as parameters
@Mateusz-Dobrzynski
Copy link
Member Author

As it turns out, even TDD can overlook some edge cases. I shudder to think what Lovecraftian monstrosities would be hiding in this PR, if it wasn't for the tests…

image

@Mateusz-Dobrzynski Mateusz-Dobrzynski marked this pull request as ready for review March 13, 2025 11:20
@jakubmanczak jakubmanczak merged commit 6a1b7dc into master Nov 21, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

Debate configuration links

3 participants