itemengine-cypress-automation 1.0.283-updatedPackageFile-3c0db7c.0 → 1.0.283
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,237 @@
|
|
1
|
+
import { dialogBoxBase, fillInTheGapsTextPage, 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 with text: Partial equal weights for blank responses', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe(`Auto scored - All or nothing scoring`, () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
fillInTheGapsTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
17
|
+
fillInTheGapsTextPage.steps.allotPoints(24);
|
18
|
+
fillInTheGapsTextPage.steps.addResponseArea();
|
19
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
20
|
+
});
|
21
|
+
|
22
|
+
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', () => {
|
23
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
24
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
25
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
26
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
27
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
28
|
+
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
29
|
+
utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
|
30
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
31
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
32
|
+
});
|
33
|
+
|
34
|
+
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', () => {
|
35
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
36
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
|
37
|
+
fillInTheGapsTextPage.steps.clearAnswerInputFieldPreviewTab(0);
|
38
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
39
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(24, 24);
|
40
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
41
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
42
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
43
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
44
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
45
|
+
});
|
46
|
+
|
47
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and enters incorrect response in any response in the preview tab then correct icons should be displayed beside the empty responses, incorrect icons should be displayed beside incorrect responses, points for the correct answers should be allocated and correct answer section should be displayed', () => {
|
48
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
49
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
|
50
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
51
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
52
|
+
//Failing due to https://redmine.zeuslearning.com/issues/588679
|
53
|
+
// fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
54
|
+
// fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
55
|
+
// fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
56
|
+
// fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
57
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
58
|
+
});
|
59
|
+
|
60
|
+
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', () => {
|
61
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
62
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 2, responseText: 'Stem' }]);
|
63
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
64
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
65
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
66
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
67
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
68
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
69
|
+
fillInTheGapsTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
70
|
+
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
71
|
+
utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
|
72
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
73
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
74
|
+
});
|
75
|
+
|
76
|
+
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', () => {
|
77
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
78
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
|
79
|
+
fillInTheGapsTextPage.steps.clearAnswerInputFieldPreviewTab(0);
|
80
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
81
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
82
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
83
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
84
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
85
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
86
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
87
|
+
});
|
88
|
+
|
89
|
+
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', () => {
|
90
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
91
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }]);
|
92
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
93
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
94
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
95
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
96
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
97
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
98
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
99
|
+
});
|
100
|
+
|
101
|
+
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', () => {
|
102
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
103
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
104
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
105
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
106
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
107
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
108
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
109
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
110
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
111
|
+
});
|
112
|
+
|
113
|
+
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', () => {
|
114
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
115
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 2, responseText: 'Stem' }]);
|
116
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(24, 24);
|
117
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
118
|
+
fillInTheGapsTextPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
119
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
120
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
121
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
122
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
123
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
124
|
+
});
|
125
|
+
});
|
126
|
+
|
127
|
+
describe(`Auto scored - Partial equal weights`, () => {
|
128
|
+
abortEarlySetup();
|
129
|
+
before(() => {
|
130
|
+
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
131
|
+
cy.barsPreLoaderWait();
|
132
|
+
fillInTheGapsTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
133
|
+
fillInTheGapsTextPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
|
134
|
+
fillInTheGapsTextPage.steps.allotPoints(24);
|
135
|
+
fillInTheGapsTextPage.steps.addResponseArea();
|
136
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
137
|
+
});
|
138
|
+
|
139
|
+
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', () => {
|
140
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
141
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
142
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
143
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
144
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
145
|
+
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
146
|
+
utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
|
147
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
148
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
149
|
+
});
|
150
|
+
|
151
|
+
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', () => {
|
152
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
153
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
|
154
|
+
fillInTheGapsTextPage.steps.clearAnswerInputFieldPreviewTab(0);
|
155
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
156
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(24, 24);
|
157
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
158
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
159
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
160
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
161
|
+
});
|
162
|
+
|
163
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and enters incorrect response in any response in the preview tab then correct icons should be displayed beside the empty responses, incorrect icons should be displayed beside incorrect responses, points for the correct answers should be allocated and correct answer section should be displayed', () => {
|
164
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
165
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
|
166
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
167
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(16, 24);
|
168
|
+
//Failing due to https://redmine.zeuslearning.com/issues/588679
|
169
|
+
// fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
170
|
+
// fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
171
|
+
// fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
172
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
173
|
+
});
|
174
|
+
|
175
|
+
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', () => {
|
176
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
177
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 2, responseText: 'Stem' }]);
|
178
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
179
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
180
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
181
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
182
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
183
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
184
|
+
fillInTheGapsTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
185
|
+
fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
|
186
|
+
utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
|
187
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
188
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
189
|
+
});
|
190
|
+
|
191
|
+
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', () => {
|
192
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
193
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
|
194
|
+
fillInTheGapsTextPage.steps.clearAnswerInputFieldPreviewTab(0);
|
195
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
196
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(8, 24);
|
197
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
198
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
199
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
200
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
201
|
+
});
|
202
|
+
|
203
|
+
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', () => {
|
204
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
205
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }]);
|
206
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
207
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(16, 24);
|
208
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
209
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
210
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
211
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
212
|
+
});
|
213
|
+
|
214
|
+
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', () => {
|
215
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
216
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
217
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
|
218
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
219
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
220
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
221
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
222
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '', 'Stem']);
|
223
|
+
});
|
224
|
+
|
225
|
+
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', () => {
|
226
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
227
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 2, responseText: 'Stem' }]);
|
228
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(24, 24);
|
229
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
230
|
+
fillInTheGapsTextPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
231
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
232
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
|
233
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
234
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
235
|
+
});
|
236
|
+
});
|
237
|
+
});
|
@@ -56,7 +56,7 @@ describe('Create item page - Matching: All or nothing with grouped options layou
|
|
56
56
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Elephant', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 2 }]);
|
57
57
|
matchingPage.steps.switchToGradingView();
|
58
58
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
59
|
-
matchingPage.steps.
|
59
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
60
60
|
matchingPage.steps.verifyIncorrectOptionIcon(2);
|
61
61
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
62
62
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
@@ -64,7 +64,7 @@ describe('Create item page - Matching: All or nothing with grouped options layou
|
|
64
64
|
/*cy.log('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options and clicks on \'Check answer\' button, then incorrect icon should be displayed besides the dropzone incorrect response and correct icon should be displayed beside the correct response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
65
65
|
matchingPage.steps.checkAnswer();
|
66
66
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
67
|
-
matchingPage.steps.
|
67
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
68
68
|
matchingPage.steps.verifyIncorrectOptionIcon(2);
|
69
69
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
70
70
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -75,7 +75,7 @@ describe('Create item page - Matching: All or nothing with grouped options layou
|
|
75
75
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
|
76
76
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
77
77
|
matchingPage.steps.switchToGradingView();
|
78
|
-
matchingPage.steps.
|
78
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
79
79
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
80
80
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
81
81
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -83,7 +83,7 @@ describe('Create item page - Matching: All or nothing with grouped options layou
|
|
83
83
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
84
84
|
/*cy.log('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete and clicks on \'Check answer\' button, then no icon should be displayed besides the incomplete and correct icon should be displayed beside the correct response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
85
85
|
matchingPage.steps.checkAnswer();
|
86
|
-
matchingPage.steps.
|
86
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
87
87
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
88
88
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
89
89
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -83,7 +83,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
83
83
|
matchingPage.steps.switchToGradingView();
|
84
84
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
85
85
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
86
|
-
matchingPage.steps.
|
86
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
87
87
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
88
88
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
89
89
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -91,7 +91,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
91
91
|
matchingPage.steps.checkAnswer();
|
92
92
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
93
93
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
94
|
-
matchingPage.steps.
|
94
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
95
95
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
96
96
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
97
97
|
});
|
@@ -103,7 +103,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
103
103
|
matchingPage.steps.switchToGradingView();
|
104
104
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
105
105
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
106
|
-
matchingPage.steps.
|
106
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
107
107
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
108
108
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
109
109
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -111,7 +111,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
111
111
|
matchingPage.steps.checkAnswer();
|
112
112
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
113
113
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
114
|
-
matchingPage.steps.
|
114
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
115
115
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
116
116
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
117
117
|
});
|
@@ -121,7 +121,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
121
121
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
|
122
122
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
123
123
|
matchingPage.steps.switchToGradingView();
|
124
|
-
matchingPage.steps.
|
124
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
125
125
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
126
126
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
127
127
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -129,7 +129,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
129
129
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
130
130
|
/*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
131
131
|
matchingPage.steps.checkAnswer();
|
132
|
-
matchingPage.steps.
|
132
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
133
133
|
matchingPage.steps.verifyIncorrectOptionIcon(1);
|
134
134
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
135
135
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -161,16 +161,16 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
161
161
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Cat', dropzoneIndex: 2 }]);
|
162
162
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
163
163
|
matchingPage.steps.switchToGradingView();
|
164
|
-
matchingPage.steps.
|
165
|
-
matchingPage.steps.
|
164
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
165
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
166
166
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
167
167
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
168
168
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
169
169
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
170
170
|
/*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 for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
171
171
|
matchingPage.steps.checkAnswer();
|
172
|
-
matchingPage.steps.
|
173
|
-
matchingPage.steps.
|
172
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
173
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
174
174
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
175
175
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
176
176
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -182,16 +182,16 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
182
182
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
183
183
|
matchingPage.steps.switchToGradingView();
|
184
184
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
185
|
-
matchingPage.steps.
|
186
|
-
matchingPage.steps.
|
185
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
186
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
187
187
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
188
188
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
189
189
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
190
190
|
/*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 for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
191
191
|
matchingPage.steps.checkAnswer();
|
192
192
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
193
|
-
matchingPage.steps.
|
194
|
-
matchingPage.steps.
|
193
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
194
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
195
195
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
196
196
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
197
197
|
});
|
package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js
CHANGED
@@ -83,7 +83,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
83
83
|
matchingPage.steps.switchToGradingView();
|
84
84
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
85
85
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
86
|
-
matchingPage.steps.
|
86
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
87
87
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
88
88
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
89
89
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -91,7 +91,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
91
91
|
matchingPage.steps.checkAnswer();
|
92
92
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
93
93
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
94
|
-
matchingPage.steps.
|
94
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
95
95
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
96
96
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
97
97
|
});
|
@@ -103,7 +103,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
103
103
|
matchingPage.steps.switchToGradingView();
|
104
104
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
105
105
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
106
|
-
matchingPage.steps.
|
106
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
107
107
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
108
108
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
109
109
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -111,7 +111,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
111
111
|
matchingPage.steps.checkAnswer();
|
112
112
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
113
113
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
114
|
-
matchingPage.steps.
|
114
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
115
115
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
116
116
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
117
117
|
});
|
@@ -123,7 +123,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
123
123
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
124
124
|
matchingPage.steps.switchToGradingView();
|
125
125
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
126
|
-
matchingPage.steps.
|
126
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
127
127
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
128
128
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
129
129
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
@@ -131,7 +131,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
131
131
|
/*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion and alternative accordion and no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
132
132
|
matchingPage.steps.checkAnswer();
|
133
133
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
134
|
-
matchingPage.steps.
|
134
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
135
135
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
136
136
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
137
137
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -162,16 +162,16 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
162
162
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Cat', dropzoneIndex: 2 }]);
|
163
163
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
164
164
|
matchingPage.steps.switchToGradingView();
|
165
|
-
matchingPage.steps.
|
166
|
-
matchingPage.steps.
|
165
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
166
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
167
167
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
168
168
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
169
169
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
170
170
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
171
171
|
/*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
172
172
|
matchingPage.steps.checkAnswer();
|
173
|
-
matchingPage.steps.
|
174
|
-
matchingPage.steps.
|
173
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
174
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
175
175
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
176
176
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
177
177
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -183,16 +183,16 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
183
183
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
184
184
|
matchingPage.steps.switchToGradingView();
|
185
185
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
186
|
-
matchingPage.steps.
|
187
|
-
matchingPage.steps.
|
186
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
187
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
188
188
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
189
189
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
190
190
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
191
191
|
/*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
192
192
|
matchingPage.steps.checkAnswer();
|
193
193
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
194
|
-
matchingPage.steps.
|
195
|
-
matchingPage.steps.
|
194
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
195
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
196
196
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
197
197
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
198
198
|
});
|
@@ -135,7 +135,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
135
135
|
matchingPage.steps.switchToGradingView();
|
136
136
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
137
137
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
138
|
-
matchingPage.steps.
|
138
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
139
139
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
140
140
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
141
141
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -143,7 +143,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
143
143
|
matchingPage.steps.checkAnswer();
|
144
144
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
145
145
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
146
|
-
matchingPage.steps.
|
146
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
147
147
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
148
148
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
149
149
|
});
|
@@ -155,7 +155,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
155
155
|
matchingPage.steps.switchToGradingView();
|
156
156
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
157
157
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
158
|
-
matchingPage.steps.
|
158
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
159
159
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
160
160
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
161
161
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -163,7 +163,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
163
163
|
matchingPage.steps.checkAnswer();
|
164
164
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
165
165
|
matchingPage.steps.verifyCorrectOptionIcon(1);
|
166
|
-
matchingPage.steps.
|
166
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
167
167
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
168
168
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
169
169
|
});
|
@@ -174,7 +174,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
174
174
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
175
175
|
matchingPage.steps.switchToGradingView();
|
176
176
|
matchingPage.steps.verifyCorrectOptionIcon(0);
|
177
|
-
matchingPage.steps.
|
177
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
178
178
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
179
179
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
180
180
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
@@ -182,7 +182,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
182
182
|
/*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
183
183
|
matchingPage.steps.checkAnswer();
|
184
184
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
185
|
-
matchingPage.steps.
|
185
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
186
186
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
187
187
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
188
188
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -213,16 +213,16 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
213
213
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Cat', dropzoneIndex: 2 }]);
|
214
214
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
215
215
|
matchingPage.steps.switchToGradingView();
|
216
|
-
matchingPage.steps.
|
217
|
-
matchingPage.steps.
|
216
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
217
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
218
218
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
219
219
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
220
220
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
221
221
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
222
222
|
/*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
223
223
|
matchingPage.steps.checkAnswer();
|
224
|
-
matchingPage.steps.
|
225
|
-
matchingPage.steps.
|
224
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
|
225
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
226
226
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
227
227
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
228
228
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -234,16 +234,16 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
234
234
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
235
235
|
matchingPage.steps.switchToGradingView();
|
236
236
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
237
|
-
matchingPage.steps.
|
238
|
-
matchingPage.steps.
|
237
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
238
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
239
239
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
240
240
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
241
241
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
242
242
|
/*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
243
243
|
matchingPage.steps.checkAnswer();
|
244
244
|
matchingPage.steps.verifyIncorrectOptionIcon(0);
|
245
|
-
matchingPage.steps.
|
246
|
-
matchingPage.steps.
|
245
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
|
246
|
+
matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
|
247
247
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
248
248
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
249
249
|
});
|