itemengine-cypress-automation 1.0.264 → 1.0.265
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +2 -2
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/chartFunctionalitySpecifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +28 -42
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -4
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +7 -7
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +22 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +23 -17
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -3
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +18 -17
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +11 -13
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -1
- package/cypress/fixtures/theme/ilc.json +4 -2
- package/cypress/pages/chartsBarPage.js +4 -0
- package/cypress/pages/chartsLinePage.js +3 -4
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +9 -9
- package/cypress/pages/components/essayResponseCommonComponents.js +1 -0
- package/cypress/pages/components/playbackControlsBaseComponent.js +1 -1
- package/cypress/pages/components/resetPopupComponent.js +3 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -2
- package/cypress/pages/drawingResponsePage.js +2 -1
- package/cypress/pages/graphingPage.js +20 -0
- package/cypress/pages/textEntryMathPage.js +11 -0
- package/cypress/pages/uploadResponsePage.js +2 -1
- package/package.json +2 -2
package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js
CHANGED
@@ -132,28 +132,33 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
132
132
|
}
|
133
133
|
|
134
134
|
it('CSS of preview contents', { tags: 'css' }, () => {
|
135
|
-
utilities.verifyCSS(listOrderingPage.horizontalOptionPreviewTab(), {
|
136
|
-
'background-color': css.color.defaultBackground,
|
137
|
-
'border': `1px solid ${css.color.draggableOptionBorder}`
|
138
|
-
});
|
139
|
-
utilities.verifyCSS(listOrderingPage.horizontalOptionPreviewTab().find('.question-text-wrapper'), {
|
140
|
-
'color': css.color.text,
|
141
|
-
'font-size': css.fontSize.default,
|
142
|
-
'font-weight': css.fontWeight.regular
|
143
|
-
});
|
144
|
-
utilities.verifyCSS(listOrderingPage.horizontalOptionPreviewTab().find('.question-text-wrapper'), {
|
145
|
-
'color': css.color.text,
|
146
|
-
'font-size': css.fontSize.default,
|
147
|
-
'font-weight': css.fontWeight.regular
|
148
|
-
});
|
149
135
|
switch (view) {
|
150
136
|
case 'Question preview':
|
151
137
|
case 'Item preview':
|
152
138
|
case 'Item view':
|
153
139
|
case 'Item preview':
|
154
140
|
case 'Student view':
|
141
|
+
utilities.verifyCSS(listOrderingPage.droppedOptionSeperateList().find('.dropped-item.item-wrapper'), {
|
142
|
+
'background-color': css.color.defaultBackground,
|
143
|
+
'border': `1px solid ${css.color.draggableOptionBorder}`
|
144
|
+
});
|
145
|
+
utilities.verifyCSS(listOrderingPage.droppedOptionSeperateList().find('.question-text-wrapper'), {
|
146
|
+
'color': css.color.labels,
|
147
|
+
'font-size': css.fontSize.default,
|
148
|
+
'font-weight': css.fontWeight.regular
|
149
|
+
});
|
150
|
+
break;
|
155
151
|
case 'Grading view':
|
156
|
-
utilities.verifyCSS(
|
152
|
+
utilities.verifyCSS(listOrderingPage.droppedOptionSeperateList().find('.dropped-item.item-wrapper'), {
|
153
|
+
'background-color': css.color.defaultBackground,
|
154
|
+
'border': `1px solid ${css.color.correctAnswer}`
|
155
|
+
});
|
156
|
+
utilities.verifyCSS(listOrderingPage.droppedOptionSeperateList().find('.question-text-wrapper'), {
|
157
|
+
'color': css.color.text,
|
158
|
+
'font-size': css.fontSize.default,
|
159
|
+
'font-weight': css.fontWeight.regular
|
160
|
+
});
|
161
|
+
utilities.verifyCSS(utilities.getNthElement(listOrderingPage.droppedOptionSeperateList(), 1).find('.drag-icon-button path').eq(1), {
|
157
162
|
'color': css.color.secondaryBtn
|
158
163
|
});
|
159
164
|
break;
|
@@ -164,8 +169,9 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
164
169
|
}
|
165
170
|
});
|
166
171
|
|
167
|
-
|
168
|
-
|
172
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-4737
|
173
|
+
it.skip('Accessibility of preview contents', { tags: 'a11y' }, () => {
|
174
|
+
cy.checkAccessibility(listOrderingPage.droppedOptionSeperateList().parents('[class*="question-preview-wrapper"]'));
|
169
175
|
});
|
170
176
|
});
|
171
177
|
});
|
@@ -134,7 +134,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
134
134
|
.within(() => {
|
135
135
|
utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 1), {
|
136
136
|
'background-color': css.color.matrixHeadingCellBg,
|
137
|
-
'border-color': `${css.color.matrixCellBorder}`
|
137
|
+
'border-bottom-color': `${css.color.matrixCellBorder}`
|
138
138
|
});
|
139
139
|
utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 6), {
|
140
140
|
'background-color': css.color.matrixSubheadingCellBg,
|
@@ -170,7 +170,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
170
170
|
case 'Grading view':
|
171
171
|
case 'Correct answer view':
|
172
172
|
utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 10).find('.question-text-wrapper strong'), {
|
173
|
-
'color': css.color.
|
173
|
+
'color': css.color.successBtn,
|
174
174
|
'font-size': css.fontSize.default,
|
175
175
|
'font-weight': css.fontWeight.bold
|
176
176
|
});
|
@@ -180,7 +180,8 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
180
180
|
}
|
181
181
|
});
|
182
182
|
|
183
|
-
|
183
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-4738
|
184
|
+
it.skip('Accessibility of preview tab', { tags: 'a11y' }, () => {
|
184
185
|
cy.checkAccessibility(multipleSelectionGridPage.tableCell());
|
185
186
|
});
|
186
187
|
});
|
@@ -152,8 +152,8 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
152
152
|
|
153
153
|
it('CSS of preview content', { tags: 'css' }, () => {
|
154
154
|
utilities.verifyCSS(numberLinePage.numberLineToolOptionPreviewTab('Right open segment'), {
|
155
|
-
'background-color': css.color.
|
156
|
-
'color': css.color.
|
155
|
+
'background-color': css.color.transparent,
|
156
|
+
'color': css.color.UnselectedToggleButton,
|
157
157
|
});
|
158
158
|
utilities.verifyCSS(numberLinePage.numberLineToolOptionPreviewTab('Point').find('g circle'), {
|
159
159
|
'color': css.color.UnselectedToggleButton,
|
@@ -38,7 +38,7 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
38
38
|
singleSelectionPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
39
39
|
singleSelectionPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
40
40
|
singleSelectionPage.steps.allotPoints(10);
|
41
|
-
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(
|
41
|
+
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
|
42
42
|
singleSelectionPage.steps.switchToPreviewTab();
|
43
43
|
break;
|
44
44
|
case 'Item view':
|
@@ -94,13 +94,13 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
94
94
|
});
|
95
95
|
|
96
96
|
it(`User should able to select options in the ${view}`, () => {
|
97
|
-
singleSelectionPage.steps.checkOptionInPreviewTab(
|
98
|
-
singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(
|
97
|
+
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
98
|
+
singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(1);
|
99
99
|
});
|
100
100
|
} else if (view === 'Grading view') {
|
101
101
|
it(`The submitted/correct options should be in checked state and they should not be editable`, () => {
|
102
|
-
singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(
|
103
|
-
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(
|
102
|
+
singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(1);
|
103
|
+
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(0);
|
104
104
|
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(2);
|
105
105
|
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(3);
|
106
106
|
options.forEach((options, index) => {
|
@@ -110,8 +110,8 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
110
110
|
} else {
|
111
111
|
it(`The correct options should have correct icons besides them`, () => {
|
112
112
|
// Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
|
113
|
-
// singleSelectionPage.steps.verifyCorrectOptionIconGradingView(
|
114
|
-
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(
|
113
|
+
// singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
114
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
|
115
115
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
116
116
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
117
117
|
});
|
@@ -129,11 +129,11 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
129
129
|
'font-size': css.fontSize.default,
|
130
130
|
'font-weight': css.fontWeight.regular
|
131
131
|
});
|
132
|
-
utilities.verifyCSS(singleSelectionPage.optionRadioButtonPreviewTab().parent().find('svg'), {
|
132
|
+
utilities.verifyCSS(singleSelectionPage.optionRadioButtonPreviewTab().parent().find('svg').eq(0), {
|
133
133
|
'fill': css.color.secondaryBtn
|
134
134
|
});
|
135
135
|
cy.log('CSS of selected options')
|
136
|
-
utilities.verifyCSS(utilities.getNthElement(singleSelectionPage.optionWrapperPreviewTab(), 1), {
|
136
|
+
utilities.verifyCSS(utilities.getNthElement(singleSelectionPage.optionWrapperPreviewTab(), 1).find('[class*="radio-option"]'), {
|
137
137
|
'background-color': css.color.defaultBackground,
|
138
138
|
'color': css.color.activeButtons,
|
139
139
|
'border': `2px solid ${css.color.activeComponentBorder}`
|
@@ -143,31 +143,32 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
143
143
|
'font-size': css.fontSize.default,
|
144
144
|
'font-weight': css.fontWeight.regular
|
145
145
|
});
|
146
|
-
singleSelectionPage.optionRadioButtonPreviewTab()
|
147
|
-
.
|
148
|
-
|
149
|
-
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
146
|
+
utilities.verifyCSS(singleSelectionPage.optionRadioButtonPreviewTab().parent().find('svg').eq(1), {
|
147
|
+
'fill': css.color.activeButtons
|
148
|
+
});
|
150
149
|
break;
|
151
150
|
case 'Grading view':
|
152
|
-
utilities.verifyCSS(utilities.getNthElement(singleSelectionPage.optionWrapperPreviewTab(), 1), {
|
151
|
+
utilities.verifyCSS(utilities.getNthElement(singleSelectionPage.optionWrapperPreviewTab(), 1).find('[class*="radio-option"]'), {
|
153
152
|
'background-color': css.color.defaultBackground,
|
154
153
|
'color': css.color.activeButtons,
|
155
154
|
'border': `2px solid ${css.color.activeComponentBorder}`
|
156
155
|
});
|
157
156
|
break;
|
158
157
|
case 'Correct answer view':
|
159
|
-
|
158
|
+
// Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
|
159
|
+
/*utilities.verifyCSS(utilities.getNthElement(singleSelectionPage.optionWrapperPreviewTab(), 1).find('[class*="radio-option"]'), {
|
160
160
|
'background-color': css.color.defaultBackground,
|
161
161
|
'color': css.color.activeButtons,
|
162
162
|
'border': `2px solid ${css.color.activeComponentBorder}`
|
163
|
-
})
|
163
|
+
});*/
|
164
164
|
break;
|
165
165
|
default:
|
166
166
|
throw new Error('Invalid view');
|
167
167
|
}
|
168
168
|
});
|
169
169
|
|
170
|
-
|
170
|
+
//Need to remove comment once https://weldnorthed.atlassian.net/browse/IEI-4738 is resolved
|
171
|
+
it.skip('Accessibility of preview tab', { tags: 'a11y' }, () => {
|
171
172
|
cy.checkAccessibility(singleSelectionPage.questionInstructionsText().parents('[class*="ContentWrapper"]'));
|
172
173
|
});
|
173
174
|
});
|
@@ -134,7 +134,7 @@ describe('Create item page - Single selection grid: Preview contents', () => {
|
|
134
134
|
.within(() => {
|
135
135
|
utilities.verifyCSS(utilities.getNthElement(singleSelectionGridPage.tableCell().parent(), 1), {
|
136
136
|
'background-color': css.color.matrixHeadingCellBg,
|
137
|
-
'border-color': `${css.color.matrixCellBorder}`
|
137
|
+
'border-color': `${css.color.matrixCellBorder} ${css.color.matrixCellBorder} ${css.color.matrixCellBorder} ${css.color.correctOptionBorder}`
|
138
138
|
});
|
139
139
|
utilities.verifyCSS(utilities.getNthElement(singleSelectionGridPage.tableCell().parent(), 6), {
|
140
140
|
'background-color': css.color.matrixSubheadingCellBg,
|
@@ -31,7 +31,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
31
31
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
32
32
|
equationEditorFlyout.steps.clickOnOkButton();
|
33
33
|
textEntryMathPage.steps.expandLayoutAccordion();
|
34
|
-
textEntryMathPage.steps.
|
34
|
+
textEntryMathPage.steps.focusInLayoutInputFieldNew(0);
|
35
35
|
textEntryMathPage.steps.addResponseContainer();
|
36
36
|
equationEditorFlyout.steps.clickOnOkButton();
|
37
37
|
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
@@ -39,7 +39,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
39
39
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
40
40
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
41
41
|
textEntryMathPage.steps.expandLayoutAccordion();
|
42
|
-
textEntryMathPage.steps.
|
42
|
+
textEntryMathPage.steps.focusInLayoutInputFieldNew(1);
|
43
43
|
textEntryMathPage.steps.addResponseContainer();
|
44
44
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x', 'square', 'y', 'square'] }]);
|
45
45
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['add'] }]);
|
@@ -53,7 +53,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
53
53
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
54
54
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
55
55
|
textEntryMathPage.steps.expandLayoutAccordion();
|
56
|
-
textEntryMathPage.steps.
|
56
|
+
textEntryMathPage.steps.focusInLayoutInputFieldNew(2);
|
57
57
|
textEntryMathPage.steps.addResponseContainer();
|
58
58
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['multiply'] }, { categoryName: 'intermediate', symbolName: ['pi'] }]);
|
59
59
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -111,7 +111,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
111
111
|
case 'Item view':
|
112
112
|
case 'Item preview':
|
113
113
|
case 'Student view':
|
114
|
-
utilities.verifyCSS(utilities.getNthElement(textEntryMathPage.
|
114
|
+
utilities.verifyCSS(utilities.getNthElement(textEntryMathPage.responseFieldPreviewTabNew(), 0), {
|
115
115
|
'border-color': css.color.activeButtons,
|
116
116
|
'border-style': 'dashed',
|
117
117
|
'background-color': css.color.optionsBg
|
@@ -122,7 +122,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
122
122
|
case 'Item view':
|
123
123
|
case 'Item preview':
|
124
124
|
case 'Student view':
|
125
|
-
utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.
|
125
|
+
utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.responseFieldPreviewTabNew(), 0), {
|
126
126
|
'border-color': css.color.activeButtons,
|
127
127
|
'border-bottom-style': 'dashed',
|
128
128
|
'background-color': css.color.optionsBg
|
@@ -150,7 +150,7 @@ describe('Preview tab contents for all views', () => {
|
|
150
150
|
});
|
151
151
|
utilities.verifyCSS(audioPlayerPage.transcriptContentPreviewTab(), {
|
152
152
|
'color': css.color.text,
|
153
|
-
'font-size': css.fontSize.
|
153
|
+
'font-size': css.fontSize.normal,
|
154
154
|
'font-weight': css.fontWeight.regular
|
155
155
|
});
|
156
156
|
});
|
@@ -150,8 +150,6 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
150
150
|
});
|
151
151
|
uploadResponsePage.deviceLink()
|
152
152
|
.verifyPseudoClassBeforeProperty('color', css.color.text);
|
153
|
-
uploadResponsePage.googleDriveLink()
|
154
|
-
.verifyPseudoClassBeforeProperty('color', css.color.text);
|
155
153
|
});
|
156
154
|
|
157
155
|
//Failed due to https://redmine.zeuslearning.com/issues/562203
|
@@ -27,7 +27,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
27
27
|
});
|
28
28
|
|
29
29
|
it('CSS of Preview section', { tags: 'css' }, () => {
|
30
|
-
utilities.verifyCSS(videoResponsePage.recordButtonCompactPreview()
|
30
|
+
utilities.verifyCSS(videoResponsePage.recordButtonCompactPreview(), {
|
31
31
|
'background-color': css.color.recordingIcon,
|
32
32
|
'color': css.color.whiteText,
|
33
33
|
'font-size': css.fontSize.default,
|
@@ -72,15 +72,15 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
72
72
|
utilities.verifyCSS(videoResponsePage.recordingTimerCompactPreview(), {
|
73
73
|
'color': css.color.liText,
|
74
74
|
'font-size': css.fontSize.small,
|
75
|
-
'font-weight': css.fontWeight.
|
75
|
+
'font-weight': css.fontWeight.bold
|
76
76
|
});
|
77
77
|
utilities.verifyCSS(videoResponsePage.recordingStatusTextCompactPreview(), {
|
78
78
|
'color': css.color.text,
|
79
79
|
'font-size': css.fontSize.normal,
|
80
80
|
'font-weight': css.fontWeight.regular
|
81
81
|
});
|
82
|
-
utilities.verifyCSS(videoResponsePage.pauseRecordingButtonCompactPreview()
|
83
|
-
'background-color': css.color.
|
82
|
+
utilities.verifyCSS(videoResponsePage.pauseRecordingButtonCompactPreview(), {
|
83
|
+
'background-color': css.color.transparent,
|
84
84
|
'color': css.color.secondaryBtn,
|
85
85
|
'font-size': css.fontSize.default,
|
86
86
|
'font-weight': css.fontWeight.semibold
|
@@ -88,7 +88,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
88
88
|
utilities.verifyCSS(videoResponsePage.pauseRecordingButtonCompactPreview().find('[data-name="Icon material-pause-circle-filled"]'), {
|
89
89
|
'fill': css.color.secondaryBtn
|
90
90
|
});
|
91
|
-
utilities.verifyCSS(videoResponsePage.stopRecordingButtonCompactPreview()
|
91
|
+
utilities.verifyCSS(videoResponsePage.stopRecordingButtonCompactPreview(), {
|
92
92
|
'background-color': css.color.primaryBtnBg,
|
93
93
|
'color': css.color.primaryBtn,
|
94
94
|
'font-size': css.fontSize.default,
|
@@ -119,7 +119,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
119
119
|
});
|
120
120
|
|
121
121
|
it('CSS of \'Preview\' section if recording is paused', { tags: 'css' }, () => {
|
122
|
-
utilities.verifyCSS(videoResponsePage.resumeRecordingButtonCompactPreview()
|
122
|
+
utilities.verifyCSS(videoResponsePage.resumeRecordingButtonCompactPreview(), {
|
123
123
|
'background-color': css.color.recordingIcon,
|
124
124
|
'color': css.color.whiteText,
|
125
125
|
'font-size': css.fontSize.default,
|
@@ -171,9 +171,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
171
171
|
videoResponsePage.steps.resetQuestionPreview();
|
172
172
|
videoResponsePage.steps.startRecordingCompactPreview();
|
173
173
|
videoResponsePage.steps.waitForRecordingToStartCompactPreview();
|
174
|
-
videoResponsePage.steps.addWaitToRecord(
|
175
|
-
cy.log('Waiting for 1 second pausing the recording and then clicking Stop')
|
176
|
-
videoResponsePage.steps.stopRecordingCompactPreview();
|
174
|
+
videoResponsePage.steps.addWaitToRecord(2000);
|
177
175
|
utilities.verifyCSS(videoResponsePage.recordingStatusTextCompactPreview(), {
|
178
176
|
'color': css.color.text,
|
179
177
|
'font-size': css.fontSize.normal,
|
@@ -307,13 +305,13 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
307
305
|
});
|
308
306
|
|
309
307
|
it('CSS of compact recorder style playback player', { tags: 'css' }, () => {
|
310
|
-
utilities.verifyCSS(videoResponsePage.retakeButtonCompactPreview()
|
308
|
+
utilities.verifyCSS(videoResponsePage.retakeButtonCompactPreview(), {
|
311
309
|
'background-color': css.color.recordingIcon,
|
312
310
|
'color': css.color.whiteText,
|
313
311
|
'font-size': css.fontSize.default,
|
314
312
|
'font-weight': css.fontWeight.semibold
|
315
313
|
});
|
316
|
-
utilities.verifyCSS(videoResponsePage.retakeButtonCompactPreview().
|
314
|
+
utilities.verifyCSS(videoResponsePage.retakeButtonCompactPreview().find('svg'), {
|
317
315
|
'fill': css.color.defaultBackground
|
318
316
|
});
|
319
317
|
utilities.verifyCSS(videoResponsePage.playbackTimeCompactPreview(), {
|
@@ -327,10 +325,10 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
327
325
|
utilities.verifyCSS(videoResponsePage.playbackProgressBar().find('.MuiSlider-rail'), {
|
328
326
|
'border': `1px solid ${css.color.activeButtons}`
|
329
327
|
});
|
330
|
-
utilities.verifyCSS(videoResponsePage.volumeControlButton().find('
|
328
|
+
utilities.verifyCSS(videoResponsePage.volumeControlButton().find('path').eq(1), {
|
331
329
|
'fill': css.color.activeButtons
|
332
330
|
});
|
333
|
-
utilities.verifyCSS(videoResponsePage.playbackSpeedButton().find('
|
331
|
+
utilities.verifyCSS(videoResponsePage.playbackSpeedButton().find('path').eq(1), {
|
334
332
|
'fill': css.color.activeButtons
|
335
333
|
});
|
336
334
|
});
|
@@ -132,7 +132,6 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
132
132
|
it('CSS of download video button', { tags: 'css' }, () => {
|
133
133
|
utilities.verifyCSS(videoResponsePage.downloadVideoButton(), {
|
134
134
|
'background-color': css.color.secondaryBtnBg,
|
135
|
-
'border': `1px solid ${css.color.playerButtonBorder}`
|
136
135
|
});
|
137
136
|
utilities.verifyCSS(videoResponsePage.downloadVideoButton().find('svg path'), {
|
138
137
|
'stroke': css.color.secondaryBtnActive
|
@@ -108,7 +108,7 @@
|
|
108
108
|
"selectedEvaluationMethodContainerBg": "rgb(0, 0, 124)",
|
109
109
|
"checkboxLabel": "rgb(34, 34, 76)",
|
110
110
|
"separatorsUnselectedOption": "rgb(68, 68, 97)",
|
111
|
-
"microphoneIcon": "rgb(
|
111
|
+
"microphoneIcon": "rgb(10, 113, 151)",
|
112
112
|
"playerButtonBorder": "rgb(107, 139, 255)",
|
113
113
|
"toggleButtonSelectedBg": "rgb(81, 0, 255)",
|
114
114
|
"UnselectedToggleButton": "rgb(68, 68, 97)",
|
@@ -152,11 +152,13 @@
|
|
152
152
|
"responseFieldText": "rgb(255, 255, 222)",
|
153
153
|
"backgroundColorText": "rgb(122, 61, 61)",
|
154
154
|
"newFontColor": "rgb(128, 25, 0)",
|
155
|
-
"newResponseFieldColor": "rgb(119, 60, 60)"
|
155
|
+
"newResponseFieldColor": "rgb(119, 60, 60)",
|
156
|
+
"blackText": "rgb(0, 0, 0)"
|
156
157
|
},
|
157
158
|
"fontSize": {
|
158
159
|
"extraSmall": "10px",
|
159
160
|
"small": "12px",
|
161
|
+
"tiny":"13px",
|
160
162
|
"normal": "14px",
|
161
163
|
"big": "15px",
|
162
164
|
"default": "16px",
|
@@ -1347,6 +1347,7 @@ const tests = {
|
|
1347
1347
|
});
|
1348
1348
|
|
1349
1349
|
it('CSS of bar tooltip', { tags: 'css' }, () => {
|
1350
|
+
utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), 0));
|
1350
1351
|
utilities.verifyCSS(barAndLineChartComponent.barAndPointTooltipLabelButton(), {
|
1351
1352
|
'color': css.color.activeButtons,
|
1352
1353
|
'font-size': css.fontSize.default,
|
@@ -1354,10 +1355,13 @@ const tests = {
|
|
1354
1355
|
});
|
1355
1356
|
barAndLineChartComponent.barAndPointTooltipDeleteButton()
|
1356
1357
|
.verifyPseudoClassBeforeProperty('color', css.color.deleteIcon);
|
1358
|
+
utilities.triggerMouseout(utilities.getNthElement(chartsBarPage.previewTabBar(), 0));
|
1357
1359
|
});
|
1358
1360
|
|
1359
1361
|
it('Accessibility of Reset dialog box', { tags: 'a11y' }, () => {
|
1362
|
+
utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), 0));
|
1360
1363
|
cy.checkAccessibility(chartsBarPage.barAndPointTooltipWrapper());
|
1364
|
+
utilities.triggerMouseout(utilities.getNthElement(chartsBarPage.previewTabBar(), 0));
|
1361
1365
|
});
|
1362
1366
|
|
1363
1367
|
it('When user hovers away from the bar, then bar tooltip should be not be displayed', () => {
|
@@ -266,7 +266,6 @@ const steps = {
|
|
266
266
|
chartsLinePage.specifyCorrectAnswerPoint()
|
267
267
|
.eq(pointIndex)
|
268
268
|
.trigger('mouseover', { force: true });
|
269
|
-
utilities.triggerMouseover(utilities.getNthElement(chartsLinePage.specifyCorrectAnswerPoint(), pointIndex))
|
270
269
|
chartsLinePage.barAndPointTooltipDeleteButton()
|
271
270
|
.click();
|
272
271
|
},
|
@@ -589,17 +588,17 @@ const tests = {
|
|
589
588
|
* @example - verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Correct');
|
590
589
|
*/
|
591
590
|
verifySpecifyCorrectAnswerAccordionContentsAndFunctionality: (accordionName) => {
|
592
|
-
it('Line chart should be present with y axis label from 1 to 10 and 3
|
591
|
+
it('Line chart should be present with y axis label from 1 to 10 and 3 points', () => {
|
593
592
|
utilities.verifyElementVisibilityState(chartsLinePage.chartContainerSpecifyCorrectAnswer(), 'visible');
|
594
593
|
utilities.verifyElementCount(chartsLinePage.specifyCorrectAnswerPoint(), 3);
|
595
594
|
});
|
596
595
|
|
597
|
-
it(`The user should be able to set
|
596
|
+
it(`The user should be able to set points on chart in the specify correct answer section ${accordionName} accordion`, () => {
|
598
597
|
steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 4, range: 10 });
|
599
598
|
steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
600
599
|
});
|
601
600
|
|
602
|
-
it(`User should be able to delete
|
601
|
+
it(`User should be able to delete point in ${accordionName} accordion and labels for other points should not change`, () => {
|
603
602
|
utilities.triggerMouseout(utilities.getNthElement(chartsLinePage.selectChartTypePoint(), 0));
|
604
603
|
cy.log('Need the following click to remove focus from the above element');
|
605
604
|
chartsLinePage.specifyCorrectAnswerLabelPoints()
|
@@ -172,7 +172,7 @@ const tests = {
|
|
172
172
|
'font-weight': css.fontWeight.regular
|
173
173
|
});
|
174
174
|
utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
|
175
|
-
'color': css.color.
|
175
|
+
'color': css.color.codeBlockText,
|
176
176
|
'font-size': css.fontSize.default,
|
177
177
|
'font-weight': css.fontWeight.bold
|
178
178
|
});
|
@@ -385,8 +385,8 @@ const tests = {
|
|
385
385
|
.within(() => {
|
386
386
|
utilities.verifyCSS(equationEditorFlyout.categoryTabTitle(), {
|
387
387
|
'color': css.color.activeButtons,
|
388
|
-
'font-size': css.fontSize.
|
389
|
-
'font-weight': css.fontWeight.
|
388
|
+
'font-size': css.fontSize.tiny,
|
389
|
+
'font-weight': css.fontWeight.bold
|
390
390
|
});
|
391
391
|
utilities.verifyCSS(equationEditorFlyout.categoryTabIcon(), {
|
392
392
|
'color': css.color.activeButtons,
|
@@ -399,8 +399,8 @@ const tests = {
|
|
399
399
|
.within(() => {
|
400
400
|
utilities.verifyCSS(equationEditorFlyout.categoryTabTitle(), {
|
401
401
|
'color': css.color.activeButtons,
|
402
|
-
'font-size': css.fontSize.
|
403
|
-
'font-weight': css.fontWeight.
|
402
|
+
'font-size': css.fontSize.tiny,
|
403
|
+
'font-weight': css.fontWeight.bold
|
404
404
|
});
|
405
405
|
utilities.verifyCSS(equationEditorFlyout.categoryTabIcon(), {
|
406
406
|
'color': css.color.activeButtons,
|
@@ -475,17 +475,17 @@ const tests = {
|
|
475
475
|
});
|
476
476
|
|
477
477
|
it('CSS of \'Next button\' and \'Previous button\'', { tags: 'css' }, () => {
|
478
|
-
utilities.verifyCSS(equationEditorFlyout.buttonPrevious()
|
479
|
-
'background-color': css.color.
|
478
|
+
utilities.verifyCSS(equationEditorFlyout.buttonPrevious(), {
|
479
|
+
'background-color': css.color.defaultBackground
|
480
480
|
});
|
481
481
|
utilities.verifyCSS(equationEditorFlyout.buttonPrevious().find('svg').find('path'), {
|
482
|
-
'
|
482
|
+
'stroke': css.color.secondaryBtnActive
|
483
483
|
});
|
484
|
-
utilities.verifyCSS(equationEditorFlyout.buttonNext()
|
484
|
+
utilities.verifyCSS(equationEditorFlyout.buttonNext(), {
|
485
485
|
'background-color': css.color.defaultBackground
|
486
486
|
});
|
487
487
|
utilities.verifyCSS(equationEditorFlyout.buttonNext().find('svg').find('path'), {
|
488
|
-
'
|
488
|
+
'stroke': css.color.secondaryBtnActive
|
489
489
|
});
|
490
490
|
});
|
491
491
|
|
@@ -76,6 +76,7 @@ const selectors = {
|
|
76
76
|
responseFieldWordCount: () => cy.get('[class*="InputLimitLabelWrapper"]'),
|
77
77
|
responseFieldEquation: () => cy.get('.cke_widget_element'),
|
78
78
|
responseFieldText: () => cy.get('[class*="EssayResponseGradingViewstyle__GradingViewWrapper"] .question-text-wrapper'),
|
79
|
+
gradingViewResponseField: () => cy.get('[class*="EssayResponseGradingViewstyle__GradingViewWrapper"] [data-testid*="question-instruction-element"]'),
|
79
80
|
|
80
81
|
//Additional settings, These are old selectors. Need to update them along with additional settings file revamp
|
81
82
|
studentResponseAndLayoutLabel: () => cy.get('.layout-text'),
|
@@ -47,15 +47,15 @@ const tests = {
|
|
47
47
|
'font-size': css.fontSize.default,
|
48
48
|
'font-weight': css.fontWeight.regular
|
49
49
|
});
|
50
|
-
utilities.verifyCSS(resetPopupComponent.resetPopupCancelButton()
|
50
|
+
utilities.verifyCSS(resetPopupComponent.resetPopupCancelButton(), {
|
51
51
|
'color': css.color.secondaryBtn,
|
52
52
|
'font-size': css.fontSize.default,
|
53
53
|
'font-weight': css.fontWeight.semibold
|
54
54
|
});
|
55
55
|
utilities.verifyCSS(resetPopupComponent.resetPopupCancelButton(), {
|
56
|
-
'background-color': css.color.
|
56
|
+
'background-color': css.color.secondaryBtnBg
|
57
57
|
});
|
58
|
-
utilities.verifyCSS(resetPopupComponent.resetPopupConfirmResetButton()
|
58
|
+
utilities.verifyCSS(resetPopupComponent.resetPopupConfirmResetButton(), {
|
59
59
|
'color': css.color.whiteText,
|
60
60
|
'font-size': css.fontSize.default,
|
61
61
|
'font-weight': css.fontWeight.semibold
|
@@ -67,6 +67,7 @@ const steps = {
|
|
67
67
|
expandScoringTypeDropdown: () => {
|
68
68
|
scoringSectionBaseEditTab.scoringTypeDropdown()
|
69
69
|
.click();
|
70
|
+
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
|
70
71
|
},
|
71
72
|
|
72
73
|
/**
|
@@ -78,7 +79,7 @@ const steps = {
|
|
78
79
|
scoringSectionBaseEditTab.scoringTypeDropdownListOptions(convertedString)
|
79
80
|
.click();
|
80
81
|
cy.wait(2000);
|
81
|
-
|
82
|
+
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'notExist');
|
82
83
|
},
|
83
84
|
|
84
85
|
/**
|
@@ -193,8 +194,8 @@ const tests = {
|
|
193
194
|
it(`Clicking on Scoring Type dropdown should open a list of scoring types - ${scoringTypeArray}`, () => {
|
194
195
|
scoringSectionBaseEditTab.scoringTypeDropdown()
|
195
196
|
.click();
|
196
|
-
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
|
197
197
|
cy.wait(1000);
|
198
|
+
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
|
198
199
|
scoringTypeArray.forEach((option, count) => {
|
199
200
|
utilities.verifyInnerText(utilities.getNthElement(scoringSectionBaseEditTab.scoringTypeDropdownListOptions(), count), option);
|
200
201
|
});
|
@@ -72,7 +72,7 @@ const selectors = {
|
|
72
72
|
}
|
73
73
|
},
|
74
74
|
previewTabToolbarOptionName: () => cy.get('[class*="tool-name"]:visible'),
|
75
|
-
previewTabSecondaryOptionPopup: () => cy.get('.
|
75
|
+
previewTabSecondaryOptionPopup: () => cy.get('.extended__drawing-tool .drawing-tool-options__options'),
|
76
76
|
previewTabSecondaryPopup: () => cy.get('.drawing-tool-options__options:visible'),
|
77
77
|
previewTabSecondaryOptionPopupTitle: () => cy.get('.edit-question-preview-wrapper .drawing-tool-options__options .drawing-tool-options__options__label'),
|
78
78
|
previewTabSecondaryOptionPopupOptions: () => cy.get('.drawing-tool-options__options .drawing-tool-options__options__options-list__button'),
|
@@ -214,6 +214,7 @@ const selectors = {
|
|
214
214
|
}
|
215
215
|
},
|
216
216
|
studentViewUpperCanvas: () => cy.get('.upper-canvas').eq(0),
|
217
|
+
studentViewLowerCanvas: () => cy.get('.lower-canvas'),
|
217
218
|
gradingViewPlayFeatureButton: () => cy.get('[class*="DrawingResponsePreviewstyles__PlayBtnWrapper"] button')
|
218
219
|
}
|
219
220
|
|
@@ -809,6 +809,16 @@ const steps = {
|
|
809
809
|
.should('have.value', xTickInterval)
|
810
810
|
},
|
811
811
|
|
812
|
+
/**
|
813
|
+
* This enters and verifies the value in x tick interval
|
814
|
+
* @param {number} xTickInterval x tick interval
|
815
|
+
*/
|
816
|
+
addTextInXTickIntervalInputFieldValue: (xTickInterval) => {
|
817
|
+
graphingPage.xTickIntervalInputField()
|
818
|
+
.clear()
|
819
|
+
.type(xTickInterval);
|
820
|
+
},
|
821
|
+
|
812
822
|
/**
|
813
823
|
* This enters and verifies the value in x tick interval
|
814
824
|
* @param {number} xTickInterval x tick interval
|
@@ -909,6 +919,16 @@ const steps = {
|
|
909
919
|
.should('not.be.checked')
|
910
920
|
},
|
911
921
|
|
922
|
+
/**
|
923
|
+
* This enters and verifies the value in y grid spacing
|
924
|
+
* @param {number} yGridSpacing y grid spacing
|
925
|
+
*/
|
926
|
+
typeTextInYGridSpacingInputFieldValue: (yGridSpacing) => {
|
927
|
+
graphingPage.yGridSpacingInputField()
|
928
|
+
.clear()
|
929
|
+
.type(yGridSpacing);
|
930
|
+
},
|
931
|
+
|
912
932
|
/**
|
913
933
|
* This verifies the value in y grid spacing
|
914
934
|
* @param {number} yGridSpacing y grid spacing
|