Download the PHP package rainlab/dusk-plugin without Composer
On this page you can find all versions of the php package rainlab/dusk-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rainlab/dusk-plugin
More information about rainlab/dusk-plugin
Files in rainlab/dusk-plugin
Package dusk-plugin
Short Description Browser testing for October CMS, powered by Laravel Dusk.
License
Informations about the package dusk-plugin
Dusk Plugin
Browser testing for October CMS, powered by Laravel Dusk.
Installation Instructions
To install with Composer, run from your project root
If using the latest version of Chrome, install the latest version of ChromeDriver for your OS.
Otherwise, check the version of the Chrome browser you have installed, and install a given version of ChromeDriver for your OS.
Defining Tests
To make your first test, create a new class inside the tests/browser folder. The following will authenticate to the backend panel and sign out again.
Creating Environment File
The .env.dusk
environment file can be used for Dusk specific configuration. It is advisable to include the application URL to test in this file.
Running Tests
Use the test:dusk
artisan command to run the dusk tests for a plugin code (first argument).
The following runs tests for the October.Test plugin.
Use the --browse
to enable interactive mode.
Use the --filter
option to run a single test where the value is the test class name.
End to End Example
Follow these instructions to get a test up and running.
-
Install the latest version of Chrome browser
-
Install a fresh copy of October CMS
-
Install this plugin
composer require rainlab/dusk-plugin
-
Install latest chrome driver
php artisan dusk:chrome-driver
-
Install Test plugin
php artisan plugin:install October.Test --from=https://github.com/octobercms/test-plugin
-
Create a file
.env.dusk
and includeAPP_URL=http://yourlocaldev.tld
inside - Run tests
php artisan test:dusk october.test --browse
See Also
License
This plugin is an official extension of the October CMS platform and is free to use if you have a platform license. See EULA license for more details.