Commit 62508ca
authored
test: fix flaky toast assertions in draft validation tests (#14615)
### What?
The test "should keep save draft button enabled after validation failure
on update" was intermittently failing in CI with:
```
Error: strict mode violation: locator('.payload-toast-container .toast-error') resolved to 2 elements
```
This occurred because the test clicks the save draft button twice in
quick succession to verify it remains enabled after validation failures.
In slower CI environments, both error toasts were visible
simultaneously, causing Playwright's strict mode to fail.1 parent 89ab526 commit 62508ca
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
0 commit comments