Skip to content

Commit 5d5a9c0

Browse files
Document assertIndeterminate() and waitForInput() (laravel#8255)
* Document `assertIndeterminate()` * Document `waitForInput()` * Update dusk.md Co-authored-by: Taylor Otwell <[email protected]>
1 parent e244d63 commit 5d5a9c0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

dusk.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,17 @@ The `waitForLink` method may be used to wait until the given link text is displa
830830
// Wait a maximum of one second for the link...
831831
$browser->waitForLink('Create', 1);
832832

833+
<a name="waiting-for-inputs"></a>
834+
#### Waiting For Inputs
835+
836+
The `waitForInput` method may be used to wait until the given input field is visible on the page:
837+
838+
// Wait a maximum of five seconds for the input...
839+
$browser->waitForInput($field);
840+
841+
// Wait a maximum of one second for the input...
842+
$browser->waitForInput($field, 1);
843+
833844
<a name="waiting-on-the-page-location"></a>
834845
#### Waiting On The Page Location
835846

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

13021314
$browser->assertNotChecked($field);
13031315

1316+
<a name="assert-indeterminate"></a>
1317+
#### assertIndeterminate
1318+
1319+
Assert that the given checkbox is in an indeterminate state:
1320+
1321+
$browser->assertIndeterminate($field);
1322+
13041323
<a name="assert-radio-selected"></a>
13051324
#### assertRadioSelected
13061325

0 commit comments

Comments
 (0)