naoray/dusk-automation

This package is abandoned and no longer maintained. No replacement package was suggested.

Bringing dusks power outside the tests directory to automate web tasks.

v1.1 2018-02-08 10:26 UTC

This package is auto-updated.

Last update: 2022-02-01 13:11:58 UTC


README

Software License Total Downloads

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.