itemengine-cypress-automation 1.0.591-IEI-7055-cypress-d2f8270.0 → 1.0.591-IEI-7195-9cb645a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +7 -4
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +7 -4
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +7 -4
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +7 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -69
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -69
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -69
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +1 -69
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +0 -81
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +0 -69
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -240
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -235
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +6 -87
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -80
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -81
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -98
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -98
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -98
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -86
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -74
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -86
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -258
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +0 -241
- package/cypress/pages/chartsBarPage.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +1 -0
- package/cypress/pages/drawingResponsePage.js +1 -7
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +1 -12
- package/cypress/pages/numberLineLabelPage.js +8 -12
- package/cypress/pages/numberLinePage.js +10 -15
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ const selectors = {
|
|
|
40
40
|
correctIncorrectStatusMessageText: () => cy.get('[class*="NumberLinestyles__CorrectIncorrectWrapper"]'),
|
|
41
41
|
|
|
42
42
|
//Correct answer section
|
|
43
|
-
numberLineCorrectAnswerSection: (
|
|
43
|
+
numberLineCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg').eq(2),
|
|
44
44
|
numberLinePointCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').last().find('svg ellipse[display="inline"]')
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -440,7 +440,7 @@ const steps = {
|
|
|
440
440
|
clickAndDropLabelOnNumberLinePreviewTab: (label, orientation, range, coordinate) => {
|
|
441
441
|
numberLineLabelPage.draggableLabelsPreviewTab()
|
|
442
442
|
.contains(label)
|
|
443
|
-
.click(
|
|
443
|
+
.click();
|
|
444
444
|
numberLineLabelPage.numberLinePreviewTab()
|
|
445
445
|
.then(($graphElement) => {
|
|
446
446
|
if (orientation === 'horizontal') {
|
|
@@ -451,7 +451,6 @@ const steps = {
|
|
|
451
451
|
const xPixel = originX + coordinate * (graphWidth / range);
|
|
452
452
|
numberLineLabelPage.numberLinePreviewTab()
|
|
453
453
|
.click(xPixel, originY, { force: true });
|
|
454
|
-
cy.wait(2000); // Wait for UI to update after clicking the label
|
|
455
454
|
} else {
|
|
456
455
|
numberLineLabelPage.labelContainerPreviewTab()
|
|
457
456
|
.then(($element) => {
|
|
@@ -464,7 +463,6 @@ const steps = {
|
|
|
464
463
|
const yPixel = originY - coordinate * (graphHeight / range);
|
|
465
464
|
numberLineLabelPage.numberLinePreviewTab()
|
|
466
465
|
.click(originX, yPixel, { force: true });
|
|
467
|
-
cy.wait(2000); // Wait for UI to update after clicking the label
|
|
468
466
|
});
|
|
469
467
|
}
|
|
470
468
|
});
|
|
@@ -614,17 +612,16 @@ const steps = {
|
|
|
614
612
|
* @param {Object[]} coordinates - An array containing x and y coordinates along with their ranges
|
|
615
613
|
* @param {number} range - range of x coordinate
|
|
616
614
|
*/
|
|
617
|
-
verifyCorrectResponseOnNumberLineCorrectAnswerSection: (label, range, coordinate
|
|
618
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
615
|
+
verifyCorrectResponseOnNumberLineCorrectAnswerSection: (label, range, coordinate) => {
|
|
619
616
|
numberLineLabelPage.numberLineCorrectAnswerSection()
|
|
620
617
|
.then(($graphElement) => {
|
|
621
618
|
let graphWidth = $graphElement[0].clientWidth;
|
|
622
619
|
const originX = graphWidth / 2 + tolerance / 2;
|
|
623
620
|
const xPixel = originX + coordinate * ((graphWidth - tolerance) / range);
|
|
624
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
621
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][display="inline"]:visible`)
|
|
625
622
|
.should('have.css', 'fill', css.color.correctAnswer);
|
|
626
623
|
});
|
|
627
|
-
numberLineLabelPage.numberLineCorrectAnswerSection(
|
|
624
|
+
numberLineLabelPage.numberLineCorrectAnswerSection()
|
|
628
625
|
.parents('.ngie-jxgbox')
|
|
629
626
|
.within(() => {
|
|
630
627
|
numberLineLabelPage.draggableLabelsSpecifyCorrectAnswer()
|
|
@@ -968,17 +965,16 @@ const steps = {
|
|
|
968
965
|
* @param {Object[]} coordinates - An array containing x and y coordinates along with their ranges
|
|
969
966
|
* @param {number} range - range of x coordinate
|
|
970
967
|
*/
|
|
971
|
-
verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection: (label, range, coordinate
|
|
972
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
968
|
+
verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection: (label, range, coordinate) => {
|
|
973
969
|
numberLineLabelPage.numberLineCorrectAnswerSection()
|
|
974
970
|
.then(($graphElement) => {
|
|
975
971
|
let graphHeight = $graphElement[0].clientHeight;
|
|
976
972
|
const originY = graphHeight / 2 - tolerance / 2;
|
|
977
973
|
const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
|
|
978
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
974
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cy*="${Math.floor(yPixel)}"][display="inline"]:visible`)
|
|
979
975
|
.should('have.css', 'fill', css.color.correctAnswer);
|
|
980
976
|
});
|
|
981
|
-
numberLineLabelPage.numberLineCorrectAnswerSection(
|
|
977
|
+
numberLineLabelPage.numberLineCorrectAnswerSection()
|
|
982
978
|
.parents('.ngie-jxgbox')
|
|
983
979
|
.within(() => {
|
|
984
980
|
numberLineLabelPage.draggableLabelsSpecifyCorrectAnswer()
|
|
@@ -607,8 +607,7 @@ const steps = {
|
|
|
607
607
|
* @param {number} coordinates[].x - x coordinate to be plotted on the graph
|
|
608
608
|
* @param {number} coordinates[].xRange - range of x coordinate
|
|
609
609
|
*/
|
|
610
|
-
verifyCorrectPointsOnNumberLineCorrectAnswerSection: (range, coordinates
|
|
611
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
610
|
+
verifyCorrectPointsOnNumberLineCorrectAnswerSection: (range, coordinates) => {
|
|
612
611
|
coordinates.forEach(x => {
|
|
613
612
|
numberLinePage.numberLineCorrectAnswerSection()
|
|
614
613
|
.then(($graphElement) => {
|
|
@@ -617,7 +616,7 @@ const steps = {
|
|
|
617
616
|
const originX = graphWidth / 2 + tolerance / 2;
|
|
618
617
|
const originY = graphHeight / 2;
|
|
619
618
|
const xPixel = originX + x * ((graphWidth - tolerance) / range);
|
|
620
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
619
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][display="inline"]`)
|
|
621
620
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
|
622
621
|
});
|
|
623
622
|
});
|
|
@@ -671,8 +670,7 @@ const steps = {
|
|
|
671
670
|
* @param {number} range - The uniform range of coordinates.
|
|
672
671
|
* @param {Object[]} coordinates - An array of objects, each with x1 and x2 properties representing the points of each line segment.
|
|
673
672
|
*/
|
|
674
|
-
verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection: (range, coordinates
|
|
675
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
673
|
+
verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection: (range, coordinates) => {
|
|
676
674
|
coordinates.forEach(({ x1, x2 }) => {
|
|
677
675
|
numberLinePage.numberLineCorrectAnswerSection()
|
|
678
676
|
.then(($graphElement) => {
|
|
@@ -682,7 +680,7 @@ const steps = {
|
|
|
682
680
|
const originY = graphHeight / 2;
|
|
683
681
|
const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
|
|
684
682
|
const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
|
|
685
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
683
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
|
|
686
684
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
|
687
685
|
});
|
|
688
686
|
});
|
|
@@ -694,8 +692,7 @@ const steps = {
|
|
|
694
692
|
* @param {number} range - The range of the number line.
|
|
695
693
|
* @param {number} startingPoint - It representing the starting point of the ray.
|
|
696
694
|
*/
|
|
697
|
-
verifyCorrectRayOnNumberLineCorrectAnswerSection: (direction, range, startingPoint
|
|
698
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
695
|
+
verifyCorrectRayOnNumberLineCorrectAnswerSection: (direction, range, startingPoint) => {
|
|
699
696
|
numberLinePage.numberLineCorrectAnswerSection()
|
|
700
697
|
.then(($graphElement) => {
|
|
701
698
|
const graphWidth = $graphElement[0].clientWidth;
|
|
@@ -705,7 +702,7 @@ const steps = {
|
|
|
705
702
|
const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
|
|
706
703
|
const rayArrowWidth = 18;
|
|
707
704
|
const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
|
|
708
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
705
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
|
|
709
706
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
|
710
707
|
});
|
|
711
708
|
},
|
|
@@ -952,8 +949,7 @@ const steps = {
|
|
|
952
949
|
* @param {number} range - The range of the number line.
|
|
953
950
|
* @param {number[]} coordinates - The y-coordinates of the points.
|
|
954
951
|
*/
|
|
955
|
-
verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection: (range, coordinates
|
|
956
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
952
|
+
verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection: (range, coordinates) => {
|
|
957
953
|
coordinates.forEach(y => {
|
|
958
954
|
numberLinePage.numberLineCorrectAnswerSection()
|
|
959
955
|
.then(($graphElement) => {
|
|
@@ -962,7 +958,7 @@ const steps = {
|
|
|
962
958
|
const originX = graphWidth / 2;
|
|
963
959
|
const originY = graphHeight / 2 - tolerance / 2;
|
|
964
960
|
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
|
965
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
961
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][display="inline"]`)
|
|
966
962
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
|
967
963
|
});
|
|
968
964
|
});
|
|
@@ -1113,8 +1109,7 @@ const steps = {
|
|
|
1113
1109
|
* @param {number} coordinates[].y1 - The y-coordinate of the starting point.
|
|
1114
1110
|
* @param {number} coordinates[].y2 - The y-coordinate of the ending point.
|
|
1115
1111
|
*/
|
|
1116
|
-
verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection: (range, coordinates
|
|
1117
|
-
let index = isAlternativeAnswer ? 2 : 1;
|
|
1112
|
+
verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection: (range, coordinates) => {
|
|
1118
1113
|
coordinates.forEach(({ y1, y2 }) => {
|
|
1119
1114
|
numberLinePage.numberLineCorrectAnswerSection()
|
|
1120
1115
|
.then(($graphElement) => {
|
|
@@ -1124,7 +1119,7 @@ const steps = {
|
|
|
1124
1119
|
const originY = graphHeight / 2 - tolerance / 2;
|
|
1125
1120
|
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
|
1126
1121
|
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
|
1127
|
-
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(
|
|
1122
|
+
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
|
1128
1123
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
|
1129
1124
|
});
|
|
1130
1125
|
});
|