fabiang/mink-javascript-errors

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

Mink extension for handling JavaScript errors

Installs: 53 913

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:behat-extension

0.1.0 2015-11-24 15:57 UTC

This package is auto-updated.

Last update: 2024-02-29 03:02:28 UTC


README

This is an extension for Mink that can handle JavaScript errors occuring on a web page. After every step this extension checks for errors and throws them as exceptions. Also AJAX errors are supported via jQuery.

Build Status License

Installation

Install this extension with Composer:

composer require fabiang/mink-javascript-errors=@dev --dev

Configuration

Add the following to your behat.yml:

default:
  extensions:
    Fabiang\Mink\JavaScriptErrors: ~

Load the provided JavaScript file in every of your web pages:

<script src="dist/ErrorHandler.min.js"></script>

If you have loaded jQuery before the ErrorHandler.min.js the extension automatically handles Ajax errors.