itemengine-cypress-automation 1.0.283-updatedPackageFile-3c0db7c.0 → 1.0.284-IEI-4866-bc2c255.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/Gzip/gzip.js +7 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +7 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +10 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +11 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/EditItem/editItem.ts +133 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +214 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +228 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +242 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +237 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +239 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +212 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +366 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +306 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +243 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +242 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +289 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +284 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +238 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +279 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +641 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +278 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +228 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +234 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +237 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +134 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +138 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +263 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +166 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +193 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/pages/audioPlayerPage.js +4 -4
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +17 -0
- package/cypress/pages/components/equationEditorFlyout.js +1 -1
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +5 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +41 -1
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/createItemPage.js +38 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +45 -3
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +35 -2
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +34 -7
- package/cypress/pages/multipleSelectionPage.js +17 -2
- package/cypress/pages/numberLineLabelPage.js +3 -3
- package/cypress/pages/readingRulerPage.js +5 -3
- package/cypress/pages/singleSelectionPage.js +5 -2
- package/cypress/pages/textEntryMathPage.js +19 -5
- package/cypress/pages/textSelectionPage.js +1 -1
- package/package.json +1 -1
@@ -35,16 +35,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
35
35
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 2 });
|
36
36
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
|
37
37
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
38
|
-
fillInTheGapsDragAndDropPage.steps.
|
39
|
-
fillInTheGapsDragAndDropPage.steps.
|
38
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
39
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
40
40
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
41
41
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
42
42
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
43
43
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
44
44
|
/*cy.log('When user clicks on Check answer button after he attempts the question incorrectly incorrect icons should be displayed besides all incorrect responses, status message and correct answer section should not be displayed')
|
45
45
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
46
|
-
fillInTheGapsDragAndDropPage.steps.
|
47
|
-
fillInTheGapsDragAndDropPage.steps.
|
46
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
47
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
48
48
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
49
49
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
50
50
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -56,7 +56,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
56
56
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(5, 15);
|
57
57
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
58
58
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
59
|
-
fillInTheGapsDragAndDropPage.steps.
|
59
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
60
60
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
61
61
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
62
62
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
@@ -64,7 +64,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
64
64
|
/*cy.log('When user clicks on Check answer button after he attempts the question partially correct with some correct, some incomplete, some incorrect options, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, status message and correct answer section should not be displayed')
|
65
65
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
66
66
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
67
|
-
fillInTheGapsDragAndDropPage.steps.
|
67
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
68
68
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
69
69
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
70
70
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -75,7 +75,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
75
75
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
76
76
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(10, 15);
|
77
77
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
78
|
-
fillInTheGapsDragAndDropPage.steps.
|
78
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
81
81
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -83,7 +83,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
84
84
|
/*cy.log('When user clicks on Check answer button after he attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, status message and correct answer section should not be displayed')
|
85
85
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
86
|
-
fillInTheGapsDragAndDropPage.steps.
|
86
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
87
87
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
88
88
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
89
89
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
78
78
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(6, 15);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
|
-
fillInTheGapsDragAndDropPage.steps.
|
81
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -86,7 +86,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
87
87
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message should not be displayed and correct answer section should not be displayed')
|
88
88
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.
|
89
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
90
90
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
98
98
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
99
99
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(10, 15);
|
100
100
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
101
|
-
fillInTheGapsDragAndDropPage.steps.
|
101
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
102
102
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -106,7 +106,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
106
106
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
107
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
108
108
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
109
|
-
fillInTheGapsDragAndDropPage.steps.
|
109
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
110
110
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
120
120
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
121
121
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
123
|
-
fillInTheGapsDragAndDropPage.steps.
|
123
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
124
124
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -128,7 +128,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
128
128
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
129
129
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
131
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
132
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
134
134
|
});
|
@@ -159,16 +159,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
159
159
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(5, 15);
|
160
160
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
161
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
162
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
162
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
164
164
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
168
168
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
169
169
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
170
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
170
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
174
174
|
});
|
@@ -179,16 +179,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
179
179
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
|
180
180
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
181
181
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
182
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
182
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
184
184
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
188
188
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
189
189
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
190
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
190
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
192
192
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
194
194
|
});
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
78
78
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(10, 15);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
|
-
fillInTheGapsDragAndDropPage.steps.
|
81
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -86,7 +86,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
87
87
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message should not be displayed and correct answer section should not be displayed')
|
88
88
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.
|
89
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
90
90
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
98
98
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
99
99
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(10, 15);
|
100
100
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
101
|
-
fillInTheGapsDragAndDropPage.steps.
|
101
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
102
102
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -106,7 +106,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
106
106
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
107
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
108
108
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
109
|
-
fillInTheGapsDragAndDropPage.steps.
|
109
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
110
110
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
120
120
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
121
121
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
123
|
-
fillInTheGapsDragAndDropPage.steps.
|
123
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
124
124
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -128,7 +128,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
128
128
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
129
129
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
131
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
132
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
134
134
|
});
|
@@ -159,16 +159,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
159
159
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(5, 15);
|
160
160
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
161
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
162
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
162
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
164
164
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
168
168
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
169
169
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
170
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
170
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
174
174
|
});
|
@@ -179,16 +179,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
179
179
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
|
180
180
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
181
181
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
182
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
182
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
184
184
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
188
188
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
189
189
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
190
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
190
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
192
192
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
194
194
|
});
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
78
78
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(10, 15);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
|
-
fillInTheGapsDragAndDropPage.steps.
|
81
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -86,7 +86,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
87
87
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message should not be displayed and correct answer section should not be displayed')
|
88
88
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.
|
89
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
90
90
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
98
98
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
99
99
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(6, 15);
|
100
100
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
101
|
-
fillInTheGapsDragAndDropPage.steps.
|
101
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
102
102
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -106,7 +106,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
106
106
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
107
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
108
108
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
109
|
-
fillInTheGapsDragAndDropPage.steps.
|
109
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
110
110
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
120
120
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
121
121
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
123
|
-
fillInTheGapsDragAndDropPage.steps.
|
123
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
124
124
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -128,7 +128,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
128
128
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
129
129
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
131
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
132
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
134
134
|
});
|
@@ -159,16 +159,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
159
159
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(5, 15);
|
160
160
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
161
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
162
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
162
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
164
164
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
168
168
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
169
169
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
170
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
170
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
174
174
|
});
|
@@ -179,16 +179,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
179
179
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
|
180
180
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
181
181
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
182
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
182
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
184
184
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
|
188
188
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
189
189
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
190
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
190
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
192
192
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
194
194
|
});
|
@@ -41,7 +41,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
|
|
41
41
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
42
42
|
/*cy.log('When the user attempts the question incorrectly and clicks on \'Check answer\' button, incorrect icon should be displayed besides the incorrect response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
43
43
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
44
|
-
fillInTheGapsDragAndDropPage.steps.
|
44
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
45
45
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
46
46
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
47
47
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -0,0 +1,228 @@
|
|
1
|
+
import { dialogBoxBase, fillInTheGapsOverImageDragAndDropPage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../../support/helpers/utilities";
|
4
|
+
var itemReferenceID = "";
|
5
|
+
|
6
|
+
describe('Create item page - Fill in the gaps over image with drag and drop: All or nothing and Partial equal weights for blank responses', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe(`Auto scored - All or nothing for blank response`, () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop');
|
17
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
19
|
+
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(24);
|
20
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
21
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
22
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
23
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
24
|
+
});
|
25
|
+
|
26
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
27
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
28
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
29
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
30
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
31
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
32
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
33
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
34
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
35
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
36
|
+
});
|
37
|
+
|
38
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
|
39
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
40
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
41
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
42
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
43
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
44
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
45
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
46
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
47
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
48
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
49
|
+
});
|
50
|
+
|
51
|
+
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
52
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
53
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
|
54
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
|
55
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
56
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
57
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
58
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
59
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
60
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
61
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
62
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
63
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
64
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
65
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
66
|
+
});
|
67
|
+
|
68
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
69
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
70
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
71
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
72
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
73
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
74
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
75
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
76
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
77
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
78
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
79
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
80
|
+
});
|
81
|
+
|
82
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
83
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
84
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
|
85
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
86
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
87
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
88
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
89
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
90
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
91
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
92
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
93
|
+
});
|
94
|
+
|
95
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
96
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
97
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
|
98
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
99
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
100
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
101
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
102
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
103
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
104
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
105
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
106
|
+
});
|
107
|
+
|
108
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
109
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
110
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
|
111
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
112
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
113
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
114
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
115
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
116
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
117
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
118
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
119
|
+
});
|
120
|
+
});
|
121
|
+
|
122
|
+
describe(`Auto scored - Partial equal weights for blank response`, () => {
|
123
|
+
abortEarlySetup();
|
124
|
+
before(() => {
|
125
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
126
|
+
cy.barsPreLoaderWait();
|
127
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop');
|
128
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
129
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
130
|
+
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(24);
|
131
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
|
132
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
133
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
134
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
135
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
136
|
+
});
|
137
|
+
|
138
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
139
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
140
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
141
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
142
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
143
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
144
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
145
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
146
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
147
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
148
|
+
});
|
149
|
+
|
150
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
|
151
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
152
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
153
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
154
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
155
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
156
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
157
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
158
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
159
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
160
|
+
});
|
161
|
+
|
162
|
+
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
163
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
164
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
|
165
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
|
166
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
167
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
168
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
169
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
170
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
171
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
172
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
173
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
174
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
175
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
176
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
177
|
+
});
|
178
|
+
|
179
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
180
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
181
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
182
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
183
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
184
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(8, 24);
|
185
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
186
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
187
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
188
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
189
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
193
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
194
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
|
195
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
196
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(16, 24);
|
197
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
198
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
199
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
200
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
201
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
202
|
+
});
|
203
|
+
|
204
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
205
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
206
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
|
207
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
208
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
209
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
210
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
211
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
212
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
213
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
214
|
+
});
|
215
|
+
|
216
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
217
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
218
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
|
219
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
220
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
221
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
222
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
223
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
224
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
225
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
226
|
+
});
|
227
|
+
});
|
228
|
+
});
|
@@ -66,9 +66,9 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Manual
|
|
66
66
|
|
67
67
|
it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed and the correct answer section should be displayed with correct answers', () => {
|
68
68
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
69
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
70
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
71
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
69
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
70
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
71
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
72
72
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
73
73
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
74
74
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToStudentView();
|