-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # frontend/src/quiz.tsx
- Loading branch information
Showing
14 changed files
with
131 additions
and
35 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
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
backend/src/main/resources/db/migration/V00006__quiz_question_answers_validation.sql
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 @@ | ||
ALTER TABLE quiz_question ADD COLUMN answers_validation boolean[] NULL; |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Feature: View explanations for answers after responding to a question | ||
|
||
Background: | ||
Given a quiz question "What is the capital of Italy?" bookmarked as "Italy" with answers | ||
| Rome | correct | Rome is the capital of Italy | | ||
| Naples | | Naples is not the capital of Italy | | ||
| Florence | | Florence is not the capital of Italy | | ||
| Palermo | | Palermo is not the capital of Italy | | ||
|
||
Scenario Outline: | ||
When I visit the "<question>" quiz-taking page | ||
And I select the answer "<answer>" | ||
And I submit the quiz | ||
Then I should see "<feedback>" | ||
And I should see the explanation "<explanation>" | ||
Examples: | ||
| question | answer | feedback | explanation | | ||
| Italy | Rome | Correct! | Rome is the capital of Italy | | ||
| Italy | Palermo | Incorrect! | Palermo is not the capital of Italy | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Feature: Question explanation | ||
|
||
Background: | ||
Given a quiz question "What is the capital of Italy?" bookmarked as "Italy" with answers | ||
| Rome | correct | | ||
| Naples | | | ||
| Florence | | | ||
| Palermo | | | ||
And a quiz question "What is the capital of France?" bookmarked as "France" with answers | ||
| Marseille | | | ||
| Lyon | | | ||
| Paris | correct | | ||
| Toulouse | | | ||
|
||
Scenario Outline: | ||
When I visit the "<question>" quiz-taking page | ||
And I select the answer "<answer>" | ||
And I submit the quiz | ||
Then I should see "<feedback>" | ||
And I should see question explanation "<question explanation>" | ||
Examples: | ||
| question | answer | feedback | question explanation | | ||
| Italy | Rome | Correct! | Question Explanation | | ||
| Italy | Palermo | Incorrect! | Question Explanation | | ||
| France | Paris | Correct! | Question Explanation | | ||
| France | Toulouse | Incorrect! | Question Explanation | |