itemengine-cypress-automation 1.0.150-migrationScripts-5e451b6.0 → 1.0.151-28MarchRepoUpdate-4cfb82e.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +5 -4
- package/cypress/e2e/ILC/ContentBlocks/additionalSection.js +2 -2
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +6 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/GridFill/additionalSettings.js +52 -0
- package/cypress/e2e/ILC/GridFill/headerSection.js +74 -0
- package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +199 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -15
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +3 -18
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +4 -25
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingPenaltyScoring.js +4 -7
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +1 -14
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +256 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +213 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +258 -0
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +206 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +198 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -6
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +10 -22
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +421 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +247 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +219 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +247 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +168 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +227 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +199 -0
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +227 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +345 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +340 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +421 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +292 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/specifyCorrectAnswerSection.js +86 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +189 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingPenaltyScoring.js +55 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsBasic.js +116 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +309 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +163 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +292 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/specifyCorrectAnswerSection.js +86 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +189 -0
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
- package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
- package/cypress/pages/audioResponsePage.js +2 -2
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/commonComponents.js +2 -1
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +5 -5
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +388 -35
- package/cypress/pages/components/maximumRecorderLengthComponent.js +4 -4
- package/cypress/pages/components/playbackControlsBaseComponent.js +8 -2
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/drawingResponsePage.js +9 -10
- package/cypress/pages/geoGebraActivityPage.js +2 -1
- package/cypress/pages/geoGebraToolsPage.js +1 -1
- package/cypress/pages/gridFillPage.js +108 -13
- package/cypress/pages/matchingPage.js +154 -2
- package/cypress/pages/multipleSelectionGridPage.js +10 -2
- package/cypress/pages/rulerPage.js +2 -5
- package/cypress/pages/singleSelectionGridPage.js +18 -2
- package/package.json +1 -1
@@ -0,0 +1,189 @@
|
|
1
|
+
import { singleSelectionGridPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
const questionsArray = ['Elephants are the only mammals that can\'t jump', 'Bats are blind and navigate by using echolocation', 'Whale are mammals', 'Tigers can jump upto 3 metres'];
|
6
|
+
|
7
|
+
describe('Create item page - single selection grid: Student view settings', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Randomize options : Edit tab', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
18
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
19
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
20
|
+
});
|
21
|
+
|
22
|
+
singleSelectionGridPage.tests.verifyStudentViewSettingsLabelAndCSS();
|
23
|
+
|
24
|
+
it('\'Randomize options\' checkbox and label should be displayed and by default it should be unchecked', () => {
|
25
|
+
utilities.verifyInnerText(singleSelectionGridPage.randomizeOptionsLabel(), 'Randomize options');
|
26
|
+
utilities.verifyElementVisibilityState(singleSelectionGridPage.randomizeOptionsCheckbox(), 'exist');
|
27
|
+
singleSelectionGridPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
|
28
|
+
});
|
29
|
+
|
30
|
+
singleSelectionGridPage.tests.verifyRandomizeOptionsCheckboxAndLabelUncheckedCSS();
|
31
|
+
|
32
|
+
it('When the \'Randomize options\' functionality is disabled, the questions and options in the specify correct answer section grid should be displayed in the order in which the user has set them in the "Specify rows and columns" section', () => {
|
33
|
+
singleSelectionGridPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
|
34
|
+
questionsArray.forEach((question, rowIndex) => {
|
35
|
+
singleSelectionGridPage.steps.verifyTextInGridCellSpecifyCorrectAnswerSection({ row: rowIndex + 1, column: 0 }, question);
|
36
|
+
});
|
37
|
+
singleSelectionGridPage.steps.verifyTextInGridCellSpecifyCorrectAnswerSection({ row: 0, column: 1 }, 'True');
|
38
|
+
singleSelectionGridPage.steps.verifyTextInGridCellSpecifyCorrectAnswerSection({ row: 0, column: 2 }, 'False');
|
39
|
+
});
|
40
|
+
|
41
|
+
it('When the user enables the \'Randomize options\' functionality, then the question stems and options in the specify correct answer section grid should be in the order in which the user has set them in the "Specify rows and columns" section', () => {
|
42
|
+
singleSelectionGridPage.steps.checkRandomizeOptionsCheckbox()
|
43
|
+
questionsArray.forEach((question, rowIndex) => {
|
44
|
+
singleSelectionGridPage.steps.verifyTextInGridCellSpecifyCorrectAnswerSection({ row: rowIndex + 1, column: 0 }, question);
|
45
|
+
});
|
46
|
+
singleSelectionGridPage.steps.verifyTextInGridCellSpecifyCorrectAnswerSection({ row: 0, column: 1 }, 'True');
|
47
|
+
});
|
48
|
+
|
49
|
+
singleSelectionGridPage.tests.verifyRandomizeOptionsCheckboxCheckedCSSAndA11y();
|
50
|
+
});
|
51
|
+
|
52
|
+
describe('Randomize options - Functionality: Preview tab', () => {
|
53
|
+
let randomizedOptionsString = '';
|
54
|
+
abortEarlySetup();
|
55
|
+
before(() => {
|
56
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
57
|
+
cy.barsPreLoaderWait();
|
58
|
+
singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
59
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
60
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
61
|
+
});
|
62
|
+
|
63
|
+
it('When the \'Randomize options\' functionality is disabled, the questions and options in the preview tab grid should be displayed in the order in which the user has set them in the "Specify rows and columns" section', () => {
|
64
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
65
|
+
questionsArray.forEach((question, rowIndex) => {
|
66
|
+
singleSelectionGridPage.steps.verifyTextInGridCellPreviewTab({ row: rowIndex + 1, column: 0 }, question);
|
67
|
+
});
|
68
|
+
singleSelectionGridPage.steps.verifyTextInGridCellPreviewTab({ row: 0, column: 1 }, 'True');
|
69
|
+
singleSelectionGridPage.steps.verifyTextInGridCellPreviewTab({ row: 0, column: 2 }, 'False');
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When the user enables the \'Randomize options\' functionality, then the options should be displayed in a random order in the preview tab dropdown', () => {
|
73
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
74
|
+
singleSelectionGridPage.steps.checkRandomizeOptionsCheckbox();
|
75
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
76
|
+
singleSelectionGridPage.steps.verifyRandomizeQuestionsOrder(questionsArray);
|
77
|
+
randomizedOptionsString = singleSelectionGridPage.steps.getQuestionsArray();
|
78
|
+
});
|
79
|
+
|
80
|
+
it('When the user switches to \'Edit tab\' and does not modify any question properties, then the order of the questions and options should not change in the preview tab grid', () => {
|
81
|
+
singleSelectionGridPage.steps.resetQuestionPreview();
|
82
|
+
randomizedOptionsString.forEach((question, rowIndex) => {
|
83
|
+
singleSelectionGridPage.steps.verifyTextInGridCellPreviewTab({ row: rowIndex + 1, column: 0 }, question);
|
84
|
+
});
|
85
|
+
});
|
86
|
+
|
87
|
+
it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the questions should change and the options should be displayed in the order in which the user has set them in the preview tab grid', () => {
|
88
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
89
|
+
singleSelectionGridPage.steps.allotPoints(5);
|
90
|
+
cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
|
91
|
+
cy.wait(1000);
|
92
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
93
|
+
singleSelectionGridPage.steps.verifyRandomizeQuestionsOrder(questionsArray);
|
94
|
+
singleSelectionGridPage.steps.verifyQuestionsAreReRandomized(randomizedOptionsString);
|
95
|
+
});
|
96
|
+
|
97
|
+
it('When the user disables the \'Randomize options\' functionality, then the options should be displayed in the order in which the user has set them in the "Specify rows and columns" section in the preview tab grid', () => {
|
98
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
99
|
+
singleSelectionGridPage.steps.uncheckRandomizeOptionsCheckbox();
|
100
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
101
|
+
questionsArray.forEach((question, rowIndex) => {
|
102
|
+
singleSelectionGridPage.steps.verifyTextInGridCellPreviewTab({ row: rowIndex + 1, column: 0 }, question);
|
103
|
+
});
|
104
|
+
});
|
105
|
+
});
|
106
|
+
|
107
|
+
describe('Allow students to check answer: Edit tab', () => {
|
108
|
+
abortEarlySetup();
|
109
|
+
before(() => {
|
110
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
111
|
+
cy.barsPreLoaderWait();
|
112
|
+
});
|
113
|
+
|
114
|
+
singleSelectionGridPage.tests.verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS();
|
115
|
+
|
116
|
+
singleSelectionGridPage.tests.verifyMaximumAttemptsDropdownDisplayedWhenAllowStudentsToCheckAnswerIsChecked();
|
117
|
+
|
118
|
+
singleSelectionGridPage.tests.verifyMaxCheckAnswerAttemptsDropdown();
|
119
|
+
|
120
|
+
singleSelectionGridPage.tests.verifyAllowStudentsToCheckAnswerContentsCSSAndA11y();
|
121
|
+
});
|
122
|
+
|
123
|
+
describe('Allow students to check answer: Preview tab', () => {
|
124
|
+
abortEarlySetup();
|
125
|
+
before(() => {
|
126
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
127
|
+
cy.barsPreLoaderWait();
|
128
|
+
singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
129
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
130
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
131
|
+
singleSelectionGridPage.steps.allotPoints(20);
|
132
|
+
singleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
133
|
+
});
|
134
|
+
|
135
|
+
it('When the user has added questions and specified correct answer and points then on checking the \'Allow students to check answer\' checkbox the Check answer button should be displayed in the preview tab', () => {
|
136
|
+
singleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
137
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
138
|
+
utilities.verifyInnerText(singleSelectionGridPage.checkAnswerButton(), 'Check answer');
|
139
|
+
});
|
140
|
+
|
141
|
+
it('When the user selects an option and checks the answer then an icon should be displayed beside the selected option and the check answer button should be in enabled state', () => {
|
142
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
143
|
+
singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
|
144
|
+
singleSelectionGridPage.steps.checkAnswer();
|
145
|
+
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
|
146
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
147
|
+
});
|
148
|
+
|
149
|
+
it('When the user selects an option from the Maximum check answer attempts dropdown then the user should be able to check answer only those many times in the preview tab', () => {
|
150
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
151
|
+
singleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
152
|
+
singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('1');
|
153
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
154
|
+
singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
|
155
|
+
singleSelectionGridPage.steps.checkAnswer();
|
156
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonDisabled();
|
157
|
+
});
|
158
|
+
|
159
|
+
singleSelectionGridPage.tests.verifyDisabledCheckAnswerButtonWithCSSAndA11y();
|
160
|
+
|
161
|
+
it('When the user updates the value of \'Maximum check answer attempts\' dropdown, it should get reflected on the Preview tab', () => {
|
162
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
163
|
+
singleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
164
|
+
singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('3');
|
165
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
166
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
167
|
+
singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
|
168
|
+
singleSelectionGridPage.steps.checkAnswer();
|
169
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
170
|
+
});
|
171
|
+
|
172
|
+
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer single times', () => {
|
173
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
174
|
+
singleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
175
|
+
singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
176
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
177
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
178
|
+
singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
|
179
|
+
singleSelectionGridPage.steps.checkAnswer();
|
180
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
181
|
+
singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 2, column: 1 });
|
182
|
+
singleSelectionGridPage.steps.checkAnswer();
|
183
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
184
|
+
singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 3, column: 0 });
|
185
|
+
singleSelectionGridPage.steps.checkAnswer();
|
186
|
+
singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
187
|
+
});
|
188
|
+
});
|
189
|
+
});
|
Binary file
|
@@ -53,8 +53,8 @@ const selectors = {
|
|
53
53
|
compactPreviewStopRecordingButton: () => cy.get('.recorder-buttons-wrapper .stop-button'),
|
54
54
|
compactPreviewResumeRecordingButton: () => cy.get('.recorder-buttons-wrapper .record-button'),
|
55
55
|
compactPreviewRetakeButton: () => cy.get('.play-back-btn-wrapper .record-button'),
|
56
|
-
compactPreviewPlayPlaybackButton: () => cy.get('.play-back-btn-wrapper .play-back-button'),
|
57
|
-
compactPreviewPausePlaybackButton: () => cy.get('.play-back-btn-wrapper .play-back-button'),
|
56
|
+
compactPreviewPlayPlaybackButton: () => cy.get('.play-back-btn-wrapper .play-back-button').contains('Play'),
|
57
|
+
compactPreviewPausePlaybackButton: () => cy.get('.play-back-btn-wrapper .play-back-button').contains('Pause'),
|
58
58
|
compactPreviewRecordingHelpText: () => cy.get('.minimal-record-helper-text-wrapper'),
|
59
59
|
compactPreviewRecordingStatusText: () => cy.get('.minimal-recording-text'),
|
60
60
|
compactPreviewRecorderHelpText: () => cy.get('.response-recorded'),
|
@@ -33,7 +33,7 @@ const steps = {
|
|
33
33
|
*/
|
34
34
|
addAlternativeAnswerAccordion: (accordionIndex) => {
|
35
35
|
autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
|
36
|
-
utilities.verifyInnerText(utilities.getNthElement(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordionLabel(), `${accordionIndex-1}`), `Alternative ${accordionIndex}`);
|
36
|
+
utilities.verifyInnerText(utilities.getNthElement(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordionLabel(), `${accordionIndex - 1}`), `Alternative ${accordionIndex}`);
|
37
37
|
},
|
38
38
|
|
39
39
|
verifySpecifyCorrectAnswerErrorIconNotExists: () => {
|
@@ -97,7 +97,7 @@ const steps = {
|
|
97
97
|
*/
|
98
98
|
deleteAlternativeAnswerAccordion: (accordionIndex) => {
|
99
99
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
100
|
-
.eq(accordionIndex
|
100
|
+
.eq(accordionIndex)
|
101
101
|
.within(() => {
|
102
102
|
autoScoredSpecifyCorrectAnswerSection.deleteAlternateAccordionButton()
|
103
103
|
.click();
|
@@ -204,7 +204,7 @@ const tests = {
|
|
204
204
|
case 'graphing':
|
205
205
|
helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
|
206
206
|
break;
|
207
|
-
case 'grid fill'
|
207
|
+
case 'grid fill':
|
208
208
|
helpText = 'You can set the correct answer by selecting the correct cell(s) in the grid.';
|
209
209
|
break;
|
210
210
|
default:
|
@@ -7,7 +7,8 @@ const selectors = {
|
|
7
7
|
tooltipText: () => cy.get('[class*="MuiTooltip-tooltip"]:visible'),
|
8
8
|
snackbar: () => cy.get('.MuiSnackbarContent-message'),
|
9
9
|
snackbarCloseButton: () => cy.get('.MuiSnackbarContent-action'),
|
10
|
-
|
10
|
+
//Remove :visible https://redmine.zeuslearning.com/issues/564243 gets resolved
|
11
|
+
errorMessage: () => cy.get('.error-text-message:visible'),
|
11
12
|
nextGenCreateItemWrapper: () => cy.get('#nextgen-assess-create-item'),
|
12
13
|
dropdownList: () => cy.get('.dropdown-list'),
|
13
14
|
dragHandleButton: () => cy.get('.dragicon-button'),
|
@@ -19,9 +19,9 @@ const selectors = {
|
|
19
19
|
specialCharactersCategoryTilesWrapper: () => cy.get('[class*="CustomizedSpecialCharacterstyles__DragAndDropWrapper"]'),
|
20
20
|
specialCharacterTiles: (specialCharacterCategory = null) => {
|
21
21
|
if (specialCharacterCategory) {
|
22
|
-
return cy.get(`[
|
22
|
+
return cy.get(`[class*="GridItemsWrapper"] .icon-button-custom-format[aria-label="${specialCharacterCategory}"]`)
|
23
23
|
} else {
|
24
|
-
return cy.get('[
|
24
|
+
return cy.get('[class*="GridItemsWrapper"] .icon-button-custom-format')
|
25
25
|
}
|
26
26
|
},
|
27
27
|
specialCharacterTileIcon: () => cy.get('.equation-editor-icon'),
|
@@ -122,9 +122,9 @@ const steps = {
|
|
122
122
|
customizeSpecialCharacterComponent.specialCharacterTiles()
|
123
123
|
.eq(index)
|
124
124
|
.should('have.attr', 'aria-label', `${characterCategory}`);
|
125
|
+
utilities.verifyElementCount(customizeSpecialCharacterComponent.specialCharacterTiles(), charactersCategoriesArray.length);
|
125
126
|
});
|
126
127
|
});
|
127
|
-
utilities.verifyElementCount(customizeSpecialCharacterComponent.specialCharacterTiles(), charactersCategoriesArray.length);
|
128
128
|
},
|
129
129
|
|
130
130
|
/**
|
@@ -209,7 +209,7 @@ const tests = {
|
|
209
209
|
it('When the user clicks on the \'Preview\' hyperlink, a special characters popup should be displayed with all the special characters segregated according to all the language options. The user should be able to close the popup by clicking on the \'Close[X]\' button', () => {
|
210
210
|
customizeSpecialCharacterComponent.steps.clickOnCustomizeSpecialCharactersPreviewButton();
|
211
211
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
212
|
-
customizeSpecialCharacterComponent.steps.verifySpecialCharactersPreviewPopupInEditTab(specialCharacters);
|
212
|
+
// customizeSpecialCharacterComponent.steps.verifySpecialCharactersPreviewPopupInEditTab(specialCharacters);
|
213
213
|
//Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
|
214
214
|
cy.log('Post-step: Closing preview popup')
|
215
215
|
dialogBoxBase.steps.closeWarningPopup();
|
@@ -220,7 +220,7 @@ const tests = {
|
|
220
220
|
customizeSpecialCharacterComponent.steps.clickOnSpecialCharactersCategoryTile(specialCharacters[0].categoryName);
|
221
221
|
customizeSpecialCharacterComponent.steps.verifySpecialCharacterCategoryTileIsNotSelected(specialCharacters[0].categoryName);
|
222
222
|
customizeSpecialCharacterComponent.steps.clickOnCustomizeSpecialCharactersPreviewButton();
|
223
|
-
customizeSpecialCharacterComponent.steps.verifySpecialCharactersPreviewPopupInEditTab(specialCharacters);
|
223
|
+
// customizeSpecialCharacterComponent.steps.verifySpecialCharactersPreviewPopupInEditTab(specialCharacters);
|
224
224
|
//Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
|
225
225
|
cy.log('Post-step: Closing preview popup')
|
226
226
|
dialogBoxBase.steps.closeWarningPopup();
|