itemengine-cypress-automation 1.0.196-drawingResponseMigration-0f99062.0 → 1.0.197-15thMayFixes-958decd.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +54 -33
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +22 -22
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabScoringSection.js +10 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +8 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +6 -6
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +3 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +7 -6
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -3
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -3
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +6 -12
- package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +12 -12
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
- 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/evaluationMethodSymbolsAreEquivalent.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +2 -5
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +5 -0
- package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +4 -3
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +10 -28
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +10 -10
- package/cypress/pages/chartsDotPlotPage.js +7 -1
- package/cypress/pages/components/additionalSettingsPanel.js +1 -0
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -0
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -1
- package/cypress/pages/listOrderingPage.js +21 -0
- package/cypress/pages/multipleSelectionPage.js +14 -0
- package/cypress/pages/numberLineLabelPage.js +28 -27
- package/cypress/pages/textEntryMathPage.js +0 -7
- package/package.json +1 -1
@@ -73,8 +73,8 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
73
73
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
74
74
|
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 \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
75
75
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
76
|
-
fillInTheGapsOverImageTextPage.steps.
|
77
|
-
fillInTheGapsOverImageTextPage.steps.
|
76
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
77
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
78
78
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
|
79
79
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
80
80
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -28,7 +28,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
28
28
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
29
29
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
30
30
|
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
|
31
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '
|
31
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
32
32
|
});
|
33
33
|
|
34
34
|
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, correct/incorrect status message should not be displayed and correct answer section with all correct answers along with numeration should be displayed', () => {
|
@@ -39,7 +39,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
39
39
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
40
40
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
|
41
41
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
42
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '
|
42
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
43
43
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
44
44
|
cy.log('When the user attempts the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct/incorrect status message and correct answer section should not be displayed')
|
45
45
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
@@ -59,7 +59,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
59
59
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
60
60
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
|
61
61
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
62
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', '
|
62
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
63
63
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
64
64
|
cy.log('When the user attempts the question partially correct and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, correct/incorrect status message and correct answer section should not be displayed')
|
65
65
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
@@ -77,17 +77,17 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
77
77
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }]);
|
78
78
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 15);
|
79
79
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
80
|
-
fillInTheGapsOverImageTextPage.steps.
|
80
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
81
81
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
82
|
-
fillInTheGapsOverImageTextPage.steps.
|
82
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
83
83
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
84
84
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
85
85
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
86
86
|
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, correct/incorrect status message and correct answer section should not be displayed')
|
87
87
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
88
|
-
fillInTheGapsOverImageTextPage.steps.
|
88
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
89
89
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
90
|
-
fillInTheGapsOverImageTextPage.steps.
|
90
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
91
91
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
92
92
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
93
93
|
});
|
@@ -117,15 +117,15 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
117
117
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaf' }]);
|
118
118
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(5, 15);
|
119
119
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
120
|
-
fillInTheGapsOverImageTextPage.steps.
|
121
|
-
fillInTheGapsOverImageTextPage.steps.
|
120
|
+
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
121
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
122
122
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
123
123
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
124
124
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
125
125
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
126
126
|
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, incorrect icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
127
127
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
128
|
-
fillInTheGapsOverImageTextPage.steps.
|
128
|
+
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
129
129
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
130
130
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
131
131
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
@@ -9,7 +9,7 @@ describe('Create item page - Fill in the gaps over image with text: Response lev
|
|
9
9
|
describe('Auto scored - All or nothing with response level alternate answers', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image
|
12
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
13
13
|
cy.barsPreLoaderWait();
|
14
14
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
15
15
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
@@ -51,13 +51,13 @@ describe('Create item page - Fill in the gaps over image with text: Response lev
|
|
51
51
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(15, 15);
|
52
52
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
53
53
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
54
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('
|
54
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
55
55
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
56
56
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
57
57
|
cy.log('When user attempts the question correctly with the first correct answer set for the response accordion and clicks on \'Check answer\' button, then correct icon should be displayed beside the correct response, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
58
58
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
59
59
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
60
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('
|
60
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
61
61
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
62
62
|
});
|
63
63
|
|
@@ -67,13 +67,13 @@ describe('Create item page - Fill in the gaps over image with text: Response lev
|
|
67
67
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(15, 15);
|
68
68
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
69
69
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
70
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('
|
70
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
71
71
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
72
72
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
73
73
|
cy.log('When the user attempts the question with the alternate answer set for the response accordion and clicks on \'Check answer\' button, then correct icon should be displayed beside the correct response, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
74
74
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
75
75
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
76
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('
|
76
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
77
77
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
78
78
|
});
|
79
79
|
});
|
@@ -203,10 +203,10 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
203
203
|
fillInTheGapsOverImageTextPage.steps.verifyCanvasSelectedMenuText('Select');
|
204
204
|
});
|
205
205
|
|
206
|
-
it(`When user selects text container, then 9 options ${textContainerPointerStyles} should be displayed and by default
|
206
|
+
it(`When user selects text container, then 9 options ${textContainerPointerStyles} should be displayed and by default no pointer style should be selected`, () => {
|
207
207
|
fillInTheGapsOverImageTextPage.steps.selectResponseArea(1);
|
208
208
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.responseAreaStyle(), 9);
|
209
|
-
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(
|
209
|
+
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle('none', 1);
|
210
210
|
});
|
211
211
|
|
212
212
|
it('CSS of text container', { tags: 'css' }, () => {
|
@@ -223,15 +223,15 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
223
223
|
});
|
224
224
|
|
225
225
|
it(`When the user has selected a text container and chooses ${textContainerPointerStyles[0]}, then selected text container should have the specified effect applied, and the other text containers should remain unaffected.`, () => {
|
226
|
-
fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[
|
227
|
-
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[
|
228
|
-
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[
|
226
|
+
fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[1]);
|
227
|
+
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[1], 1);
|
228
|
+
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[0], 0);
|
229
229
|
});
|
230
230
|
|
231
231
|
it(`When the user chooses ${textContainerPointerStyles[5]}, then selected text containers should have the specified effect applied, and the other drop zones should remain unaffected.`, () => {
|
232
232
|
fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[5]);
|
233
233
|
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[5], 1);
|
234
|
-
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[
|
234
|
+
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaPointerStyle(textContainerPointerStyles[0], 0);
|
235
235
|
});
|
236
236
|
});
|
237
237
|
|
@@ -439,7 +439,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
439
439
|
.verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
|
440
440
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
441
441
|
'color': css.color.text,
|
442
|
-
'border-bottom-color':css.color.
|
442
|
+
'border-bottom-color': css.color.correctAnswer
|
443
443
|
});
|
444
444
|
});
|
445
445
|
|
@@ -457,7 +457,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
457
457
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
458
458
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
459
459
|
'color': css.color.text,
|
460
|
-
'border-bottom-color':css.color.
|
460
|
+
'border-bottom-color': css.color.incorrectAnswer
|
461
461
|
});
|
462
462
|
});
|
463
463
|
|
@@ -475,7 +475,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
475
475
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
476
476
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
477
477
|
'color': css.color.text,
|
478
|
-
'border-bottom-color':css.color.incorrect
|
478
|
+
'border-bottom-color': css.color.incorrect
|
479
479
|
});
|
480
480
|
});
|
481
481
|
});
|
@@ -509,8 +509,8 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
509
509
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Ray');
|
510
510
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 7, xRange: 20, y: 7, yRange: 20 }]);
|
511
511
|
graphingPage.steps.switchToGradingView();
|
512
|
-
graphingPage.steps.
|
513
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('
|
512
|
+
graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 7, xRange: 20, y: 7, yRange: 20 }]);
|
513
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
514
514
|
});
|
515
515
|
|
516
516
|
it('When the user attempts the question correctly but using combination of \'Segment\' and \'Ray\' then the answer should be treated as incorrect', () => {
|
@@ -602,13 +602,13 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
602
602
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
603
603
|
});
|
604
604
|
|
605
|
-
it('When user attempts the question using different points but the same line then they should be treated as
|
605
|
+
it('When user attempts the question using different points but the same line then they should be treated as incorrect', () => {
|
606
606
|
graphingPage.steps.resetQuestionPreview();
|
607
607
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Vector');
|
608
608
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: 0, yRange: 20 }, { x: 2, xRange: 20, y: 6, yRange: 20 }]);
|
609
609
|
graphingPage.steps.switchToGradingView();
|
610
|
-
graphingPage.steps.
|
611
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('
|
610
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: -4, xRange: 20, y: 0, yRange: 20 }, { x: 2, xRange: 20, y: 6, yRange: 20 }]);
|
611
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
612
612
|
});
|
613
613
|
|
614
614
|
it('When the user attempts the question correctly but using the \'Ray\' tool then the answer should be treated as incorrect', () => {
|
@@ -2,8 +2,6 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
-
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
7
5
|
|
8
6
|
describe('Create item page - List ordering: All or nothing scoring with alternative answer - When alternative answer points are more than correct answer points', () => {
|
9
7
|
before(() => {
|
@@ -2,7 +2,7 @@ import { listOrderingPage, itemPreviewPage, studentViewPage } from "../../../pag
|
|
2
2
|
import { ckEditorToolbar, equationEditorFlyout } from "../../../pages/components";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
|
-
const previewContentViews = ['Question preview', 'Grading view', 'Correct answer view'];
|
5
|
+
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
6
6
|
const views = utilities.getViews(previewContentViews);
|
7
7
|
var itemReferenceID = "";
|
8
8
|
const css = Cypress.env('css');
|
@@ -124,8 +124,8 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
124
124
|
});
|
125
125
|
|
126
126
|
it('The order of the responses should not be editable', () => {
|
127
|
-
listOrderingPage.steps.selectOptionPositionPreviewTab(2,
|
128
|
-
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), 2), 3);
|
127
|
+
listOrderingPage.steps.selectOptionPositionPreviewTab(2, 1);
|
128
|
+
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), 2), '3');
|
129
129
|
});
|
130
130
|
} else {
|
131
131
|
it('The order of the options should be as per the correct answer order', () => {
|
@@ -99,8 +99,8 @@ describe('Create item page - List ordering: All or nothing scoring with alternat
|
|
99
99
|
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
100
100
|
listOrderingPage.steps.switchToGradingView();
|
101
101
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
102
|
-
listOrderingPage.steps.
|
103
|
-
listOrderingPage.steps.
|
102
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
103
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
104
104
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
105
105
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
106
106
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
@@ -108,8 +108,8 @@ describe('Create item page - List ordering: All or nothing scoring with alternat
|
|
108
108
|
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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
109
109
|
listOrderingPage.steps.checkAnswer()
|
110
110
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
111
|
-
listOrderingPage.steps.
|
112
|
-
listOrderingPage.steps.
|
111
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
112
|
+
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
113
113
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
114
114
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
115
115
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js
CHANGED
@@ -17,14 +17,14 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
17
17
|
cy.barsPreLoaderWait();
|
18
18
|
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
19
19
|
listOrderingPage.steps.addInputToOptionsInputField(options);
|
20
|
-
listOrderingPage.steps.
|
21
|
-
listOrderingPage.steps.
|
20
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
21
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('sprout', 1);
|
22
22
|
listOrderingPage.steps.allotPoints(20);
|
23
23
|
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(correctAnswerArray);
|
24
24
|
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
25
|
-
listOrderingPage.steps.
|
26
|
-
listOrderingPage.steps.
|
27
|
-
listOrderingPage.steps.
|
25
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
26
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('plant', 3);
|
27
|
+
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('flower', 1);
|
28
28
|
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(alternateCorrectAnswerArray);
|
29
29
|
listOrderingPage.steps.allotPoints(20);
|
30
30
|
listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { listOrderingPage } from "../../../../pages";
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
|
+
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
+
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
+
|
4
7
|
describe('Create item page - List ordering: All or nothing penalty scoring', () => {
|
5
8
|
before(() => {
|
6
9
|
cy.loginAs('admin');
|
@@ -70,7 +70,7 @@ describe('Create Item page - List ordering: Manually and non scored', () => {
|
|
70
70
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
71
71
|
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
72
72
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
73
|
-
listOrderingPage.steps.
|
73
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
74
74
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
75
75
|
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, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
76
76
|
listOrderingPage.steps.checkAnswer();
|
@@ -86,6 +86,7 @@ describe('Create Item page - List ordering: Manually and non scored', () => {
|
|
86
86
|
listOrderingPage.steps.resetQuestionPreview();
|
87
87
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
|
88
88
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 0);
|
89
|
+
listOrderingPage.steps.switchToGradingView();
|
89
90
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
90
91
|
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
91
92
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
@@ -244,34 +244,35 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
244
244
|
listOrderingPage.steps.addOption();
|
245
245
|
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
246
246
|
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
247
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 14, 1: 2, 2: 1, 3: 2, 4: 3 });
|
247
248
|
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
248
249
|
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('fruit', 3);
|
249
250
|
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
250
251
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
251
|
-
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
252
|
-
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 14, 1: 2, 2: 1, 3: 2, 4: 3 });
|
253
252
|
listOrderingPage.steps.switchToPreviewTab();
|
254
253
|
|
255
254
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
255
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 1);
|
256
256
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 2);
|
257
|
-
listOrderingPage.steps.
|
258
|
-
listOrderingPage.steps.
|
257
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('fruit', 3);
|
258
|
+
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['seed', 'plant', 'flower', 'fruit', 'sprout']);
|
259
|
+
listOrderingPage.steps.verifyPreviewScore(14, 33);
|
259
260
|
listOrderingPage.steps.switchToGradingView();
|
260
261
|
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
261
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
262
262
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
263
263
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
264
264
|
listOrderingPage.steps.verifyIncorrectOptionIcon('fruit');
|
265
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
265
266
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
266
267
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
267
268
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
268
269
|
cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the alternative accordion than the correct accordion, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
269
270
|
listOrderingPage.steps.checkAnswer()
|
270
271
|
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
271
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
272
272
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
273
273
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
274
274
|
listOrderingPage.steps.verifyIncorrectOptionIcon('fruit');
|
275
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
275
276
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
276
277
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
277
278
|
});
|
@@ -25,7 +25,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
25
25
|
});
|
26
26
|
|
27
27
|
it('When the user switches to the \'Grading view\' without attempting the question, then correct/incorrect icons should be displayed for the default list order, correct/incorrect status message should not be displayed and correct answers section should be displayed with correct answers from the correct accordion', () => {
|
28
|
-
listOrderingPage.steps.verifyPreviewScore(0,
|
28
|
+
listOrderingPage.steps.verifyPreviewScore(0, 12);
|
29
29
|
listOrderingPage.steps.switchToGradingView();
|
30
30
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
31
31
|
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
@@ -244,12 +244,11 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
244
244
|
listOrderingPage.steps.addOption();
|
245
245
|
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
246
246
|
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
247
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
247
248
|
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
248
249
|
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('fruit', 3);
|
249
250
|
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
250
251
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 22, 1: 6, 2: 1, 3: 1, 4: 3 });
|
251
|
-
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
252
|
-
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
253
252
|
listOrderingPage.steps.switchToPreviewTab();
|
254
253
|
|
255
254
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 2);
|
@@ -261,7 +260,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
261
260
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
262
261
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
263
262
|
listOrderingPage.steps.verifyIncorrectOptionIcon('fruit');
|
264
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(
|
263
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower', 'fruit']);
|
265
264
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
266
265
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
267
266
|
cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
@@ -244,21 +244,21 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
244
244
|
listOrderingPage.steps.addOption();
|
245
245
|
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
246
246
|
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
247
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
247
248
|
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
248
249
|
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('fruit', 3);
|
249
250
|
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
250
251
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 14, 1: 2, 2: 1, 3: 2, 4: 3 });
|
251
|
-
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
252
|
-
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
253
252
|
listOrderingPage.steps.switchToPreviewTab();
|
254
253
|
|
255
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed',
|
256
|
-
listOrderingPage.steps.
|
257
|
-
listOrderingPage.steps.
|
254
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 1);
|
255
|
+
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 2);
|
256
|
+
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['sprout', 'seed', 'plant', 'flower', 'fruit']);
|
257
|
+
listOrderingPage.steps.verifyPreviewScore(14, 33);
|
258
258
|
listOrderingPage.steps.switchToGradingView();
|
259
259
|
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
260
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
261
260
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
261
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
262
262
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
263
263
|
listOrderingPage.steps.verifyIncorrectOptionIcon('fruit');
|
264
264
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower', 'fruit']);
|
@@ -267,8 +267,8 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
267
267
|
cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
268
268
|
listOrderingPage.steps.checkAnswer();
|
269
269
|
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
270
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
271
270
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
271
|
+
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
272
272
|
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
273
273
|
listOrderingPage.steps.verifyIncorrectOptionIcon('fruit');
|
274
274
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js
CHANGED
@@ -75,7 +75,6 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
75
75
|
});
|
76
76
|
});
|
77
77
|
|
78
|
-
//Failing due to https://redmine.zeuslearning.com/issues/569390
|
79
78
|
describe('Question preview: Auto scored - Partial different weights: Rounding', () => {
|
80
79
|
abortEarlySetup();
|
81
80
|
before(() => {
|
@@ -138,7 +137,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
138
137
|
it('When the user has set \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
139
138
|
listOrderingPage.steps.resetQuestionPreview();
|
140
139
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
141
|
-
listOrderingPage.steps.verifyPreviewScore(
|
140
|
+
listOrderingPage.steps.verifyPreviewScore(2, 10.5);
|
142
141
|
});
|
143
142
|
|
144
143
|
it('When \'Round negative score to zero\' is in checked state and the user attempts the question incorrectly, then the user should be awarded with 0 points', () => {
|
@@ -222,7 +221,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
222
221
|
//Penalty points for each incorrect option - Specify total penalty points
|
223
222
|
it('When the user sets penalty scoring to \'Penalty points for each incorrect option\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points of all the empty and incorrect option', () => {
|
224
223
|
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
225
|
-
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('
|
224
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('penalty points for each incorrect option');
|
226
225
|
listOrderingPage.steps.allotTotalPenaltyPoints(4);
|
227
226
|
listOrderingPage.steps.switchToPreviewTab();
|
228
227
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
@@ -221,14 +221,14 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
221
221
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
222
222
|
});
|
223
223
|
|
224
|
-
it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with
|
224
|
+
it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points by considering the default list order', () => {
|
225
225
|
listOrderingPage.steps.switchToEditTab();
|
226
226
|
listOrderingPage.steps.expandMinimumScoringDropdown();
|
227
227
|
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
228
228
|
listOrderingPage.steps.allotMinimumPoints(2);
|
229
229
|
listOrderingPage.steps.switchToPreviewTab();
|
230
230
|
listOrderingPage.steps.switchToGradingView();
|
231
|
-
listOrderingPage.steps.verifyPreviewScore(
|
231
|
+
listOrderingPage.steps.verifyPreviewScore(2, 20);
|
232
232
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
233
233
|
});
|
234
234
|
|
@@ -41,7 +41,7 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
|
|
41
41
|
|
42
42
|
it('When the user selects \'Penalty points for each incorrect option\' from the penalty scoring dropdown, \'Automatically set penalty for each incorrect option to total points / no. of incorrect options\' label and checkbox should be displayed, by default the checkbox should be unchecked. Two radio buttons with labels - \'Specify total penalty points\' and \'Specify points for each incorrect option\' should be displayed. By default, \'Specify total penalty points\' radio button should be checked', () => {
|
43
43
|
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
44
|
-
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('
|
44
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('penalty points for each incorrect option');
|
45
45
|
utilities.verifyInnerText(listOrderingPage.automaticallySetPenaltyPointsCheckboxLabel(), 'Automatically set penalty for each incorrect option to total points / no. of incorrect options');
|
46
46
|
utilities.verifyInnerText(listOrderingPage.specifyTotalPenaltyPointsRadioButtonLabel(), 'Specify total penalty points');
|
47
47
|
utilities.verifyInnerText(listOrderingPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), 'Specify points for each incorrect option');
|
@@ -42,7 +42,7 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
42
42
|
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
43
43
|
dialogBoxBase.steps.closeWarningPopup();
|
44
44
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
45
|
-
utilities.verifyInnerText(
|
45
|
+
utilities.verifyInnerText(listOrderingPage.errorMessage(), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
|
46
46
|
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
47
47
|
});
|
48
48
|
|
@@ -50,7 +50,7 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
50
50
|
|
51
51
|
it('When the user checks \'Randomize options\' then the error message should disappear', () => {
|
52
52
|
listOrderingPage.steps.checkRandomizeOptionsCheckbox();
|
53
|
-
utilities.verifyElementVisibilityState(
|
53
|
+
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'notExist');
|
54
54
|
cy.log('Post step: Allotting points to remove the error message')
|
55
55
|
listOrderingPage.steps.allotPoints(10);
|
56
56
|
});
|
@@ -81,6 +81,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
81
81
|
});
|
82
82
|
multipleSelectionPage.correctIcon()
|
83
83
|
.verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
|
84
|
+
multipleSelectionPage.steps.verifyCorrectOptionBorderGradingView(0);
|
84
85
|
});
|
85
86
|
|
86
87
|
it('Accessibility of correct answer state', { tags: 'a11y' }, () => {
|
@@ -232,6 +233,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
232
233
|
});
|
233
234
|
multipleSelectionPage.incorrectIcon()
|
234
235
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
236
|
+
multipleSelectionPage.steps.verifyIncorrectOptionBorderGradingView(5);
|
235
237
|
});
|
236
238
|
|
237
239
|
it('Accessibility of incorrect answer state', { tags: 'a11y' }, () => {
|