Skip to content

Commit

Permalink
Behat tests for multiple tags using a backup mbz
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Oct 1, 2024
1 parent 611c46b commit 31ccbc6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/behat/multiple_tags.feature
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 added tests/fixtures/bulktags_test.mbz
Binary file not shown.

0 comments on commit 31ccbc6

Please sign in to comment.