Permalink
Browse files

MDL-39717 behat: Removing unstable steps and scenarios

  • Loading branch information...
1 parent a3c292e commit c340dca9b0dceabd264892a44c1fc27d3643f3b7 @dmonllao dmonllao committed May 17, 2013
Showing with 4 additions and 26 deletions.
  1. +4 −7 course/tests/behat/course_controls.feature
  2. +0 −19 course/tests/behat/move_activities.feature
@@ -4,10 +4,10 @@ Feature: Course activity controls works as expected
As a teacher
I need to edit, hide, show and indent activities inside course sections
- # This two scenario outlines contains exactly the same steps, the
- # only difference is whether JS is enabled or not; we can not use
- # Background sections when using Scenario Outlines because of Behat
- # framework restrictions.
+ # The difference between these two scenario outlines is that one is with
+ # JS enabled and the other one with JS disabled, also with JS disabled we
+ # add the delete activity checking; we can not use Background sections
+ # when using Scenario Outlines because of Behat framework restrictions.
# We are testing:
# * Javascript on and off
@@ -61,9 +61,6 @@ Feature: Course activity controls works as expected
And "#section-2" "css_element" <should_see_other_sections> exists
And I click on "Hide" "link" in the "Test forum name 1" activity
And "#section-2" "css_element" <should_see_other_sections> exists
- And I delete "Test forum name 1" activity
- And "#section-2" "css_element" <should_see_other_sections> exists
- And I should not see "Test forum name 1" in the ".region-content" "css_element"
And I duplicate "Test forum name 2" activity editing the new copy with:
| Forum name | Edited test forum name 2 |
And "#section-2" "css_element" <should_see_other_sections> exists
@@ -27,25 +27,6 @@ Feature: Activities can be moved between sections
| Forum name | Test forum name |
| Description | Test forum description |
- @javascript @_cross_browser
- Scenario: Move activities in a single page course with Javascript enabled
- When I move "Test forum name" activity to section "2"
- And I reload the page
- Then I should see "Test forum name" in the "#section-2" "css_element"
- And I should not see "Test forum name" in the "#section-1" "css_element"
-
- @javascript @_cross_browser
- Scenario: Move activities in the course home with Javascript enabled using paged mode
- Given I follow "Edit settings"
- And I fill the moodle form with:
- | Course layout | Show one section per page |
- And I press "Save changes"
- When I move "Test forum name" activity to section "2"
- # This reload step is added because of drap&drop & yui dd problem
- And I reload the page
- Then I should see "Test forum name" in the "#section-2" "css_element"
- And I should not see "Test forum name" in the "#section-1" "css_element"
-
Scenario: Move activities in a single page course with Javascript disabled
When I move "Test forum name" activity to section "2"
Then I should see "Test forum name" in the "#section-2" "css_element"

0 comments on commit c340dca

Please sign in to comment.