Skip to content

Commit

Permalink
Document assertIndeterminate() and waitForInput() (#8255)
Browse files Browse the repository at this point in the history
* Document `assertIndeterminate()`

* Document `waitForInput()`

* Update dusk.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
u01jmg3 and taylorotwell authored Sep 27, 2022
1 parent e244d63 commit 5d5a9c0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,17 @@ The `waitForLink` method may be used to wait until the given link text is displa
// Wait a maximum of one second for the link...
$browser->waitForLink('Create', 1);

<a name="waiting-for-inputs"></a>
#### Waiting For Inputs

The `waitForInput` method may be used to wait until the given input field is visible on the page:

// Wait a maximum of five seconds for the input...
$browser->waitForInput($field);

// Wait a maximum of one second for the input...
$browser->waitForInput($field, 1);

<a name="waiting-on-the-page-location"></a>
#### Waiting On The Page Location

Expand Down Expand Up @@ -986,6 +997,7 @@ Dusk provides a variety of assertions that you may make against your application
[assertInputValueIsNot](#assert-input-value-is-not)
[assertChecked](#assert-checked)
[assertNotChecked](#assert-not-checked)
[assertIndeterminate](#assert-indeterminate)
[assertRadioSelected](#assert-radio-selected)
[assertRadioNotSelected](#assert-radio-not-selected)
[assertSelected](#assert-selected)
Expand Down Expand Up @@ -1301,6 +1313,13 @@ Assert that the given checkbox is not checked:

$browser->assertNotChecked($field);

<a name="assert-indeterminate"></a>
#### assertIndeterminate

Assert that the given checkbox is in an indeterminate state:

$browser->assertIndeterminate($field);

<a name="assert-radio-selected"></a>
#### assertRadioSelected

Expand Down

0 comments on commit 5d5a9c0

Please sign in to comment.