itemengine-cypress-automation 1.0.282-applitools-8c400f4.0 → 1.0.283-updatedPackageFile-3c0db7c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -40
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -17
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -14
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -54
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -21
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -20
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -19
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -22
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +7 -17
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -27
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +9 -21
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +13 -26
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -16
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -19
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -14
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -13
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -19
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -14
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -25
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -14,14 +14,6 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (views.includes('Grading view')) {
|
26
18
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -67,14 +59,13 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
67
59
|
utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
|
68
60
|
});
|
69
61
|
|
70
|
-
it('
|
62
|
+
it('The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
|
71
63
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionSineWave(), 'visible');
|
72
64
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 7, yRange: 20 }, { x: 1, xRange: 20, y: 8, yRange: 20 }]);
|
73
65
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionCircle(), 'visible');
|
74
66
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
75
67
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionLine(), 'visible');
|
76
68
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
77
|
-
cy.eyesCheckWindow('Graphing - The graph plotted by the author in the edit tab should be displayed in the grading view');
|
78
69
|
});
|
79
70
|
|
80
71
|
it('Correct answer label should be displayed', () => {
|
@@ -172,14 +163,13 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
172
163
|
utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
|
173
164
|
});
|
174
165
|
|
175
|
-
it('
|
166
|
+
it('The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
|
176
167
|
utilities.verifyElementVisibilityState(graphingPage.graphLine(), 'visible');
|
177
168
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }])
|
178
169
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygon(), 'visible');
|
179
170
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }])
|
180
171
|
utilities.verifyElementVisibilityState(graphingPage.graphCircle(), 'visible');
|
181
172
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }])
|
182
|
-
cy.eyesCheckWindow('Graphing - The graph plotted by the author should be displayed in the correct answer view');
|
183
173
|
});
|
184
174
|
|
185
175
|
it('The points alloted to the question should be displayed', () => {
|
@@ -15,14 +15,6 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
15
15
|
cy.loginAs('admin');
|
16
16
|
});
|
17
17
|
|
18
|
-
beforeEach(() => {
|
19
|
-
cy.startApplitools();
|
20
|
-
});
|
21
|
-
|
22
|
-
afterEach(() => {
|
23
|
-
cy.eyesClose();
|
24
|
-
});
|
25
|
-
|
26
18
|
views.forEach((view) => {
|
27
19
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
28
20
|
abortEarlySetup();
|
@@ -94,18 +86,16 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
94
86
|
graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
|
95
87
|
});
|
96
88
|
|
97
|
-
it(
|
89
|
+
it('By default, the move control should be in enabled state and all other controls should be disabled', () => {
|
98
90
|
utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
|
99
91
|
controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
|
100
92
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
|
101
93
|
});
|
102
|
-
cy.eyesCheckWindow(`${view} - Graphing - Default move control enabled`);
|
103
94
|
});
|
104
95
|
|
105
|
-
it(
|
96
|
+
it('User should be able to plot points using the \'Point\' tool options', () => {
|
106
97
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
107
98
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
108
|
-
cy.eyesCheckWindow(`${view} - Graphing - Plot points using Point tool`);
|
109
99
|
});
|
110
100
|
|
111
101
|
it('By default, the control options should be in displayed and when the user hovers over the tool options then tooltips should be displayed', () => {
|
@@ -172,12 +162,11 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
172
162
|
utilities.verifyElementCount(graphingPage.graphSineAndParabolaPreviewTab(), 2);
|
173
163
|
});
|
174
164
|
|
175
|
-
it(
|
165
|
+
it('User should be able to draw a polygon using the \'Polygon\' tool option', () => {
|
176
166
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
|
177
167
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
|
178
168
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }]);
|
179
169
|
utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
|
180
|
-
cy.eyesCheckWindow(`${view} - Graphing - Plotted points using all tools`);
|
181
170
|
});
|
182
171
|
|
183
172
|
it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
|
@@ -190,7 +179,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
190
179
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
|
191
180
|
});
|
192
181
|
|
193
|
-
it(
|
182
|
+
it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
|
194
183
|
graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
|
195
184
|
graphingPage.steps.confirmReset();
|
196
185
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
|
@@ -200,7 +189,6 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
200
189
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Undo'));
|
201
190
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Redo'));
|
202
191
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Reset'));
|
203
|
-
cy.eyesCheckWindow(`${view} - Graphing - Reset action`);
|
204
192
|
});
|
205
193
|
|
206
194
|
it('CSS of preview content', { tags: 'css' }, () => {
|
@@ -12,15 +12,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
12
12
|
before(() => {
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
|
-
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
15
|
|
25
16
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
17
|
describe('Question preview modes: Student view and Grading view', () => {
|
@@ -100,7 +91,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
100
91
|
});
|
101
92
|
};
|
102
93
|
//Failed due to https://redmine.zeuslearning.com/issues/565569
|
103
|
-
it(
|
94
|
+
it('When the user selects \'Grading\' view without attempting the question, correct answer tick should be displayed in correct answer cell and correct/incorrect status message should not be displayed', () => {
|
104
95
|
if (view === 'Grading view') {
|
105
96
|
studentViewPage.steps.submitResponse();
|
106
97
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
@@ -116,10 +107,9 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
116
107
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
117
108
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
118
109
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
119
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Without attempting the question`);
|
120
110
|
});
|
121
111
|
|
122
|
-
it(
|
112
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
|
123
113
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
124
114
|
if (view === 'Grading view') {
|
125
115
|
studentViewPage.steps.submitResponse();
|
@@ -136,10 +126,9 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
136
126
|
}
|
137
127
|
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
|
138
128
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
139
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question incorrectly`);
|
140
129
|
});
|
141
130
|
|
142
|
-
it(
|
131
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
143
132
|
if (view === 'Grading view') {
|
144
133
|
studentViewPage.steps.clearResponses();
|
145
134
|
};
|
@@ -159,10 +148,9 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
159
148
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
160
149
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
161
150
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
162
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct`);
|
163
151
|
});
|
164
152
|
|
165
|
-
it(
|
153
|
+
it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
166
154
|
if (view === 'Grading view') {
|
167
155
|
studentViewPage.steps.clearResponses();
|
168
156
|
};
|
@@ -183,10 +171,9 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
183
171
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
184
172
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
185
173
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct with one correct and one incorrect response`);
|
187
174
|
});
|
188
175
|
|
189
|
-
it(
|
176
|
+
it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
190
177
|
if (view === 'Grading view') {
|
191
178
|
studentViewPage.steps.clearResponses();
|
192
179
|
};
|
@@ -209,10 +196,9 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
209
196
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
210
197
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
211
198
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
212
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct with all the correct cells with one incorrect cell`);
|
213
199
|
});
|
214
200
|
|
215
|
-
it(
|
201
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview', () => {
|
216
202
|
if (view === 'Grading view') {
|
217
203
|
studentViewPage.steps.clearResponses();
|
218
204
|
};
|
@@ -231,7 +217,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
231
217
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
232
218
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
233
219
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
234
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question correctly`);
|
235
220
|
});
|
236
221
|
});
|
237
222
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
views.forEach((view) => {
|
23
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -82,19 +74,16 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
82
74
|
gridFillPage.steps.verifyRowsCountPreviewTab(4);
|
83
75
|
gridFillPage.steps.verifyColumnsCountPreviewTab(6);
|
84
76
|
gridFillPage.steps.getCellCountInGridPreviewTab(24);
|
85
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Grid matrix`);
|
86
77
|
});
|
87
78
|
|
88
79
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
89
80
|
gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
|
90
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
|
91
81
|
});
|
92
82
|
|
93
83
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
94
84
|
|
95
85
|
it('Cell with \'Shade\' customization should be displayed', () => {
|
96
86
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
|
97
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Shade customization`);
|
98
87
|
});
|
99
88
|
|
100
89
|
it('User should be able to select cell', () => {
|
@@ -102,12 +91,10 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
102
91
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
|
103
92
|
gridFillPage.steps.selectCellPreviewTab(0, 5);
|
104
93
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
|
105
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Select cell`);
|
106
94
|
});
|
107
95
|
|
108
96
|
it('User should be able to unselect cells', () => {
|
109
97
|
gridFillPage.steps.unselectCellPreviewTab(0, 0);
|
110
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Unselect cell`);
|
111
98
|
});
|
112
99
|
|
113
100
|
it('When user hovers over cell, then cell should be in interactive state', () => {
|
@@ -117,32 +104,27 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
117
104
|
'background-color': css.color.gridCellHoverStateBg
|
118
105
|
});
|
119
106
|
utilities.hoverAwayFromElement(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 9));
|
120
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hover over cell`);
|
121
107
|
});
|
122
108
|
}
|
123
109
|
else if (view === 'Grading view') {
|
124
110
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
125
111
|
gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
|
126
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
|
127
112
|
});
|
128
113
|
|
129
114
|
it(`The grid fill should be displayed filled with selected correct answer cells and status message \' Your answer is correct\' should be displayed`, () => {
|
130
115
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
|
131
116
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
|
132
117
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
133
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Correct answer`);
|
134
118
|
});
|
135
119
|
|
136
120
|
it('Grid fill should not be editable', () => {
|
137
121
|
gridFillPage.steps.selectCellPreviewTab(1, 3);
|
138
122
|
gridFillPage.steps.verifyCellNotSelectedPreviewTab(1, 3);
|
139
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Not editable`);
|
140
123
|
});
|
141
124
|
|
142
125
|
} else {
|
143
126
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
144
127
|
gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
|
145
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
|
146
128
|
});
|
147
129
|
|
148
130
|
it(`The grid fill should be displayed filled with selected correct answer cells`, () => {
|
@@ -150,13 +132,11 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
150
132
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
|
151
133
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
152
134
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 5);
|
153
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Correct answer cells`);
|
154
135
|
});
|
155
136
|
|
156
137
|
it('Grid fill should not be editable', () => {
|
157
138
|
gridFillPage.steps.selectCellPreviewTab(1, 3);
|
158
139
|
gridFillPage.steps.verifyCellNotSelectedPreviewTab(1, 3);
|
159
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Not editable`);
|
160
140
|
});
|
161
141
|
}
|
162
142
|
|
@@ -16,14 +16,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
16
16
|
cy.loginAs('admin');
|
17
17
|
});
|
18
18
|
|
19
|
-
beforeEach(() => {
|
20
|
-
cy.startApplitools();
|
21
|
-
});
|
22
|
-
|
23
|
-
afterEach(() => {
|
24
|
-
cy.eyesClose();
|
25
|
-
});
|
26
|
-
|
27
19
|
if (!grepTags || !grepTags.includes('smoke')) {
|
28
20
|
describe('Question preview modes: Student view and Grading view', () => {
|
29
21
|
abortEarlySetup();
|
@@ -115,7 +107,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
115
107
|
});
|
116
108
|
};
|
117
109
|
|
118
|
-
it(
|
110
|
+
it('When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
119
111
|
if (view === 'Grading view') {
|
120
112
|
studentViewPage.steps.submitResponse();
|
121
113
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -133,11 +125,9 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
133
125
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
134
126
|
utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
|
135
127
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
136
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Without attempting the question`);
|
137
|
-
|
138
128
|
});
|
139
129
|
|
140
|
-
it(
|
130
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
141
131
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
142
132
|
if (view === 'Grading view') {
|
143
133
|
studentViewPage.steps.submitResponse();
|
@@ -155,10 +145,9 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
155
145
|
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
156
146
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
157
147
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
158
|
-
cy.eyesCheckWindow(`${view} view - Attempting the question incorrectly`);
|
159
148
|
});
|
160
149
|
|
161
|
-
it(
|
150
|
+
it('When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
162
151
|
if (view === 'Grading view') {
|
163
152
|
studentViewPage.steps.clearResponses();
|
164
153
|
};
|
@@ -179,10 +168,9 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
179
168
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
180
169
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
181
170
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
182
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question partially correct`);
|
183
171
|
});
|
184
172
|
|
185
|
-
it(
|
173
|
+
it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
186
174
|
if (view === 'Grading view') {
|
187
175
|
studentViewPage.steps.clearResponses();
|
188
176
|
};
|
@@ -205,10 +193,9 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
205
193
|
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
206
194
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
207
195
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
208
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question partially correct with correct response and an incorrect response`);
|
209
196
|
});
|
210
197
|
|
211
|
-
it(
|
198
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
212
199
|
if (view === 'Grading view') {
|
213
200
|
studentViewPage.steps.clearResponses();
|
214
201
|
};
|
@@ -231,7 +218,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
231
218
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
232
219
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
233
220
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
234
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question correctly`);
|
235
221
|
});
|
236
222
|
});
|
237
223
|
});
|
@@ -15,14 +15,6 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
15
15
|
cy.loginAs('admin');
|
16
16
|
});
|
17
17
|
|
18
|
-
beforeEach(() => {
|
19
|
-
cy.startApplitools();
|
20
|
-
});
|
21
|
-
|
22
|
-
afterEach(() => {
|
23
|
-
cy.eyesClose();
|
24
|
-
});
|
25
|
-
|
26
18
|
views.forEach((view) => {
|
27
19
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
28
20
|
abortEarlySetup();
|
@@ -82,20 +74,18 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
82
74
|
utilities.verifyElementVisibilityState(imageHighlightPage.questionInstructionsText(), 'visible');
|
83
75
|
});
|
84
76
|
|
85
|
-
it(
|
77
|
+
it('The uploaded image should be displayed in the preview tab', () => {
|
86
78
|
imageHighlightPage.steps.verifyImageUploadedPreviewTab();
|
87
79
|
imageHighlightPage.steps.verifyHighlightRegionCountInPreviewTab(3);
|
88
80
|
imageHighlightPage.steps.verifyImageUploadedAltTextPreviewTab('Image alternative text');
|
89
81
|
imageHighlightPage.steps.verifyImageUploadedWidthAndHeightPreviewTab('768', '432');
|
90
|
-
cy.eyesCheckWindow(`Image highlight - ${view} - Uploaded image displayed`);
|
91
82
|
});
|
92
83
|
|
93
84
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
94
|
-
it(
|
85
|
+
it('The highlighted regions should be displayed', () => {
|
95
86
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
|
96
87
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, branchesHighlightRegion);
|
97
88
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, leafHighlightRegion);
|
98
|
-
cy.eyesCheckWindow(`Image highlight - ${view} - Highlighted regions displayed`);
|
99
89
|
});
|
100
90
|
|
101
91
|
it('By default the highlighted sections should be hidden and when the user hovers over any highlighted section it should be visible', () => {
|
@@ -120,11 +110,10 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
120
110
|
imageHighlightPage.steps.removeHighlightOfARegionInPreviewTab(1);
|
121
111
|
});
|
122
112
|
} else if (view === 'Grading view') {
|
123
|
-
it(
|
113
|
+
it('The highlighted regions should be displayed', () => {
|
124
114
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
|
125
115
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, leafHighlightRegion);
|
126
116
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
|
127
|
-
cy.eyesCheckWindow(`Image highlight - ${view} - Highlighted regions displayed`);
|
128
117
|
});
|
129
118
|
|
130
119
|
it('The highlight regions should be displayed with correct border', () => {
|
@@ -149,10 +138,9 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
149
138
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
|
150
139
|
});
|
151
140
|
|
152
|
-
it(
|
141
|
+
it('The highlight regions should be displayed with correct answers', () => {
|
153
142
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
154
143
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
|
155
|
-
cy.eyesCheckWindow(`Image highlight - ${view} - Highlight regions correct answers`);
|
156
144
|
});
|
157
145
|
}
|
158
146
|
|
@@ -14,14 +14,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -100,7 +92,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
100
92
|
});
|
101
93
|
};
|
102
94
|
|
103
|
-
it(
|
95
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
104
96
|
if (view === 'Grading view') {
|
105
97
|
utilities.verifyElementDisabledClass(studentViewPage.submitButton());
|
106
98
|
};
|
@@ -115,11 +107,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
115
107
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
116
108
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
117
109
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
118
|
-
cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Without attempting the question`);
|
119
110
|
};
|
120
111
|
});
|
121
112
|
|
122
|
-
it(
|
113
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
123
114
|
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
|
124
115
|
if (view === 'Grading view') {
|
125
116
|
studentViewPage.steps.submitResponse();
|
@@ -137,10 +128,9 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
137
128
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
138
129
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
139
130
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
140
|
-
cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Attempting the question incorrectly`);
|
141
131
|
});
|
142
132
|
|
143
|
-
it(
|
133
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
144
134
|
if (view === 'Grading view') {
|
145
135
|
studentViewPage.steps.clearResponses();
|
146
136
|
};
|
@@ -161,10 +151,9 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
161
151
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
162
152
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
153
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
164
|
-
cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Attempting the question partially correct`);
|
165
154
|
});
|
166
155
|
|
167
|
-
it(
|
156
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
168
157
|
if (view === 'Grading view') {
|
169
158
|
studentViewPage.steps.clearResponses();
|
170
159
|
};
|
@@ -186,7 +175,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
186
175
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
187
176
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
188
177
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
189
|
-
cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Attempting the question correctly`);
|
190
178
|
});
|
191
179
|
});
|
192
180
|
});
|
@@ -12,14 +12,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -88,11 +80,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
88
80
|
});
|
89
81
|
|
90
82
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
91
|
-
it(`
|
83
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
92
84
|
listOrderingPage.steps.verifyOptionWithImageInPreviewTab(0);
|
93
85
|
listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(1);
|
94
86
|
listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(2);
|
95
|
-
cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Options with image, bold text, and equation`);
|
96
87
|
});
|
97
88
|
|
98
89
|
it('When the user expands a position dropdown, based on the number of options in the list to order, a list of dropdown options to place the particular option in the list order should be displayed', () => {
|
@@ -114,13 +105,12 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
114
105
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '');
|
115
106
|
});
|
116
107
|
|
117
|
-
it(
|
108
|
+
it('User should be able to reorder options containing image, bold text and equation options in the list using position dropdowns. On setting position for all options, the alert message should get removed', () => {
|
118
109
|
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
|
119
110
|
listOrderingPage.steps.verifyAlertMessageNotExists();
|
120
|
-
cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Reorder options`);
|
121
111
|
});
|
122
112
|
} else if (view === 'Grading view') {
|
123
|
-
it(`
|
113
|
+
it(`The order of the responses should be as per the submitted response`, () => {
|
124
114
|
listOrderingPage.steps.verifyOptionWithImageDropdownLayoutInGradingView(0);
|
125
115
|
listOrderingPage.steps.verifyOptionWithBoldTextDropdownLayoutInGradingView(1);
|
126
116
|
listOrderingPage.steps.verifyOptionWithEquationTextDropdownLayoutInGradingView(2);
|
@@ -131,7 +121,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
131
121
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
132
122
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
133
123
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
134
|
-
cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Submitted response order`);
|
135
124
|
});
|
136
125
|
|
137
126
|
it('The order of the responses should not be editable', () => {
|
@@ -139,7 +128,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
139
128
|
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), 2), '3');
|
140
129
|
});
|
141
130
|
} else {
|
142
|
-
it(
|
131
|
+
it('The order of the options should be as per the correct answer order', () => {
|
143
132
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '2');
|
144
133
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(1, '1');
|
145
134
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(2, '3');
|
@@ -148,7 +137,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
148
137
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(1);
|
149
138
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
150
139
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
|
151
|
-
cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Correct answer order`);
|
152
140
|
});
|
153
141
|
}
|
154
142
|
|