itemengine-cypress-automation 1.0.294 → 1.0.295-applitools-78e9d04.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 +10 -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 +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- 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 +15 -5
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +6 -5
- 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
@@ -76,7 +76,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
76
76
|
});
|
77
77
|
|
78
78
|
//Will not be able to cover image options as they will open the windows explorer popup and closing the popup is not possible
|
79
|
-
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`, () => {
|
80
80
|
drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions.forEach((toolbarOption) => {
|
81
81
|
if (toolbarOption.secondaryToolbarOptions !== undefined) {
|
82
82
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(toolbarOption.displayName);
|
@@ -135,7 +135,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
135
135
|
drawingResponsePage.steps.switchToPreviewTab();
|
136
136
|
});
|
137
137
|
|
138
|
-
it(
|
138
|
+
it(`User should be able to upload an image`, () => {
|
139
139
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
140
140
|
drawingResponsePage.steps.uploadFile('uploads/image.png');
|
141
141
|
});
|
@@ -145,14 +145,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
145
145
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
146
146
|
});
|
147
147
|
|
148
|
-
it(
|
149
|
-
drawingResponsePage.steps.resetQuestionPreview();
|
148
|
+
it(`User should be able to attach multiple files at once among the supported file types`, () => {
|
150
149
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
151
150
|
drawingResponsePage.steps.uploadFile(['uploads/sample.jpg', 'uploads/sample.gif']);
|
152
151
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
153
152
|
});
|
154
153
|
|
155
|
-
it(
|
154
|
+
it(`When the user tries to upload 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'`, () => {
|
156
155
|
drawingResponsePage.steps.resetQuestionPreview();
|
157
156
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
158
157
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
@@ -194,7 +193,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
194
193
|
});
|
195
194
|
});
|
196
195
|
|
197
|
-
it(
|
196
|
+
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`, () => {
|
198
197
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
199
198
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
200
199
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
@@ -207,7 +206,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
207
206
|
});
|
208
207
|
});
|
209
208
|
|
210
|
-
it(
|
209
|
+
it(`All categories and accordions should be displayed in the popup`, () => {
|
211
210
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryTitlesAndAccordions(specialCharacters);
|
212
211
|
});
|
213
212
|
|
@@ -242,7 +241,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
242
241
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryAccordionIsExpanded(2);
|
243
242
|
});
|
244
243
|
|
245
|
-
it(
|
244
|
+
it(`When user clicks on any category icon, then the category flyout should stay open`, () => {
|
246
245
|
drawingResponsePage.steps.clickOnCharacterPopupSymbol('Iuml');
|
247
246
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
248
247
|
});
|
@@ -282,13 +281,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
282
281
|
cy.barsPreLoaderWait();
|
283
282
|
});
|
284
283
|
|
285
|
-
it(
|
284
|
+
it(`${view} 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`, () => {
|
286
285
|
drawingResponsePage.steps.switchToPreviewTab();
|
287
286
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
288
287
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]), 'notExist');
|
289
288
|
});
|
290
289
|
|
291
|
-
it(
|
290
|
+
it(`${view} 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`, () => {
|
292
291
|
drawingResponsePage.steps.switchToEditTab();
|
293
292
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
294
293
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[1]}`]);
|
@@ -307,7 +306,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
307
306
|
});
|
308
307
|
});
|
309
308
|
|
310
|
-
it(
|
309
|
+
it(`${view} 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`, () => {
|
311
310
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
312
311
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
313
312
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
@@ -361,14 +360,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
361
360
|
cy.barsPreLoaderWait();
|
362
361
|
});
|
363
362
|
|
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`, () => {
|
363
|
+
it(`${view} 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`, () => {
|
366
364
|
drawingResponsePage.steps.switchToPreviewTab();
|
367
365
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
368
366
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]), 'notExist');
|
369
367
|
});
|
370
368
|
|
371
|
-
it(
|
369
|
+
it(`${view} 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`, () => {
|
372
370
|
drawingResponsePage.steps.switchToEditTab();
|
373
371
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
374
372
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[2]}`]);
|
@@ -391,7 +389,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
391
389
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
392
390
|
});
|
393
391
|
|
394
|
-
it(
|
392
|
+
it(`${view} When user clicks on \'Font size\' secondary toolbar option, then the \'Font size\' popup should be displayed`, () => {
|
395
393
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]);
|
396
394
|
});
|
397
395
|
|
@@ -463,7 +461,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
463
461
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
464
462
|
});
|
465
463
|
|
466
|
-
it(
|
464
|
+
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`, () => {
|
467
465
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[2]);
|
468
466
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
469
467
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
@@ -481,12 +479,12 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
481
479
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(100);
|
482
480
|
});
|
483
481
|
|
484
|
-
it(
|
482
|
+
it(`When the user changes value in the opacity input field, the slider value should also change accordingly`, () => {
|
485
483
|
drawingResponsePage.steps.enterValueInOpacityInputFieldValue(10);
|
486
484
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(10);
|
487
485
|
});
|
488
486
|
|
489
|
-
it(
|
487
|
+
it(`When the user changes the opacity slider value, value in the opacity input field should also change`, () => {
|
490
488
|
drawingResponsePage.steps.clickOnSecondaryPopupSlider();
|
491
489
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(51);
|
492
490
|
drawingResponsePage.steps.verifySecondaryPopupOpacityInputFieldValue(51);
|
@@ -566,7 +564,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
566
564
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
567
565
|
});
|
568
566
|
|
569
|
-
it(
|
567
|
+
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`, () => {
|
570
568
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[1]);
|
571
569
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
572
570
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
@@ -632,13 +630,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
632
630
|
cy.barsPreLoaderWait();
|
633
631
|
});
|
634
632
|
|
635
|
-
it(
|
633
|
+
it(`${view} -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`, () => {
|
636
634
|
drawingResponsePage.steps.switchToPreviewTab();
|
637
635
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
638
636
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]), 'notExist');
|
639
637
|
});
|
640
638
|
|
641
|
-
it(
|
639
|
+
it(`${view} -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`, () => {
|
642
640
|
drawingResponsePage.steps.switchToEditTab();
|
643
641
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
644
642
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
@@ -19,7 +19,7 @@ describe('Edit Question and edit item', () => {
|
|
19
19
|
});
|
20
20
|
|
21
21
|
it('When user edits the question instructions, then the changes should be saved correctly', () => {
|
22
|
-
multipleSelectionPage.steps.editItem();
|
22
|
+
multipleSelectionPage.steps.editItem(1);
|
23
23
|
multipleSelectionPage.steps.clearQuestionInstructionsInputField();
|
24
24
|
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
25
25
|
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
@@ -27,7 +27,7 @@ describe('Edit Question and edit item', () => {
|
|
27
27
|
});
|
28
28
|
|
29
29
|
it('When user edits the options, then the changes should be saved correctly', () => {
|
30
|
-
multipleSelectionPage.steps.editItem();
|
30
|
+
multipleSelectionPage.steps.editItem(1);
|
31
31
|
multipleSelectionPage.steps.editOptionInputField(0, 'Edit option input field');
|
32
32
|
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
33
33
|
multipleSelectionPage.steps.verifyOptionInputFieldText(0, 'Edit option input field');
|
@@ -37,14 +37,14 @@ describe('Edit Question and edit item', () => {
|
|
37
37
|
});
|
38
38
|
|
39
39
|
it('When user edits the points, then the changes should be saved correctly', () => {
|
40
|
-
multipleSelectionPage.steps.editItem();
|
40
|
+
multipleSelectionPage.steps.editItem(1);
|
41
41
|
multipleSelectionPage.steps.allotPoints(10);
|
42
42
|
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
43
43
|
multipleSelectionPage.steps.verifyPointsValue('10');
|
44
44
|
});
|
45
45
|
|
46
46
|
it('When user edits the correct answers, then the changes should be saved correctly', () => {
|
47
|
-
multipleSelectionPage.steps.editItem();
|
47
|
+
multipleSelectionPage.steps.editItem(1);
|
48
48
|
multipleSelectionPage.steps.uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
49
49
|
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(2);
|
50
50
|
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
@@ -84,7 +84,7 @@ describe('Edit Question and edit item', () => {
|
|
84
84
|
});
|
85
85
|
|
86
86
|
it('When user edits the resource, then the changes should be saved correctly', () => {
|
87
|
-
readingRulerPage.steps.editItem();
|
87
|
+
readingRulerPage.steps.editItem(0);
|
88
88
|
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
89
89
|
readingRulerPage.steps.selectColorBlock(1);
|
90
90
|
readingRulerPage.steps.addInputToDefaultNumberOfLinesInputField(2);
|
@@ -115,7 +115,7 @@ describe('Edit Question and edit item', () => {
|
|
115
115
|
});
|
116
116
|
|
117
117
|
it('The user should be able to edit the item', () => {
|
118
|
-
singleSelectionPage.steps.editItem();
|
118
|
+
singleSelectionPage.steps.editItem(0);
|
119
119
|
singleSelectionPage.steps.clearQuestionInstructionsInputField();
|
120
120
|
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
121
121
|
singleSelectionPage.steps.clickOnSaveQuestionButton();
|
@@ -123,7 +123,7 @@ describe('Edit Question and edit item', () => {
|
|
123
123
|
});
|
124
124
|
|
125
125
|
it('User should be able to edit the resource', () => {
|
126
|
-
singleSelectionPage.steps.editItem(
|
126
|
+
singleSelectionPage.steps.editItem(2);
|
127
127
|
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
128
128
|
readingRulerPage.steps.clickOnSaveQuestionButton();
|
129
129
|
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
@@ -11,6 +11,14 @@ 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
|
+
|
14
22
|
describe('Preview tab \'Equation Editor\' flyout', { tags: 'smoke' }, () => {
|
15
23
|
abortEarlySetup();
|
16
24
|
before(() => {
|
@@ -11,6 +11,14 @@ 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
|
+
|
14
22
|
if (!grepTags || !grepTags.includes('smoke')) {
|
15
23
|
describe('Question preview modes: Student view and Grading view', () => {
|
16
24
|
abortEarlySetup();
|
@@ -197,7 +205,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
197
205
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
198
206
|
});
|
199
207
|
|
200
|
-
it(
|
208
|
+
it(`${view}: - FIG drag and drop - 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`, () => {
|
201
209
|
if (view === 'Grading view') {
|
202
210
|
studentViewPage.steps.clearResponses();
|
203
211
|
};
|
@@ -218,6 +226,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
218
226
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
219
227
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
220
228
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
+
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question correctly`);
|
221
230
|
});
|
222
231
|
});
|
223
232
|
});
|
@@ -34,9 +34,9 @@ describe('Edit item - fill in the gaps with drag and drop', () => {
|
|
34
34
|
it('User should be able to edit options and save the question', () => {
|
35
35
|
fillInTheGapsDragAndDropPage.steps.editItem();
|
36
36
|
fillInTheGapsDragAndDropPage.steps.clearTextInOptionInputField(0);
|
37
|
-
fillInTheGapsDragAndDropPage.steps.
|
37
|
+
fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(0, 'Birds');
|
38
38
|
fillInTheGapsDragAndDropPage.steps.clearTextInOptionInputField(1);
|
39
|
-
fillInTheGapsDragAndDropPage.steps.
|
39
|
+
fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(1, 'Insects');
|
40
40
|
fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
41
41
|
fillInTheGapsDragAndDropPage.steps.verifyOptionFieldTextInOptionsSection(options);
|
42
42
|
});
|
@@ -10,6 +10,14 @@ 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
|
+
|
13
21
|
views.forEach((view) => {
|
14
22
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
15
23
|
abortEarlySetup();
|
@@ -76,9 +84,10 @@ describe('Preview tab contents for all views', () => {
|
|
76
84
|
}
|
77
85
|
});
|
78
86
|
|
79
|
-
it(
|
87
|
+
it(`Fill in the gaps drag and drop - ${view} - Question instructions should be visible`, () => {
|
80
88
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'Drag and drop the options in appropriate dropzone');
|
81
89
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'visible');
|
90
|
+
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Options with image, equation, and bold text`);
|
82
91
|
});
|
83
92
|
|
84
93
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -126,6 +135,7 @@ describe('Preview tab contents for all views', () => {
|
|
126
135
|
});
|
127
136
|
} else {
|
128
137
|
it('The dropzone should be displayed filled with answers', () => {
|
138
|
+
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
129
139
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
130
140
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
131
141
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'This is a bold option');
|
@@ -16,6 +16,14 @@ 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
|
+
|
19
27
|
if (!grepTags || !grepTags.includes('smoke')) {
|
20
28
|
describe('Question preview modes: Student view and Grading view', () => {
|
21
29
|
abortEarlySetup();
|
@@ -151,7 +159,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
151
159
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
152
160
|
});
|
153
161
|
|
154
|
-
it(
|
162
|
+
it(`${view}: FIG Dropdown - 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`, () => {
|
155
163
|
if (view === 'Grading view') {
|
156
164
|
studentViewPage.steps.clearResponses();
|
157
165
|
};
|
@@ -170,6 +178,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
170
178
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
171
179
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
172
180
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
181
|
+
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting the question correctly`);
|
173
182
|
});
|
174
183
|
});
|
175
184
|
});
|
@@ -15,6 +15,14 @@ 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
|
+
|
18
26
|
views.forEach((view) => {
|
19
27
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
20
28
|
abortEarlySetup();
|
@@ -64,9 +72,10 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
64
72
|
}
|
65
73
|
});
|
66
74
|
|
67
|
-
it(
|
75
|
+
it(`${view} - Fill in the gaps dropdown - Question instructions should be visible`, () => {
|
68
76
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
69
77
|
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.questionInstructionsText(), 'visible');
|
78
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Default state`);
|
70
79
|
});
|
71
80
|
|
72
81
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -12,6 +12,14 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
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
|
if (!grepTags || !grepTags.includes('smoke')) {
|
16
24
|
describe('Question preview modes: Student view and Grading view', () => {
|
17
25
|
abortEarlySetup();
|
@@ -183,7 +191,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
183
191
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
184
192
|
});
|
185
193
|
|
186
|
-
it(
|
194
|
+
it(`${view}: FIG over image Drag and drop - 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`, () => {
|
187
195
|
if (view === 'Grading view') {
|
188
196
|
studentViewPage.steps.clearResponses();
|
189
197
|
};
|
@@ -205,6 +213,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
205
213
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
206
214
|
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
207
215
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
216
|
+
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
|
208
217
|
});
|
209
218
|
});
|
210
219
|
});
|
@@ -38,9 +38,9 @@ describe('Edit item - fill in the gaps over image with drag and drop', () => {
|
|
38
38
|
it('User should be able to edit options and save the question', () => {
|
39
39
|
fillInTheGapsOverImageDragAndDropPage.steps.editItem();
|
40
40
|
fillInTheGapsOverImageDragAndDropPage.steps.clearTextInOptionInputField(0);
|
41
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
41
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, 'Birds');
|
42
42
|
fillInTheGapsOverImageDragAndDropPage.steps.clearTextInOptionInputField(1);
|
43
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
43
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, 'Insects');
|
44
44
|
fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
45
45
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionFieldTextInOptionsSection(options);
|
46
46
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -10,6 +10,14 @@ 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
|
+
|
13
21
|
views.forEach((view) => {
|
14
22
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
15
23
|
abortEarlySetup();
|
@@ -93,8 +101,9 @@ describe('Preview tab contents for all views', () => {
|
|
93
101
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
|
94
102
|
});
|
95
103
|
|
96
|
-
it(
|
104
|
+
it(`${view} - Fill in the gaps over image drag and drop - The image uploaded in the \'Background image\' section should be displayed`, () => {
|
97
105
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
|
106
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - default state`);
|
98
107
|
});
|
99
108
|
|
100
109
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -16,6 +16,14 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
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();
|
@@ -160,7 +168,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
160
168
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
161
169
|
});
|
162
170
|
|
163
|
-
it(
|
171
|
+
it(`${view}: FIG over image Dropdown - 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`, () => {
|
164
172
|
if (view === 'Grading view') {
|
165
173
|
studentViewPage.steps.clearResponses();
|
166
174
|
};
|
@@ -180,6 +188,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
180
188
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
181
189
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
182
190
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
191
|
+
cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
|
183
192
|
});
|
184
193
|
});
|
185
194
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,6 +14,14 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
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();
|
@@ -67,9 +75,10 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
67
75
|
}
|
68
76
|
});
|
69
77
|
|
70
|
-
it(
|
78
|
+
it(`${view} - Fill in the gaps over image dropdown Question instructions should be visible`, () => {
|
71
79
|
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
72
80
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'visible');
|
81
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - defualt state`);
|
73
82
|
});
|
74
83
|
|
75
84
|
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
@@ -82,7 +91,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
82
91
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '' }, { dropdownIndex: 1, dropdownText: '' }]);
|
83
92
|
});
|
84
93
|
|
85
|
-
it(
|
94
|
+
it(`User should be able to select an option from the dropdown`, () => {
|
86
95
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
87
96
|
});
|
88
97
|
} else if (view === 'Grading view') {
|
@@ -96,7 +105,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
96
105
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsDisabled(1);
|
97
106
|
});
|
98
107
|
} else {
|
99
|
-
it(
|
108
|
+
it(`The dropdowns should be displayed filled with correct answers`, () => {
|
100
109
|
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 2);
|
101
110
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
102
111
|
});
|
@@ -11,6 +11,14 @@ describe('Create item page - Fill in the gaps over image - 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();
|
@@ -95,7 +103,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
95
103
|
});
|
96
104
|
};
|
97
105
|
|
98
|
-
it(
|
106
|
+
it(`${view}: FIG over image Text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, and correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
|
99
107
|
if (view === 'Grading view') {
|
100
108
|
studentViewPage.steps.submitResponse();
|
101
109
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -113,7 +121,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
113
121
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
114
122
|
});
|
115
123
|
|
116
|
-
it(
|
124
|
+
it(`${view}: FIG over image Text - 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`, () => {
|
117
125
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
118
126
|
if (view === 'Grading view') {
|
119
127
|
studentViewPage.steps.submitResponse();
|
@@ -132,7 +140,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
132
140
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
133
141
|
});
|
134
142
|
|
135
|
-
it(
|
143
|
+
it(`${view}: FIG over image Text - 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`, () => {
|
136
144
|
if (view === 'Grading view') {
|
137
145
|
studentViewPage.steps.clearResponses();
|
138
146
|
};
|
@@ -154,7 +162,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
154
162
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
155
163
|
});
|
156
164
|
|
157
|
-
it(
|
165
|
+
it(`${view}: FIG over image 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`, () => {
|
158
166
|
if (view === 'Grading view') {
|
159
167
|
studentViewPage.steps.clearResponses();
|
160
168
|
};
|
@@ -176,6 +184,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
176
184
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
177
185
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
178
186
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
187
|
+
cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
|
179
188
|
});
|
180
189
|
});
|
181
190
|
});
|