Skip to content

Commit

Permalink
MDL-58438 core_badges: fix behat issues on award badge feature
Browse files Browse the repository at this point in the history
Part of MDL-55611 epic.
  • Loading branch information
lameze authored and danpoltawski committed Apr 4, 2017
1 parent 42e76c3 commit 7698ecb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions badges/tests/behat/award_badge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ Feature: Award badges
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
| id_completion | 1 |
And I am on "Course 1" course homepage
And I navigate to "Add a new badge" node in "Course administration > Badges"
And I follow "Add a new badge"
Expand All @@ -157,7 +158,7 @@ Feature: Award badges
And I click on "Course 1" "link" in the "region-main" "region"
Then I should not see "badges"
And I am on "Course 1" course homepage
And I press "Mark as complete: Test assignment name"
And I click on "Not completed: Test assignment name" "icon"
And I follow "Profile" in the user menu
And I click on "Course 1" "link" in the "region-main" "region"
Then I should see "Course Badge"
Expand Down Expand Up @@ -186,6 +187,7 @@ Feature: Award badges
| Assignment name | Test assignment name |
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
| id_completion | 1 |
And I navigate to "Course completion" node in "Course administration"
And I set the field "id_overall_aggregation" to "2"
And I click on "Condition: Activity completion" "link"
Expand All @@ -211,7 +213,7 @@ Feature: Award badges
And I click on "Course 1" "link" in the "region-main" "region"
Then I should not see "badges"
And I am on "Course 1" course homepage
And I click on "Not completed: Test assignment name. Select to mark as complete." "icon"
And I click on "Not completed: Test assignment name" "icon"
And I log out
# Completion cron won't mark the whole course completed unless the
# individual criteria was marked completed more than a second ago. So
Expand Down

0 comments on commit 7698ecb

Please sign in to comment.