MDL-51698 user: Adapting behat test

Using the generic .breadcrumb-nav like in edit_tag.feature as the elements
on it are quite generic and there is no much chance of future conflicts.
This commit is contained in:
David Monllao 2015-12-09 13:22:38 +08:00
parent 7955476cab
commit 8573e526ff

View File

@ -18,11 +18,11 @@ Feature: Set the site home page and dashboard as the default home page
And I follow "Make this my default home page"
And I should not see "Make this my default home page"
And I follow "Course 1"
And "//ul[@class='breadcrumb']/li/a[text()='Home']" "xpath_element" should exist
And "Home" "text" should exist in the ".breadcrumb-nav" "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 am on site homepage
When I follow "Course 1"
Then "//ul[@class='breadcrumb']/li/a[text()='Dashboard']" "xpath_element" should exist
Then "Dashboard" "text" should exist in the ".breadcrumb-nav" "css_element"