oskarstark/sonata-admin-behat-context

a Behat Context for SonataAdmin

2.0.0 2021-10-26 06:52 UTC

README

Build Status

Installation

composer require oskarstark/sonata-admin-behat-context --dev

Usage

Enable the context in your behat.yml:

default:
    suites:
        default:
            contexts:
                - OStark\Context\SonataAdminContext:
                # this can be disabled if you do not use the SonataAdminUserBundle
                - OStark\Context\SonataAdminUserBundleContext:  
                    userManager: '@sonata.user.user_manager'
                    tokenStorage: '@security.token_storage'
                    session: '@session'

                # make sure to enable MinkContext!
                - Behat\MinkExtension\Context\MinkContext

Available steps

Filters

Checkboxes

Flash-Messages

User & Authentication

Batch-Actions

List-Columns

Form fields