itemengine-cypress-automation 1.0.247-06SeptUpdates-b1623d7.0 → 1.0.248-23rdSeptUpdates-8103a8f.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +349 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +348 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +415 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingPenaltyScoring.js +54 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +254 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightBasic.js +255 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +4 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +3 -0
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +4 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +2 -0
- package/cypress/e2e/ILC/EssayResponseBasic/essayResponseBasicCustomizeFormattingOptions.js +2 -0
- package/cypress/e2e/ILC/ImageHighlight/toolsFunctionalityEditTab.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSameList.js +270 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsBasic.js +95 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +236 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialEqualWeightsBasic.js +150 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/setPointsPopup.js +88 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/specifyCorrectAnswerSection.js +97 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/studentViewSettings.js +134 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/additionalSettings.js +131 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +167 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +202 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +76 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/manuallyAndNonScoredEditTab.js +72 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/minimumScoringPenaltyPointsAndRoundingDropdown.js +197 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/optionsOrientationSection.js +180 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/specifyCorrectAnswerSection.js +95 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/studentViewSettings.js +130 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDraggableOptionProperties.js +223 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDraggableOptionsPanel.js +121 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDropzoneConnectorStyle.js +68 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationOptionAlignment.js +71 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationOptionPlacement.js +64 -0
- package/cypress/e2e/ILC/MatchingDropdown/styleAndLayoutCustomization.js +270 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +272 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +6 -6
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/pages/audioPlayerPage.js +4 -4
- package/cypress/pages/audioResponsePage.js +9 -1
- package/cypress/pages/chartsBarPage.js +3 -3
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +51 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
- package/cypress/pages/components/index.js +1 -10
- package/cypress/pages/components/listOrderingCommonStyleAndLayoutComponent.js +604 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/components/setPointsPopupBase.js +6 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/essayResponseBasicPage.js +4 -4
- package/cypress/pages/essayResponseMathPage.js +4 -4
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -2
- package/cypress/pages/index.js +0 -1
- package/cypress/pages/itemPreviewPage.js +1 -2
- package/cypress/pages/itemPreviewSettingsPage.js +3 -3
- package/cypress/pages/listOrderingPage.js +384 -10
- package/cypress/pages/matchingPage.js +512 -13
- package/cypress/pages/multipleSelectionPage.js +2 -2
- package/cypress/pages/numberLineLabelPage.js +3 -3
- package/cypress/pages/shortTextResponsePage.js +0 -37
- package/cypress/pages/singleSelectionPage.js +2 -2
- package/cypress/pages/textEntryMathPage.js +41 -9
- package/cypress/pages/textSelectionPage.js +2 -2
- package/cypress/pages/uploadResponsePage.js +2 -3
- package/cypress/pages/videoResponsePage.js +9 -2
- package/package.json +1 -1
- package/cypress/fixtures/specialAndMathCharacters.js +0 -120
- package/cypress/pages/components/autoScoredAdditionalSettings.js +0 -183
- package/cypress/pages/components/autoScoredPreviewBase.js +0 -92
- package/cypress/pages/components/autoScoredScoringSection.js +0 -199
- package/cypress/pages/components/autoScoredScoringSectionMultipleResponsesType.js +0 -377
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +0 -297
- package/cypress/pages/components/autoScoredStudentViewSettingsForPredefinedOptions.js +0 -84
- package/cypress/pages/components/listSortingAndOrderingBase.js +0 -401
- package/cypress/pages/components/previewScoringAndShowCorrectAnswerComponent.js +0 -91
- package/cypress/pages/components/scoringSectionBase.js +0 -354
- package/cypress/pages/components/specialAndCustomSpecialCharactersComponent.js +0 -80
- package/cypress/pages/components/specialCharactersFlyoutComponent.js +0 -59
- package/cypress/pages/listSortingPage.js +0 -1198
@@ -0,0 +1,254 @@
|
|
1
|
+
import { chartsLinePage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create item page - Charts - Line: Partial different weights', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Charts - Line: Partial different weights scoring', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
chartsLinePage.steps.selectLineButton();
|
15
|
+
chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the points on the chart for the profits of the years');
|
16
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
17
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
18
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
|
19
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
|
20
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
|
21
|
+
chartsLinePage.steps.lockPoint(1);
|
22
|
+
chartsLinePage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
23
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 3, 1: 2, 2: 5, 3: 4, 4: 6 });
|
24
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
25
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
26
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
27
|
+
//chartsLinePage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
28
|
+
chartsLinePage.steps.switchToPreviewTab();
|
29
|
+
});
|
30
|
+
|
31
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
|
32
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed, the correct accordion answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
33
|
+
chartsLinePage.steps.switchToGradingView();
|
34
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
35
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
|
36
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
37
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
|
38
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
|
39
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(4);
|
40
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
41
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
42
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
43
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
44
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
45
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
46
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
47
|
+
/*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')
|
48
|
+
chartsLinePage.steps.checkAnswer();
|
49
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
50
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
51
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
52
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
53
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
54
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
55
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
56
|
+
});
|
57
|
+
|
58
|
+
// Fully incorrect case
|
59
|
+
it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded points for the correctly set locked bar and on switching to grading view, correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrect response and correct answer section should be displayed with the correct answers', () => {
|
60
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
|
61
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 2, range: 10 });
|
62
|
+
chartsLinePage.steps.verifyPreviewScore(2, 20);
|
63
|
+
chartsLinePage.steps.switchToGradingView();
|
64
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
65
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
66
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
67
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
68
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
69
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
70
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
71
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
72
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
73
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
74
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
75
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
76
|
+
/*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 incorrect response')
|
77
|
+
chartsLinePage.steps.checkAnswer();
|
78
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
79
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
80
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
81
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
82
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
83
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
84
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
85
|
+
});
|
86
|
+
|
87
|
+
// Partially correct cases
|
88
|
+
it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
89
|
+
chartsLinePage.steps.resetQuestionPreview()
|
90
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 5, range: 10 });
|
91
|
+
chartsLinePage.steps.verifyPreviewScore(5, 20);
|
92
|
+
chartsLinePage.steps.switchToGradingView();
|
93
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
94
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
95
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
96
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
97
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
98
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
99
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
100
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
101
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
102
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
103
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
104
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
105
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
106
|
+
chartsLinePage.steps.checkAnswer();
|
107
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
108
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
109
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
110
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
111
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
112
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
113
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
117
|
+
chartsLinePage.steps.resetQuestionPreview()
|
118
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 2, range: 10 });
|
119
|
+
chartsLinePage.steps.verifyPreviewScore(11, 20);
|
120
|
+
chartsLinePage.steps.switchToGradingView();
|
121
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
122
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
123
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
124
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
125
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
126
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
127
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
128
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
129
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
130
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
131
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
132
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
133
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
134
|
+
chartsLinePage.steps.checkAnswer();
|
135
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
136
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
137
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
138
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
139
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
140
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
141
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
142
|
+
});
|
143
|
+
|
144
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
145
|
+
chartsLinePage.steps.resetQuestionPreview()
|
146
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 0, range: 10 });
|
147
|
+
chartsLinePage.steps.verifyPreviewScore(11, 20);
|
148
|
+
chartsLinePage.steps.switchToGradingView();
|
149
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
150
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
151
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
152
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
153
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
154
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
155
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
156
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
157
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
158
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
159
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
160
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
161
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
162
|
+
chartsLinePage.steps.checkAnswer();
|
163
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
164
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
165
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
166
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
167
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
168
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
169
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
170
|
+
});
|
171
|
+
|
172
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
173
|
+
chartsLinePage.steps.resetQuestionPreview()
|
174
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 9, range: 10 });
|
175
|
+
chartsLinePage.steps.verifyPreviewScore(11, 20);
|
176
|
+
chartsLinePage.steps.switchToGradingView();
|
177
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
178
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
179
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
180
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
181
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
182
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
183
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
184
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
185
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
186
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
187
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
188
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
189
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
190
|
+
chartsLinePage.steps.checkAnswer();
|
191
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
192
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
193
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
194
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
195
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
196
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
197
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
198
|
+
});
|
199
|
+
|
200
|
+
it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars and incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
201
|
+
chartsLinePage.steps.resetQuestionPreview()
|
202
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
|
203
|
+
chartsLinePage.steps.verifyPreviewScore(15, 20);
|
204
|
+
chartsLinePage.steps.switchToGradingView();
|
205
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
206
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
207
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
208
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
209
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
210
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
211
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
212
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
213
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
214
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
215
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
216
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
217
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
218
|
+
chartsLinePage.steps.checkAnswer();
|
219
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
220
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
221
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
222
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
223
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
224
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
225
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
226
|
+
});
|
227
|
+
|
228
|
+
// Fully correct
|
229
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted/set bars and the correct answer section graph should not be displayed', () => {
|
230
|
+
chartsLinePage.steps.resetQuestionPreview()
|
231
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 6, range: 10 });
|
232
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
|
233
|
+
chartsLinePage.steps.verifyPreviewScore(20, 20);
|
234
|
+
chartsLinePage.steps.switchToGradingView();
|
235
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
236
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
237
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
238
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
239
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
240
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
241
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
242
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
243
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars')
|
244
|
+
chartsLinePage.steps.checkAnswer();
|
245
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
246
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
247
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
248
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
249
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
250
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
251
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
252
|
+
});
|
253
|
+
});
|
254
|
+
});
|
@@ -0,0 +1,255 @@
|
|
1
|
+
import { chartsLinePage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create item page - Charts - Line: Partial equal weights', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Charts - Line: Partial equal weights scoring', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
chartsLinePage.steps.selectLineButton();
|
15
|
+
chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the points on the chart for the profits of the years');
|
16
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
17
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
18
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
|
19
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
|
20
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
|
21
|
+
chartsLinePage.steps.lockPoint(1);
|
22
|
+
chartsLinePage.steps.allotPoints(20);
|
23
|
+
chartsLinePage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
24
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
25
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
26
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
27
|
+
// chartsLinePage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
28
|
+
chartsLinePage.steps.switchToPreviewTab();
|
29
|
+
});
|
30
|
+
|
31
|
+
|
32
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
|
33
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed, the correct accordion answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
34
|
+
chartsLinePage.steps.switchToGradingView();
|
35
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
36
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
|
37
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
38
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
|
39
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
|
40
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(4);
|
41
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
42
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
43
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
44
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
45
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
46
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
47
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
48
|
+
/*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')
|
49
|
+
chartsLinePage.steps.checkAnswer();
|
50
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
51
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
52
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
53
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
54
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
55
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
56
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
57
|
+
});
|
58
|
+
|
59
|
+
// Fully incorrect case
|
60
|
+
it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded points for the correctly set locked bar and on switching to grading view, correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
61
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
|
62
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 2, range: 10 });
|
63
|
+
chartsLinePage.steps.verifyPreviewScore(4, 20);
|
64
|
+
chartsLinePage.steps.switchToGradingView();
|
65
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
66
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
67
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
68
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
69
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
70
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
71
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
72
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
73
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
74
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
75
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
76
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
77
|
+
/*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')
|
78
|
+
chartsLinePage.steps.checkAnswer();
|
79
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
80
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
81
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
82
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
83
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
84
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
85
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
86
|
+
});
|
87
|
+
|
88
|
+
// Partially correct cases
|
89
|
+
it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
90
|
+
chartsLinePage.steps.resetQuestionPreview()
|
91
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 5, range: 10 });
|
92
|
+
chartsLinePage.steps.verifyPreviewScore(8, 20);
|
93
|
+
chartsLinePage.steps.switchToGradingView();
|
94
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
95
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
96
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
97
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
98
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
99
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
100
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
101
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
102
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
103
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
104
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
105
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
106
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
107
|
+
chartsLinePage.steps.checkAnswer();
|
108
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
109
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
110
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
111
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
112
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
113
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
114
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
115
|
+
});
|
116
|
+
|
117
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
118
|
+
chartsLinePage.steps.resetQuestionPreview()
|
119
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 2, range: 10 });
|
120
|
+
chartsLinePage.steps.verifyPreviewScore(12, 20);
|
121
|
+
chartsLinePage.steps.switchToGradingView();
|
122
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
123
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
124
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
125
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
126
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
127
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
128
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
129
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
130
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
131
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
132
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
133
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
134
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
135
|
+
chartsLinePage.steps.checkAnswer();
|
136
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
137
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
138
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
139
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
140
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
141
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
142
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
143
|
+
});
|
144
|
+
|
145
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
146
|
+
chartsLinePage.steps.resetQuestionPreview()
|
147
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 0, range: 10 });
|
148
|
+
chartsLinePage.steps.verifyPreviewScore(12, 20);
|
149
|
+
chartsLinePage.steps.switchToGradingView();
|
150
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
151
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
152
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
153
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
154
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
155
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
157
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
158
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
159
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
160
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
161
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
162
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
163
|
+
chartsLinePage.steps.checkAnswer();
|
164
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
165
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
166
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
167
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
168
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
169
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
170
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
171
|
+
});
|
172
|
+
|
173
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
174
|
+
chartsLinePage.steps.resetQuestionPreview()
|
175
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 9, range: 10 });
|
176
|
+
chartsLinePage.steps.verifyPreviewScore(12, 20);
|
177
|
+
chartsLinePage.steps.switchToGradingView();
|
178
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
179
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
180
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
181
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
182
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
183
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
184
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
185
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
186
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
187
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
188
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
189
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
190
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
191
|
+
chartsLinePage.steps.checkAnswer();
|
192
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
193
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
194
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
195
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
196
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
197
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
198
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
199
|
+
});
|
200
|
+
|
201
|
+
it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with points for the correctly attempted/set bars and on switching to grading view correct/incorrect status message should not be displayed, correct icons should be displayed on the correctly attempted/set bars and incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
|
202
|
+
chartsLinePage.steps.resetQuestionPreview()
|
203
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
|
204
|
+
chartsLinePage.steps.verifyPreviewScore(16, 20);
|
205
|
+
chartsLinePage.steps.switchToGradingView();
|
206
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
207
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
208
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
209
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
210
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
211
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
212
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
213
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
214
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
|
215
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
|
216
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
217
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
218
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
|
219
|
+
chartsLinePage.steps.checkAnswer();
|
220
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
221
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
222
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
223
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
224
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
225
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
226
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
227
|
+
});
|
228
|
+
|
229
|
+
// Fully correct
|
230
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted/set bars and the correct answer section graph should not be displayed', () => {
|
231
|
+
chartsLinePage.steps.resetQuestionPreview()
|
232
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 6, range: 10 });
|
233
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
|
234
|
+
chartsLinePage.steps.verifyPreviewScore(20, 20);
|
235
|
+
chartsLinePage.steps.switchToGradingView();
|
236
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
237
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
238
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
239
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
240
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
241
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
242
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
243
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
244
|
+
/*cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, correct icons should be displayed for correctly attempted/set bars')
|
245
|
+
chartsLinePage.steps.checkAnswer();
|
246
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
247
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
248
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
249
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
250
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
251
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
252
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
|
253
|
+
});
|
254
|
+
});
|
255
|
+
});
|
@@ -817,6 +817,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
817
817
|
|
818
818
|
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} secondary toolbar option \'Fill color\' popup should be displayed`, () => {
|
819
819
|
drawingResponsePage.steps.switchToEditTab();
|
820
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
821
|
+
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
820
822
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[5]}`]);
|
821
823
|
drawingResponsePage.steps.switchToPreviewTab();
|
822
824
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
@@ -989,6 +991,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
989
991
|
|
990
992
|
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[1]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[1]} secondary toolbar option should be displayed`, () => {
|
991
993
|
drawingResponsePage.steps.switchToEditTab();
|
994
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
995
|
+
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
992
996
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
993
997
|
drawingResponsePage.steps.switchToPreviewTab();
|
994
998
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
@@ -407,6 +407,8 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
407
407
|
it('When user deselects any added custom category from the Equation editor section, it should not be displayed in the Equation editor flyout', () => {
|
408
408
|
cy.log('Switch to edit tab')
|
409
409
|
essayResponsePage.steps.switchToEditTab()
|
410
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
411
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
410
412
|
essayResponsePage.steps.deselectCategoryInEquationEditorSectionEditTab('Custom category with name.');
|
411
413
|
cy.log('Switching to preview tab and opening Equation editor flyout')
|
412
414
|
essayResponsePage.steps.switchToPreviewTab();
|
@@ -276,6 +276,9 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
276
276
|
|
277
277
|
it('When user re-visits the Edit category flyout the changes should be displayed', () => {
|
278
278
|
essayResponsePage.steps.switchToEditTab()
|
279
|
+
essayResponsePage.steps.switchToEditTab();
|
280
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
281
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
279
282
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
280
283
|
utilities.verifyElementVisibilityState(editCategoryFlyout.categoryCharacters('QuestionMark not-selected'), 'exist');
|
281
284
|
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedStateForEditedCategory(['dollar', equationEditorCategoriesAndSymbols['general'].symbols.cents.ariaLabel, 'colon']);
|
@@ -138,6 +138,8 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
138
138
|
it('When the selected number of equation categories do not fit the dialog box width then \'Next button\' and \'Previous button\' should be displayed in the equation editor flyout', () => {
|
139
139
|
cy.log('Pre step: Switch to Edit tab and select categories from the Equation Editor section')
|
140
140
|
essayResponsePage.steps.switchToEditTab();
|
141
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
142
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
141
143
|
essayResponsePage.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['algebra'].displayName}`, `${equationEditorCategoriesAndSymbols['matrices'].displayName}`, `${equationEditorCategoriesAndSymbols['geo'].displayName}`, `${equationEditorCategoriesAndSymbols['compare'].displayName}`, `${equationEditorCategoriesAndSymbols['calculus'].displayName}`, `${equationEditorCategoriesAndSymbols['trig'].displayName}`, `${equationEditorCategoriesAndSymbols['delimiters'].displayName}`, `${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols['measurement'].displayName}`, `${equationEditorCategoriesAndSymbols['setNotation'].displayName}`]);
|
142
144
|
cy.log('Switching to Preview tab')
|
143
145
|
essayResponsePage.steps.switchToPreviewTab()
|
@@ -279,6 +281,8 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
279
281
|
it('On deselecting all the categories an error message should be displayed \'Error: Please select a category.\' and the preview tab Equation Editor flyout should be empty', () => {
|
280
282
|
cy.log('Pre step: Switching to Edit tab')
|
281
283
|
essayResponsePage.steps.switchToEditTab();
|
284
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
285
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
282
286
|
essayResponsePage.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${equationEditorCategoriesAndSymbols['primary'].displayName}`, `${equationEditorCategoriesAndSymbols['general'].displayName}`, `${equationEditorCategoriesAndSymbols['common'].displayName}`, `${equationEditorCategoriesAndSymbols['algebra'].displayName}`, `${equationEditorCategoriesAndSymbols['geo'].displayName}`, `${equationEditorCategoriesAndSymbols['compare'].displayName}`, `${equationEditorCategoriesAndSymbols['matrices'].displayName}`, `${equationEditorCategoriesAndSymbols['greek'].displayName}`]);
|
283
287
|
utilities.verifyInnerText(essayResponsePage.selectACategoryErrorMessage(), 'Error: Please select a category.');
|
284
288
|
cy.log('Switching to Preview tab')
|
@@ -102,6 +102,8 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
102
102
|
it('When the user selects the \'Equation editor\' formatting option, the \'Equation editor\' section should be displayed below the formatting options. On deselecting \'Equation editor\' formatting option, \'Equation editor\' section should disappear', () => {
|
103
103
|
cy.log('Switching to edit tab')
|
104
104
|
essayResponsePage.steps.switchToEditTab();
|
105
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
106
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
105
107
|
essayResponsePage.steps.selectCustomizedFormattingOption(['Equation Editor']);
|
106
108
|
utilities.verifyElementVisibilityState(essayResponsePage.equationEditorSectionCategories(), 'visible');
|
107
109
|
essayResponsePage.steps.deselectCustomizedFormattingOption(['Equation Editor']);
|
@@ -130,6 +130,8 @@ describe('Essay response: Customize math characters', () => {
|
|
130
130
|
//Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
|
131
131
|
cy.log('Post-step: Switching to edit tab');
|
132
132
|
essayResponsePage.steps.switchToEditTab();
|
133
|
+
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
134
|
+
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
133
135
|
});
|
134
136
|
|
135
137
|
it('When the user checks the \'Show only custom special characters\' radio button, \'Custom special characters\' label and input field should be displayed. A \'Preview\' hyperlink should be displayed next to the label', () => {
|