Skip to content

Commit

Permalink
MDL-42777 courses: Added behat to test ajax on course view page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Nov 8, 2013
1 parent 428a1bb commit be3d6de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion course/tests/behat/course_change_visibility.feature
Expand Up @@ -90,4 +90,14 @@ Feature: We can change the visibility of courses in the management interface.
# AJAX updates the visibility
And category in management listing should be visible "CAT1"
And course in management listing should be dimmed "C1"
And I toggle visibility of category "CAT1" in management listing
And I toggle visibility of category "CAT1" in management listing
And I toggle visibility of course "C1" in management listing
And I click on "Viewing Course categories and courses" "link"
And I click on "Courses" "link"
# Redirect
And I should see "Course 1" in the "#course-listing ul.ml" "css_element"
And I toggle visibility of course "C1" in management listing
# AJAX updates the visibility
And course in management listing should be dimmed "C1"
And I toggle visibility of course "C1" in management listing
And course in management listing should be visible "C1"

0 comments on commit be3d6de

Please sign in to comment.