MDL-42013 behat: Fixing related tests

We had no false positives because of this
issue, but some checking have been restricted
to specific DOM parts.
This commit is contained in:
David Monllao 2013-09-30 15:49:26 +08:00
parent 5458ab3e2a
commit 8b30d05557
4 changed files with 7 additions and 5 deletions

View File

@ -36,7 +36,7 @@ Feature: Page contents assertions
And I log in as "admin"
And I follow "Course 1"
When I click on "Move this to the dock" "button" in the "Administration" "block"
Then I should not see "Question bank"
Then I should not see "Question bank" in the "region-pre" "region"
And I click on "//div[@id='dock']/descendant::h2[normalize-space(.)='Administration']" "xpath_element"
@javascript
@ -46,4 +46,4 @@ Feature: Page contents assertions
| Course 1 | C1 | 0 |
And I log in as "admin"
When I click on "Move this to the dock" "button" in the "Administration" "block"
Then I should not see "Turn editing on"
Then I should not see "Turn editing on" in the "region-pre" "region"

View File

@ -32,5 +32,5 @@ Feature: Forms manipulation
Then I should see "Close the quiz"
And I should see "Group mode"
And I should see "Grouping"
And I should not see "Show more..."
And I should not see "Show more..." in the "region-main-box" "region"
And I should see "Show less..."

View File

@ -56,5 +56,5 @@ Feature: Students can edit or delete their forum posts within a set time limit
Scenario: Time limit expires
When I wait "70" seconds
And I follow "Forum post subject"
Then I should not see "Edit"
And I should not see "Delete"
Then I should not see "Edit" in the "region-main" "region"
And I should not see "Delete" in the "region-main" "region"

View File

@ -13,7 +13,9 @@ Feature: Delete files and folders from the file manager
And I create "Delete me" folder in "Files" filepicker
And I press "Save changes"
When I delete "empty.txt" from "Files" filepicker
And I press "Save changes"
Then I should not see "empty.txt"
And I delete "Delete me" from "Files" filepicker
And I press "Save changes"
And I should not see "Delete me"
And I press "Cancel"