From 4d214766691cfe9d2e5b8ad1f29ade32e7cfb828 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Sun, 19 Jan 2025 12:48:47 +1100 Subject: [PATCH] Updated to Behat Screenshot v2. See changes: https://github.com/drevops/behat-screenshot/compare/9b542ff...2.0.0 Release notes: https://github.com/drevops/behat-screenshot/releases/tag/2.0.0 --- behat.yml | 3 ++- composer.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/behat.yml b/behat.yml index abecd577d..22cc9d4f7 100644 --- a/behat.yml +++ b/behat.yml @@ -59,9 +59,10 @@ default: error_message_selector: '.messages.error' success_message_selector: '.messages.status' warning_message_selector: '.messages.warning' - # Capture HTML and JPG screenshots on demand and on failure. + # Capture HTML and PNG screenshots on demand and on failure. DrevOps\BehatScreenshotExtension: dir: '%paths.base%/.logs/screenshots' + on_failed: true # Change to 'false' (no quotes) to disable screenshots on failure. purge: false # Change to 'true' (no quotes) to purge screenshots on each run. # Show explicit fail information and continue the test run. DrevOps\BehatFormatProgressFail\FormatExtension: ~ diff --git a/composer.json b/composer.json index b8e750682..6c638baf0 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "dantleech/gherkin-lint": "^0.2.3", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "drevops/behat-format-progress-fail": "^1.3", - "drevops/behat-screenshot": "^1.6", + "drevops/behat-screenshot": "^2", "drevops/behat-steps": "^2.6", "drupal/core-dev": "~11.1.0", "drupal/drupal-extension": "^5",