mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-45265-master' of git://github.com/danpoltawski/moodle
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
blocks/admin_bookmarks/tests/behat/bookmark_admin_pages.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@block @block_admin_bookmarks | ||
Feature: Add a bookmarks to an admin pages | ||
In order to speed up common tasks | ||
As an admin | ||
I need to add and access pages through bookmarks | ||
|
||
Background: | ||
Given I log in as "admin" | ||
And I navigate to "Scheduled tasks" node in "Site administration > Server" | ||
And I click on "Bookmark this page" "link" in the "Admin bookmarks" "block" | ||
And I log out | ||
|
||
# Test bookmark functionality using the "User profile fields" page as our bookmark. | ||
Scenario: Admin page can be bookmarked | ||
Given I log in as "admin" | ||
And I navigate to "User profile fields" node in "Site administration > Users > Accounts" | ||
When I click on "Bookmark this page" "link" in the "Admin bookmarks" "block" | ||
Then I should see "User profile fields" in the "Admin bookmarks" "block" | ||
# See the existing bookmark is there too. | ||
And I should see "Scheduled tasks" in the "Admin bookmarks" "block" | ||
|
||
Scenario: Admin page can be accessed through bookmarks block | ||
Given I log in as "admin" | ||
And I navigate to "Notifications" node in "Site administration" | ||
And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block" | ||
# Verify that we are on the right page. | ||
Then I should see "Scheduled tasks" in the "h1" "css_element" | ||
|
||
Scenario: Admin page can be removed from bookmarks | ||
Given I log in as "admin" | ||
And I navigate to "Notifications" node in "Site administration" | ||
And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block" | ||
When I click on "Unbookmark this page" "link" in the "Admin bookmarks" "block" | ||
Then I should see "Bookmark deleted" | ||
And I wait to be redirected | ||
And I should not see "Scheduled tasks" in the "Admin bookmarks" "block" |