Skip to content
Snippets Groups Projects
Commit 0b81479a authored by Alexander Bias's avatar Alexander Bias
Browse files

Fix Behat test for random login background image

parent e0870dff
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ Changes ...@@ -6,6 +6,7 @@ Changes
### Unreleased ### Unreleased
* 2021-04-11 - Fix Behat test for random login background image
* 2021-03-14 - Fix Behat test for unrestricted self enrolment hint * 2021-03-14 - Fix Behat test for unrestricted self enrolment hint
### v3.10-r4 ### v3.10-r4
......
...@@ -26,7 +26,10 @@ Feature: Configuring the theme_boost_campus plugin for the "Design Settings" tab ...@@ -26,7 +26,10 @@ Feature: Configuring the theme_boost_campus plugin for the "Design Settings" tab
And I press "Save changes" And I press "Save changes"
And I log out And I log out
And I click on "Log in" "link" 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" # Dependent on setting "Use Login page background images"
@javascript @_file_upload @javascript @_file_upload
...@@ -39,7 +42,10 @@ Feature: Configuring the theme_boost_campus plugin for the "Design Settings" tab ...@@ -39,7 +42,10 @@ Feature: Configuring the theme_boost_campus plugin for the "Design Settings" tab
And I press "Save changes" And I press "Save changes"
And I log out And I log out
And I click on "Log in" "link" 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 # This is not testable with Behat
# Scenario: Enable "Login form" # Scenario: Enable "Login form"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment