Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
/ dusk-automation Public archive

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

License

Notifications You must be signed in to change notification settings

Naoray/dusk-automation

Repository files navigation

dusk-automation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages