itemengine-cypress-automation 1.0.214-9JulyFixes-98f22ed.0 → 1.0.215-10julyfixes-ea12283.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +1 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +48 -48
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +42 -42
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +43 -43
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +8 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +8 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +12 -3
- package/cypress/pages/chartsLinePage.js +16 -0
- package/cypress/pages/matchingPage.js +1 -1
- package/package.json +1 -1
@@ -41,18 +41,19 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
41
41
|
chartsDotPlotPage.steps.switchToGradingView();
|
42
42
|
//preview chart
|
43
43
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
44
|
-
chartsDotPlotPage.steps.
|
45
|
-
chartsDotPlotPage.steps.
|
46
|
-
chartsDotPlotPage.steps.
|
47
|
-
chartsDotPlotPage.steps.
|
48
|
-
chartsDotPlotPage.steps.
|
44
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
45
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
46
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
47
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
48
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
49
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
49
50
|
//correct answer section chart
|
50
51
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
51
52
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
52
53
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
53
54
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
54
|
-
chartsDotPlotPage.steps.
|
55
|
-
chartsDotPlotPage.steps.
|
55
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
56
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
56
57
|
/*cy.log('When the user clicks on \'Check answer\' button without attempting the question, locked bar should not have icon, correct icon should be displayed in dot column set correctly by default, incorrect icon should be displayed in dot column set incorrectly by default and correct/incorrect status message and correct answer section should not be displayed')
|
57
58
|
chartsDotPlotPage.steps.checkAnswer();
|
58
59
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
@@ -42,18 +42,18 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
42
42
|
chartsDotPlotPage.steps.switchToGradingView();
|
43
43
|
//preview chart
|
44
44
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
45
|
-
chartsDotPlotPage.steps.
|
46
|
-
chartsDotPlotPage.steps.
|
47
|
-
chartsDotPlotPage.steps.
|
48
|
-
chartsDotPlotPage.steps.
|
49
|
-
chartsDotPlotPage.steps.
|
45
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
46
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
47
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
48
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
49
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
50
50
|
//correct answer section chart
|
51
51
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
52
52
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
53
53
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
54
54
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
55
|
-
chartsDotPlotPage.steps.
|
56
|
-
chartsDotPlotPage.steps.
|
55
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
56
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
57
57
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
58
58
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
59
59
|
/*cy.log('When the user clicks on \'Check answer\' button without attempting the question, locked bar should not have icon, correct icon should be displayed in dot column set correctly by default, incorrect icon should be displayed in dot column set to incorrectly by default and correct/incorrect status message and correct answer section should not be displayed')
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { chartsDotPlotPage } from "../../../../pages";
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../../support/helpers/utilities";
|
3
4
|
|
4
5
|
describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/Threshold', () => {
|
5
6
|
before(() => {
|
@@ -33,11 +34,13 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
33
34
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
34
35
|
chartsDotPlotPage.steps.switchToGradingView();
|
35
36
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
36
|
-
chartsDotPlotPage.steps.
|
37
|
-
chartsDotPlotPage.steps.
|
37
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
38
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
39
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
38
40
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
39
41
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
40
42
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
43
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
41
44
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
42
45
|
});
|
43
46
|
|
@@ -50,6 +53,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
50
53
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
51
54
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
52
55
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
56
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
53
57
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
54
58
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
55
59
|
/*cy.log('When user attempt question by setting the dot column with dots as per tolerance value and clicks on \'Check answer\' button, then dot columns should have correct icons and status message \'Your answer is correct\' should be displayed and correct answer section should not be displayed');
|
@@ -74,6 +78,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
74
78
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
75
79
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
76
80
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
81
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
77
82
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
78
83
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
79
84
|
/*cy.log('When user attempt question partially correct by setting some dot column with dots as per tolerance value, some by setting incorrect number of dots and some incomplete and clicks on \'Check answer\' button, then correct dot columns should have correct icons, incorrect dot columns should have incorrect icons and status message \'Your answer is correct\' should be displayed and correct answer section should not be displayed');
|
@@ -100,6 +105,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
100
105
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
101
106
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
102
107
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
108
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
103
109
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
104
110
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
105
111
|
/*cy.log('When the user attempts the question incorrectly by setting dots in the dot column outside the tolerance range and clicks on \'Check answer\' button, then incorrect dot columns should have incorrect icons and status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed');
|
@@ -121,6 +127,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
121
127
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
122
128
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
123
129
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
130
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
124
131
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
125
132
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
126
133
|
/*cy.log('When the user attempts the question correctly by setting dots in the dot column as per specify correct answer section and clicks on \'Check answer\' button, then correct dot columns should have correct icons and status message \'Your answer is correct\' should be displayed');
|
@@ -132,7 +139,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
132
139
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
|
133
140
|
});
|
134
141
|
|
135
|
-
it('When the user attempts the question correctly by setting dots in the empty dot column as per tolerance range, then user should be awarded 0 points in preview tab and switching to grading view, empty dot column should have correct icon and status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed', () => {
|
142
|
+
it('When the user attempts the question partially correctly by setting dots in the empty dot column as per tolerance range, then user should be awarded 0 points in preview tab and switching to grading view, empty dot column should have correct icon and status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed', () => {
|
136
143
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
137
144
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
138
145
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 20);
|
@@ -144,6 +151,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
144
151
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
145
152
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
146
153
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
154
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
147
155
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
148
156
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
149
157
|
/*cy.log('When the user attempts the question correctly by setting dots in the empty dot column as per tolerance range and clicks on \'Check answer\' button, then empty dot column should have correct icon and status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed');
|
@@ -159,6 +167,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with Tolerance/T
|
|
159
167
|
it('When the user updates the tolerance/threshold value in edit tab then tolerance value should get updated in preview tab and when user attempts the question correctly by setting dots in the dot column as per tolerance range, then user should be awarded full points in preview tab and switching to grading view, correct dot columns should have correct icon and status message \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
160
168
|
chartsDotPlotPage.steps.switchToEditTab();
|
161
169
|
chartsDotPlotPage.steps.setToleranceThresholdValue(2);
|
170
|
+
cy.wait(500);
|
162
171
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
163
172
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
164
173
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
@@ -79,6 +79,22 @@ const steps = {
|
|
79
79
|
});
|
80
80
|
},
|
81
81
|
|
82
|
+
/**
|
83
|
+
* @param {("correct" | "incorrect")} answerStatus - The status of the answer.
|
84
|
+
* @description Verifies the visibility and content of the correct/incorrect answer label block.
|
85
|
+
* If the answer is correct, it also verifies the visibility of the correct icon;
|
86
|
+
* otherwise, it verifies the visibility of the incorrect icon.
|
87
|
+
*/
|
88
|
+
verifyCorrectIncorrectAnswerLabel: (answerStatus) => {
|
89
|
+
utilities.verifyElementVisibilityState(correctIncorrectAnswerLabelComponent.correctIncorrectAnswerBlock(), 'exist');
|
90
|
+
utilities.verifyInnerText(correctIncorrectAnswerLabelComponent.correctIncorrectStatusMessageText(), `Your answer is${answerStatus}`)
|
91
|
+
if (answerStatus === 'correct') {
|
92
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'visible');
|
93
|
+
} else {
|
94
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'visible');
|
95
|
+
}
|
96
|
+
},
|
97
|
+
|
82
98
|
/**
|
83
99
|
* @description Lock the point in select chart type section chart
|
84
100
|
* @param {number} pointIndex Index of the point to be locked
|
@@ -43,7 +43,7 @@ const selectors = {
|
|
43
43
|
dropzoneColumnAndPromptHeaderWrapperSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-accordion [class*="ClozeWithDragAndDropstyles__ResponseHeaderWrapper"]'),
|
44
44
|
optionsLayoutToggleButton: (ariaLabel = null) => {
|
45
45
|
if (ariaLabel) {
|
46
|
-
return cy.get(`.MuiToggleButtonGroup-root button[aria-label*="${ariaLabel}"]`)
|
46
|
+
return cy.get(`.MuiToggleButtonGroup-root button[aria-label*="${ariaLabel}"]:visible`)
|
47
47
|
} else {
|
48
48
|
return cy.get('.MuiToggleButtonGroup-root button')
|
49
49
|
}
|