From 0b81479a8063cc20580eb0ad1c3651b229152b13 Mon Sep 17 00:00:00 2001 From: Alexander Bias <alexander.bias@uni-ulm.de> Date: Sun, 11 Apr 2021 21:11:43 +0200 Subject: [PATCH] Fix Behat test for random login background image --- CHANGES.md | 1 + tests/behat/theme_boost_campus_design_settings.feature | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4bb386d..b5a90be 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2021-04-11 - Fix Behat test for random login background image * 2021-03-14 - Fix Behat test for unrestricted self enrolment hint ### v3.10-r4 diff --git a/tests/behat/theme_boost_campus_design_settings.feature b/tests/behat/theme_boost_campus_design_settings.feature index 8f503d5..51aaf88 100644 --- a/tests/behat/theme_boost_campus_design_settings.feature +++ b/tests/behat/theme_boost_campus_design_settings.feature @@ -26,7 +26,10 @@ Feature: Configuring the theme_boost_campus plugin for the "Design Settings" tab And I press "Save changes" And I log out And I click on "Log in" "link" - Then the "class" attribute of "body" "css_element" should contain "loginbackgroundimage1" + And I am on homepage + And I click on "Log in" "link" in the ".logininfo" "css_element" + Then the "class" attribute of "body" "css_element" should contain "path-login" + And the "class" attribute of "body" "css_element" should contain "loginbackgroundimage1" # Dependent on setting "Use Login page background images" @javascript @_file_upload @@ -39,7 +42,10 @@ Feature: Configuring the theme_boost_campus plugin for the "Design Settings" tab And I press "Save changes" And I log out And I click on "Log in" "link" - Then I should see "Copyright by SplitShire on pexels.com" in the "#loginbackgroundimagetext" "css_element" + And I am on homepage + And I click on "Log in" "link" in the ".logininfo" "css_element" + Then the "class" attribute of "body" "css_element" should contain "path-login" + And I should see "Copyright by SplitShire on pexels.com" in the "#loginbackgroundimagetext" "css_element" # This is not testable with Behat # Scenario: Enable "Login form" -- GitLab