Skip to content

Releases: elbformat/symfony-behat-bundle

v1.5.7 - Array Support in AbstractDatabaseContext

19 Feb 16:27
0fe4977
Compare
Choose a tag to compare

Support json arrays in AbstractDatabaseContext

v1.5.6 - Command Inputs

02 Feb 15:06
2095f79
Compare
Choose a tag to compare
  • Feature: Testing with command inputs

v1.5.5 - Fixed AbstractApiContext

15 Jan 14:59
1089447
Compare
Choose a tag to compare

Bugfix: Documentation and service definition for MockClientCallback to test APIs

v1.5.4

11 Jan 08:44
a1dc7a8
Compare
Choose a tag to compare
  • Bugfix: Remove data from the table, that has been consumed in the constructor
  • Improvement: Use JSON to fill array values in AbstractDatabaseContext

v1.5.3

14 Dec 09:28
1ff0fc8
Compare
Choose a tag to compare
  • Improvement of output for found tags: Do not show more than 1 nested entry
  • Use docker-compose for local setup
  • CommandContext - Added shortcut "Then the command is successful"

v1.5.2 Fix logger

09 Oct 07:38
eae98c4
Compare
Choose a tag to compare

Fix TestLogger to be compatible with symfony 5.4.

v1.5.1

04 Oct 14:05
9adabb6
Compare
Choose a tag to compare

Bugfix: kernel not injected into JsonContext

v1.5.0 - Major restructuring and features

04 Oct 13:57
1461d28
Compare
Choose a tag to compare

v1.5.0

In this version there changed a lot under the hood, but the usage for existing things stays the same.

Restructuring BrowserContext

As the BrowserContext was getting more and more complex, it is now split into 4 Contexts, sharing the state:

  • HttpContext - Basic request/response operations, including headers and redirects
  • HtmlContext - Querying the DOM for Text/HTML
  • FromContext - Testing, manipulating and submitting forms
  • JsonContext - Json response checks for custom APIs

Switching LoggingContext

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.

Improvements to HttpContext

  • Allow adding HTTP headers to When I send ... request to ...
  • Allow non-rfc conform redirects with path instead of URL
  • Allow testing for path only in redirect check

Improvements to HtmlContext

  • When I remove attribute ... from ... to unhide elements
  • Then I see ... before ... to check sortings.
  • TODO: Not found tags are not shown with full content, but only the tag

Improvements to FormContext

  • When I submit the form with button ... to distinguish the submit button
  • When I clear field ... to remove data from a field
  • When I check ... checkbox with value ... to distinguish between multi-options
  • When I uncheck ... checkbox to revert checking
  • When I add an input field ... to add dynamic collection fields
  • When I remove an input field ... to remove dynamic collection fields
  • When I remove a select field ... to remove dynamic collection fields
  • Then the form contains a select to check for options in selects
  • Then select ... contains option to check for options in selects
  • Then select ... does not contain option to check for options in selects
  • TODO: file upload

Improvements in AbstractDatabaseContext

  • assertObject returns the found object to allow steps to be built upon the results.
  • Support for constructor arguments, including defaults defined in the context.
  • assertCollectionDoesNotContain helps negation of collection check
  • Support creating m:n relations by adding a $reverseRelationName parameter.

Added DateContext

Based on ClockMock and the uopz extension, the context allows you to change the current date inside your tests.

Added MailerContext in favour of SwiftmailerContext

As Swiftmailer is deprecated in favour of the symfony mailer, we adapted the context as well.

Added AbstractApiContext

This context will help you build your own API context, like the AbstractDatabaseContext

v1.4.2

26 May 07:04
0b28401
Compare
Choose a tag to compare

Fix: Comparing a tag with inner html that may contain spaces to a string.

v1.4.1

17 May 13:35
2bda79d
Compare
Choose a tag to compare

Fix error, when a monolog handler is tagged.