itemengine-cypress-automation 1.0.216 → 1.0.218-numberLineFixes-382e88a.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/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +61 -60
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +56 -56
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +57 -57
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +43 -41
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +71 -66
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +86 -77
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +89 -81
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +66 -58
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +158 -153
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.js +5 -5
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +3 -3
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +8 -8
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +40 -40
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +10 -10
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +56 -56
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +10 -10
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +20 -20
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +8 -8
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +31 -31
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/manualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -1
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +8 -8
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +3 -3
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +1 -0
- package/cypress/pages/components/layoutSectionComponent.js +65 -53
- package/cypress/pages/components/numberLineCommonComponent.js +76 -52
- package/cypress/pages/listOrderingPage.js +13 -0
- package/cypress/pages/numberLineLabelPage.js +25 -21
- package/cypress/pages/numberLinePage.js +64 -59
- package/package.json +2 -2
@@ -2,8 +2,8 @@ import utilities from '../support/helpers/utilities';
|
|
2
2
|
import { createQuestionBasePage, toolsAndControlsComponent, questionInstructionsComponent, resetPopupComponent, scoringSectionBaseEditTab, autoScoredScoringPreviewTab, autoScoredSpecifyCorrectAnswerSection, commonComponents, autoScoredScoringSectionMultiResponseType, toolSettingsComponent, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, autoScoredStudentViewSettings, randomizeOptionsComponent, studentViewSettingsLabelComponent, defaultToolDropdown, layoutSectionComponent, numberLineCommonComponent } from './components';
|
3
3
|
import { dialogBoxBase } from './dialogBoxBase';
|
4
4
|
const css = Cypress.env('css');
|
5
|
-
const range =
|
6
|
-
const tolerance =
|
5
|
+
const range = 22.18;
|
6
|
+
const tolerance = 6.25;
|
7
7
|
|
8
8
|
const selectors = {
|
9
9
|
...toolsAndControlsComponent,
|
@@ -259,7 +259,7 @@ const steps = {
|
|
259
259
|
numberLinePage.numberLinePreviewTab()
|
260
260
|
.click(xPixel, originY, { force: true });
|
261
261
|
} else {
|
262
|
-
const yPixel = originY - coordinate * (graphHeight / range);
|
262
|
+
const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
|
263
263
|
numberLinePage.numberLinePreviewTab()
|
264
264
|
.click(originX, yPixel, { force: true });
|
265
265
|
}
|
@@ -773,6 +773,11 @@ const steps = {
|
|
773
773
|
});
|
774
774
|
},
|
775
775
|
|
776
|
+
verifyCorrectIncorrectLabelNotExist: () => {
|
777
|
+
numberLinePage.correctIncorrectAnswerTextWrapper()
|
778
|
+
.should('not.exist');
|
779
|
+
},
|
780
|
+
|
776
781
|
//Layout
|
777
782
|
|
778
783
|
clickOnToolOptionsSpecifyCorrectAnswer: () => {
|
@@ -802,8 +807,8 @@ const steps = {
|
|
802
807
|
const graphWidth = $graphElement[0].clientWidth;
|
803
808
|
const graphHeight = $graphElement[0].clientHeight;
|
804
809
|
const originX = graphWidth / 2;
|
805
|
-
const originY = graphHeight / 2;
|
806
|
-
const yPixel = originY - y * (graphHeight / range);
|
810
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
811
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
807
812
|
cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][tabindex="0"]`)
|
808
813
|
.should('exist');
|
809
814
|
});
|
@@ -822,8 +827,8 @@ const steps = {
|
|
822
827
|
const graphWidth = $graphElement[0].clientWidth;
|
823
828
|
const graphHeight = $graphElement[0].clientHeight;
|
824
829
|
const originX = graphWidth / 2;
|
825
|
-
const originY = graphHeight / 2;
|
826
|
-
const yPixel = originY + y * (graphHeight / range);
|
830
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
831
|
+
const yPixel = originY + y * ((graphHeight - tolerance) / range);
|
827
832
|
cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][tabindex="0"]`)
|
828
833
|
.should('not.exist');
|
829
834
|
});
|
@@ -842,8 +847,8 @@ const steps = {
|
|
842
847
|
const graphWidth = $graphElement[0].clientWidth;
|
843
848
|
const graphHeight = $graphElement[0].clientHeight;
|
844
849
|
const originX = graphWidth / 2;
|
845
|
-
const originY = graphHeight / 2;
|
846
|
-
const yPixel = originY - y * (graphHeight / range);
|
850
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
851
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
847
852
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][tabindex="0"]`)
|
848
853
|
.should('exist');
|
849
854
|
});
|
@@ -857,8 +862,8 @@ const steps = {
|
|
857
862
|
const graphWidth = $graphElement[0].clientWidth;
|
858
863
|
const graphHeight = $graphElement[0].clientHeight;
|
859
864
|
const originX = graphWidth / 2;
|
860
|
-
const originY = graphHeight / 2;
|
861
|
-
const yPixel = originY - y * (graphHeight / range);
|
865
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
866
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
862
867
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][display="inline"]`)
|
863
868
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
864
869
|
});
|
@@ -872,8 +877,8 @@ const steps = {
|
|
872
877
|
const graphWidth = $graphElement[0].clientWidth;
|
873
878
|
const graphHeight = $graphElement[0].clientHeight;
|
874
879
|
const originX = graphWidth / 2;
|
875
|
-
const originY = graphHeight / 2;
|
876
|
-
const yPixel = originY - y * (graphHeight / range);
|
880
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
881
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
877
882
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][display="inline"]`)
|
878
883
|
.should('have.css', 'stroke', css.color.incorrectAnswer);
|
879
884
|
});
|
@@ -892,8 +897,8 @@ const steps = {
|
|
892
897
|
const graphWidth = $graphElement[0].clientWidth;
|
893
898
|
const graphHeight = $graphElement[0].clientHeight;
|
894
899
|
const originX = graphWidth / 2;
|
895
|
-
const originY = graphHeight / 2;
|
896
|
-
const yPixel = originY - y * (graphHeight / range);
|
900
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
901
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
897
902
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][tabindex="0"]`)
|
898
903
|
.should('not.exist');
|
899
904
|
});
|
@@ -913,8 +918,8 @@ const steps = {
|
|
913
918
|
const graphWidth = $graphElement[0].clientWidth;
|
914
919
|
const graphHeight = $graphElement[0].clientHeight;
|
915
920
|
const originX = graphWidth / 2;
|
916
|
-
const originY = graphHeight / 2;
|
917
|
-
const yPixel = originY - y * (graphHeight / range);
|
921
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
922
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
918
923
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][pointer-events="visiblePainted"]`)
|
919
924
|
.should('exist');
|
920
925
|
});
|
@@ -933,8 +938,8 @@ const steps = {
|
|
933
938
|
const graphWidth = $graphElement[0].clientWidth;
|
934
939
|
const graphHeight = $graphElement[0].clientHeight;
|
935
940
|
const originX = graphWidth / 2;
|
936
|
-
const originY = graphHeight / 2;
|
937
|
-
const yPixel = originY - y * (graphHeight / range);
|
941
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
942
|
+
const yPixel = originY - y * ((graphHeight - tolerance) / range);
|
938
943
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(originX)}"][cy*="${Math.floor(yPixel)}"][display="inline"]`)
|
939
944
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
940
945
|
});
|
@@ -955,9 +960,9 @@ const steps = {
|
|
955
960
|
const graphWidth = $graphElement[0].clientWidth;
|
956
961
|
const graphHeight = $graphElement[0].clientHeight;
|
957
962
|
const originX = graphWidth / 2;
|
958
|
-
const originY = graphHeight / 2;
|
959
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
960
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
963
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
964
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
965
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
961
966
|
cy.get(`.ngie-accordion .ngie-jxgbox svg [stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
962
967
|
.should('be.visible');
|
963
968
|
});
|
@@ -978,9 +983,9 @@ const steps = {
|
|
978
983
|
const graphWidth = $graphElement[0].clientWidth;
|
979
984
|
const graphHeight = $graphElement[0].clientHeight;
|
980
985
|
const originX = graphWidth / 2;
|
981
|
-
const originY = graphHeight / 2;
|
982
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
983
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
986
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
987
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
988
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
984
989
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
985
990
|
.should('be.visible');
|
986
991
|
});
|
@@ -1001,9 +1006,9 @@ const steps = {
|
|
1001
1006
|
const graphWidth = $graphElement[0].clientWidth;
|
1002
1007
|
const graphHeight = $graphElement[0].clientHeight;
|
1003
1008
|
const originX = graphWidth / 2;
|
1004
|
-
const originY = graphHeight / 2;
|
1005
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
1006
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
1009
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1010
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
1011
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
1007
1012
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
1008
1013
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
1009
1014
|
});
|
@@ -1024,9 +1029,9 @@ const steps = {
|
|
1024
1029
|
const graphWidth = $graphElement[0].clientWidth;
|
1025
1030
|
const graphHeight = $graphElement[0].clientHeight;
|
1026
1031
|
const originX = graphWidth / 2;
|
1027
|
-
const originY = graphHeight / 2;
|
1028
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
1029
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
1032
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1033
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
1034
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
1030
1035
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
1031
1036
|
.should('have.css', 'stroke', css.color.incorrectAnswer);
|
1032
1037
|
});
|
@@ -1047,9 +1052,9 @@ const steps = {
|
|
1047
1052
|
const graphWidth = $graphElement[0].clientWidth;
|
1048
1053
|
const graphHeight = $graphElement[0].clientHeight;
|
1049
1054
|
const originX = graphWidth / 2;
|
1050
|
-
const originY = graphHeight / 2;
|
1051
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
1052
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
1055
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1056
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
1057
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
1053
1058
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
1054
1059
|
.should('not.exist');
|
1055
1060
|
});
|
@@ -1070,9 +1075,9 @@ const steps = {
|
|
1070
1075
|
const graphWidth = $graphElement[0].clientWidth;
|
1071
1076
|
const graphHeight = $graphElement[0].clientHeight;
|
1072
1077
|
const originX = graphWidth / 2;
|
1073
|
-
const originY = graphHeight / 2;
|
1074
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
1075
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
1078
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1079
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
1080
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
1076
1081
|
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)}"]`)
|
1077
1082
|
.should('be.visible');
|
1078
1083
|
});
|
@@ -1093,9 +1098,9 @@ const steps = {
|
|
1093
1098
|
const graphWidth = $graphElement[0].clientWidth;
|
1094
1099
|
const graphHeight = $graphElement[0].clientHeight;
|
1095
1100
|
const originX = graphWidth / 2;
|
1096
|
-
const originY = graphHeight / 2;
|
1097
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
1098
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
1101
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1102
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
1103
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
1099
1104
|
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)}"]`)
|
1100
1105
|
.should('have.css', 'stroke', css.color.correctAnswer);
|
1101
1106
|
});
|
@@ -1116,9 +1121,9 @@ const steps = {
|
|
1116
1121
|
const graphWidth = $graphElement[0].clientWidth;
|
1117
1122
|
const graphHeight = $graphElement[0].clientHeight;
|
1118
1123
|
const originX = graphWidth / 2;
|
1119
|
-
const originY = graphHeight / 2;
|
1120
|
-
const y1Pixel = originY - y1 * (graphHeight / range);
|
1121
|
-
const y2Pixel = originY - y2 * (graphHeight / range);
|
1124
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1125
|
+
const y1Pixel = originY - y1 * ((graphHeight - tolerance) / range);
|
1126
|
+
const y2Pixel = originY - y2 * ((graphHeight - tolerance) / range);
|
1122
1127
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg [stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
1123
1128
|
.should('not.exist');
|
1124
1129
|
});
|
@@ -1136,8 +1141,8 @@ const steps = {
|
|
1136
1141
|
const graphWidth = $graphElement[0].clientWidth;
|
1137
1142
|
const graphHeight = $graphElement[0].clientHeight;
|
1138
1143
|
const originX = graphWidth / 2;
|
1139
|
-
const originY = graphHeight / 2;
|
1140
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1144
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1145
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1141
1146
|
const rayArrowHeight = 18;
|
1142
1147
|
const y2Pixel = direction === 'up' ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1143
1148
|
cy.get(`.ngie-accordion .ngie-jxgbox svg [stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
@@ -1156,8 +1161,8 @@ const steps = {
|
|
1156
1161
|
const graphWidth = $graphElement[0].clientWidth;
|
1157
1162
|
const graphHeight = $graphElement[0].clientHeight;
|
1158
1163
|
const originX = graphWidth / 2;
|
1159
|
-
const originY = graphHeight / 2;
|
1160
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1164
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1165
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1161
1166
|
const rayArrowHeight = 18;
|
1162
1167
|
const y2Pixel = direction === 'up' ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1163
1168
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
@@ -1177,8 +1182,8 @@ const steps = {
|
|
1177
1182
|
const graphWidth = $graphElement[0].clientWidth;
|
1178
1183
|
const graphHeight = $graphElement[0].clientHeight;
|
1179
1184
|
const originX = graphWidth / 2;
|
1180
|
-
const originY = graphHeight / 2;
|
1181
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1185
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1186
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1182
1187
|
const rayArrowHeight = 18;
|
1183
1188
|
const y2Pixel = direction === "up" ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1184
1189
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
@@ -1197,8 +1202,8 @@ const steps = {
|
|
1197
1202
|
const graphWidth = $graphElement[0].clientWidth;
|
1198
1203
|
const graphHeight = $graphElement[0].clientHeight;
|
1199
1204
|
const originX = graphWidth / 2;
|
1200
|
-
const originY = graphHeight / 2;
|
1201
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1205
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1206
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1202
1207
|
const rayArrowHeight = 18;
|
1203
1208
|
const y2Pixel = direction === "up" ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1204
1209
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
@@ -1217,8 +1222,8 @@ const steps = {
|
|
1217
1222
|
const graphWidth = $graphElement[0].clientWidth;
|
1218
1223
|
const graphHeight = $graphElement[0].clientHeight;
|
1219
1224
|
const originX = graphWidth / 2;
|
1220
|
-
const originY = graphHeight / 2;
|
1221
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1225
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1226
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1222
1227
|
const rayArrowHeight = 18;
|
1223
1228
|
const y2Pixel = direction === "up" ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1224
1229
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
@@ -1237,8 +1242,8 @@ const steps = {
|
|
1237
1242
|
const graphWidth = $graphElement[0].clientWidth;
|
1238
1243
|
const graphHeight = $graphElement[0].clientHeight;
|
1239
1244
|
const originX = graphWidth / 2;
|
1240
|
-
const originY = graphHeight / 2;
|
1241
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1245
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1246
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1242
1247
|
const rayArrowHeight = 18;
|
1243
1248
|
const y2Pixel = direction === "up" ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1244
1249
|
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)}"]`)
|
@@ -1257,8 +1262,8 @@ const steps = {
|
|
1257
1262
|
const graphWidth = $graphElement[0].clientWidth;
|
1258
1263
|
const graphHeight = $graphElement[0].clientHeight;
|
1259
1264
|
const originX = graphWidth / 2;
|
1260
|
-
const originY = graphHeight / 2;
|
1261
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1265
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1266
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1262
1267
|
const rayArrowHeight = 18;
|
1263
1268
|
const y2Pixel = direction === "up" ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1264
1269
|
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)}"]`)
|
@@ -1277,8 +1282,8 @@ const steps = {
|
|
1277
1282
|
const graphWidth = $graphElement[0].clientWidth;
|
1278
1283
|
const graphHeight = $graphElement[0].clientHeight;
|
1279
1284
|
const originX = graphWidth / 2;
|
1280
|
-
const originY = graphHeight / 2;
|
1281
|
-
const y1Pixel = originY - startingPoint * (graphHeight / range);
|
1285
|
+
const originY = graphHeight / 2 - tolerance / 2;
|
1286
|
+
const y1Pixel = originY - startingPoint * ((graphHeight - tolerance) / range);
|
1282
1287
|
const rayArrowHeight = 18;
|
1283
1288
|
const y2Pixel = direction === "up" ? rayArrowHeight : graphHeight - rayArrowHeight;
|
1284
1289
|
cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg [stroke-linecap="butt"][x1*="${Math.floor(originX)}"][y1*="${Math.floor(y1Pixel)}"][x2*="${Math.floor(originX)}"][y2*="${Math.floor(y2Pixel)}"]`)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.218-numberLineFixes-382e88a.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|