Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
MDL-66504 lang: Use the new strings in the Behat scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz authored and stronk7 committed Sep 1, 2019
1 parent 7ee9065 commit da0dbee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions user/tests/behat/set_default_homepage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@ Feature: Set the site home page and dashboard as the default home page
| Page contexts | Display throughout the entire site |
And I press "Save changes"
And I navigate to "Appearance > Navigation" in site administration
And I set the field "Default home page for users" to "User preference"
And I set the field "Home page for users" to "User preference"
And I press "Save changes"
And I am on site homepage
And I follow "Make this my default home page"
And I should not see "Make this my default home page"
And I follow "Make this my home page"
And I should not see "Make this my home page"
And I am on "Course 1" course homepage
And "Home" "text" should exist in the ".breadcrumb" "css_element"
And I am on site homepage
And I follow "Dashboard"
And I follow "Make this my default home page"
And I should not see "Make this my default home page"
And I follow "Make this my home page"
And I should not see "Make this my home page"
And I am on "Course 1" course homepage
Then "Dashboard" "text" should exist in the ".breadcrumb" "css_element"

Scenario: User cannot configure their preferred default home page unless allowed by admin
Given I log in as "user1"
When I follow "Preferences" in the user menu
Then I should not see "Default home page"
Then I should not see "Home page"

Scenario Outline: User can configure their preferred default home page when allowed by admin
Given I log in as "admin"
And I navigate to "Appearance > Navigation" in site administration
And I set the field "Default home page for users" to "User preference"
And I set the field "Home page for users" to "User preference"
And I press "Save changes"
And I log out
When I log in as "user1"
And I follow "Preferences" in the user menu
And I follow "Default home page"
And I set the field "Default home page" to "<preference>"
And I follow "Home page"
And I set the field "Home page" to "<preference>"
And I press "Save changes"
Then "<breadcrumb>" "text" should exist in the ".breadcrumb" "css_element"
Examples:
Expand Down

0 comments on commit da0dbee

Please sign in to comment.