Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
382bdbb1
Commit
382bdbb1
authored
2 years ago
by
Tim Hunt
Browse files
Options
Downloads
Patches
Plain Diff
Fix restore test
parent
de0fb948
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/moodle-ci.yml
+3
-1
3 additions, 1 deletion
.github/workflows/moodle-ci.yml
tests/behat/restore_demo.feature
+11
-9
11 additions, 9 deletions
tests/behat/restore_demo.feature
with
14 additions
and
10 deletions
.github/workflows/moodle-ci.yml
+
3
−
1
View file @
382bdbb1
...
...
@@ -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
This diff is collapsed.
Click to expand it.
tests/behat/restore_demo.feature
+
11
−
9
View file @
382bdbb1
@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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment