Description
Example: https://travis-ci.com/github/ezsystems/ezplatform-page-builder/jobs/382755073
Exception trace: at /var/www/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php:495 Behat\Mink\Driver\Selenium2Driver->getScreenshot() at /var/www/vendor/behat/mink/src/Session.php:255 Behat\Mink\Session->getScreenshot() at /var/www/vendor/bex/behat-screenshot/src/Bex/Behat/ScreenshotExtension/Service/ScreenshotTaker.php:53 Bex\Behat\ScreenshotExtension\Service\ScreenshotTaker->takeScreenshot() at /var/www/vendor/bex/behat-screenshot/src/Bex/Behat/ScreenshotExtension/Listener/ScreenshotListener.php:83 Bex\Behat\ScreenshotExtension\Listener\ScreenshotListener->takeScreenshot() at /var/www/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214
When an Exception happens during the AfterScenario part then the whole Behat execution is ended.
Steps to reproduce:
1. Run a Behat scenario that:
a) uses @javascript tag
b) fails before the Session is started, for example use a Step using our PHP API
Expected:
Steps fails, but the tests continue to execute
Actual:
Steps fails and the execution stops