Skip to content

Commit c65ce90

Browse files
committed
Update README.md
1 parent eb865e8 commit c65ce90

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,15 @@ $this->get('/some-route')
193193
```
194194

195195

196-
For simple and quick checks, you can use `assertContainsElement`.
197-
This method allows you to verify that a specific element exists on the page you can optionally include an array of expected attributes.
196+
For simple and quick checks, you can use `assertContainsElement` or `assertDoesntExist`
197+
These methods allow you to verify that a specific element exists on the page.
198+
199+
`assertContainsElement` optionally allows an array of expected attributes
198200
```
199201
$this->get('/some-route')
200202
->assertContainsElement('#content')
201-
->assertContainsElement('div.banner', ['text' => 'Successfully deleted', 'data-status' => 'success']);
203+
->assertContainsElement('div.banner', ['text' => 'Successfully deleted', 'data-status' => 'success'])
204+
->assertDoesntExist('div.not-here');
202205
```
203206

204207
### Testing forms

0 commit comments

Comments
 (0)