fabiang/mink-javascript-errors

Mink extension for handling JavaScript errors

Installs: 36 606

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:behat-extension

0.1.0 2015-11-24 15:57 UTC

This package is auto-updated.

Last update: 2021-03-03 18:16: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.