Skip to content
Snippets Groups Projects
Commit b137fc13 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Add in additional workflows, as suggested in Issue #953.

parent ed2f1a3a
Branches
No related tags found
No related merge requests found
...@@ -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'
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment