From 0a3aacd0ce9946d761b80807c1e16bc0bb759d1d Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Thu, 2 Apr 2026 19:56:27 +1100 Subject: [PATCH 1/2] Updated homepage tests to start with a correct Given. --- .../tests/behat/features/homepage.feature | 14 ++++++++------ tests/behat/features/homepage.feature | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/homepage.feature b/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/homepage.feature index c0b79e66c..08ddd1415 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/homepage.feature +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/homepage.feature @@ -7,12 +7,14 @@ Feature: Homepage @api Scenario: Anonymous user visits homepage - Given I go to the homepage - And the path should be "" - Then I save screenshot + Given I am an anonymous user + When I go to the homepage + Then the path should be "" + And I save screenshot @api @javascript Scenario: Anonymous user visits homepage using a real browser - Given I go to the homepage - And the path should be "" - Then I save screenshot + Given I am an anonymous user + When I go to the homepage + Then the path should be "" + And I save screenshot diff --git a/tests/behat/features/homepage.feature b/tests/behat/features/homepage.feature index c0b79e66c..08ddd1415 100644 --- a/tests/behat/features/homepage.feature +++ b/tests/behat/features/homepage.feature @@ -7,12 +7,14 @@ Feature: Homepage @api Scenario: Anonymous user visits homepage - Given I go to the homepage - And the path should be "" - Then I save screenshot + Given I am an anonymous user + When I go to the homepage + Then the path should be "" + And I save screenshot @api @javascript Scenario: Anonymous user visits homepage using a real browser - Given I go to the homepage - And the path should be "" - Then I save screenshot + Given I am an anonymous user + When I go to the homepage + Then the path should be "" + And I save screenshot From 12c0000173dbede76ee6badf408b915bcca2e2ad Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Thu, 2 Apr 2026 20:14:20 +1100 Subject: [PATCH 2/2] Updated Behat smoke test to use JS for screenshot probing. --- .../_baseline/tests/behat/features/behat.feature | 2 +- tests/behat/features/behat.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/behat.feature b/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/behat.feature index 71d3986f8..721cefeee 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/behat.feature +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/behat/features/behat.feature @@ -5,7 +5,7 @@ Feature: Behat configuration I want to ensure Behat is properly configured So that behavioral tests can run successfully across all environments - @api + @api @javascript Scenario: Screenshot functionality works Given I am an anonymous user When I am on the homepage diff --git a/tests/behat/features/behat.feature b/tests/behat/features/behat.feature index 71d3986f8..721cefeee 100644 --- a/tests/behat/features/behat.feature +++ b/tests/behat/features/behat.feature @@ -5,7 +5,7 @@ Feature: Behat configuration I want to ensure Behat is properly configured So that behavioral tests can run successfully across all environments - @api + @api @javascript Scenario: Screenshot functionality works Given I am an anonymous user When I am on the homepage