PHPackages                             pikanji/dusktests-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. pikanji/dusktests-plugin

ActiveOctober-plugin[Testing &amp; Quality](/categories/testing)

pikanji/dusktests-plugin
========================

Enables to write test using Laravel's Dusk test framework.

1.0.1(8y ago)42813MITPHPPHP &gt;=7.0

Since Dec 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pikanji/oc-dusktests-plugin)[ Packagist](https://packagist.org/packages/pikanji/dusktests-plugin)[ RSS](/packages/pikanji-dusktests-plugin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

OctoberCMS Laravel Dusk Plugin
==============================

[](#octobercms-laravel-dusk-plugin)

[日本語版はこちら](./README_ja.md)

This plugin enables to use Laravel Dusk test framework in [OctoberCMS](http://octobercms.com/) projects.

Usage
-----

[](#usage)

### Installation

[](#installation)

Installation options are;

- OctoberCMS UI (not yet available now)
- Composer
- Manual `git clone`

#### With Composer

[](#with-composer)

Execute below at the root of your project:

```
composer require --dev pikanji/dusktests-plugin
php artisan dusk:install

```

#### Manual Git Clone

[](#manual-git-clone)

Although composer is still required to install dependencies, you can install this plugin without adding it to your composer.json. In the plugins directory of your project, create `pikanji` directory and simply execute `git clone` in it.

```
cd plugins
mkdir pikanji
cd pikanji
git clone git@github.com:pikanji/oc-dusktests-plugin.git dusktests

```

Execute below at the root of your project.

```
composer update
php artisan dusk:install

```

### Executing Tests

[](#executing-tests)

Dusk comes with example test (`tests/Browser/ExampleTest.php`). You can test setup by running this test.

#### Fix Example Test

[](#fix-example-test)

ExampleTest.php checks if a string "Laravel" is found in the loaded web page. Assuming that your are using fresh copy of demo theme, change "Laravel" to "October CMS" in ExampleTest.php to let the test pass.

```
public function testBasicExample()
{
    $this->browse(function (Browser $browser) {
        $browser->visit('/')
                ->assertSee('October CMS');
    });
}

```

#### Run Tests

[](#run-tests)

Assuming you are running your web server on your local machine for testing and Chrome browser is installed, execute below at the root of your project. If you are running web server on Docker container [see here](./docs/using_docker.md)in addition to this instruction.

```
php artisan dusk

```

Test could be very slow. Leave it for a couple minutes to see if it has progress.

Screenshots are stored in `tests/Browser/screenshots` by default. There might be some configuration to change it.

#### Extending Timeout

[](#extending-timeout)

If you get timeout error, you can try extending timeout like below in `tests/DuskTestCase.php`. In my case, 1 minute was not enough. So, I made it 3 minutes.

```
return RemoteWebDriver::create(
    'http://192.168.1.115:4444/wd/hub', DesiredCapabilities::chrome()->setCapability(
        ChromeOptions::CAPABILITY, $options
    ), 180*1000, 180*1000
);

```

### Using Docker Container

[](#using-docker-container)

[See here](./docs/using_docker.md) in addition to this instruction.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3067d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eaba70d2bf29b314c6ff30a73ebc4e89fcd710f2db99fdd4b3c318ee63b632a1?d=identicon)[pikanji](/maintainers/pikanji)

---

Top Contributors

[![pikanji](https://avatars.githubusercontent.com/u/610221?v=4)](https://github.com/pikanji "pikanji (11 commits)")[![meysammahfouzi](https://avatars.githubusercontent.com/u/14848008?v=4)](https://github.com/meysammahfouzi "meysammahfouzi (1 commits)")

### Embed Badge

![Health badge](/badges/pikanji-dusktests-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/pikanji-dusktests-plugin/health.svg)](https://phpackages.com/packages/pikanji-dusktests-plugin)
```

###  Alternatives

[orchestra/testbench-dusk

Laravel Dusk Testing Helper for Packages Development

105936.1k158](/packages/orchestra-testbench-dusk)[derekmd/laravel-dusk-firefox

Run Laravel Dusk tests in a Firefox browser

4883.4k1](/packages/derekmd-laravel-dusk-firefox)[protonemedia/laravel-dusk-fakes

Persistent Fakes for Laravel Dusk

2195.1k2](/packages/protonemedia-laravel-dusk-fakes)[lorenzo/cakephp-fixturize

Provides custom Fixture classes to help managing test fixtures in pure SQL

2913.4k](/packages/lorenzo-cakephp-fixturize)[liip/drupalconnectormodule

The DrupalConnector Module is an abstraction layer to the Drupal 7 API of global functions in order to use them in an OOD setup.

121.7k3](/packages/liip-drupalconnectormodule)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
