You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ $this->get(route('about'))
62
62
## Usage
63
63
64
64
### Testing the DOM
65
-
When calling a route in a test you might want to make sure that the view contains certain elements. To test this you can use the `->assertElementExists()` method on the test response.
65
+
When calling a route in a test you might want to make sure that the view contains certain elements. To test this, you can use the `->assertElementExists()` method on the test response or the alias `assertElement()`.
66
66
The following will ensure that there is a body tag in the parsed response. Be aware that this package assumes a proper html structure and will wrap your html in a html, head and body tag if they are missing!
67
67
```php
68
68
$this->get('/some-route')
@@ -194,7 +194,7 @@ $this->get('/some-route')
194
194
195
195
### Testing forms
196
196
Testing forms allows using all the dom asserts from above, but has a few special helpers to help test for forms.
197
-
Instead of using `->assertElementExists()`we will use `->assertFormExists()` method on the test response.
197
+
Instead of using `->assertElementExists()`you can use `->assertFormExists()`, or the alias `assertForm()` on the test response.
0 commit comments