Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

fabiang/mink-javascript-errors

Repository files navigation

fabiang/mink-javascript-errors

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.

About

Mink extension for handling JavaScript errors

Resources

License

Stars

Watchers

Forks

Packages

No packages published