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

[8.x] Dusk - document assertScript() #6485

Merged
merged 2 commits into from
Oct 12, 2020
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
9 changes: 9 additions & 0 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ Dusk provides a variety of assertions that you may make against your application
[assertDontSee](#assert-dont-see)
[assertSeeIn](#assert-see-in)
[assertDontSeeIn](#assert-dont-see-in)
[assertScript](#assert-script)
[assertSourceHas](#assert-source-has)
[assertSourceMissing](#assert-source-missing)
[assertSeeLink](#assert-see-link)
Expand Down Expand Up @@ -1076,6 +1077,14 @@ Assert that the given text is not present within the selector:

$browser->assertDontSeeIn($selector, $text);

<a name="assert-script"></a>
#### assertScript

Assert that the given JavaScript expression evaluates to the given value:

$browser->assertScript('window.isLoaded')
->assertScript('document.readyState', 'complete');

<a name="assert-source-has"></a>
#### assertSourceHas

Expand Down