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: 58 641

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 18

Forks: 2

Type:symfony-bundle

7.1.2 2024-03-31 20:24 UTC

This package is auto-updated.

Last update: 2024-12-11 14:52:57 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.