itemengine-cypress-automation 1.0.294 → 1.0.295-applitools-219e3f5.0
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 +19 -19
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +12 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +0 -4
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +11 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +11 -1
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +11 -1
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +3 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/applitools.config.js +14 -0
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +0 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -39
- package/cypress/pages/components/optionsWrapperComponent.js +3 -0
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +1 -39
- package/cypress/pages/singleSelectionPage.js +1 -39
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
@@ -11,6 +11,14 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
+
beforeEach(() => {
|
15
|
+
cy.startApplitools();
|
16
|
+
});
|
17
|
+
|
18
|
+
afterEach(() => {
|
19
|
+
cy.eyesClose();
|
20
|
+
});
|
21
|
+
|
14
22
|
if (!grepTags || !grepTags.includes('smoke')) {
|
15
23
|
describe('Question preview modes: Student view and Grading view', () => {
|
16
24
|
abortEarlySetup();
|
@@ -146,7 +154,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
146
154
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
147
155
|
});
|
148
156
|
|
149
|
-
it(
|
157
|
+
it(`${view}: FIG text - 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`, () => {
|
150
158
|
if (view === 'Grading view') {
|
151
159
|
studentViewPage.steps.clearResponses();
|
152
160
|
};
|
@@ -167,6 +175,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
167
175
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
168
176
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
169
177
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
178
|
+
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Attempting the question correctly`);
|
170
179
|
});
|
171
180
|
});
|
172
181
|
});
|
@@ -11,6 +11,14 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
+
beforeEach(() => {
|
15
|
+
cy.startApplitools();
|
16
|
+
});
|
17
|
+
|
18
|
+
afterEach(() => {
|
19
|
+
cy.eyesClose();
|
20
|
+
});
|
21
|
+
|
14
22
|
views.forEach((view) => {
|
15
23
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
16
24
|
abortEarlySetup();
|
@@ -60,9 +68,10 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
60
68
|
}
|
61
69
|
});
|
62
70
|
|
63
|
-
it(
|
71
|
+
it(`Fill in the gaps text - ${view} Question instructions should be visible`, () => {
|
64
72
|
utilities.verifyInnerText(fillInTheGapsTextPage.questionInstructionsText(), 'Fill in the gaps');
|
65
73
|
utilities.verifyElementVisibilityState(fillInTheGapsTextPage.questionInstructionsText(), 'visible');
|
74
|
+
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Default question state`);
|
66
75
|
});
|
67
76
|
|
68
77
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -113,7 +122,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
113
122
|
'border': `0px none ${css.color.text}`,
|
114
123
|
});
|
115
124
|
utilities.verifyCSS(fillInTheGapsTextPage.answerInputFieldPreviewTab(), {
|
116
|
-
|
125
|
+
'color': css.color.text,
|
117
126
|
'font-size': css.fontSize.default,
|
118
127
|
'font-weight': css.fontWeight.regular
|
119
128
|
});
|
@@ -134,7 +143,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
134
143
|
'border': `0px none ${css.color.text}`,
|
135
144
|
});
|
136
145
|
utilities.verifyCSS(fillInTheGapsTextPage.answerInputFieldPreviewTab(), {
|
137
|
-
|
146
|
+
'color': css.color.text,
|
138
147
|
'font-size': css.fontSize.default,
|
139
148
|
'font-weight': css.fontWeight.regular
|
140
149
|
});
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
if (views.includes('Grading view')) {
|
18
26
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -59,13 +67,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
59
67
|
utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
|
60
68
|
});
|
61
69
|
|
62
|
-
it('The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
|
70
|
+
it('Graphing: The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
|
63
71
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionSineWave(), 'visible');
|
64
72
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 7, yRange: 20 }, { x: 1, xRange: 20, y: 8, yRange: 20 }]);
|
65
73
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionCircle(), 'visible');
|
66
74
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
67
75
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionLine(), 'visible');
|
68
76
|
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');
|
69
78
|
});
|
70
79
|
|
71
80
|
it('Correct answer label should be displayed', () => {
|
@@ -164,13 +173,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
164
173
|
utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
|
165
174
|
});
|
166
175
|
|
167
|
-
it('The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
|
176
|
+
it('Graphing: The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
|
168
177
|
utilities.verifyElementVisibilityState(graphingPage.graphLine(), 'visible');
|
169
178
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }])
|
170
179
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygon(), 'visible');
|
171
180
|
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 }])
|
172
181
|
utilities.verifyElementVisibilityState(graphingPage.graphCircle(), 'visible');
|
173
182
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }])
|
183
|
+
cy.eyesCheckWindow('Graphing - The graph plotted by the author should be displayed in the correct answer view');
|
174
184
|
});
|
175
185
|
|
176
186
|
it('The points alloted to the question should be displayed', () => {
|
@@ -15,6 +15,14 @@ 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
|
+
|
18
26
|
views.forEach((view) => {
|
19
27
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
20
28
|
abortEarlySetup();
|
@@ -86,14 +94,14 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
86
94
|
graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
|
87
95
|
});
|
88
96
|
|
89
|
-
it(
|
97
|
+
it(`By default, the move control should be in enabled state and all other controls should be disabled`, () => {
|
90
98
|
utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
|
91
99
|
controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
|
92
100
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
|
93
101
|
});
|
94
102
|
});
|
95
103
|
|
96
|
-
it(
|
104
|
+
it(`User should be able to plot points using the \'Point\' tool options`, () => {
|
97
105
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
98
106
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
99
107
|
});
|
@@ -162,11 +170,12 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
162
170
|
utilities.verifyElementCount(graphingPage.graphSineAndParabolaPreviewTab(), 2);
|
163
171
|
});
|
164
172
|
|
165
|
-
it(
|
173
|
+
it(`${view} - Graphing - User should be able to draw a polygon using the \'Polygon\' tool option`, () => {
|
166
174
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
|
167
175
|
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 }]);
|
168
176
|
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 }]);
|
169
177
|
utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
|
178
|
+
cy.eyesCheckWindow(`${view} - Graphing - Plotted points using all tools`);
|
170
179
|
});
|
171
180
|
|
172
181
|
it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
|
@@ -179,7 +188,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
179
188
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
|
180
189
|
});
|
181
190
|
|
182
|
-
it(
|
191
|
+
it(`When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
|
183
192
|
graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
|
184
193
|
graphingPage.steps.confirmReset();
|
185
194
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
|
@@ -13,6 +13,15 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
+
beforeEach(() => {
|
17
|
+
cy.startApplitools();
|
18
|
+
});
|
19
|
+
|
20
|
+
afterEach(() => {
|
21
|
+
cy.eyesClose();
|
22
|
+
});
|
23
|
+
|
24
|
+
|
16
25
|
if (!grepTags || !grepTags.includes('smoke')) {
|
17
26
|
describe('Question preview modes: Student view and Grading view', () => {
|
18
27
|
abortEarlySetup();
|
@@ -198,7 +207,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
198
207
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
199
208
|
});
|
200
209
|
|
201
|
-
it(
|
210
|
+
it(`${view}: Grid fill - 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`, () => {
|
202
211
|
if (view === 'Grading view') {
|
203
212
|
studentViewPage.steps.clearResponses();
|
204
213
|
};
|
@@ -217,6 +226,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
217
226
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
218
227
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
219
228
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
229
|
+
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question correctly`);
|
220
230
|
});
|
221
231
|
});
|
222
232
|
});
|
@@ -11,6 +11,14 @@ 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
|
+
|
14
22
|
views.forEach((view) => {
|
15
23
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
16
24
|
abortEarlySetup();
|
@@ -74,6 +82,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
74
82
|
gridFillPage.steps.verifyRowsCountPreviewTab(4);
|
75
83
|
gridFillPage.steps.verifyColumnsCountPreviewTab(6);
|
76
84
|
gridFillPage.steps.getCellCountInGridPreviewTab(24);
|
85
|
+
cy.eyesCheckWindow(`Grid fill - ${view} - Grid matrix`);
|
77
86
|
});
|
78
87
|
|
79
88
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
@@ -81,7 +90,6 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
81
90
|
});
|
82
91
|
|
83
92
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
84
|
-
|
85
93
|
it('Cell with \'Shade\' customization should be displayed', () => {
|
86
94
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
|
87
95
|
});
|
@@ -16,6 +16,14 @@ 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
|
+
|
19
27
|
if (!grepTags || !grepTags.includes('smoke')) {
|
20
28
|
describe('Question preview modes: Student view and Grading view', () => {
|
21
29
|
abortEarlySetup();
|
@@ -124,6 +132,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
124
132
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
125
133
|
utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
|
126
134
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
135
|
+
|
127
136
|
});
|
128
137
|
|
129
138
|
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', () => {
|
@@ -194,7 +203,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
194
203
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
195
204
|
});
|
196
205
|
|
197
|
-
it(
|
206
|
+
it(`${view}: Image highlight - 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`, () => {
|
198
207
|
if (view === 'Grading view') {
|
199
208
|
studentViewPage.steps.clearResponses();
|
200
209
|
};
|
@@ -217,6 +226,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
217
226
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
218
227
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
219
228
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
+
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question correctly`);
|
220
230
|
});
|
221
231
|
});
|
222
232
|
});
|
@@ -15,6 +15,14 @@ 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
|
+
|
18
26
|
views.forEach((view) => {
|
19
27
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
20
28
|
abortEarlySetup();
|
@@ -74,15 +82,16 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
74
82
|
utilities.verifyElementVisibilityState(imageHighlightPage.questionInstructionsText(), 'visible');
|
75
83
|
});
|
76
84
|
|
77
|
-
it(
|
85
|
+
it(`${view} - Image highlight The uploaded image should be displayed in the preview tab`, () => {
|
78
86
|
imageHighlightPage.steps.verifyImageUploadedPreviewTab();
|
79
87
|
imageHighlightPage.steps.verifyHighlightRegionCountInPreviewTab(3);
|
80
88
|
imageHighlightPage.steps.verifyImageUploadedAltTextPreviewTab('Image alternative text');
|
81
89
|
imageHighlightPage.steps.verifyImageUploadedWidthAndHeightPreviewTab('768', '432');
|
90
|
+
cy.eyesCheckWindow(`Image highlight - ${view} - Uploaded image displayed`);
|
82
91
|
});
|
83
92
|
|
84
93
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
85
|
-
it(
|
94
|
+
it(`The highlighted regions should be displayed`, () => {
|
86
95
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
|
87
96
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, branchesHighlightRegion);
|
88
97
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, leafHighlightRegion);
|
@@ -110,7 +119,7 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
110
119
|
imageHighlightPage.steps.removeHighlightOfARegionInPreviewTab(1);
|
111
120
|
});
|
112
121
|
} else if (view === 'Grading view') {
|
113
|
-
it(
|
122
|
+
it(`The highlighted regions should be displayed`, () => {
|
114
123
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
|
115
124
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, leafHighlightRegion);
|
116
125
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
|
@@ -138,7 +147,7 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
138
147
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
|
139
148
|
});
|
140
149
|
|
141
|
-
it(
|
150
|
+
it(`The highlight regions should be displayed with correct answers`, () => {
|
142
151
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
143
152
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
|
144
153
|
});
|
@@ -12,6 +12,14 @@ 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
|
+
|
15
23
|
views.forEach((view) => {
|
16
24
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
17
25
|
abortEarlySetup();
|
@@ -77,10 +85,11 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
77
85
|
it('Question instructions should be visible', () => {
|
78
86
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
79
87
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
88
|
+
cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Options with image, bold text, and equation`);
|
80
89
|
});
|
81
90
|
|
82
91
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
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
|
+
it(`List ordering: dropdown 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}`, () => {
|
84
93
|
listOrderingPage.steps.verifyOptionWithImageInPreviewTab(0);
|
85
94
|
listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(1);
|
86
95
|
listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(2);
|
@@ -105,7 +114,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
105
114
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '');
|
106
115
|
});
|
107
116
|
|
108
|
-
it(
|
117
|
+
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`, () => {
|
109
118
|
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
|
110
119
|
listOrderingPage.steps.verifyAlertMessageNotExists();
|
111
120
|
});
|
@@ -128,7 +137,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
128
137
|
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), 2), '3');
|
129
138
|
});
|
130
139
|
} else {
|
131
|
-
it(
|
140
|
+
it(`The order of the options should be as per the correct answer order`, () => {
|
132
141
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '2');
|
133
142
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(1, '1');
|
134
143
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(2, '3');
|
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,6 +14,14 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
+
beforeEach(() => {
|
18
|
+
cy.startApplitools();
|
19
|
+
});
|
20
|
+
|
21
|
+
afterEach(() => {
|
22
|
+
cy.eyesClose();
|
23
|
+
});
|
24
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -77,9 +85,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
77
85
|
}
|
78
86
|
});
|
79
87
|
|
80
|
-
it(
|
88
|
+
it(`${view} - List ordering: Horizontal Question instructions should be visible`, () => {
|
81
89
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
82
90
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
91
|
+
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Default question view`);
|
83
92
|
});
|
84
93
|
|
85
94
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
if (!grepTags || !grepTags.includes('smoke')) {
|
18
26
|
describe('Question preview modes: Student view and Grading view', () => {
|
19
27
|
abortEarlySetup();
|
@@ -159,7 +167,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
159
167
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
160
168
|
});
|
161
169
|
|
162
|
-
it(
|
170
|
+
it(`${view}: List ordering - 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`, () => {
|
163
171
|
if (view === 'Grading view') {
|
164
172
|
studentViewPage.steps.clearResponses();
|
165
173
|
};
|
@@ -182,6 +190,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
182
190
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
183
191
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
184
192
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
193
|
+
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question correctly`);
|
185
194
|
});
|
186
195
|
});
|
187
196
|
});
|
@@ -14,6 +14,14 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
+
beforeEach(() => {
|
18
|
+
cy.startApplitools();
|
19
|
+
});
|
20
|
+
|
21
|
+
afterEach(() => {
|
22
|
+
cy.eyesClose();
|
23
|
+
});
|
24
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -83,9 +91,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
83
91
|
}
|
84
92
|
});
|
85
93
|
|
86
|
-
it(
|
94
|
+
it(`List ordering - Reorder as a separate list: ${view} - Question instructions should be visible`, () => {
|
87
95
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
88
96
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
97
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} - Options with image, bold text and equation`);
|
89
98
|
});
|
90
99
|
|
91
100
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -96,7 +105,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
96
105
|
listOrderingPage.steps.verifyTextContentOfOptionInPreviewTabSeperateList('alpha', 3);
|
97
106
|
});
|
98
107
|
|
99
|
-
it(
|
108
|
+
it(`User should be able to drop the options in the dropzone containing image, bold text and equation options in the list`, () => {
|
100
109
|
listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
|
101
110
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
|
102
111
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
|
@@ -130,7 +139,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
130
139
|
});
|
131
140
|
|
132
141
|
} else {
|
133
|
-
it(
|
142
|
+
it(`The order of the options should be as per the correct answer order`, () => {
|
134
143
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
|
135
144
|
listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
|
136
145
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
if (!grepTags || !grepTags.includes('smoke')) {
|
18
26
|
describe('Question preview modes: Student view and Grading view', () => {
|
19
27
|
abortEarlySetup();
|
@@ -109,8 +117,9 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
109
117
|
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
110
118
|
});
|
111
119
|
};
|
120
|
+
|
112
121
|
if (view === 'Question preview' || view === 'Item preview') {
|
113
|
-
it(
|
122
|
+
it(`${view}: List ordering:Reorder as a separate list - When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed`, () => {
|
114
123
|
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
115
124
|
listOrderingPage.steps.switchToGradingView();
|
116
125
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
@@ -120,7 +129,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
120
129
|
});
|
121
130
|
};
|
122
131
|
|
123
|
-
it(
|
132
|
+
it(`${view}: List ordering:Reorder as a separate list - 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 should be displayed`, () => {
|
124
133
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
125
134
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
126
135
|
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
@@ -143,7 +152,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
143
152
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
144
153
|
});
|
145
154
|
|
146
|
-
it(
|
155
|
+
it(`${view}: List ordering:Reorder as a separate list - 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 should be displayed`, () => {
|
147
156
|
if (view === 'Grading view') {
|
148
157
|
studentViewPage.steps.clearResponses();
|
149
158
|
};
|
@@ -169,7 +178,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
169
178
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
170
179
|
});
|
171
180
|
|
172
|
-
it(
|
181
|
+
it(`${view}: List ordering:Reorder as a separate list - 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`, () => {
|
173
182
|
if (view === 'Grading view') {
|
174
183
|
studentViewPage.steps.clearResponses();
|
175
184
|
};
|
@@ -194,6 +203,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
194
203
|
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
195
204
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
196
205
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
206
|
+
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question correctly`);
|
197
207
|
});
|
198
208
|
});
|
199
209
|
});
|
package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js
CHANGED
@@ -81,7 +81,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
81
81
|
}
|
82
82
|
});
|
83
83
|
|
84
|
-
it(
|
84
|
+
it(`List ordering: Reorder as a separate list - ${view} - Question instructions should be visible`, () => {
|
85
85
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
86
86
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
87
87
|
});
|
@@ -93,7 +93,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
93
93
|
listOrderingPage.steps.verifyOptionWithEquationTextInOptionsContainerPreviewTabSeperateList(2);
|
94
94
|
});
|
95
95
|
|
96
|
-
it(
|
96
|
+
it(`User should be able to drop the options in the dropzone containing image, bold text and equation options in the list`, () => {
|
97
97
|
listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
|
98
98
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
|
99
99
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
|
@@ -125,7 +125,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
125
125
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
|
126
126
|
});
|
127
127
|
} else {
|
128
|
-
it(
|
128
|
+
it(`The order of the options should be as per the correct answer order`, () => {
|
129
129
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
|
130
130
|
listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
|
131
131
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
|