Commit 53c1d2c
committed
fix: Check existence earlier, than other characteristics like focused
BREAKING CHANGE: If more "is*" instructions are used, the order has been changed to prevent unnecessary blocks. Earlier, visibility was checked before other features, which could confuse the error reporting. The new order of evaluation of "is*" instruction reflects their importance. The instructions can be put to a single block, evaluated in the "natural" order and fail with the most important condition:
* isExisting
* isVisible
* isVisibleWithinViewport
* isEnabled
* isSelected
* isFocused
* isNotExisting
* isNotVisible
* isNotVisibleWithinViewport
* isNotEnabled
* isNotFocused
This is very unlikely to break anything in real-world commands, but still, better to be sure.1 parent 14c4723 commit 53c1d2c
3 files changed
+16
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | 306 | | |
308 | | - | |
309 | | - | |
310 | 307 | | |
311 | 308 | | |
312 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
313 | 312 | | |
314 | | - | |
315 | | - | |
316 | 313 | | |
317 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments