From 1cbb7f093d83aa947bc1a693b2aa80628cc81f24 Mon Sep 17 00:00:00 2001 From: ahinkle Date: Sat, 4 Jan 2020 12:51:01 -0600 Subject: [PATCH 1/2] Add waitUntilMissingText --- dusk.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dusk.md b/dusk.md index dca13fabce3..9c4f840699c 100644 --- a/dusk.md +++ b/dusk.md @@ -552,6 +552,14 @@ The `waitForText` method may be used to wait until the given text is displayed o // Wait a maximum of one second for the text... $browser->waitForText('Hello World', 1); +You may also use `waitUntilMissingText` to wait until the displayed text has been removed from the page: + + // Wait a maximum of five seconds for the text to be removed... + $browser->waitUntilMissingText('Hello World'); + + // Wait a maximum of one second for the text to be removed... + $browser->waitUntilMissingText('Hello World', 1); + #### Waiting For Links The `waitForLink` method may be used to wait until the given link text is displayed on the page: From 551174604711d2ea52640b350b479e5547a5070d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 5 Jan 2020 09:47:47 -0600 Subject: [PATCH 2/2] Update dusk.md --- dusk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dusk.md b/dusk.md index 9c4f840699c..23abc55cfbe 100644 --- a/dusk.md +++ b/dusk.md @@ -552,7 +552,7 @@ The `waitForText` method may be used to wait until the given text is displayed o // Wait a maximum of one second for the text... $browser->waitForText('Hello World', 1); -You may also use `waitUntilMissingText` to wait until the displayed text has been removed from the page: +You may use the `waitUntilMissingText` method to wait until the displayed text has been removed from the page: // Wait a maximum of five seconds for the text to be removed... $browser->waitUntilMissingText('Hello World');