itemengine-cypress-automation 1.0.280-applitools-0af112e.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 -9
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -15
- 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 -2
- 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/package.json +1 -1
@@ -19,14 +19,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
19
19
|
cy.loginAs('admin');
|
20
20
|
});
|
21
21
|
|
22
|
-
beforeEach(() => {
|
23
|
-
cy.startApplitools();
|
24
|
-
});
|
25
|
-
|
26
|
-
afterEach(() => {
|
27
|
-
cy.eyesClose();
|
28
|
-
});
|
29
|
-
|
30
22
|
views.forEach((view) => {
|
31
23
|
describe(`Primary toolbar options for ${view}`, { tags: 'smoke' }, () => {
|
32
24
|
abortEarlySetup();
|
@@ -72,7 +64,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
72
64
|
defaultUnselectedPreviewTabToolbarOptionsArray.forEach((toolbarOption) => {
|
73
65
|
drawingResponsePage.steps.verifyToolbarOptionIsNotSelectedInPreviewTab(toolbarOption);
|
74
66
|
});
|
75
|
-
cy.eyesCheckWindow(`Default toolbar option state`);
|
76
67
|
});
|
77
68
|
|
78
69
|
//Browser level tooltips are implemented here, will not be able to check till https://redmine.zeuslearning.com/issues/555441 is resolved
|
@@ -85,11 +76,10 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
85
76
|
});
|
86
77
|
|
87
78
|
//Will not be able to cover image options as they will open the windows explorer popup and closing the popup is not possible
|
88
|
-
it(
|
79
|
+
it('When user clicks on the drawing toolbar options, then the option name and its respective secondary toolbar options should be displayed in the secondary toolbar', () => {
|
89
80
|
drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions.forEach((toolbarOption) => {
|
90
81
|
if (toolbarOption.secondaryToolbarOptions !== undefined) {
|
91
82
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(toolbarOption.displayName);
|
92
|
-
cy.eyesCheckWindow(`${toolbarOption.displayName} toolbar option selected`);
|
93
83
|
//Remove comment below once https://redmine.zeuslearning.com/issues/571543 is resolved
|
94
84
|
// utilities.verifyInnerText(drawingResponsePage.previewTabToolbarOptionName(), toolbarOption.displayName);
|
95
85
|
// drawingResponsePage.steps.verifyDisplayedSecondaryToolbarOptionsInPreviewTab(toolbarOption.secondaryToolbarOptions);
|
@@ -145,10 +135,9 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
145
135
|
drawingResponsePage.steps.switchToPreviewTab();
|
146
136
|
});
|
147
137
|
|
148
|
-
it(
|
138
|
+
it('User should be able to upload an image', () => {
|
149
139
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
150
140
|
drawingResponsePage.steps.uploadFile('uploads/image.png');
|
151
|
-
cy.eyesCheckWindow(`Image uploaded`);
|
152
141
|
});
|
153
142
|
|
154
143
|
it('\'Uploading files. Please wait...\' should be displayed along with the file name when the image is being uploaded', () => {
|
@@ -156,20 +145,19 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
156
145
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
157
146
|
});
|
158
147
|
|
159
|
-
it(
|
148
|
+
it('User should be able to attach multiple files at once among the supported file types', () => {
|
149
|
+
drawingResponsePage.steps.resetQuestionPreview();
|
160
150
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
161
151
|
drawingResponsePage.steps.uploadFile(['uploads/sample.jpg', 'uploads/sample.gif']);
|
162
152
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
163
|
-
cy.eyesCheckWindow(`Multiple files uploaded`);
|
164
153
|
});
|
165
154
|
|
166
|
-
it(
|
155
|
+
it('When the user tries to upload an image an image more than 5mb then an error should be displayed \'The following files were rejected *filename* is too large. The maximum file size is 5MB\'', () => {
|
167
156
|
drawingResponsePage.steps.resetQuestionPreview();
|
168
157
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
169
158
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
170
159
|
drawingResponsePage.steps.verifyImageContainerErrorMessage('20mbFile.png');
|
171
160
|
drawingResponsePage.steps.verifyInsertImageContainerIsVisible();
|
172
|
-
cy.eyesCheckWindow(`File size error`);
|
173
161
|
});
|
174
162
|
});
|
175
163
|
|
@@ -185,7 +173,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
185
173
|
drawingResponsePage.steps.switchToPreviewTab();
|
186
174
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
187
175
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]), 'notExist');
|
188
|
-
cy.eyesCheckWindow(`Special characters popup should be displayed`);
|
189
176
|
});
|
190
177
|
|
191
178
|
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]} secondary toolbar option should be displayed`, () => {
|
@@ -195,7 +182,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
195
182
|
drawingResponsePage.steps.switchToPreviewTab();
|
196
183
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
197
184
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]), 'visible');
|
198
|
-
cy.eyesCheckWindow(`Special characters popup should be displayed`);
|
199
185
|
});
|
200
186
|
|
201
187
|
it('By default the \'Special characters\' secondary toolbar option should be in deselected state', () => {
|
@@ -208,12 +194,11 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
208
194
|
});
|
209
195
|
});
|
210
196
|
|
211
|
-
it(
|
197
|
+
it('When user clicks on \'Special characters\' secondary toolbar option, then the \'Special characters\' popup should be displayed with \'Special characters\' title and a \'Close\' button', () => {
|
212
198
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
213
199
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
214
200
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
215
201
|
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCloseButton(), 'visible');
|
216
|
-
cy.eyesCheckWindow(`Special characters popup displayed`);
|
217
202
|
});
|
218
203
|
|
219
204
|
it('CSS of \'Special characters\' secondary toolbar option in selected state', { tags: 'css' }, () => {
|
@@ -222,9 +207,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
222
207
|
});
|
223
208
|
});
|
224
209
|
|
225
|
-
it(
|
210
|
+
it('All categories and accordions should be displayed in the popup', () => {
|
226
211
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryTitlesAndAccordions(specialCharacters);
|
227
|
-
cy.eyesCheckWindow(`Special characters categories displayed`);
|
228
212
|
});
|
229
213
|
|
230
214
|
it('By default the \'Spanish\' category accordion should be in expanded state and all other accordions should be in collapsed state.', () => {
|
@@ -258,10 +242,9 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
258
242
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryAccordionIsExpanded(2);
|
259
243
|
});
|
260
244
|
|
261
|
-
it(
|
245
|
+
it('When user clicks on any category icon, then the category flyout should stay open', () => {
|
262
246
|
drawingResponsePage.steps.clickOnCharacterPopupSymbol('Iuml');
|
263
247
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
264
|
-
cy.eyesCheckWindow(`Category flyout stays open`);
|
265
248
|
});
|
266
249
|
|
267
250
|
it('CSS of \'Special characters\' popup', { tags: 'css' }, () => {
|
@@ -299,21 +282,19 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
299
282
|
cy.barsPreLoaderWait();
|
300
283
|
});
|
301
284
|
|
302
|
-
it(
|
285
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} secondary toolbar option should not be displayed`, () => {
|
303
286
|
drawingResponsePage.steps.switchToPreviewTab();
|
304
287
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
305
288
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]), 'notExist');
|
306
|
-
cy.eyesCheckWindow(`Math characters popup not displayed`);
|
307
289
|
});
|
308
290
|
|
309
|
-
it(
|
291
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} secondary toolbar option should be displayed`, () => {
|
310
292
|
drawingResponsePage.steps.switchToEditTab();
|
311
293
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
312
294
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[1]}`]);
|
313
295
|
drawingResponsePage.steps.switchToPreviewTab();
|
314
296
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
315
297
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]), 'visible');
|
316
|
-
cy.eyesCheckWindow(`Math characters popup should be displayed`);
|
317
298
|
});
|
318
299
|
|
319
300
|
it('By default the \'Math characters\' secondary toolbar option should be in deselected state', () => {
|
@@ -326,12 +307,11 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
326
307
|
});
|
327
308
|
});
|
328
309
|
|
329
|
-
it(
|
310
|
+
it('When user clicks on \'Math characters\' secondary toolbar option, then the \'Math characters\' popup should be displayed with \'Math characters\' title and a \'Close\' button', () => {
|
330
311
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
331
312
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
332
313
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
333
314
|
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCloseButton(), 'visible');
|
334
|
-
cy.eyesCheckWindow(`Math characters popup displayed`);
|
335
315
|
});
|
336
316
|
|
337
317
|
it('CSS of \'Math characters\' secondary toolbar option in selected state', { tags: 'css' }, () => {
|
@@ -381,21 +361,20 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
381
361
|
cy.barsPreLoaderWait();
|
382
362
|
});
|
383
363
|
|
384
|
-
|
364
|
+
|
365
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} secondary toolbar option should not be displayed`, () => {
|
385
366
|
drawingResponsePage.steps.switchToPreviewTab();
|
386
367
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
387
368
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]), 'notExist');
|
388
|
-
cy.eyesCheckWindow(`Font size popup not displayed`);
|
389
369
|
});
|
390
370
|
|
391
|
-
it(
|
371
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} secondary toolbar option should be displayed`, () => {
|
392
372
|
drawingResponsePage.steps.switchToEditTab();
|
393
373
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
394
374
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[2]}`]);
|
395
375
|
drawingResponsePage.steps.switchToPreviewTab();
|
396
376
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
397
377
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]), 'visible');
|
398
|
-
cy.eyesCheckWindow(`Font size popup should be displayed`);
|
399
378
|
});
|
400
379
|
|
401
380
|
it('By default the \'Font size\' secondary toolbar option should be in deselected state', () => {
|
@@ -412,9 +391,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
412
391
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
413
392
|
});
|
414
393
|
|
415
|
-
it(
|
394
|
+
it('When user clicks on \'Font size\' secondary toolbar option, then the \'Font size\' popup should be displayed', () => {
|
416
395
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]);
|
417
|
-
cy.eyesCheckWindow(`Font size popup displayed`);
|
418
396
|
});
|
419
397
|
|
420
398
|
it('CSS of \'Font size\' secondary toolbar option in selected state', { tags: 'css' }, () => {
|
@@ -485,10 +463,9 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
485
463
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
486
464
|
});
|
487
465
|
|
488
|
-
it(
|
466
|
+
it('When user clicks on \'Opacity\' secondary toolbar option, then the \'Opacity\' popup should be displayed and \'Opacity\' secondary toolbar option should be in selected state', () => {
|
489
467
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[2]);
|
490
468
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
491
|
-
cy.eyesCheckWindow(`Opacity popup displayed`);
|
492
469
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
493
470
|
});
|
494
471
|
|
@@ -504,17 +481,15 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
504
481
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(100);
|
505
482
|
});
|
506
483
|
|
507
|
-
it(
|
484
|
+
it('When the user changes value in the opacity input field, the slider value should also change accordingly', () => {
|
508
485
|
drawingResponsePage.steps.enterValueInOpacityInputFieldValue(10);
|
509
486
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(10);
|
510
|
-
cy.eyesCheckWindow(`Opacity input field value changed`);
|
511
487
|
});
|
512
488
|
|
513
|
-
it(
|
489
|
+
it('When the user changes the opacity slider value, value in the opacity input field should also change', () => {
|
514
490
|
drawingResponsePage.steps.clickOnSecondaryPopupSlider();
|
515
491
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(51);
|
516
492
|
drawingResponsePage.steps.verifySecondaryPopupOpacityInputFieldValue(51);
|
517
|
-
cy.eyesCheckWindow(`Opacity slider value changed`);
|
518
493
|
});
|
519
494
|
|
520
495
|
it('CSS of \'Opacity\' secondary toolbar option in selected state', { tags: 'css' }, () => {
|
@@ -591,10 +566,9 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
591
566
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
592
567
|
});
|
593
568
|
|
594
|
-
it(
|
569
|
+
it('When user clicks on \'Stroke thickness\' secondary toolbar option, then the \'Stroke thickness\' popup should be displayed and \'Stroke thickness\' secondary toolbar option should be in selected state', () => {
|
595
570
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[1]);
|
596
571
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
597
|
-
cy.eyesCheckWindow(`Stroke thickness popup displayed`);
|
598
572
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
599
573
|
});
|
600
574
|
|
@@ -658,14 +632,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
658
632
|
cy.barsPreLoaderWait();
|
659
633
|
});
|
660
634
|
|
661
|
-
it(
|
635
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} secondary toolbar option should not be displayed`, () => {
|
662
636
|
drawingResponsePage.steps.switchToPreviewTab();
|
663
637
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
664
638
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]), 'notExist');
|
665
|
-
cy.eyesCheckWindow(`Text color popup not displayed`);
|
666
639
|
});
|
667
640
|
|
668
|
-
it(
|
641
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} secondary toolbar option should be displayed`, () => {
|
669
642
|
drawingResponsePage.steps.switchToEditTab();
|
670
643
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
671
644
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
@@ -673,7 +646,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
673
646
|
drawingResponsePage.steps.switchToPreviewTab();
|
674
647
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
675
648
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]), 'visible');
|
676
|
-
cy.eyesCheckWindow(`Text color popup is displayed`);
|
677
649
|
});
|
678
650
|
|
679
651
|
it('By default the \'Text color\' secondary toolbar option should be in deselected state', () => {
|
@@ -827,7 +799,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
827
799
|
|
828
800
|
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} secondary toolbar option should not be displayed`, () => {
|
829
801
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]), 'notExist');
|
830
|
-
cy.eyesCheckWindow(`Fill color popup not displayed`);
|
831
802
|
});
|
832
803
|
|
833
804
|
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} secondary toolbar option \'Fill color\' popup should be displayed`, () => {
|
@@ -838,7 +809,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
838
809
|
drawingResponsePage.steps.switchToPreviewTab();
|
839
810
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
840
811
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]), 'visible');
|
841
|
-
cy.eyesCheckWindow(`Fill color popup is displayed`);
|
842
812
|
});
|
843
813
|
|
844
814
|
it('The \'Stroke color\' secondary toolbar option should be in deselected state', () => {
|
@@ -1193,7 +1163,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1193
1163
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[2].secondaryToolbarOptions[2]);
|
1194
1164
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
1195
1165
|
//Selected state of secondary toolbar option. Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
1196
|
-
cy.eyesCheckWindow(`Line type popup displayed`);
|
1197
1166
|
});
|
1198
1167
|
|
1199
1168
|
it(`A \'Line type\' title along with the five line type options - ${lineTypeOptions.join(', ')} should be displayed`, () => {
|
@@ -1201,7 +1170,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1201
1170
|
lineTypeOptions.forEach((thickness, index) => {
|
1202
1171
|
drawingResponsePage.steps.verifySecondaryPopupLineType(thickness, index);
|
1203
1172
|
});
|
1204
|
-
cy.eyesCheckWindow(`Line type options displayed`);
|
1205
1173
|
});
|
1206
1174
|
|
1207
1175
|
it('Line option should be selected by default', () => {
|
@@ -1277,7 +1245,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1277
1245
|
it('When user clicks on \'Eraser thickness\' secondary toolbar option, then the \'Eraser thickness\' popup should be displayed and \'Eraser thickness\' secondary toolbar option should be in selected state', () => {
|
1278
1246
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[7].secondaryToolbarOptions[0]);
|
1279
1247
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
1280
|
-
cy.eyesCheckWindow(`Eraser thickness popup displayed`);
|
1281
1248
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
1282
1249
|
});
|
1283
1250
|
|
@@ -11,14 +11,6 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
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
|
describe('Preview tab \'Equation Editor\' flyout', { tags: 'smoke' }, () => {
|
23
15
|
abortEarlySetup();
|
24
16
|
before(() => {
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps - drag and drop: 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
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -102,7 +94,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
102
94
|
});
|
103
95
|
};
|
104
96
|
|
105
|
-
it(
|
97
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed and respective option numeration', () => {
|
106
98
|
if (view === 'Grading view') {
|
107
99
|
studentViewPage.steps.submitResponse();
|
108
100
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -118,10 +110,9 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
118
110
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
119
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
121
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Without attempting the question`);
|
122
113
|
});
|
123
114
|
|
124
|
-
it(
|
115
|
+
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', () => {
|
125
116
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
126
117
|
if (view === 'Grading view') {
|
127
118
|
studentViewPage.steps.submitResponse();
|
@@ -138,10 +129,9 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
138
129
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
139
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
140
131
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
141
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Without attempting the question`);
|
142
132
|
});
|
143
133
|
|
144
|
-
it(
|
134
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, 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', () => {
|
145
135
|
if (view === 'Grading view') {
|
146
136
|
studentViewPage.steps.clearResponses();
|
147
137
|
};
|
@@ -161,10 +151,9 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
161
151
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
162
152
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
153
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
164
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question partially correct with some correct, some incomplete and some incorrect options`);
|
165
154
|
});
|
166
155
|
|
167
|
-
it(
|
156
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, 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', () => {
|
168
157
|
if (view === 'Grading view') {
|
169
158
|
studentViewPage.steps.clearResponses();
|
170
159
|
};
|
@@ -184,10 +173,9 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
184
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
185
174
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
175
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
187
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question partially correct with one dropzone incomplete`);
|
188
176
|
});
|
189
177
|
|
190
|
-
it(
|
178
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer, 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 should be displayed along with numeration', () => {
|
191
179
|
if (view === 'Grading view') {
|
192
180
|
studentViewPage.steps.clearResponses();
|
193
181
|
};
|
@@ -207,10 +195,9 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
207
195
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
208
196
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
209
197
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
210
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer`);
|
211
198
|
});
|
212
199
|
|
213
|
-
it(
|
200
|
+
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', () => {
|
214
201
|
if (view === 'Grading view') {
|
215
202
|
studentViewPage.steps.clearResponses();
|
216
203
|
};
|
@@ -231,7 +218,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
231
218
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
232
219
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
233
220
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
234
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question correctly`);
|
235
221
|
});
|
236
222
|
});
|
237
223
|
});
|
@@ -10,14 +10,6 @@ describe('Preview tab contents for all views', () => {
|
|
10
10
|
cy.loginAs('admin');
|
11
11
|
});
|
12
12
|
|
13
|
-
beforeEach(() => {
|
14
|
-
cy.startApplitools();
|
15
|
-
});
|
16
|
-
|
17
|
-
afterEach(() => {
|
18
|
-
cy.eyesClose();
|
19
|
-
});
|
20
|
-
|
21
13
|
views.forEach((view) => {
|
22
14
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
23
15
|
abortEarlySetup();
|
@@ -98,7 +90,7 @@ describe('Preview tab contents for all views', () => {
|
|
98
90
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
99
91
|
});
|
100
92
|
|
101
|
-
it(`
|
93
|
+
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}`, () => {
|
102
94
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
103
95
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
104
96
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -106,7 +98,6 @@ describe('Preview tab contents for all views', () => {
|
|
106
98
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '');
|
107
99
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, '');
|
108
100
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
109
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Options with image, equation, and bold text`);
|
110
101
|
});
|
111
102
|
|
112
103
|
it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
|
@@ -118,7 +109,7 @@ describe('Preview tab contents for all views', () => {
|
|
118
109
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
|
119
110
|
});
|
120
111
|
} else if (view === 'Grading view') {
|
121
|
-
it(`
|
112
|
+
it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
|
122
113
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '3\nPetals');
|
123
114
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
124
115
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '1\nThis is a bold option');
|
@@ -128,20 +119,18 @@ describe('Preview tab contents for all views', () => {
|
|
128
119
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
129
120
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
130
121
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.optionContainerOptionsPreviewTab(), 'notExist');
|
131
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Submitted options in dropzones`);
|
132
122
|
});
|
133
123
|
|
134
124
|
it('The content in the dropzone should not be editable', () => {
|
135
125
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneIsNotEditableInGradingView();
|
136
126
|
});
|
137
127
|
} else {
|
138
|
-
it(
|
128
|
+
it('The dropzone should be displayed filled with answers', () => {
|
139
129
|
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
140
130
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
141
131
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
142
132
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'This is a bold option');
|
143
133
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
|
144
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Dropzones filled with answers`);
|
145
134
|
});
|
146
135
|
}
|
147
136
|
});
|
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps with dropdown: 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();
|
@@ -102,7 +94,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
102
94
|
});
|
103
95
|
};
|
104
96
|
|
105
|
-
it(
|
97
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown 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', () => {
|
106
98
|
if (view === 'Grading view') {
|
107
99
|
studentViewPage.steps.submitResponse();
|
108
100
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -118,10 +110,9 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
118
110
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.correctAnswersLabel(), 'Correct answers');
|
119
111
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
112
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
121
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} view - Without attempting the question`);
|
122
113
|
});
|
123
114
|
|
124
|
-
it(
|
115
|
+
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', () => {
|
125
116
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
126
117
|
if (view === 'Grading view') {
|
127
118
|
studentViewPage.steps.submitResponse();
|
@@ -137,10 +128,9 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
137
128
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
138
129
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
139
130
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
140
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${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
|
};
|
@@ -159,10 +149,9 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
159
149
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
160
150
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
161
151
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
162
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting partially correct`);
|
163
152
|
});
|
164
153
|
|
165
|
-
it(
|
154
|
+
it('When the user attempts the question correctly, then the user should be awarded with full 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 correct\' should be displayed and correct answer section should not be displayed', () => {
|
166
155
|
if (view === 'Grading view') {
|
167
156
|
studentViewPage.steps.clearResponses();
|
168
157
|
};
|
@@ -181,7 +170,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
181
170
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
182
171
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
183
172
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
184
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting the question correctly`);
|
185
173
|
});
|
186
174
|
});
|
187
175
|
});
|
@@ -15,14 +15,6 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
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();
|
@@ -78,10 +70,9 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
78
70
|
});
|
79
71
|
|
80
72
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
81
|
-
it(
|
73
|
+
it('The sample \'Lorem Ipsum\' text along with two response dropdowns should be displayed', () => {
|
82
74
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
83
75
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionContainerPreviewTab(), 'Lorem ipsum dolor sit amet, \n\n\n onsectetur adipiscing elit. Ut pellentesque tinciduntornare. Integer porttitor est quis urna porttitor, eget tempus tellus dapibus \n\n');
|
84
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Default state`);
|
85
76
|
});
|
86
77
|
|
87
78
|
it('User should be able to select an option from the dropdown', () => {
|
@@ -91,7 +82,6 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
91
82
|
it('The dropdowns should be displayed filled with answers', () => {
|
92
83
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
93
84
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
94
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Correct answers`);
|
95
85
|
});
|
96
86
|
|
97
87
|
it('The dropdowns should not be editable', () => {
|
@@ -99,12 +89,11 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
99
89
|
fillInTheGapsDropdownPage.steps.verifyDropdownIsDisabled(1);
|
100
90
|
});
|
101
91
|
} else {
|
102
|
-
it(
|
92
|
+
it('The dropdowns should be displayed filled with correct answers', () => {
|
103
93
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
104
94
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
105
95
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
106
96
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
107
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Correct answer section`);
|
108
97
|
});
|
109
98
|
}
|
110
99
|
|