elbformat/symfony-behat-bundle
Full Changelog: https://github.com/elbformat/symfony-behat-bundle/compare/v1.5.11...v1.5.12
You can now assert attributes on Tags with ", ' and a mix of both
Fixed deprecations in MailerContext
Fixed deprecation warning for implicit nullable parameter in FormContext.
Support json arrays in AbstractDatabaseContext
Bugfix: Documentation and service definition for MockClientCallback to test APIs
Fix TestLogger to be compatible with symfony 5.4.
Bugfix: kernel not injected into JsonContext
In this version there changed a lot under the hood, but the usage for existing things stays the same.
As the BrowserContext was getting more and more complex, it is now split into 4 Contexts, sharing the state:
The LoggingContext was formerly bound to monolog, which is not required in newer symfony applications. Instead, we now have a PSR-compatible TestLogger that catches the logs and can be queried in behat.
When I send ... request to ...When I remove attribute ... from ... to unhide elementsThen I see ... before ... to check sortings.When I submit the form with button ... to distinguish the submit buttonWhen I clear field ... to remove data from a fieldWhen I check ... checkbox with value ... to distinguish between multi-optionsWhen I uncheck ... checkbox to revert checkingWhen I add an input field ... to add dynamic collection fieldsWhen I remove an input field ... to remove dynamic collection fieldsWhen I remove a select field ... to remove dynamic collection fieldsThen the form contains a select to check for options in selectsThen select ... contains option to check for options in selectsThen select ... does not contain option to check for options in selectsassertObject returns the found object to allow steps to be built upon the results.assertCollectionDoesNotContain helps negation of collection check$reverseRelationName parameter.Based on ClockMock and the uopz extension, the context allows you to change the current date inside your tests.
As Swiftmailer is deprecated in favour of the symfony mailer, we adapted the context as well.
This context will help you build your own API context, like the AbstractDatabaseContext
Fix: Comparing a tag with inner html that may contain spaces to a string.
Fix error, when a monolog handler is tagged.
Support for PHP 8.2 and Symfony 6.2 backed by circleci tests.
Fixes error Cannot autowire service "Elbformat\SymfonyBehatBundle\Context\BrowserContext": argument "$strComp" of method "__construct()" references class "Elbformat\SymfonyBehatBundle\Helper\StringCompare" but no such service exists.
First release with BrowserContext, CommandContext and LoggingContext.
How can I help you explore Laravel packages today?