Skip to content

Commit ddb1aa2

Browse files
expand documented assertion types
1 parent 90f8fa9 commit ddb1aa2

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

docs/api/commands/prompt.mdx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,25 @@ If Cypress cannot interpret a step, you'll see a dialog prompting you to refine
264264
### Verify results
265265

266266
```javascript
267+
'make sure the confirmation button is visible'
268+
'verify an alert exists'
267269
'expect the notification to contain the text "Email sent"'
270+
'confirm that the [data-cy="result"] element has the text "Success"'
271+
'the toast should not contain the text "Failed"'
272+
'I expect the email field to have the value "[email protected]"'
273+
'verify the "Remember me" input is disabled'
274+
'the "Login" button should be enabled'
275+
'now the product should have the class "loading"'
268276
'assert the "I agree" checkbox is checked'
269-
'verify an alert with the text "Success" exists'
277+
'validate that the #error-message is empty'
278+
'the "Profile" tab should be active'
270279
'the modal ought to be displayed'
271280
'verify both checkboxes are checked'
272-
'make sure the ".error-message" is visible'
273-
'the "Success" message must appear'
281+
'the search input should have focus'
282+
'and "United States" is selected'
274283
'ensure that the counter shows 5'
275-
'the heading should be visible'
284+
'verify the counter has the id "reset"'
285+
'confirm that the code frame includes HTML "<span class="token">'
276286
```
277287

278288
### Wait

0 commit comments

Comments
 (0)