Stabilize sign in/sign up/chat tests
login/registration.spec.ts:91:7 › Registration tests › TESTS-397. Wrong email and correct password: I cannot log in
login/registration.spec.ts:80:7 › Registration tests › TESTS-396. Correct email and wrong password: I cannot log in
~~chat/chat.spec.ts:424:7 › Channel tests › User is able to leave and join a channel~~
It looks like the problem with all of the login tests is that there’s an async validation in Form.svelte which might race with submit that sets the error in the status and pending validation immediately resets the status to OK. So:
validation1…n triggered by login/password inputsvalidation1…m finished → status = OKsubmit→ status = “Wrong email or password…“ errorvalidationm+1…n → status = OK
Cannot read “Wrong email or password…“ error as it’s being reset almost immediately.
Connected to Huly®: UBERF-12227
None of them are easily reproducible locally.
Channel tests › User is able to leave and join a channel is hopefully fixed now, will watch.
Login tests might have become better but were still seeing flaky failures so will need to be improved further.
Login tests are still pretty flaky:
Consider splitting slow test files to speed up parallel execution
4 flaky
[QMS] › documents/ES-40.2.spec.ts:17:7 › login test › TESTS-392 - As a non workspace user account I cannot log into TraceX
[QMS] › documents/ES-40.2.spec.ts:22:7 › login test › TESTS-396 - Correct email and wrong password: I cannot log in
[QMS] › documents/ES-40.2.spec.ts:27:7 › login test › TESTS-397 - Wrong email and correct password: I cannot log in
[QMS] › login/registration.spec.ts:80:7 › Registration tests › TESTS-396. Correct email and wrong password: I cannot log in
Haven’t seen any failures related to these tests for a while. Closing for now.