itemengine-cypress-automation 1.0.204-graphQLUpdate-b0c0036.0 → 1.0.204
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +22 -22
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +8 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +5 -1
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +19 -21
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +2 -4
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +14 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +6 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +56 -56
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +8 -3
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +248 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +3 -0
- package/cypress/e2e/ILC/SingleSelection/additionalSettings.js +249 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +0 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/chartsDotsPlot/dotTypeFunctionality.js +235 -0
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +5 -5
- package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +265 -0
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +594 -0
- package/cypress/e2e/ILC/chartsDotsPlot/studentViewSettings.js +2 -3
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
- package/cypress/fixtures/fillColorDefaultProperties.js +2 -2
- package/cypress/pages/chartsDotPlotPage.js +588 -59
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -1
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +10 -1
- package/cypress/pages/components/customizeMathCharacterComponent.js +10 -5
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +2 -2
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +4 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +11 -11
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +20 -18
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +164 -24
- package/cypress/pages/dialogBoxBase.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -5
- package/cypress/pages/drawingResponsePage.js +3 -3
- package/cypress/pages/feedbackScalePage.js +16 -9
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +6 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +2 -1
- package/cypress/pages/gridFillPage.js +17 -14
- package/cypress/pages/itemPreviewSettingsPage.js +1 -0
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/multipleSelectionPage.js +173 -1
- package/cypress/pages/singleSelectionPage.js +171 -1
- package/package.json +2 -2
@@ -117,59 +117,59 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
117
117
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
118
118
|
});
|
119
119
|
|
120
|
-
it('When
|
120
|
+
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', () => {
|
121
121
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
122
|
-
dragAndDropIntoCategoriesPage.steps.
|
123
|
-
dragAndDropIntoCategoriesPage.steps.
|
124
|
-
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
|
122
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
123
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(20, 20);
|
125
124
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
126
|
-
dragAndDropIntoCategoriesPage.steps.
|
125
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
126
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
127
127
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
128
128
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
129
129
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
130
130
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
131
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
132
|
-
dragAndDropIntoCategoriesPage.steps.
|
133
|
-
|
134
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
132
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
133
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
135
134
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
136
|
-
/*cy.log('When the user
|
135
|
+
/*cy.log('When the user has attempted the question correctly 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')
|
137
136
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
138
|
-
dragAndDropIntoCategoriesPage.steps.
|
137
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
139
138
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
140
139
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
141
140
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
142
141
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
143
142
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
144
|
-
dragAndDropIntoCategoriesPage.steps.
|
145
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
143
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
146
144
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
147
145
|
});
|
148
146
|
|
149
|
-
it('When user attempts the
|
147
|
+
it('When the user attempts question with the common option from another group and all other correct options then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed', () => {
|
150
148
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
151
|
-
dragAndDropIntoCategoriesPage.steps.
|
152
|
-
dragAndDropIntoCategoriesPage.steps.
|
149
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromNthGroupInDropzonePreviewTab(3, { optionText: 'Bat', dropzoneIndex: 0 })
|
150
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
151
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
|
153
152
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
154
|
-
dragAndDropIntoCategoriesPage.steps.
|
155
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
153
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
156
154
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
157
155
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
158
156
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
159
157
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
160
158
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
161
|
-
dragAndDropIntoCategoriesPage.steps.
|
162
|
-
dragAndDropIntoCategoriesPage.steps.
|
159
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
|
160
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
161
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
162
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
164
|
-
/*cy.log('When the user
|
163
|
+
/*cy.log('When the user attempts the question with the common option from another group then the user should be awarded and clicks on \'Check answer\' button, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
165
164
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
166
|
-
dragAndDropIntoCategoriesPage.steps.
|
165
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
167
166
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
168
167
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
169
168
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
170
169
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
171
170
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
172
|
-
dragAndDropIntoCategoriesPage.steps.
|
171
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
|
172
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
173
173
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
174
174
|
});
|
175
175
|
});
|
@@ -171,7 +171,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
171
171
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
172
172
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(5);
|
173
173
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
174
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['
|
174
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus']], ['1', '2', '4', '5']);
|
175
175
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
176
176
|
/*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the responses from the alternative accordion response as well as common response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
177
177
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -174,7 +174,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
174
174
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
175
175
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
176
176
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
177
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(
|
177
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
178
178
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
179
179
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
180
180
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -20,7 +20,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
20
20
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
21
21
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per dropzone');
|
22
22
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
23
|
-
|
23
|
+
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
24
24
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
25
|
});
|
26
26
|
|
@@ -117,7 +117,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
117
117
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(7);
|
118
118
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
119
119
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
|
-
dragAndDropIntoCategoriesPage.steps.
|
120
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
121
121
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
122
122
|
/*cy.log('When the user has attempted the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed')
|
123
123
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -136,7 +136,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
136
136
|
|
137
137
|
it('When the user attempts the question correctly in the order same as set in the specify correct answer section, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
138
138
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
139
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4});
|
139
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
140
140
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
141
141
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
142
142
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
@@ -164,7 +164,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
164
164
|
|
165
165
|
it('When the user attempts the question correctly in a random order, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for correct dropzones and correct answer section should not be displayed', () => {
|
166
166
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
167
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Parrot': 1, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4});
|
167
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Parrot': 1, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
168
168
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
169
169
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
170
170
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
@@ -23,7 +23,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
23
23
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
24
24
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
25
25
|
dragAndDropIntoCategoriesPage.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '30');
|
26
|
-
|
26
|
+
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
27
27
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
28
28
|
});
|
29
29
|
|
@@ -119,7 +119,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
119
119
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
120
120
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
121
121
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
122
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['
|
122
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
123
123
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
124
124
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message and correct answer section should not be displayed')
|
125
125
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -114,7 +114,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
114
114
|
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points as per the total of correct dropzones as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
115
115
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
116
116
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Octopus': 5 });
|
117
|
-
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(
|
117
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(9, 30);
|
118
118
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
119
119
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
120
120
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js
CHANGED
@@ -42,7 +42,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
42
42
|
it('When the user attempts the question correctly along with multiple incorrect dropzones, then penalty points should get deducted from the awarded points only once, the deducted penalty points should not increase as per number of attempted incorrect dropzones', () => {
|
43
43
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
44
44
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
45
|
-
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(
|
45
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(8, 18);
|
46
46
|
});
|
47
47
|
|
48
48
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -66,7 +66,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
66
66
|
dragAndDropIntoCategoriesPage.steps.allotPenaltyPointsForEachIncorrectDropzone(4);
|
67
67
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
68
68
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 0 });
|
69
|
-
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(-
|
69
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(-17, 18);
|
70
70
|
});
|
71
71
|
|
72
72
|
it('When the user attempts the question correctly along with an incorrect dropzone, then penalty points should get deducted from the awarded points', () => {
|
@@ -500,7 +500,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
500
500
|
it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
|
501
501
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Eagle': 0, 'Whale': 0, 'Platypus': 1 });
|
502
502
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedOptionsTitleSpecifyCorrectAnswerSection(0, 'Group A')
|
503
|
-
dragAndDropIntoCategoriesPage.
|
503
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.groupedOptionsContainerSpecifyCorrectAnswerSection(), 1)
|
504
504
|
});
|
505
505
|
});
|
506
506
|
|
@@ -670,7 +670,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
670
670
|
it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
|
671
671
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Whale': 0, 'Platypus': 1, 'Eagle': 0 });
|
672
672
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedOptionsTitlePreviewTab(0, 'Group A')
|
673
|
-
dragAndDropIntoCategoriesPage.
|
673
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.groupedOptionsContainerPreviewTab(), 1)
|
674
674
|
});
|
675
675
|
});
|
676
676
|
});
|
@@ -67,7 +67,7 @@ describe('Create Item page - Drag and drop into categories: Specify correct answ
|
|
67
67
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
68
68
|
dragAndDropIntoCategoriesPage.steps.deleteAlternativeAnswerAccordion(1);
|
69
69
|
dragAndDropIntoCategoriesPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
|
70
|
-
dragAndDropIntoCategoriesPage.steps.verifyAlternativeAnswerAccordionLabel(
|
70
|
+
dragAndDropIntoCategoriesPage.steps.verifyAlternativeAnswerAccordionLabel(0);
|
71
71
|
});
|
72
72
|
});
|
73
73
|
});
|
@@ -318,7 +318,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
318
318
|
});*/
|
319
319
|
|
320
320
|
describe('Maximum capacity per dropzone and Show students the dropzone limits: Edit tab', () => {
|
321
|
-
const defaultListOptions = ['
|
321
|
+
const defaultListOptions = ['No limit', '1', '2']
|
322
322
|
abortEarlySetup();
|
323
323
|
before(() => {
|
324
324
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
@@ -327,10 +327,10 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
327
327
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
328
328
|
});
|
329
329
|
|
330
|
-
it('\'Maximum capacity per dropzone\' label and dropdown should be displayed. By default the \'
|
330
|
+
it('\'Maximum capacity per dropzone\' label and dropdown should be displayed. By default the \'No limit\' should be the selected option in the \'Maximum capacity per dropzone\' dropdown', () => {
|
331
331
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneLabel(), 'Maximum capacity per dropzone');
|
332
332
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneLabel(), 'visible');
|
333
|
-
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneDropdown(), '
|
333
|
+
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneDropdown(), 'No limit');
|
334
334
|
});
|
335
335
|
|
336
336
|
it(`When the user expands the \'Maximum capacity per dropzone\' dropdown, a list of ${defaultListOptions.length} options - ${defaultListOptions.join(',')} should be displayed`, () => {
|
@@ -359,7 +359,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
359
359
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(5);
|
360
360
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
361
361
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.dropdownList(), 'visible')
|
362
|
-
dragAndDropIntoCategoriesPage.steps.verifyMaxCapacityPerDropzoneListOptions(['
|
362
|
+
dragAndDropIntoCategoriesPage.steps.verifyMaxCapacityPerDropzoneListOptions(['No limit', '1', '2', '3', '4', '5', '6', '7']);
|
363
363
|
});
|
364
364
|
|
365
365
|
it('When the user selects a finite number of options value from the \'Maximum capacity per dropzone\' dropdown, then the user should only be able to set options in a dropzone in the specify correct answer section according to the selected option', () => {
|
@@ -409,9 +409,9 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
409
409
|
cy.checkAccessibility(dragAndDropIntoCategoriesPage.showStudentsDropzoneLimitsCheckbox().parents('[data-ngie-testid="show-students-the-dropzone-limits-checkbox"]'));
|
410
410
|
});
|
411
411
|
|
412
|
-
it('When the user selects \'
|
412
|
+
it('When the user selects \'No limit\' from the \'Maximum capacity per dropzone\' dropdown, then the user should be able to set n number of options in a dropzone in the specify correct answer section', () => {
|
413
413
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
414
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('
|
414
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('No limit');
|
415
415
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Parrot': 1, 'Ostrich': 1, 'Whale': 1 });
|
416
416
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfSpecifyCorrectAnswerSection(1, ['Parrot', 'Ostrich', 'Whale']);
|
417
417
|
});
|
@@ -447,10 +447,10 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
447
447
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxLimitInEachDropzoneHelpText(), 'Maximum answers in each dropzone:\n2');
|
448
448
|
});
|
449
449
|
|
450
|
-
it('When the user selects \'
|
450
|
+
it('When the user selects \'No limit\' from the \'Maximum capacity per dropzone\' dropdown, then the user should be able to set n number of options in a dropzone in the preview tab', () => {
|
451
451
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
452
452
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
453
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('
|
453
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('No limit');
|
454
454
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
455
455
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Parrot': 1, 'Ostrich': 1, 'Whale': 1 });
|
456
456
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Parrot', 'Ostrich', 'Whale']);
|
@@ -308,6 +308,10 @@ describe('Drawing response - Additional settings', () => {
|
|
308
308
|
abortEarlySetup();
|
309
309
|
before(() => {
|
310
310
|
cy.log('Navigate to drawing response question type');
|
311
|
+
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
312
|
+
cy.barsPreLoaderWait();
|
313
|
+
drawingResponsePage.steps.addQuestionInstructions();
|
314
|
+
drawingResponsePage.steps.expandAdditionalSettings();
|
311
315
|
});
|
312
316
|
|
313
317
|
it('\'Accessibility\' label, \'Flag this question as non-accessible\' checkbox label and checkbox should be displayed and by default it should be unchecked', () => {
|
@@ -347,7 +351,7 @@ describe('Drawing response - Additional settings', () => {
|
|
347
351
|
});
|
348
352
|
|
349
353
|
it('Accessibility of \'Flag this question as non-accessible\' checkbox - checked state', { tags: 'a11y' }, () => {
|
350
|
-
cy.checkAccessibility(drawingResponsePage.flagThisQuestionAsNonAccessibleCheckbox().parents('[class*="
|
354
|
+
cy.checkAccessibility(drawingResponsePage.flagThisQuestionAsNonAccessibleCheckbox().parents('[class*="Accessibilitystyles__OptionWrapper"]'));
|
351
355
|
});
|
352
356
|
|
353
357
|
it('User should be able to uncheck \'Flag this question as non-accessible\' checkbox', () => {
|
@@ -373,6 +373,8 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
373
373
|
it('When user checks \'Enable side by side panels\' checkbox and \'Left panel\' is active selection for \'Enable sections in\', then \'Edit tab\' should have two panels and \'Left panel\' should have two sections and on switching to preview tab the added question and resource should be displayed in respective panels', () => {
|
374
374
|
itemPreviewSettingsPage.steps.clickOnSettingsButton();
|
375
375
|
itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
|
376
|
+
cy.log('Wait added to make sure Enable side by side panels checkbox is checked');
|
377
|
+
cy.wait(2000);
|
376
378
|
itemPreviewSettingsPage.steps.clickApplyChanges();
|
377
379
|
itemPreviewSettingsPage.steps.verifyPanelCount(2);
|
378
380
|
itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
|
@@ -297,46 +297,44 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
297
297
|
});
|
298
298
|
|
299
299
|
it('When user clicks on a symbol then that symbol should get selected and appear in the selected symbols region', () => {
|
300
|
-
createCustomCategoryFlyout.steps.selectASymbolInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['
|
301
|
-
createCustomCategoryFlyout.steps.verifySymbolIsDisplayedInSelectedSymbolsSection([`${equationEditorCategoriesAndSymbols.
|
300
|
+
createCustomCategoryFlyout.steps.selectASymbolInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${equationEditorCategoriesAndSymbols.intermediate.symbols.sqrt.ariaLabel}`);
|
301
|
+
createCustomCategoryFlyout.steps.verifySymbolIsDisplayedInSelectedSymbolsSection([`${equationEditorCategoriesAndSymbols.intermediate.symbols.sqrt.ariaLabel}`]);
|
302
302
|
});
|
303
303
|
|
304
304
|
it('When user partially selects symbols from any category then that category\'s checkbox should be in partially checked state', () => {
|
305
|
-
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
305
|
+
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
306
306
|
});
|
307
307
|
|
308
308
|
it('When user selects a symbol shared between two categories from any one of the categories then the symbol should get selected in the other category as well and the checkboxes should be partially checked', () => {
|
309
|
-
|
310
|
-
createCustomCategoryFlyout.steps.selectASymbolInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`, `${equationEditorCategoriesAndSymbols.numPad.symbols.dotMultiplier.ariaLabel}`);
|
311
|
-
//Verify common symbol is selected in basic category
|
309
|
+
createCustomCategoryFlyout.steps.selectASymbolInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${equationEditorCategoriesAndSymbols.intermediate.symbols.dollar.ariaLabel}`);
|
312
310
|
createCustomCategoryFlyout.steps.expandCategoryAccordion(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
313
|
-
createCustomCategoryFlyout.steps.verifySymbolIsSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['
|
311
|
+
createCustomCategoryFlyout.steps.verifySymbolIsSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['primary'].displayName}`, `${equationEditorCategoriesAndSymbols.primary.symbols.dollar.ariaLabel}`);
|
314
312
|
//Verify checkboxes for both categories are partially selected
|
315
|
-
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
316
|
-
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
313
|
+
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
314
|
+
createCustomCategoryFlyout.steps.verifyPartiallyCheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['primary'].displayName}`);
|
317
315
|
});
|
318
316
|
|
319
317
|
it('When user selects the checkbox of a partially checked category then all the symbols from that category should appear in the \'Selected symbols:\' section', () => {
|
320
|
-
const selectedSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['
|
321
|
-
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['
|
318
|
+
const selectedSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['intermediate'].symbols).map((icon) => icon.ariaLabel));
|
319
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['intermediate'].symbols)
|
322
320
|
cy.log('Open the Custom category flyout and partially select a category')
|
323
|
-
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
321
|
+
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
324
322
|
selectedSymbolsArray.forEach((selectedSymbol) => {
|
325
|
-
createCustomCategoryFlyout.steps.verifySymbolIsSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['
|
323
|
+
createCustomCategoryFlyout.steps.verifySymbolIsSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${selectedSymbol}`);
|
326
324
|
});
|
327
325
|
createCustomCategoryFlyout.steps.verifySymbolIsDisplayedInSelectedSymbolsSection(selectedSymbolsArray);
|
328
326
|
});
|
329
327
|
|
330
328
|
it('When user unchecks the fully checked checkbox then all the symbols from that category as well as from the shared categories should get deselected and should not be displayed in \'Selected symbols:\' section', () => {
|
331
|
-
const keypadSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['
|
332
|
-
const basicSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['
|
333
|
-
createCustomCategoryFlyout.steps.uncheckCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
329
|
+
const keypadSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['intermediate'].symbols).map((icon) => icon.ariaLabel));
|
330
|
+
const basicSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['primary'].symbols).map((icon) => icon.ariaLabel));
|
331
|
+
createCustomCategoryFlyout.steps.uncheckCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
334
332
|
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.selectedSymbols(), 'notExist');
|
335
333
|
keypadSymbolsArray.forEach((selectedSymbol) => {
|
336
|
-
createCustomCategoryFlyout.steps.verifySymbolIsNotSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['
|
334
|
+
createCustomCategoryFlyout.steps.verifySymbolIsNotSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${selectedSymbol}`);
|
337
335
|
});
|
338
336
|
basicSymbolsArray.forEach((selectedSymbol) => {
|
339
|
-
createCustomCategoryFlyout.steps.verifySymbolIsNotSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['
|
337
|
+
createCustomCategoryFlyout.steps.verifySymbolIsNotSelectedInCreateCustomCategoryFlyout(`${equationEditorCategoriesAndSymbols['primary'].displayName}`, `${selectedSymbol}`);
|
340
338
|
});
|
341
339
|
});
|
342
340
|
|
@@ -371,15 +369,15 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
371
369
|
});
|
372
370
|
|
373
371
|
it('If all symbols are deselected from a category then the checkbox for that category should get unchecked', () => {
|
374
|
-
const keypadSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['
|
372
|
+
const keypadSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['intermediate'].symbols).map((icon) => icon.title));
|
375
373
|
cy.log('Pre step: Reopen the create custom category and select one category')
|
376
374
|
createCustomCategoryFlyout.steps.clickOnCancelButton();
|
377
375
|
createCustomCategoryFlyout.steps.openCreateCustomCategoryFlyout();
|
378
|
-
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
376
|
+
createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
379
377
|
keypadSymbolsArray.forEach((symbol) => {
|
380
378
|
createCustomCategoryFlyout.steps.deselectSymbolInSelectedSymbolsSection(symbol);
|
381
379
|
});
|
382
|
-
createCustomCategoryFlyout.steps.verifyUncheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['
|
380
|
+
createCustomCategoryFlyout.steps.verifyUncheckedStateOfCategoryAccordionCheckbox(`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`);
|
383
381
|
});
|
384
382
|
});
|
385
383
|
}
|
@@ -35,8 +35,7 @@ describe('Essay response math: Customize math characters', () => {
|
|
35
35
|
|
36
36
|
it('When the user clicks on the \'Preview\' hyperlink, a math characters popup should be displayed with all the math characters segregated according to all the language options. The user should be able to close the popup by clicking on the \'Close[X]\' button', () => {
|
37
37
|
essayResponseMathPage.steps.clickOnCustomizeMathCharactersPreviewButton();
|
38
|
-
|
39
|
-
// essayResponseMathPage.steps.verifyMathCharactersPreviewPopupInEditTab(mathCharacters);
|
38
|
+
essayResponseMathPage.steps.verifyMathCharactersPreviewPopupInEditTab(mathCharacters);
|
40
39
|
cy.log('Post-step: Closing preview popup')
|
41
40
|
essayResponseMathPage.steps.closeWarningPopup();
|
42
41
|
});
|
@@ -46,8 +45,7 @@ describe('Essay response math: Customize math characters', () => {
|
|
46
45
|
essayResponseMathPage.steps.clickOnMathCharactersCategoryTile(mathCharacters[0].categoryName);
|
47
46
|
essayResponseMathPage.steps.verifyMathCharacterCategoryTileIsNotSelected(mathCharacters[0].categoryName);
|
48
47
|
essayResponseMathPage.steps.clickOnCustomizeMathCharactersPreviewButton();
|
49
|
-
|
50
|
-
// essayResponseMathPage.steps.verifyMathCharactersPreviewPopupInEditTab(newSelectedCategoryList);
|
48
|
+
essayResponseMathPage.steps.verifyMathCharactersPreviewPopupInEditTab(newSelectedCategoryList);
|
51
49
|
cy.log('Post-step: Closing preview popup');
|
52
50
|
essayResponseMathPage.steps.closeWarningPopup();
|
53
51
|
});
|
@@ -160,7 +160,7 @@ describe('Create item page: Feedback scale - Preview tab contents in all views f
|
|
160
160
|
});
|
161
161
|
|
162
162
|
it('The submitted comment should not be editable', () => {
|
163
|
-
|
163
|
+
feedbackScalePage.steps.verifyCommentInputFieldDisabledGradingView();
|
164
164
|
});
|
165
165
|
}
|
166
166
|
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js
CHANGED
@@ -235,6 +235,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
235
235
|
});
|
236
236
|
|
237
237
|
it('When the user modifies the selected color in the color popup and clicks on \'Cancel\' button, then the popup should close, the color block should not change and the modifications in the color popup should not persist', () => {
|
238
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectInsertedTextBox(0);
|
238
239
|
fillInTheGapsOverImageDragAndDropPage.steps.clickOnTextColorButton();
|
239
240
|
fillInTheGapsOverImageDragAndDropPage.steps.clickOnEditColorButton()
|
240
241
|
fillInTheGapsOverImageDragAndDropPage.steps.addInputToHexInputField('#00002E');
|
@@ -401,7 +402,19 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
401
402
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCanvasHeightInPreviewTab(432);
|
402
403
|
});
|
403
404
|
|
404
|
-
|
405
|
+
it('When user enters text in the \'Alternative text\' input field, then alternative text should be displayed in the \'Preview tab\'', () => {
|
406
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
407
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterAndVerifyImageAlternativeTextInInputField('This is Alternative text for image');
|
408
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
409
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageAlternativeTextInPreviewTab('This is Alternative text for image');
|
410
|
+
});
|
411
|
+
|
412
|
+
it('When user clears text in the \'Alternative text\' input field, then default alternative text should not be displayed in the \'Preview tab\'', () => {
|
413
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
414
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clearImageAlternativeTextInputFieldText();
|
415
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
416
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyNoImageAlternativeTextPresentInPreviewTab();
|
417
|
+
});
|
405
418
|
|
406
419
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyImageNotExistPreviewTab();
|
407
420
|
});
|
@@ -33,6 +33,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
33
33
|
});
|
34
34
|
|
35
35
|
it('By default 4 option input fields with placeholder text, drag handle and delete option icon buttons should be displayed', () => {
|
36
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnCanvasSelectedMenuText();
|
36
37
|
for (let index = 0; index < 4; index++) {
|
37
38
|
fillInTheGapsOverImageDropdownPage.steps.verifyOptionsContents(index);
|
38
39
|
};
|
@@ -152,7 +153,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
152
153
|
});
|
153
154
|
});
|
154
155
|
|
155
|
-
//Failing due to https://redmine.zeuslearning.com/issues/566910
|
156
156
|
describe('Dropdown options in Specify correct answer section', () => {
|
157
157
|
abortEarlySetup();
|
158
158
|
before(() => {
|
@@ -245,7 +245,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
245
245
|
});
|
246
246
|
});
|
247
247
|
|
248
|
-
//Failing due to https://redmine.zeuslearning.com/issues/566910
|
249
248
|
describe('Dropdown options in preview tab', () => {
|
250
249
|
abortEarlySetup();
|
251
250
|
before(() => {
|
@@ -274,6 +273,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
274
273
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
275
274
|
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0)
|
276
275
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(optionsForDropdown);
|
276
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
277
277
|
});
|
278
278
|
|
279
279
|
it('When user deletes an option then the deleted option should not be displayed in dropdown in \'preview tab\'', () => {
|
@@ -284,6 +284,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
284
284
|
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
285
285
|
let optionsForDropdown1 = optionsForDropdown.slice(0, 3);
|
286
286
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(optionsForDropdown1);
|
287
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown1[0]);
|
287
288
|
});
|
288
289
|
|
289
290
|
it('When user adds an option using \'Add Option\' button then the added option should be displayed in dropdown in \'preview tab\'', () => {
|
@@ -293,6 +294,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
293
294
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
294
295
|
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
295
296
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(optionsForDropdown);
|
297
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
296
298
|
});
|
297
299
|
|
298
300
|
it('When the user has added two same options in the options, only one occurrence of that option should be listed in the dropdown', () => {
|
@@ -305,7 +307,9 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
305
307
|
});
|
306
308
|
|
307
309
|
it('When user has adds another response area, then the newly added dropdown should be in disabled state in preview tab', () => {
|
310
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
308
311
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
312
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
309
313
|
fillInTheGapsOverImageDropdownPage.steps.verifyDisabledDropdownInPreviewTab(1);
|
310
314
|
});
|
311
315
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { dialogBoxBase, fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
2
|
import utilities from "../../../support/helpers/utilities";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
import { colorPopupComponent } from "../../../pages/components";
|
4
5
|
const css = Cypress.env('css');
|
5
6
|
|
6
7
|
const dropdownPointerStyles = ['none', 'bottom', 'bottom right', 'right', 'top right', 'top', 'top left', 'left', 'bottom left'];
|
@@ -239,7 +240,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
239
240
|
fillInTheGapsOverImageDropdownPage.steps.clickOnTextColorButton();
|
240
241
|
fillInTheGapsOverImageDropdownPage.steps.clickOnEditColorButton()
|
241
242
|
fillInTheGapsOverImageDropdownPage.steps.addInputToHexInputField('#00002E');
|
242
|
-
|
243
|
+
colorPopupComponent.steps.clickOnCancelButton();
|
243
244
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
244
245
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextColorOfTextBox('rgba(255, 0, 0, 0.5)');
|
245
246
|
});
|
@@ -265,9 +266,9 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
265
266
|
it('When user selects a dropdown and changes dropdown pointer style in edit tab, then changes in dropdown pointer should be reflected in preview tab', () => {
|
266
267
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
267
268
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseArea(0);
|
268
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseAreaPointerStyle(dropdownPointerStyles[
|
269
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseAreaPointerStyle(dropdownPointerStyles[2]);
|
269
270
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
270
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownPointerStyleInPreviewTab(dropdownPointerStyles[
|
271
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownPointerStyleInPreviewTab(dropdownPointerStyles[2], 0);
|
271
272
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownPointerStyleInPreviewTab(dropdownPointerStyles[8], 1);
|
272
273
|
});
|
273
274
|
|
@@ -23,14 +23,15 @@ describe('Create item page - Fill in the gaps over image with text: All or nothi
|
|
23
23
|
fillInTheGapsOverImageTextPage.steps.addAlternativeAnswerAccordion(1);
|
24
24
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Stem' }]);
|
25
25
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
26
|
-
|
26
|
+
//fillInTheGapsOverImageTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
27
27
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
28
28
|
});
|
29
29
|
|
30
30
|
it('When the user selects \'Grading\' view without attempting the question, response area numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response area numeration', () => {
|
31
31
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
32
32
|
fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
|
33
|
-
|
33
|
+
//Failing due to https://redmine.zeuslearning.com/issues/574218
|
34
|
+
//utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
|
34
35
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
35
36
|
});
|
36
37
|
|