Skip to content

Commit

Permalink
MDL-49806 behat: Ensure user is marked complete before runnning cron
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed May 27, 2015
1 parent 803f565 commit e2e37bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions completion/tests/behat/teacher_manual_completion.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ Feature: Allow teachers to manually mark users as complete when configured
And I follow "View course report"
And I should see "Student First"
And I follow "Click to mark user complete"
# Running cron just after clicking sometimes fail, so navigate back
# and ensure the student completion is updated before running cron.
And I am on site homepage
And I follow "Completion course"
And I follow "View course report"
And "//img[contains(@alt, 'Completed')]" "xpath_element" should exist in the "student1" "table_row"
And I trigger cron
And I am on site homepage
And I log out
Expand Down

0 comments on commit e2e37bc

Please sign in to comment.