Skip to main content

Dusk Browse Page

To put together a feature test using the browse method in , you need to execute an end-to-end browser test that mimics how a real human interacts with your application.

Generate a dedicated browser test file using Artisan. Let's assume we are building a feature to test a . php artisan dusk:make LoginTest Use code with caution. Copied to clipboard 💻 3. Implement the browse Method dusk browse

Open the newly created test file in tests/Browser/LoginTest.php . Inside your test method, you will call $this->browse() to gain an instance of the browser. To put together a feature test using the