From 5b9f456d979fa2e35fce4c2e353156282c23ff83 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 13 Jan 2020 15:19:11 -0600 Subject: [PATCH 1/2] add note about automatic resizing on failures --- dusk.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dusk.md b/dusk.md index 23abc55cfbe..79da50ecab6 100644 --- a/dusk.md +++ b/dusk.md @@ -252,6 +252,10 @@ The `fitContent` method will resize the browser window to match the size of the $browser->fitContent(); +Dusk will automatically fit the content on failures prior to taking a screenshot. To disable this feature add the following to your test: + + $browser->disableFitOnFailure(); + ### Browser Macros From 39802ce8dcf800add2cd848154e3e97ae281f5c4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 14 Jan 2020 08:17:24 -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 79da50ecab6..1e714b72dec 100644 --- a/dusk.md +++ b/dusk.md @@ -252,7 +252,7 @@ The `fitContent` method will resize the browser window to match the size of the $browser->fitContent(); -Dusk will automatically fit the content on failures prior to taking a screenshot. To disable this feature add the following to your test: +When a test fails, Dusk will automatically resize the browser to fit the content prior to taking a screenshot. You may disable this feature by calling the `disableFitOnFailure` method within your test: $browser->disableFitOnFailure();