mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-76193 Questions: Backup and Restore with tags fails
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
backup/moodle2/tests/behat/backup_restore_question_tags.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@core @core_backup | ||
Feature: Backup and restore of the question that was tagged | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | category | | ||
| Course 1 | C1 | 0 | | ||
|
||
@javascript @_file_upload | ||
Scenario: Restore the quiz containing the question that was tagged | ||
Given I am on the "Course 1" "restore" page logged in as "admin" | ||
And I press "Manage backup files" | ||
And I upload "backup/moodle2/tests/fixtures/test_tags_backup.mbz" file to "Files" filemanager | ||
And I press "Save changes" | ||
And I restore "test_tags_backup.mbz" backup into a new course using this options: | ||
| Schema | Course name | Course 2 | | ||
| Schema | Course short name | C2 | | ||
When I am on the "TF1" "core_question > edit" page logged in as admin | ||
And I expand all fieldsets | ||
Then I should see "Tag1-TF1" | ||
And I should see "Tag2-TF1" | ||
And I am on the "TF2" "core_question > edit" page logged in as admin | ||
And I expand all fieldsets | ||
And I should see "Tag1-TF2" |
Binary file not shown.