PHPackages                             sepehr/behat-laravel-js - 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. sepehr/behat-laravel-js

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sepehr/behat-laravel-js
=======================

Testing javascript apps with Laravel and Behat.

0.1.1(9y ago)71.3k3MITPHP

Since Feb 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sepehr/behat-laravel-js)[ Packagist](https://packagist.org/packages/sepehr/behat-laravel-js)[ RSS](/packages/sepehr-behat-laravel-js/feed)WikiDiscussions master Synced 4w ago

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

Javascript Testing with Behat and Laravel
=========================================

[](#javascript-testing-with-behat-and-laravel)

This is a companion package to [Behat's Laravel Extension](https://github.com/laracasts/behat-laravel-extension/issues/8)that provides utilities to work around some issues and limitations when testing Javascript applications using browser emulators, like [Selenium](https://github.com/minkphp/MinkSelenium2Driver), [PhantomJS](https://github.com/jcalderonzumba/MinkPhantomJSDriver) or [Zombie](https://github.com/minkphp/MinkZombieDriver).

The workarounds used in this package are heavily inspired by [Laravel Dusk](https://github.com/laravel/dusk) code. Read [this post](https://github.com/laracasts/behat-laravel-extension/issues/8#issuecomment-282050804) if you wish to have more context about the history of the issues.

Problems and workarounds
------------------------

[](#problems-and-workarounds)

If you're here, you probably already know about the extension limitations, but in case you don't; read on.

### tl;dr

[](#tldr)

[Install](#installation), and use these three traits in your `FeatureContext` and you're done. Remember to not to use `DatabaseTransactions` and/or `Migrator` traits.

```
