Bolt uses Behat for E2E testing.
Be sure that you have Java installed. Be sure that you have the latest stable Chrome version installed.
Run all tests with:
make behat-js
Running only failed tests is not yet implemented. However you can use tags to run only a few of them! Just add a tag before scenario, like:
Feature: Display record
@javascript
@example
Scenario: As a user I want to display a single record
And then run:
vendor/bin/behat --tags=example
Note: Make sure to keep the @javascript
tag in order to run the E2E test
with a running browser under the hood.
Put your tests inside ./tests/e2e/
folder.
For describing test scenarios Behat uses Gherkin syntax.
For writing custom steps please refer to Behat docs.