You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move to the necessary directory: cd behat-selenium/tests
Start docker: docker-compose up -d
Run all tests: ./run-behat
Customize
To test your site, add features in the tests/features directory.
Run ./run-behat -dl to see a list of available gherkin commands.
Add custom gherkin commands to tests/features/bootstrap/FeatureContext.php.
Use the @javascript tag to test your javascript code.
Use the @api tag to test your Drupal code.
Related
To run the tests for a single feature: ./run-behat features/drupal.feature
To test a different site, change the "base_url" value in tests/behat.yml.
Shut down docker: docker-compose down
To view the HTML report of your tests, visit http://<your-docker-host-ip>:8000/html_report (e.g. http://localhost:8000/html_report) or open behat-selenium/tests/html_report/index.html
Notes
This project was created as a PHP-specific replacement for Selenium IDE tests