kunstmaan/behat-bundle

Extends the MinkContext and adds some additional (sub)contexts like creating a screenshot when a step fails or wait for Ajax to finish before continuing assertPageContainsText()

Installs: 8 994

Dependents: 1

Stars: 16

Watches: 24

Forks: 1

Language: PHP

3.1.2 2015-04-11 06:07 UTC

README

Build Status Total Downloads Latest Stable Version Analytics

An extension on the Behat Mink feature contexts. You can extend the FeatureContext from this bundle or simply use the SubContexts in your own.

FeatureContext

The FeatureContext overrides the standard MinkContext methods to add some additional functionality.

The assertPageContainsText($text) definition is currently extended so it waits for AJAX requests to finish before continuing.

SubContexts

Failed step screenshots

The FailedScreenshotSubContext offers a takeScreenshotAfterFailedStep($event) definition which takes a screenshot and saves it to the "build/behat" folder when a step fails.

Radio Button

The RadioButtonSubContect offers support for radio button testing in your features.