Document `assertPathEndsWith()` and `assertPathContains()` (#9582)

* Document `assertPathEndsWith()`

* Document `assertPathContains()`
This commit is contained in:
Jonathan Goode 2024-04-17 20:43:58 +01:00 committed by GitHub
parent 9910299e9f
commit ca2571cb8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

16
dusk.md
View File

@ -1184,6 +1184,8 @@ Dusk provides a variety of assertions that you may make against your application
[assertPortIs](#assert-port-is)
[assertPortIsNot](#assert-port-is-not)
[assertPathBeginsWith](#assert-path-begins-with)
[assertPathEndsWith](#assert-path-ends-with)
[assertPathContains](#assert-path-contains)
[assertPathIs](#assert-path-is)
[assertPathIsNot](#assert-path-is-not)
[assertRouteIs](#assert-route-is)
@ -1322,6 +1324,20 @@ Assert that the current URL path begins with the given path:
$browser->assertPathBeginsWith('/home');
<a name="assert-path-ends-with"></a>
#### assertPathEndsWith
Assert that the current URL path ends with the given path:
$browser->assertPathEndsWith('/home');
<a name="assert-path-contains"></a>
#### assertPathContains
Assert that the current URL path contains the given path:
$browser->assertPathContains('/home');
<a name="assert-path-is"></a>
#### assertPathIs