Commit 10d7761
committed
New actions and variations of existing actions
New variations:
- `check` now can check an element inside another element
- *e.g.,* `When I check <#foo> inside <#bar>
- *e.g.,* `When I check "Hello" in <#bar>
- `uncheck` now can uncheck an element inside another element
- *e.g.,* `When I uncheck <#foo> inside <#bar>
- *e.g.,* `When I uncheck "Hello" in <#bar>
- `click` now can click an element inside another element
- *e.g.,* `When I click <#foo> inside <#bar>
- *e.g.,* `When I click "Hello" in <#bar>
- `doubleClick` now can click an element inside another element
- *e.g.,* `When I double click <#foo> inside <#bar>
- *e.g.,* `When I double click "Hello" in <#bar>
- all the `wait` options now accept seconds
- *e.g.,* `When I wait 3 seconds for the url "/foo"
- *e.g.,* `When I wait 5 seconds for <#foo> to be visible
- *e.g.,* `When I wait 3 seconds for {Bar} to be enabled
etc.
- New actions:
- accept
- *e.g.,* `When I accept the alert`
- *e.g.,* `When I accept the confirmation`
- *e.g.,* `When I accept the popup`
- *e.g.,* `When I accept the prompt`
- cancel
- *e.g.,* `When I cancel the alert`
- *e.g.,* `When I cancel the confirmation`
- *e.g.,* `When I cancel the popup`
- *e.g.,* `When I cancel the prompt`
- switch to a tag by number
- *e.g.,* `When I switch to the tab 3`
- switch to the next tab
- *e.g.,* `When I switch to the next tab`
- switch to the previous tab
- *e.g.,* `When I switch to the previous tab`
- wait to hide
- *e.g.,* `When I wait <#foo> to hide`
- *e.g.,* `When I wait 3 seconds for <#foo> to hide`
- wait for value
- *e.g.,* `When I wait for the value "foo" in <#bar>`
- *e.g.,* `When I wait 3 seconds for the value "foo" in <#bar>`
- wait for a number of visible elements
- *e.g.,* `When I wait <#foo> to have 3 visible elements`1 parent ea029b8 commit 10d7761
File tree
16 files changed
+2048
-429
lines changed- __tests__/plugins/codeceptjs
- data
- dist
- __tests__/plugins/codeceptjs
- data
- modules/nlp
- plugins/codeceptjs
- docs
- modules/nlp
- plugins
- codeceptjs
16 files changed
+2048
-429
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
| |||
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
| 168 | + | |
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
| 172 | + | |
165 | 173 | | |
| 174 | + | |
| 175 | + | |
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
169 | 179 | | |
| 180 | + | |
170 | 181 | | |
171 | 182 | | |
172 | 183 | | |
| |||
187 | 198 | | |
188 | 199 | | |
189 | 200 | | |
190 | | - | |
| 201 | + | |
191 | 202 | | |
192 | 203 | | |
193 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| 184 | + | |
182 | 185 | | |
183 | 186 | | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| |||
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| 214 | + | |
208 | 215 | | |
209 | 216 | | |
210 | 217 | | |
| 218 | + | |
211 | 219 | | |
| 220 | + | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
215 | 225 | | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
221 | | - | |
| 232 | + | |
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
| |||
233 | 244 | | |
234 | 245 | | |
235 | 246 | | |
236 | | - | |
| 247 | + | |
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
| |||
0 commit comments