chaynHQ / bloom-frontend

Code for the for the frontend of the Bloom service.
https://bloom.chayn.co/
MIT License
24 stars 38 forks source link

Fix auth tests: refactor userToken -> userId #994

Closed annarhughes closed 2 weeks ago

annarhughes commented 2 weeks ago

What changes did you make?

Refactor use of userToken state to userId. The user id is set after the user database record is set in state, but listening to userToken will create a race condition becuse there is a delay between token being set (login) and retrieving the user profile. Fixes partner admin redirect test

Why did you make the changes?

vercel[bot] commented 2 weeks ago

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

Name Status Preview Comments Updated (UTC)
bloom-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 0:42am
cypress[bot] commented 2 weeks ago

Passing run #504 ↗︎

0 33 2 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

add wait to email reminder test
Project: Bloom frontend Commit: 51df72703e
Status: Passed Duration: 05:24 💡
Started: Jun 25, 2024 12:54 PM Ended: Jun 25, 2024 12:59 PM

Review all test suite changes for PR #994 ↗︎