You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`BROWSER_SOURCE_DIR`| Directory to save source files to. |`./var/browser/source`|
557
+
|`BROWSER_SCREENSHOT_DIR`| Directory to save screenshots to (only applies to `PantherBrowser`). |`./var/browser/screenshots`|
558
+
|`BROWSER_CONSOLE_LOG_DIR`| Directory to save javascript console logs to (only applies to `PantherBrowser`). |`./var/browser/console-logs`|
559
+
|`BROWSER_FOLLOW_REDIRECTS`| Whether to follow redirects by default (only applies to `KernelBrowser`). |`1`_(true)_|
560
+
|`BROWSER_CATCH_EXCEPTIONS`| Whether to catch exceptions by default (only applies to `KernelBrowser`). |`1`_(true)_|
561
+
|`BROWSER_SOURCE_DEBUG`| Whether to add request metadata to written source files (only applies to `KernelBrowser`). |`0`_(false)_|
562
+
|`KERNEL_BROWSER_CLASS`|`KernelBrowser` class to use. |`Zenstruck\Browser\KernelBrowser`|
563
+
|`PANTHER_BROWSER_CLASS`|`PantherBrowser` class to use. |`Zenstruck\Browser\PantherBrowser`|
564
+
|`PANTHER_NO_HEADLESS`| Disable headless-mode and allow usage of `PantherBrowser::pause()`. |`0`_(false)_|
565
+
|`BROWSER_ALWAYS_START_WEBSERVER`| Always start a webserver configured for your current test env before running tests (only applies to `PantherBrowser`). |`0`_(false)_|
557
566
558
567
## Extending
559
568
@@ -818,9 +827,10 @@ Then, depending on the implementation you extended from, set the appropriate env
818
827
819
828
For the example above, you would set `KERNEL_BROWSER_CLASS=App\Tests\AppBrowser`.
820
829
821
-
**TIP**: Create a base functional test case so all your tests can use your
822
-
custom browser and use the `@method` annotation to ensure your tests can
823
-
autocomplete your custom methods:
830
+
> [!TIP]
831
+
> Create a base functional test case so all your tests can use your
832
+
> custom browser and use the `@method` annotation to ensure your tests can
0 commit comments