Commit 66dc268
committed
Check fancySelect.choicesInstance is set
After merging of joomla#46621, Cypress System Tests fail more often (but not always)
with `(uncaught exception)TypeError: Cannot read properties of undefined (reading 'clearChoices')`.
However, investigations have shown that this also happened before, but not as often.
It appears that Cypress speeds up page loading and XHR timing, and with the newly added `onChange()`, this causes Cypress to fail with an uncaught exception.
This simple *hack* prevents the crash. If you have a better implemention, you are welcome to share it.1 parent bb2a150 commit 66dc268
File tree
1 file changed
+10
-2
lines changed1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
| |||
0 commit comments