-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Behat tests for multiple tags using a backup mbz
- Loading branch information
1 parent
611c46b
commit 31ccbc6
Showing
2 changed files
with
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@qbank @qbank_bulktags @qbank_bulktags_multitag | ||
|
||
Feature: Testing multiple_tags in qbank_bulktags | ||
Background: | ||
And the following "course" exists: | ||
| fullname | Course 1 | | ||
| shortname | C1 | | ||
# Without this it will show the pending progress bar and the back | ||
# to course button introduced in Moodle 4.3 | ||
# https://docs.moodle.org/403/en/Course_backup#Asynchronous_course_backups | ||
And the following config values are set as admin: | ||
| enableasyncbackup | 0 | | ||
@javascript @_file_upload | ||
Scenario: Restore the bulktags_test course | ||
# Scenario: Restore course containing quiz questions | ||
Given I am on the "Course 1" "restore" page logged in as "admin" | ||
And I press "Manage course backups" | ||
And I upload "question/bank/bulktags/tests/fixtures/bulktags_test.mbz" file to "Files" filemanager | ||
And I press "Save changes" | ||
And I restore "bulktags_test.mbz" backup into a new course using this options: | ||
| Schema | Course name | Bulk Tags Test | | ||
| Schema | Course short name | BulkTagsTest | | ||
And I am on the "Course 1" course page logged in as "Admin" | ||
|
Binary file not shown.