From 5d5a9c0c7c60ee1aaebcafce42af1cbc526fed47 Mon Sep 17 00:00:00 2001 From: Jonathan Goode Date: Tue, 27 Sep 2022 18:43:33 +0100 Subject: [PATCH] Document `assertIndeterminate()` and `waitForInput()` (#8255) * Document `assertIndeterminate()` * Document `waitForInput()` * Update dusk.md Co-authored-by: Taylor Otwell --- dusk.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/dusk.md b/dusk.md index fccfea7be09..27058082b61 100644 --- a/dusk.md +++ b/dusk.md @@ -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); + +#### 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); + #### Waiting On The Page Location @@ -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) @@ -1301,6 +1313,13 @@ Assert that the given checkbox is not checked: $browser->assertNotChecked($field); + +#### assertIndeterminate + +Assert that the given checkbox is in an indeterminate state: + + $browser->assertIndeterminate($field); + #### assertRadioSelected