[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/admin_bookmarks/tests/behat/ -> bookmark_admin_pages.feature (source)

   1  @block @block_admin_bookmarks
   2  Feature: Add a bookmarks to an admin pages
   3    In order to speed up common tasks
   4    As an admin
   5    I need to add and access pages through bookmarks
   6  
   7    Background:
   8      Given I log in as "admin"
   9      And I navigate to "Scheduled tasks" node in "Site administration > Server"
  10      And I click on "Bookmark this page" "link" in the "Admin bookmarks" "block"
  11      And I log out
  12  
  13    # Test bookmark functionality using the "User profile fields" page as our bookmark.
  14    Scenario: Admin page can be bookmarked
  15      Given I log in as "admin"
  16      And I navigate to "User profile fields" node in "Site administration > Users > Accounts"
  17      When I click on "Bookmark this page" "link" in the "Admin bookmarks" "block"
  18      Then I should see "User profile fields" in the "Admin bookmarks" "block"
  19      # See the existing bookmark is there too.
  20      And I should see "Scheduled tasks" in the "Admin bookmarks" "block"
  21  
  22    Scenario: Admin page can be accessed through bookmarks block
  23      Given I log in as "admin"
  24      And I navigate to "Notifications" node in "Site administration"
  25      And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block"
  26      # Verify that we are on the right page.
  27      Then I should see "Scheduled tasks" in the "h1" "css_element"
  28  
  29    Scenario: Admin page can be removed from bookmarks
  30      Given I log in as "admin"
  31      And I navigate to "Notifications" node in "Site administration"
  32      And I click on "Scheduled tasks" "link" in the "Admin bookmarks" "block"
  33      When I click on "Unbookmark this page" "link" in the "Admin bookmarks" "block"
  34      Then I should see "Bookmark deleted"
  35      And I wait to be redirected
  36      And I should not see "Scheduled tasks" in the "Admin bookmarks" "block"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1