Skip to content
Snippets Groups Projects
Commit 382bdbb1 authored by Tim Hunt's avatar Tim Hunt
Browse files

Fix restore test

parent de0fb948
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,9 @@ jobs:
moodle-branch: 'master'
database: 'pgsql'
- php: '7.4'
moodle-branch: 'MOODLE_400_STABLE'
database: 'pgsql'
- php: '7.3'
moodle-branch: 'MOODLE_311_STABLE'
database: 'pgsql'
- php: '7.3'
......@@ -148,7 +151,6 @@ jobs:
run: moodle-plugin-ci phpunit
- name: Behat features
continue-on-error: true # Currently fails. We really ought to get this passing.
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
@qtype @qtype_stack
Feature: Test restoring the STACK demo course
Feature: Test restoring a backup including STACK questions
In order to reuse all the existing shared STACK questions
As an admin
I need to restore the STACK demo course.
Background:
Given I log in as "admin"
Given the following "courses" exist:
| fullname | shortname |
| Demonstrating STACK | STACK |
And I log in as "admin"
And I navigate to "Courses > Restore course" in site administration
And I click on "Manage backup files" "button" in the "//h2[contains(., 'User private backup area')]/following-sibling::div[1]" "xpath_element"
And I upload "question/type/stack/samplequestions/STACK-demo.mbz" file to "Files" filemanager
And I upload "question/type/stack/samplequestions/STACK-syntax-quiz.mbz" file to "Files" filemanager
And I press "Save changes"
@javascript @_file_upload
Scenario: Restore the STACK demo course.
When I restore "STACK-demo.mbz" backup into a new course using this options:
And I am on "Demonstrating STACK (v4.3.9)" course homepage
Then I should see "Demonstration quiz"
And I am on the "Demonstrating STACK (v4.3.9)" "core_question > course question bank" page
And I set the field "Select a category" to "Example_questions"
And I should see "Cart speed analysis"
When I restore "STACK-syntax-quiz" backup into "Demonstrating STACK" course using this options:
And I am on "Demonstrating STACK" course homepage
Then I should see "Stack Syntax Quiz"
And I am on the "Stack Syntax Quiz" "mod_quiz > edit" page
And I should see "Syntax-21-Numbers-Greek"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment