Commit 9bd5123
authored
test: trash auth e2e tests have race condition on navigation (#15468)
### What
Two trash e2e tests for auth-enabled collections are flaky in CI:
"`Should properly disable auth fields in the trashed user edit view`"
and "`Should properly restore trashed user as draft`"
### Why
Race condition: both tests click a table row to navigate but don't wait
for navigation to complete before asserting on page elements. CI
environments can be slower, causing elements to not exist yet when the
assertions run.
### How
Added `await expect(page).toHaveURL(/\/users\/trash\/[a-f0-9]{24}$/)`
after row clicks to wait for navigation to complete before checking for
elements.1 parent 731037e commit 9bd5123
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
1104 | 1106 | | |
1105 | 1107 | | |
1106 | 1108 | | |
| |||
1116 | 1118 | | |
1117 | 1119 | | |
1118 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
1119 | 1123 | | |
1120 | 1124 | | |
1121 | 1125 | | |
| |||
0 commit comments