itemengine-cypress-automation 1.0.203-31stMayFixes-16985aa.0 → 1.0.203
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/config-files/ilqa.json +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +14 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +356 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +320 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +355 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/toleranceThresholdScoring.js +141 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +170 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettingsForDropzones.js +170 -0
- package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +250 -0
- package/cypress/e2e/ILC/ImageHighlight/singleMultipleSelection.js +99 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettings.js +89 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationBorderProperties.js +53 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationGridProperties.js +98 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +89 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationBorderProperties.js +54 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +90 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCutomizationGridProperties.js +99 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +61 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +227 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +380 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +294 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +383 -0
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +7 -7
- package/cypress/pages/chartsBarPage.js +1 -4
- package/cypress/pages/chartsDotPlotPage.js +0 -13
- package/cypress/pages/components/additionalSettingsPanel.js +1 -0
- package/cypress/pages/components/ariaLabelSectionComponent.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +19 -0
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +1836 -134
- package/cypress/pages/components/singleMultipleSelectionModeComponent.js +74 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +25 -2
- package/cypress/pages/essayResponsePage.js +9 -1
- package/cypress/pages/feedbackScalePage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +111 -30
- package/cypress/pages/matchingPage.js +2 -1
- package/cypress/pages/multipleSelectionGridPage.js +4 -2
- package/cypress/pages/shortTextResponsePage.js +2 -2
- package/cypress/pages/singleSelectionGridPage.js +4 -2
- package/cypress/pages/textEntryMathPage.js +1 -0
- package/cypress/pages/textEntryMathWithImagePage.js +1 -1
- package/cypress/pages/uploadResponsePage.js +1 -3
- package/package.json +2 -2
@@ -5,7 +5,7 @@
|
|
5
5
|
"GRAPHQL_URL": "/api/graphql",
|
6
6
|
"SANDBOX_GRAPHQL_SERVICES_URL": "https://itemengine-sandbox-graph.itemengine-qa.il-apps.com/api/graphql",
|
7
7
|
"SANDBOX_SERVICES_URL": "https://sandbox.itemengine-qa.il-apps.com",
|
8
|
-
"SERVICES_URL": "https://itemengine-graph.itemengine-qa.il-apps.com",
|
8
|
+
"SERVICES_URL": "https://itemengine-graph-api.itemengine-qa.il-apps.com",
|
9
9
|
"AUTH_URL": "https://itemengine-sandbox-auth.itemengine-qa.il-apps.com/api/auth",
|
10
10
|
"scriptSrc": "https://assets.itemengine-qa.il-apps.com/Author.loader.js",
|
11
11
|
"admin_username": "demouser-ilc",
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js
CHANGED
@@ -284,7 +284,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
284
284
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
285
285
|
});
|
286
286
|
|
287
|
-
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view,
|
287
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the alternative accordion', () => {
|
288
288
|
chartsBarPage.steps.resetQuestionPreview();
|
289
289
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
290
290
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
@@ -314,7 +314,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
314
314
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
315
315
|
});
|
316
316
|
|
317
|
-
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view,
|
317
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be besides the common response, incorrect icons should be displayed on the incorrect bars, \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the alternative accordion', () => {
|
318
318
|
chartsBarPage.steps.resetQuestionPreview();
|
319
319
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
320
320
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 1, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -27,7 +27,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
27
27
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 4, range: 10 });
|
28
28
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 4, range: 10 });
|
29
29
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 6, range: 10 });
|
30
|
-
|
30
|
+
//chartsBarPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
31
31
|
chartsBarPage.steps.switchToPreviewTab();
|
32
32
|
});
|
33
33
|
|
@@ -282,7 +282,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
282
282
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
283
283
|
});
|
284
284
|
|
285
|
-
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view,
|
285
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
286
286
|
chartsBarPage.steps.resetQuestionPreview();
|
287
287
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
288
288
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
@@ -312,7 +312,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
312
312
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
313
313
|
});
|
314
314
|
|
315
|
-
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view,
|
315
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be besides the common response, incorrect icons should be displayed on the incorrect bars, \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
316
316
|
chartsBarPage.steps.resetQuestionPreview();
|
317
317
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
318
318
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 1, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
@@ -60,15 +60,19 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
60
60
|
});
|
61
61
|
|
62
62
|
it('CSS of correct answer section', { tags: 'css' }, () => {
|
63
|
+
chartsBarPage.steps.switchToGradingView();
|
63
64
|
utilities.verifyCSS(chartsBarPage.correctAnswersLabel(), {
|
64
65
|
'color': css.color.sectionHeading,
|
65
66
|
'font-size': css.fontSize.default,
|
66
67
|
'font-weight': css.fontWeight.bold
|
67
68
|
});
|
69
|
+
chartsBarPage.steps.switchToStudentView();
|
68
70
|
});
|
69
71
|
|
70
72
|
it('Accessibility of correct answer section', { tags: 'a11y' }, () => {
|
73
|
+
chartsBarPage.steps.switchToGradingView();
|
71
74
|
cy.checkAccessibility(chartsBarPage.previewTabQuestionWrapper());
|
75
|
+
chartsBarPage.steps.switchToStudentView();
|
72
76
|
});
|
73
77
|
|
74
78
|
it('When the user incorrectly attempts the answer, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
@@ -102,6 +106,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
102
106
|
});
|
103
107
|
|
104
108
|
it('CSS of incorrect answer state', { tags: 'css' }, () => {
|
109
|
+
chartsBarPage.steps.switchToGradingView();
|
105
110
|
chartsBarPage.incorrectIcon()
|
106
111
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
107
112
|
utilities.verifyCSS(chartsBarPage.correctIncorrectAnswerBlock(), {
|
@@ -113,10 +118,13 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
113
118
|
'font-size': css.fontSize.default,
|
114
119
|
'font-weight': css.fontWeight.regular
|
115
120
|
});
|
121
|
+
chartsBarPage.steps.switchToStudentView();
|
116
122
|
});
|
117
123
|
|
118
124
|
it('Accessibility of incorrect answer state', { tags: 'a11y' }, () => {
|
125
|
+
chartsBarPage.steps.switchToGradingView();
|
119
126
|
cy.checkAccessibility(chartsBarPage.previewTabQuestionWrapper());
|
127
|
+
chartsBarPage.steps.switchToStudentView();
|
120
128
|
});
|
121
129
|
|
122
130
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
@@ -145,6 +153,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
145
153
|
});
|
146
154
|
|
147
155
|
it('CSS of Correct answer state', { tags: 'css' }, () => {
|
156
|
+
chartsBarPage.steps.switchToGradingView();
|
148
157
|
utilities.verifyCSS(chartsBarPage.previewScoreText(), {
|
149
158
|
'color': css.color.whiteText,
|
150
159
|
'background-color': css.color.correctAnswer
|
@@ -160,10 +169,13 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
160
169
|
'font-size': css.fontSize.default,
|
161
170
|
'font-weight': css.fontWeight.regular
|
162
171
|
});
|
172
|
+
chartsBarPage.steps.switchToStudentView();
|
163
173
|
});
|
164
174
|
|
165
175
|
it('Accessibility of correct answer state', { tags: 'a11y' }, () => {
|
176
|
+
chartsBarPage.steps.switchToGradingView();
|
166
177
|
cy.checkAccessibility(chartsBarPage.previewTabQuestionWrapper());
|
178
|
+
chartsBarPage.steps.switchToStudentView();
|
167
179
|
});
|
168
180
|
|
169
181
|
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
@@ -336,7 +348,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
336
348
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
337
349
|
});
|
338
350
|
|
339
|
-
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view,
|
351
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
340
352
|
chartsBarPage.steps.resetQuestionPreview();
|
341
353
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
342
354
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
@@ -366,7 +378,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
366
378
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
367
379
|
});
|
368
380
|
|
369
|
-
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view,
|
381
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be besides the common response, incorrect icons should be displayed on the incorrect bars, \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
370
382
|
chartsBarPage.steps.resetQuestionPreview();
|
371
383
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
372
384
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 1, range: 10 });
|
@@ -23,7 +23,7 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
|
|
23
23
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 5, range: 10 });
|
24
24
|
chartsBarPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
25
25
|
chartsBarPage.steps.allotPartialDifferentWeightsPoints({ 0: 3, 1: 2, 2: 5, 3: 4, 4: 6 });
|
26
|
-
|
26
|
+
//chartsBarPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
27
27
|
chartsBarPage.steps.switchToPreviewTab();
|
28
28
|
});
|
29
29
|
|
@@ -23,7 +23,7 @@ describe('Create item page - Charts - Bar: Partial equal weights', () => {
|
|
23
23
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 6, range: 10 });
|
24
24
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 5, range: 10 });
|
25
25
|
chartsBarPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
26
|
-
|
26
|
+
//chartsBarPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
27
27
|
chartsBarPage.steps.switchToPreviewTab();
|
28
28
|
});
|
29
29
|
|
@@ -0,0 +1,356 @@
|
|
1
|
+
import { chartsBarPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create item page - Charts - Bar: Partial equal weights scoring with alternative answer - When alternative answer points are more than correct answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial equal weights with alternative answer: When alternative answer points are more than correct answer points', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
|
15
|
+
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
16
|
+
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
17
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 3, range: 10 });
|
18
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
|
19
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 3, range: 10 });
|
20
|
+
chartsBarPage.steps.lockBar(1);
|
21
|
+
chartsBarPage.steps.allotPoints(10);
|
22
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 3, range: 10 });
|
23
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 10 });
|
24
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 4, range: 10 });
|
25
|
+
chartsBarPage.steps.addAlternativeAnswerAccordion(1);
|
26
|
+
chartsBarPage.steps.allotPoints(20);
|
27
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 4, range: 10 });
|
28
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 4, range: 10 });
|
29
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 6, range: 10 });
|
30
|
+
chartsBarPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
31
|
+
//chartsBarPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
32
|
+
chartsBarPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the alternate accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
|
36
|
+
chartsBarPage.steps.switchToGradingView();
|
37
|
+
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
38
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
39
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
40
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
41
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
42
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
43
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
44
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
45
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
46
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
47
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
48
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
49
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
50
|
+
/* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the unattempted bars and correct icons should be displayed on the bar which is correct by default')
|
51
|
+
chartsBarPage.steps.checkAnswer();
|
52
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
53
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
54
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
55
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
56
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
57
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
58
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When the user incorrectly attempts the answer, then the user should be awarded with points for the correctly set bars(in this case only the locked bar) and on switching to grading view, correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
62
|
+
chartsBarPage.steps.resetQuestionPreview();
|
63
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 });
|
64
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 1, range: 10 });
|
65
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 1, range: 10 });
|
66
|
+
chartsBarPage.steps.verifyPreviewScore(4, 20);
|
67
|
+
chartsBarPage.steps.switchToGradingView();
|
68
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
69
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
70
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
71
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
72
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
73
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
74
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
75
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
76
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
77
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
78
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
79
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
80
|
+
/* cy.log('When the user selects check answer after incorrectly attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrectly attempted bars')
|
81
|
+
chartsBarPage.steps.checkAnswer();
|
82
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
83
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
84
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
85
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
86
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
87
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
88
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
89
|
+
});
|
90
|
+
|
91
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded the points alloted for correct accordion and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
|
92
|
+
chartsBarPage.steps.resetQuestionPreview();
|
93
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
94
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 4, range: 10 });
|
95
|
+
chartsBarPage.steps.verifyPreviewScore(10, 20);
|
96
|
+
chartsBarPage.steps.switchToGradingView();
|
97
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
98
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
99
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
100
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
101
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
102
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
103
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
104
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
105
|
+
/* cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
106
|
+
chartsBarPage.steps.checkAnswer();
|
107
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
108
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
109
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
110
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
111
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
112
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
113
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
|
117
|
+
chartsBarPage.steps.resetQuestionPreview();
|
118
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 4, range: 10 });
|
119
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 4, range: 10 });
|
120
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
121
|
+
chartsBarPage.steps.verifyPreviewScore(20, 20);
|
122
|
+
chartsBarPage.steps.switchToGradingView();
|
123
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
124
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
125
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
126
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
127
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
128
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
129
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
130
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
131
|
+
/* cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
132
|
+
chartsBarPage.steps.checkAnswer();
|
133
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
134
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
135
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
136
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
137
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
138
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
139
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
140
|
+
});
|
141
|
+
|
142
|
+
|
143
|
+
it('When the user attempts the question with partially correct exclusively from the correct accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
144
|
+
chartsBarPage.steps.resetQuestionPreview();
|
145
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
146
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
147
|
+
chartsBarPage.steps.verifyPreviewScore(6, 20);
|
148
|
+
chartsBarPage.steps.switchToGradingView();
|
149
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
150
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
151
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
152
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
153
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
154
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
155
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
156
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
157
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
158
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
159
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
160
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
161
|
+
/* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
162
|
+
chartsBarPage.steps.checkAnswer();
|
163
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
164
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
165
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
166
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
167
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
168
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
169
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
170
|
+
});
|
171
|
+
|
172
|
+
it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the alternate answer responses, incorrect icons should be displayed on the incorrect bars correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
173
|
+
chartsBarPage.steps.resetQuestionPreview();
|
174
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
175
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
176
|
+
chartsBarPage.steps.verifyPreviewScore(12, 20);
|
177
|
+
chartsBarPage.steps.switchToGradingView();
|
178
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
179
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
180
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
181
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
182
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
183
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
184
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
185
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
186
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
187
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
188
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
189
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
190
|
+
/* cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
191
|
+
chartsBarPage.steps.checkAnswer();
|
192
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
193
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
194
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
195
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
196
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
197
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
198
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
199
|
+
});
|
200
|
+
|
201
|
+
it('When the user attempts the question with more answers from the correct accordion than the alternate accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
202
|
+
chartsBarPage.steps.resetQuestionPreview();
|
203
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
204
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
205
|
+
chartsBarPage.steps.verifyPreviewScore(8, 20);
|
206
|
+
chartsBarPage.steps.switchToGradingView();
|
207
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
208
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
209
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
210
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
211
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
212
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
213
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
214
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
215
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
216
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
217
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
218
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
219
|
+
/* cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
220
|
+
chartsBarPage.steps.checkAnswer();
|
221
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
222
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
223
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
224
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
225
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
226
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
227
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
228
|
+
});
|
229
|
+
|
230
|
+
it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
231
|
+
chartsBarPage.steps.resetQuestionPreview();
|
232
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 4, range: 10 });
|
233
|
+
chartsBarPage.steps.verifyPreviewScore(12, 20);
|
234
|
+
chartsBarPage.steps.switchToGradingView();
|
235
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
236
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
237
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
238
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
239
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
240
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
241
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
242
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
243
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
244
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
245
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
246
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
247
|
+
/* cy.log('When the user attempts the question with more answers from the alternate accordion than the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
248
|
+
chartsBarPage.steps.checkAnswer();
|
249
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
250
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
251
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
252
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
253
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
254
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
255
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
256
|
+
});
|
257
|
+
|
258
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
259
|
+
chartsBarPage.steps.resetQuestionPreview();
|
260
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
261
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
262
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
263
|
+
chartsBarPage.steps.verifyPreviewScore(8, 20);
|
264
|
+
chartsBarPage.steps.switchToGradingView();
|
265
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
266
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
267
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
268
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
269
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
270
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
271
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
272
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
273
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
274
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
275
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
276
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
277
|
+
/* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
278
|
+
chartsBarPage.steps.checkAnswer();
|
279
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
280
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
281
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
282
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
283
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
284
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
285
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
286
|
+
});
|
287
|
+
|
288
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be besides the common response, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
|
289
|
+
chartsBarPage.steps.resetQuestionPreview();
|
290
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
291
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 1, range: 10 });
|
292
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 4, range: 10 });
|
293
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 1, range: 10 });
|
294
|
+
chartsBarPage.steps.verifyPreviewScore(8, 20);
|
295
|
+
chartsBarPage.steps.switchToGradingView();
|
296
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
297
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
298
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
299
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
300
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
301
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
302
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
303
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
304
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
305
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
|
306
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
307
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
308
|
+
/* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
|
309
|
+
chartsBarPage.steps.checkAnswer();
|
310
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
311
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
312
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
313
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
314
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
315
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
316
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
317
|
+
});
|
318
|
+
|
319
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response from the alternative accordion overpowers the combined score of the correct accordion answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section with a preview of the entire grid with correct answers from the correct accordion should be displayed', () => {
|
320
|
+
cy.log('Pre-step: Switching to Edit tab and allotting points to correct and alternative accordion such that the difference between the points is substantial')
|
321
|
+
chartsBarPage.steps.switchToEditTab();
|
322
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 8, range: 10 });
|
323
|
+
chartsBarPage.steps.allotPoints(50);
|
324
|
+
chartsBarPage.steps.expandCorrectAnswerAccordion();
|
325
|
+
chartsBarPage.steps.allotPoints(10);
|
326
|
+
chartsBarPage.steps.switchToPreviewTab();
|
327
|
+
|
328
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
329
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 4, range: 10 });
|
330
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
331
|
+
chartsBarPage.steps.verifyPreviewScore(12.5, 50);
|
332
|
+
chartsBarPage.steps.switchToGradingView();
|
333
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
334
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
335
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
336
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
337
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
338
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
339
|
+
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
340
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
341
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 8, range: 10 });
|
342
|
+
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
|
343
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
344
|
+
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
345
|
+
/* cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the alternate accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message and correct answer section should not be displayed')
|
346
|
+
chartsBarPage.steps.checkAnswer();
|
347
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
348
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
349
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
350
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
351
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
352
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
353
|
+
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
|
354
|
+
});
|
355
|
+
});
|
356
|
+
});
|