File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments