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
b137fc13
Commit
b137fc13
authored
2 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Add in additional workflows, as suggested in Issue #953.
parent
ed2f1a3a
Branches
Branches containing commit
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
+8
-0
8 additions, 0 deletions
.github/workflows/moodle-ci.yml
tests/behat/restore_reveal_question.feature
+23
-2
23 additions, 2 deletions
tests/behat/restore_reveal_question.feature
with
31 additions
and
2 deletions
.github/workflows/moodle-ci.yml
+
8
−
0
View file @
b137fc13
...
@@ -40,6 +40,14 @@ jobs:
...
@@ -40,6 +40,14 @@ jobs:
moodle-branch
:
'
master'
moodle-branch
:
'
master'
database
:
'
pgsql'
database
:
'
pgsql'
maxima
:
'
SBCL'
maxima
:
'
SBCL'
-
php
:
'
8.1'
moodle-branch
:
'
MOODLE_402_STABLE'
database
:
'
pgsql'
maxima
:
'
SBCL'
-
php
:
'
8.0'
moodle-branch
:
'
MOODLE_402_STABLE'
database
:
'
pgsql'
maxima
:
'
SBCL'
-
php
:
'
7.4'
-
php
:
'
7.4'
moodle-branch
:
'
MOODLE_401_STABLE'
moodle-branch
:
'
MOODLE_401_STABLE'
database
:
'
pgsql'
database
:
'
pgsql'
...
...
This diff is collapsed.
Click to expand it.
tests/behat/restore_reveal_question.feature
+
23
−
2
View file @
b137fc13
...
@@ -15,7 +15,8 @@ Feature: Test restoring and testing an individual STACK question from the sample
...
@@ -15,7 +15,8 @@ Feature: Test restoring and testing an individual STACK question from the sample
And
I press
"Save changes"
And
I press
"Save changes"
@javascript
@_file_upload
@javascript
@_file_upload
Scenario
:
Restore the STACK demo course.
Scenario
:
Restore the STACK demo course on a Moodle ≤ 3.11
Given
the site is running Moodle version 3.11 or lower
When I restore "STACK-reveal-test" backup into "Demonstrating STACK" course using this options
:
When I restore "STACK-reveal-test" backup into "Demonstrating STACK" course using this options
:
And
I am on
"Demonstrating STACK"
course homepage
And
I am on
"Demonstrating STACK"
course homepage
Then
I should see
"Reveal block test"
Then
I should see
"Reveal block test"
...
@@ -23,7 +24,27 @@ Feature: Test restoring and testing an individual STACK question from the sample
...
@@ -23,7 +24,27 @@ Feature: Test restoring and testing an individual STACK question from the sample
# Moodle 3.9 has "Attempt quiz now"
# Moodle 3.9 has "Attempt quiz now"
# Moodle 4.0 has "Preview quiz"
# Moodle 4.0 has "Preview quiz"
# At least `And I click on "quiz" "button"` works...
# At least `And I click on "quiz" "button"` works...
And
I click on
"quiz"
"button"
And
I click on
"Attempt quiz now"
"button"
Then
I should see
"made from the straight line through the origin"
When
I set the input
"ans1"
to
"true"
in the STACK question
And
I wait
"2"
seconds
Then
I should see
"If true write the subspace in parametric form"
When
I set the input
"ans2_sub_0_0"
to
"-t"
in the STACK question
When
I set the input
"ans2_sub_1_0"
to
"3*t"
in the STACK question
When
I set the input
"ans2_sub_2_0"
to
"2*t"
in the STACK question
When
I set the input
"ans3"
to
"[t]"
in the STACK question
And
I wait
"2"
seconds
When
I press
"Check"
Then
I should see
"Correct answer, well done."
@javascript
@_file_upload
Scenario
:
Restore the STACK demo course on a Moodle ≥ 4.0
Given
the site is running Moodle version 4.0 or higher
When I restore "STACK-reveal-test" backup into "Demonstrating STACK" course using this options
:
And
I am on
"Demonstrating STACK"
course homepage
Then
I should see
"Reveal block test"
When
I follow
"Reveal block test"
And
I click on
"Preview quiz"
"button"
Then
I should see
"made from the straight line through the origin"
Then
I should see
"made from the straight line through the origin"
When
I set the input
"ans1"
to
"true"
in the STACK question
When
I set the input
"ans1"
to
"true"
in the STACK question
And
I wait
"2"
seconds
And
I wait
"2"
seconds
...
...
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