Skip to content

Commit

Permalink
backup
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Apr 13, 2024
1 parent 25bf029 commit 242583b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/behat/enrol_coursecompleted.feature
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,25 @@ Feature: Enrolment on course completion
And I press "Save changes"
And I should see "Username 1" in the "participants" "table"
And I should see "Suspended" in the "participants" "table"

@javascript
Scenario: Admin can backup and restore a course with enrol course completions
Given I set the following fields to these values:
| Course | Course 1 |
And I press "Add method"
And I am on "Course 2" course homepage
And I log out
And I log in as "admin"
When I am on "Course 2" course homepage
And I backup "Course 2" course using this options:
| Confirmation | Filename | test_backup.mbz |
And I restore "test_backup.mbz" backup into a new course using this options:
| Schema | Course name | Course 3 |
| Schema | Course short name | C3 |
And I am on "Course 3" course homepage
And I navigate to course participants
Then I should see "1 participants found"
And I should not see "Username 1" in the "participants" "table"
And I should not see "Username 2" in the "participants" "table"
And I am on the "Course 3" "enrolment methods" page
And I should see "After completing course: C1"

0 comments on commit 242583b

Please sign in to comment.