Commit 5240e99
Add negative assertions and selector_count to DOMTest
Component tests keep needing to assert that something is NOT on the
page (a closed panel, a cleared list), and until now every consuming
app hand-rolled querySelectorAll counting through JS.eval. DOMTest
gains assert_no_selector / assert_no_text as the natural counterparts
of the existing assertions, plus selector_count for cardinality
checks.
Verified against the tsunematsu app's picotest suite (76 tests).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 51ebffb commit 5240e99
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| |||
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
123 | 142 | | |
124 | 143 | | |
125 | 144 | | |
| |||
0 commit comments