itemengine-cypress-automation 1.0.93 → 1.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/editTabBasic.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/previewTabContent.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/studentViewSettings.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +13 -13
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +0 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +1 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +5 -7
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +9 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.js +24 -43
- package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +1 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -6
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +12 -7
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +8 -9
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +5 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +6 -7
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -2
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +7 -7
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -1
- package/cypress/pages/components/additionalSettingsPanel.js +2 -2
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/createCustomCategoryFlyout.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +2 -2
- package/cypress/pages/components/essayResponseCommonComponents.js +5 -2
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/measuringToolComponent.js +2 -1
- package/cypress/pages/desmosGraphingPage.js +3 -3
- package/cypress/pages/desmosToolPage.js +8 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +16 -9
- package/cypress/pages/drawingResponsePage.js +21 -38
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +9 -10
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -2
- package/cypress/pages/multipleSelectionPage.js +1 -0
- package/cypress/pages/protractorPage.js +3 -4
- package/cypress/pages/rulerPage.js +9 -5
- package/cypress/pages/singleSelectionPage.js +5 -1
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +2 -2
@@ -26,7 +26,6 @@ const selectors = {
|
|
26
26
|
allowStudentToResizeProtractorCheckbox: () => cy.get('[data-ngie-testid="allow-student-to-resize-protractor-checkbox"] input'),
|
27
27
|
allowStudentToResizeProtractorLabel: () => cy.get('[data-ngie-testid="allow-student-to-resize-protractor-checkbox"] .MuiFormControlLabel-label'),
|
28
28
|
alternativeTextLabel: () => cy.get('.text-label'),
|
29
|
-
protractorColorLabel: () => cy.get('[class*="Protractorstyle__ProtractorColorWrapper"] [class*="Protractorstyle__PropertyLabel"]'),
|
30
29
|
protractorVisibilityLabel: () => cy.get('[class*="Protractorstyle__PropertyVisibilityLabel"]'),
|
31
30
|
displayPointerForAngleMeasurementLabel: () => cy.get('[data-ngie-testid="display-pointer-for-angle-measurement-checkbox"] .MuiFormControlLabel-label'),
|
32
31
|
displayPointerForAngleMeasurementCheckbox: () => cy.get('[data-ngie-testid="display-pointer-for-angle-measurement-checkbox"] input'),
|
@@ -36,7 +35,7 @@ const selectors = {
|
|
36
35
|
enlargeProtractorIconInPreviewTab: () => cy.get('[class*="ProtractorComponentstyles__ControlBtn"] #Resize_to_large'),
|
37
36
|
reduceProtractorIconInPreviewTab: () => cy.get('[class*="ProtractorComponentstyles__ControlBtn"] #Resize_to_small'),
|
38
37
|
protractorVisibilityButtonPreviewTab: () => cy.get('.protractor-button:visible'),
|
39
|
-
protractorVisibleImagePreviewTab: () => cy.get('.protractor-button
|
38
|
+
protractorVisibleImagePreviewTab: () => cy.get('.protractor-button g'),
|
40
39
|
protractorHideImagePreviewTab: () => cy.get('.protractor-button #Hide_cell'),
|
41
40
|
pointerForAngleMeasurementInPreviewTab: () => cy.get('.icon-pointer'),
|
42
41
|
showHideButtonForAngleMeasurementPointerInPreviewTab: () => cy.get('[aria-label*=pointer][class*="ProtractorComponentstyles__ControlBtn"]'),
|
@@ -184,7 +183,7 @@ const steps = {
|
|
184
183
|
},
|
185
184
|
|
186
185
|
verifyProtractorVisibleInPreviewTab: () => {
|
187
|
-
utilities.verifyElementVisibilityState(protractorPage.protractorInPreviewTab(), '
|
186
|
+
utilities.verifyElementVisibilityState(protractorPage.protractorInPreviewTab(), 'exist');
|
188
187
|
},
|
189
188
|
|
190
189
|
verifyProtractorNotExistInPreviewTab: () => {
|
@@ -204,7 +203,7 @@ const steps = {
|
|
204
203
|
}
|
205
204
|
},
|
206
205
|
|
207
|
-
/**
|
206
|
+
/**
|
208
207
|
* @param {("Small"|"Large")} size indicates size of protractor
|
209
208
|
* @description function verifies size of protractor
|
210
209
|
*/
|
@@ -23,7 +23,6 @@ const selectors = {
|
|
23
23
|
return cy.get('[aria-labelledby*="Rotation-dropdown-label"][aria-labelledby*="dropdown-label"] li[role="option"]')
|
24
24
|
}
|
25
25
|
},
|
26
|
-
rulerColorLabel: () => cy.get('[class*="ColorPalletestyles__ColorPalleteLabel"]'),
|
27
26
|
rulerVisibilityLabel: () => cy.get('[class*="Rulerstyles__VisibilityLabelWrapper"]'),
|
28
27
|
unitOfMeasurementLabel: () => cy.get('#Unit-of-measurement-dropdown-label'),
|
29
28
|
unitOfMeasurementDropdown: () => cy.get('#Unit-of-measurement-select'),
|
@@ -73,8 +72,8 @@ const selectors = {
|
|
73
72
|
flipRulerButton: () => cy.get('.flip-button'),
|
74
73
|
rotationButtonWithDegreeInPreviewTab: () => cy.get('.icon-rotate-with-angle'),
|
75
74
|
rotationButtonDegreeText: () => cy.get('.ruler-rotation .moveable-rotation-control .angle-measurement'),
|
76
|
-
rulerVisibilityButtonPreviewTab: () => cy.get('.
|
77
|
-
rulerVisibleImagePreviewTab: () => cy.get('.ngie-icon-with-label-btn
|
75
|
+
rulerVisibilityButtonPreviewTab: () => cy.get('.ruler-button:visible'),
|
76
|
+
rulerVisibleImagePreviewTab: () => cy.get('.ngie-icon-with-label-btn g'),
|
78
77
|
rulerHideImagePreviewTab: () => cy.get('.ngie-icon-with-label-btn #Hide_cell'),
|
79
78
|
previewWrapper: () => cy.get('[class*="TabsComponentstyles__PreviewWrapper"]')
|
80
79
|
}
|
@@ -297,7 +296,7 @@ const steps = {
|
|
297
296
|
const fillColor = () => {
|
298
297
|
switch (colorIndex) {
|
299
298
|
case 0:
|
300
|
-
return '
|
299
|
+
return 'rgb(255, 255, 255)';
|
301
300
|
case 1:
|
302
301
|
return 'rgb(186, 201, 255)';
|
303
302
|
case 2:
|
@@ -404,7 +403,12 @@ const steps = {
|
|
404
403
|
},
|
405
404
|
|
406
405
|
verifyRulerVisible: () => {
|
407
|
-
utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), '
|
406
|
+
utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'exist');
|
407
|
+
},
|
408
|
+
|
409
|
+
verifyRulerUploadedImageNotExistPreviewTab: () => {
|
410
|
+
rulerPage.rulerUploadedImagePreviewTab()
|
411
|
+
.should('have.attr', 'src', '');
|
408
412
|
}
|
409
413
|
}
|
410
414
|
|
@@ -142,7 +142,11 @@ const steps = {
|
|
142
142
|
singleSelectionPage.optionRadioButtonPreviewTab()
|
143
143
|
.eq(optionIndex)
|
144
144
|
.click()
|
145
|
-
.
|
145
|
+
.then(() => {
|
146
|
+
singleSelectionPage.optionRadioButtonPreviewTab()
|
147
|
+
.eq(optionIndex)
|
148
|
+
.should('be.checked');
|
149
|
+
});
|
146
150
|
},
|
147
151
|
|
148
152
|
/**
|
package/package.json
CHANGED
@@ -70,7 +70,7 @@ export function runSorryCypressLocal() {
|
|
70
70
|
startTime = Math.round(Date.now() / 1000000);
|
71
71
|
ciBuildId = setCiBuildId(user, startTime);
|
72
72
|
const envArgs = setCommandLineEnvArgs()
|
73
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/**/*.
|
73
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/**/*.js"`;
|
74
74
|
execSync(command, { stdio: "inherit" });
|
75
75
|
}
|
76
76
|
|
@@ -82,6 +82,6 @@ export function runSorryCypressSpinnaker() {
|
|
82
82
|
startTime = process.env.START_TIME;
|
83
83
|
ciBuildId = setCiBuildId("spinnaker", startTime);
|
84
84
|
const envArgs = setCommandLineEnvArgs()
|
85
|
-
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs},grepTags=-css+-a11y --spec "cypress/e2e/ILC/**/*.
|
85
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs},grepTags=-css+-a11y --spec "cypress/e2e/ILC/**/*.js"`;
|
86
86
|
execSync(command, { stdio: "inherit" });
|
87
87
|
}
|