Skip to content
Snippets Groups Projects
Commit ce960892 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Fixed Behat issues after upgrading to 3.9.

parent 81827126
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2020-09-03 - Fixed Behat issues after upgrading to 3.9.
* 2020-09-02 - Deleted own additional edit button for courses because upstream Boost reimplemented it.
Many thanks to @christianwolters for providing this fix.
* 2020-09-02 - Prepare compatibility for Moodle 3.9.
......
......@@ -36,7 +36,7 @@ Feature: Configuring the theme_boost_campus plugin for the "Course Layout settin
| section0title | no | theme_boost_campus |
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
Then "General" "text" in the "li#section-0" "css_element" should not be visible
Then "#section-0 h3.sectionname.accesshide" "css_element" should exist
When I edit the section "0" and I fill the form with:
| Custom | 1 |
| New value for Section name | This is the general section |
......
......@@ -221,14 +221,18 @@ Feature: Configuring the theme_boost_campus plugin for the "Footer Layout Settin
# | footerhideusertourslink | 1 | theme_boost_campus |
Scenario: Enable "Hide link to reset the user tour"
When I log in as "admin"
And I add a new user tour with:
| Name | First tour |
| Description | My first tour |
| Apply to URL match | /my/% |
| Tour is enabled | 1 |
And I add steps to the "First tour" tour:
| targettype | Title | Content |
| Display in middle of page | Welcome | Welcome to your personal learning space. |
And I navigate to "Appearance > Boost Campus" in site administration
And I click on "Footer Layout Settings" "link"
And I set the field "s_theme_boost_campus_footerhideusertourslink" to "1"
And I press "Save changes"
# As both provided user tours are disabled in the testing environment, we need to enable one
# (the Dashboard tour) first.
And I navigate to "Appearance > User tours" in site administration
And I click on "//td[@id='tours_r0_c3']//a[contains(concat(' ',normalize-space(@class),' '),'quickeditlink')]" "xpath_element"
And I log out
When I log in as "teacher1"
Then I should not see "Reset user tour on this page" in the "page-footer" "region"
......@@ -241,14 +245,18 @@ Feature: Configuring the theme_boost_campus plugin for the "Footer Layout Settin
# | footerhideusertourslink | 0 | theme_boost_campus |
Scenario: Counter check: Disable "Hide link to reset the user tour"
When I log in as "admin"
And I add a new user tour with:
| Name | First tour |
| Description | My first tour |
| Apply to URL match | /my/% |
| Tour is enabled | 1 |
And I add steps to the "First tour" tour:
| targettype | Title | Content |
| Display in middle of page | Welcome | Welcome to your personal learning space. |
And I navigate to "Appearance > Boost Campus" in site administration
And I click on "Footer Layout Settings" "link"
And I set the field "s_theme_boost_campus_footerhideusertourslink" to "0"
And I press "Save changes"
# As both provided user tours are disabled in the testing environment, we need to enable one
# (the Dashboard tour) first.
And I navigate to "Appearance > User tours" in site administration
And I click on "//td[@id='tours_r0_c3']//a[contains(concat(' ',normalize-space(@class),' '),'quickeditlink')]" "xpath_element"
And I log out
When I log in as "teacher1"
Then I should see "Reset user tour on this page" in the "page-footer" "region"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment