-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOBILE-4428 quiz: Fix adaptive behaviour
- Loading branch information
1 parent
2019283
commit 33f61c3
Showing
4 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@mod @mod_quiz @app @javascript | ||
Feature: Use adaptive quizzes in the app | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | | ||
| Course 1 | C1 | | ||
And the following "users" exist: | ||
| username | | ||
| student1 | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| student1 | C1 | student | | ||
And the following "activities" exist: | ||
| activity | name | course | idnumber | preferredbehaviour | | ||
| quiz | Quiz | C1 | quiz | adaptive | | ||
And the following "question categories" exist: | ||
| contextlevel | reference | name | | ||
| Course | C1 | Test questions | | ||
And the following "questions" exist: | ||
| questioncategory | qtype | name | | ||
| Test questions | multichoice | TF1 | | ||
And quiz "Quiz" contains the following questions: | ||
| question | page | | ||
| TF1 | 1 | | ||
|
||
Scenario: Checks answers before submitting | ||
Given I entered the quiz activity "Quiz" on course "Course 1" as "student1" in the app | ||
And I press "Attempt quiz now" in the app | ||
|
||
When I press "Two" in the app | ||
And I press "Check" in the app | ||
And I press "OK" near "Are you sure?" in the app | ||
Then I should find "That is not right at all" in the app | ||
|
||
When I press "Two" in the app | ||
And I press "One" in the app | ||
And I press "Check" in the app | ||
And I press "OK" near "Are you sure?" in the app | ||
Then I should find "Parts, but only parts, of your response are correct" in the app | ||
|
||
When I press "Three" in the app | ||
And I press "Check" in the app | ||
And I press "OK" near "Are you sure?" in the app | ||
Then I should find "Well done" in the app | ||
|
||
When I press "Submit" in the app | ||
And I press "Submit all and finish" in the app | ||
And I press "OK" near "Once you submit" in the app | ||
Then I should find "Mark 0.33 out of 1.00" in the app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters