naoray / dusk-automation
Bringing dusks power outside the tests directory to automate web tasks.
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:package
Requires
- illuminate/support: 5.6.*
- laravel/dusk: ~3.0
Requires (Dev)
- orchestra/testbench: ^3.6
This package is auto-updated.
Last update: 2022-02-01 13:11:58 UTC
README
Laravel Dusk does an awesome job at testing frontend stuff. This packages aims to bring dusks power outside the tests directory to automate web tasks.
Install
Laravel 5.6+
composer require naoray/dusk-automation
Laravel 5.5
composer require naoray/dusk-automation:1.0
Usage
Make sure to create the storage directories listed in the configs.
use Laravel\Dusk\Browser; class DoSomethingAutomated { public function foo() { Dusk::browse(Browser $browser) { $browser->visit('some_website.com') ->assertSee('some website') ->press('#button') ->... // see laravel dusk docu for methods } }
Testing
Run the tests with:
vendor/bin/phpunit
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email krishan.koenig@googlemail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.