Skip to content

Commit ca2571c

Browse files
authored
Document assertPathEndsWith() and assertPathContains() (laravel#9582)
* Document `assertPathEndsWith()` * Document `assertPathContains()`
1 parent 9910299 commit ca2571c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dusk.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,8 @@ Dusk provides a variety of assertions that you may make against your application
11841184
[assertPortIs](#assert-port-is)
11851185
[assertPortIsNot](#assert-port-is-not)
11861186
[assertPathBeginsWith](#assert-path-begins-with)
1187+
[assertPathEndsWith](#assert-path-ends-with)
1188+
[assertPathContains](#assert-path-contains)
11871189
[assertPathIs](#assert-path-is)
11881190
[assertPathIsNot](#assert-path-is-not)
11891191
[assertRouteIs](#assert-route-is)
@@ -1322,6 +1324,20 @@ Assert that the current URL path begins with the given path:
13221324

13231325
$browser->assertPathBeginsWith('/home');
13241326

1327+
<a name="assert-path-ends-with"></a>
1328+
#### assertPathEndsWith
1329+
1330+
Assert that the current URL path ends with the given path:
1331+
1332+
$browser->assertPathEndsWith('/home');
1333+
1334+
<a name="assert-path-contains"></a>
1335+
#### assertPathContains
1336+
1337+
Assert that the current URL path contains the given path:
1338+
1339+
$browser->assertPathContains('/home');
1340+
13251341
<a name="assert-path-is"></a>
13261342
#### assertPathIs
13271343

0 commit comments

Comments
 (0)