platform icon indicating copy to clipboard operation
platform copied to clipboard

Stabilize sign in/sign up/chat tests

Open lexiv0re opened this issue 1 year ago • 4 comments

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:

  1. validation 1…n triggered by login/password inputs
  2. validation 1…m finished → status = OK
  3. submit → status = “Wrong email or password…“ error
  4. validation m+1…n → status = OK

Cannot read “Wrong email or password…“ error as it’s being reset almost immediately.

lexiv0re avatar Jul 07 '25 10:07 lexiv0re

Connected to Huly®: UBERF-12227

huly-github-staging avatar Jul 07 '25 10:07 huly-github-staging

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.

lexiv0re avatar Jul 14 '25 06:07 lexiv0re

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

lexiv0re avatar Jul 14 '25 07:07 lexiv0re

Haven’t seen any failures related to these tests for a while. Closing for now.

lexiv0re avatar Aug 19 '25 10:08 lexiv0re