itemengine-cypress-automation 1.0.166 → 1.0.169-uploadResponseMigration-83ab996.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +11 -22
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +7 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +6 -11
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +36 -2
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +34 -22
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +24 -8
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +25 -5
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +114 -68
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +111 -67
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +123 -71
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +63 -41
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +25 -21
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +85 -50
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -68
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +98 -54
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +120 -72
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
- package/cypress/fixtures/theme/ilc.json +26 -14
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +0 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/colorPopupComponent.js +2 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +2 -629
- package/cypress/pages/components/index.js +0 -3
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/measuringToolComponent.js +2 -2
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
- package/cypress/pages/components/setPointsPopupBase.js +4 -6
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +3 -60
- package/cypress/pages/components/toolSettingsComponent.js +12 -80
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +8 -0
- package/cypress/pages/feedbackScalePage.js +449 -591
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +1 -3
- package/cypress/pages/graphingPage.js +145 -9
- package/cypress/pages/gridFillPage.js +120 -135
- package/cypress/pages/highlightPage.js +394 -0
- package/cypress/pages/index.js +2 -5
- package/cypress/pages/matchingPage.js +20 -78
- package/cypress/pages/multipleSelectionGridPage.js +1 -88
- package/cypress/pages/singleSelectionGridPage.js +0 -86
- package/cypress/support/migrationHelpers/extractLrnQuestionData.js +38 -1
- package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +1 -0
- package/cypress/support/migrationHelpers/migrationScript.js +4 -0
- package/cypress/support/migrationHelpers/verifyIeQuestionData.js +34 -2
- package/package.json +2 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +0 -83
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +0 -200
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +0 -56
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -95
- package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +0 -71
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +0 -72
- package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +0 -71
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
- package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +0 -161
- package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +0 -308
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +0 -216
- package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +0 -336
- package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +0 -570
- package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +0 -214
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -356
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +0 -299
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -355
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +0 -309
- package/cypress/e2e/ILC/Matching/toolSettings.js +0 -72
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +0 -1033
- package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +0 -28
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -236
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -239
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -278
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +0 -178
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +0 -407
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +0 -273
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +0 -278
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +0 -228
- package/cypress/e2e/ILC/NumberLine/additionalSettings.js +0 -120
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -659
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +0 -149
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +0 -151
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +0 -171
- package/cypress/e2e/ILC/NumberLine/headerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -54
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +0 -200
- package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +0 -67
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +0 -135
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +0 -73
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +0 -372
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +0 -1014
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -235
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -235
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -235
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +0 -457
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -342
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -342
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -342
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +0 -155
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -314
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -275
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -314
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -290
- package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +0 -142
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +0 -137
- package/cypress/pages/brainingCampManipulativePage.js +0 -122
- package/cypress/pages/components/defaultToolDropdown.js +0 -77
- package/cypress/pages/components/resetPopupComponent.js +0 -74
- package/cypress/pages/components/toolsAndControlsComponent.js +0 -69
- package/cypress/pages/feedbackScalePage copy.js +0 -716
- package/cypress/pages/numberLinePage.js +0 -723
- package/cypress/pages/textSelectionPage.js +0 -582
@@ -5,7 +5,7 @@ import { dialogBoxBase, multipleSelectionPage, rulerPage } from "../../../pages"
|
|
5
5
|
|
6
6
|
const css = Cypress.env('css');
|
7
7
|
|
8
|
-
const tools = ['Ruler', 'Protractor', 'Reading ruler'
|
8
|
+
const tools = ['Ruler', 'Protractor', 'Reading ruler'];
|
9
9
|
const lengthOfRuler = ['15 cm', '30 cm', '40 cm'];
|
10
10
|
const rotationOptions = ['None', 'Allow rotation', 'Allow rotation and display angle'];
|
11
11
|
const unitOfMeasurementOptions = ['Centimeter', 'Inch', 'Pixel', 'Both centimeter and inch', 'Custom image'];
|
@@ -18,7 +18,7 @@ describe('Create Item page: Tool settings', () => {
|
|
18
18
|
describe('Tool settings: Contents', () => {
|
19
19
|
abortEarlySetup();
|
20
20
|
before(() => {
|
21
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('
|
21
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('short text response');
|
22
22
|
});
|
23
23
|
|
24
24
|
it('By default \'Tool settings\' accordion should be collapsed and by clicking on the \'Tool settings\' accordion, user should be able to expand the accordion', () => {
|
@@ -87,7 +87,7 @@ describe('Create Item page: Tool settings', () => {
|
|
87
87
|
describe('Tool settings: Ruler tool popup content', () => {
|
88
88
|
abortEarlySetup();
|
89
89
|
before(() => {
|
90
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('
|
90
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('short text response');
|
91
91
|
toolSettingsComponent.steps.expandToolSettingsAccordion();
|
92
92
|
});
|
93
93
|
|
@@ -230,7 +230,7 @@ describe('Create Item page: Tool settings', () => {
|
|
230
230
|
describe('Tool settings: Edit tool settings', () => {
|
231
231
|
abortEarlySetup();
|
232
232
|
before(() => {
|
233
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('
|
233
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('short text response');
|
234
234
|
toolSettingsComponent.steps.expandToolSettingsAccordion();
|
235
235
|
});
|
236
236
|
|
@@ -132,10 +132,7 @@
|
|
132
132
|
"gridCellHiddenStateBorder": "rgb(117, 117, 154)",
|
133
133
|
"gridCellIcon": "rgb(41, 0, 128)",
|
134
134
|
"gridBorder": "rgb(0, 0, 124)",
|
135
|
-
"uploadedFileName": "rgb(0, 0, 124)"
|
136
|
-
"feedbackHeart": "rgb(255, 56, 0)",
|
137
|
-
"manipulativeOptionContainerBorder": "rgb(186, 201, 255)",
|
138
|
-
"cellIcon": "rgb(186, 201, 255)"
|
135
|
+
"uploadedFileName": "rgb(0, 0, 124)"
|
139
136
|
},
|
140
137
|
"fontSize": {
|
141
138
|
"extraSmall": "10px",
|
@@ -155,33 +152,48 @@
|
|
155
152
|
"semibold": "600",
|
156
153
|
"bold": "700"
|
157
154
|
},
|
158
|
-
"
|
159
|
-
|
160
|
-
"
|
161
|
-
"
|
162
|
-
"
|
155
|
+
"highlightColorLibrary": [
|
156
|
+
{
|
157
|
+
"title": "aliceBlue",
|
158
|
+
"background": "rgb(245, 248, 255)",
|
159
|
+
"border": "rgb(82, 0, 255)",
|
160
|
+
"hoverBackground": "rgba(245, 248, 255, 0.4)",
|
161
|
+
"hoverBorder": "rgb(107, 139, 255)"
|
163
162
|
},
|
164
|
-
|
163
|
+
{
|
164
|
+
"title": "purple",
|
165
165
|
"background": "rgb(186, 201, 255)",
|
166
|
+
"border": "rgb(82, 0, 255)",
|
166
167
|
"hoverBackground": "rgba(186, 201, 255, 0.4)",
|
167
168
|
"hoverBorder": "rgb(107, 139, 255)"
|
168
169
|
},
|
169
|
-
|
170
|
+
{
|
171
|
+
"title": "lightBlue",
|
170
172
|
"background": "rgb(128, 239, 255)",
|
173
|
+
"border": "rgb(0, 112, 128)",
|
171
174
|
"hoverBackground": "rgba(128, 239, 255, 0.4)",
|
172
175
|
"hoverBorder": "rgb(0, 156, 179)"
|
173
176
|
},
|
174
|
-
|
177
|
+
{
|
178
|
+
"title": "orange",
|
175
179
|
"background": "rgb(255, 238, 215)",
|
180
|
+
"border": "rgb(128, 102, 69)",
|
176
181
|
"hoverBackground": "rgba(255, 238, 215, 0.4)",
|
177
182
|
"hoverBorder": "rgb(153, 134, 67)"
|
178
183
|
},
|
179
|
-
|
184
|
+
{
|
180
185
|
"title": "yellow",
|
181
186
|
"background": "rgb(255, 238, 78)",
|
182
187
|
"border": "rgb(64, 59, 20)",
|
183
188
|
"hoverBackground": "rgba(255, 238, 78, 0.4)",
|
184
189
|
"hoverBorder": "rgb(153, 141, 32)"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"title": "grey",
|
193
|
+
"background": "rgb(220, 223, 230)",
|
194
|
+
"border": "rgb(61, 62, 64)",
|
195
|
+
"hoverBackground": "rgba(220, 223, 230, 0.4)",
|
196
|
+
"hoverBorder": "rgb(122, 124, 128)"
|
185
197
|
}
|
186
|
-
|
198
|
+
]
|
187
199
|
}
|
@@ -31,7 +31,7 @@ const selectors = {
|
|
31
31
|
totalPenaltyPointsInputField: () => cy.get('input[aria-label="total penalty points"]'),
|
32
32
|
specifyPointsForEachIncorrectOptionRadioButton: () => cy.get('input[aria-label*="Specify points for each incorrect"]'),
|
33
33
|
specifyPointsForEachIncorrectOptionRadioButtonLabel: () => cy.get('label[aria-label*="Specify points for each incorrect"]'),
|
34
|
-
penaltyPointsForEachIncorrectOptionInputField: () => cy.get('input[aria-label
|
34
|
+
penaltyPointsForEachIncorrectOptionInputField: () => cy.get('input[aria-label="penalty points for each incorrect option"]'),
|
35
35
|
penaltyPointsDetailsSectionInputFieldLabel: () => cy.get('[class*="PenaltyScoreForEachIncorrectstyles__PointsLabel"]'),
|
36
36
|
penaltyPointsDetailsSectionAllottedPointsLabel: () => cy.get('[class*="PenaltyScoreForEachIncorrectstyles__LabelFieldWrapper"]'),
|
37
37
|
roundingLabel: () => cy.get('#rounding-dropdown-label'),
|
@@ -207,9 +207,6 @@ const tests = {
|
|
207
207
|
case 'grid fill':
|
208
208
|
helpText = 'You can set the correct answer by selecting the correct cell(s) in the grid.';
|
209
209
|
break;
|
210
|
-
case 'number line':
|
211
|
-
helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
|
212
|
-
break;
|
213
210
|
default:
|
214
211
|
throw new Error('Invalid question type');
|
215
212
|
}
|
@@ -115,7 +115,7 @@ const tests = {
|
|
115
115
|
'font-size': css.fontSize.normal,
|
116
116
|
'font-weight': css.fontWeight.regular
|
117
117
|
});
|
118
|
-
utilities.verifyCSS(autoScoredStudentViewSettings.allowStudentToCheckAnswerCheckbox().parents('[data-ngie-testid="allow-
|
118
|
+
utilities.verifyCSS(autoScoredStudentViewSettings.allowStudentToCheckAnswerCheckbox().parents('[data-ngie-testid="allow-student-to-check-answer-checkbox"]').find('g').eq(1), {
|
119
119
|
'fill': css.color.activeButtons
|
120
120
|
});
|
121
121
|
utilities.verifyCSS(autoScoredStudentViewSettings.maximumCheckAnswerAttemptsDropdownLabel(), {
|
@@ -14,8 +14,8 @@ const selectors = {
|
|
14
14
|
hexLabel: () => cy.get('.hex-settings-wrapper .inline-text-property-label'),
|
15
15
|
hexInputField: () => cy.get('.hex-settings-wrapper input'),
|
16
16
|
setToNoColorButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
|
17
|
-
cancelButton: () => cy.get('.compact-popup-action-button-wrapper button').
|
18
|
-
okButton: () => cy.get('.compact-popup-action-button-wrapper button').
|
17
|
+
cancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(1),
|
18
|
+
okButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(2),
|
19
19
|
dialogBoxTitle: () => cy.get('#alert-dialog-title'),
|
20
20
|
opacityGradientHue: () => cy.get('.react-colorful__last-control [class="react-colorful__interactive"]'),
|
21
21
|
opacityGradientPicker: () => cy.get('.react-colorful__last-control .react-colorful__pointer-fill'),
|