Commit 78d5be6
authored
test: fix auth e2e test suite flakiness (#14655)
The `"richText field should should not be readOnly in create first user
view"` test was expecting no user to exist. However, the previous test
added a user, and the test suite was not reset in between tests.
The only way this test passed was after waiting to retry, during which
the database was reset. This test consistently fails at least one time.
Additionally, every time the auth test suite starts up, it would spam
the console with errors, as we were not waiting for compilation to be
done.
Example:
https://github.com/payloadcms/payload/actions/runs/19444977200/job/55637794191
Both issues are fixed in this PR.1 parent ab03163 commit 78d5be6
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
66 | | - | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| |||
0 commit comments