tijlleenders / ZinZen

Better together - an app to realize dreams together.
https://ZinZen.me
GNU Affero General Public License v3.0
45 stars 64 forks source link

Tijl/ /fix playwright #2049

Closed tijlleenders closed 1 month ago

tijlleenders commented 2 months ago

The Playwright tests haven't been running for a while. That's just not right.
Hope this fixes it.

vercel[bot] commented 2 months ago

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

Name Status Preview Updated (UTC)
zinzen ✅ Ready (Inspect) Visit Preview Oct 6, 2024 8:56am
vinaybadgujar102 commented 1 month ago

@tijlleenders, The tests are back to green! ✅

tijlleenders commented 1 month ago

🎉🎊!!!

Can you explain the issue?

vinaybadgujar102 commented 1 month ago

Firstly, test was very flaky and would fail at various different points, mostly while waiting for request/response and interacting with modals. I tried different techniques like using retries, waiting for network to be idle, and waiting for modal to appear. I also made the tests run in headed mode in CI/CD. Additionally, I tried different assertions to check if the shared goal was being updated correctly and chose the most robust one.

tijlleenders commented 1 month ago

@vinaybadgujar102 That's great. Well done!

What is the best methid you chose?
Can we go (or are we already) back to headless mode?

vinaybadgujar102 commented 1 month ago

What is the best methid you chose?

Its situation based like for the modal thing, wait for the modal to be visible on viewport then do next steps. Earlier we used to share the first goal from the starter goals. Now new goal is created and then shared between the users to remove the assertion conflicts which were arising previously related to goal titles.

Can we go (or are we already) back to headless mode?

We are currently running in headed mode only. I will check if we can move back to headless mode.

vinaybadgujar102 commented 1 month ago

@tijlleenders headless is also working fine

tijlleenders commented 1 month ago

Ok, great! We can merge then.