Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document assertPathEndsWith() and assertPathContains() #9582

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down