itemengine-cypress-automation 1.0.294-applitools-09785a6.0 → 1.0.294
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 +26 -26
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -17
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -17
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -15
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -15
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -15
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -13
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- 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 +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- 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 +3 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
- 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 +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- 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 +4 -13
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -3
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +39 -1
- package/cypress/pages/singleSelectionPage.js +39 -1
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -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,13 +145,14 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
145
145
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
146
146
|
});
|
147
147
|
|
148
|
-
it(
|
148
|
+
it('User should be able to attach multiple files at once among the supported file types', () => {
|
149
|
+
drawingResponsePage.steps.resetQuestionPreview();
|
149
150
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
150
151
|
drawingResponsePage.steps.uploadFile(['uploads/sample.jpg', 'uploads/sample.gif']);
|
151
152
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
152
153
|
});
|
153
154
|
|
154
|
-
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\'', () => {
|
155
156
|
drawingResponsePage.steps.resetQuestionPreview();
|
156
157
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
157
158
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
@@ -193,7 +194,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
193
194
|
});
|
194
195
|
});
|
195
196
|
|
196
|
-
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', () => {
|
197
198
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
198
199
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
199
200
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
@@ -206,7 +207,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
206
207
|
});
|
207
208
|
});
|
208
209
|
|
209
|
-
it(
|
210
|
+
it('All categories and accordions should be displayed in the popup', () => {
|
210
211
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryTitlesAndAccordions(specialCharacters);
|
211
212
|
});
|
212
213
|
|
@@ -241,7 +242,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
241
242
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryAccordionIsExpanded(2);
|
242
243
|
});
|
243
244
|
|
244
|
-
it(
|
245
|
+
it('When user clicks on any category icon, then the category flyout should stay open', () => {
|
245
246
|
drawingResponsePage.steps.clickOnCharacterPopupSymbol('Iuml');
|
246
247
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
247
248
|
});
|
@@ -281,13 +282,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
281
282
|
cy.barsPreLoaderWait();
|
282
283
|
});
|
283
284
|
|
284
|
-
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`, () => {
|
285
286
|
drawingResponsePage.steps.switchToPreviewTab();
|
286
287
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
287
288
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]), 'notExist');
|
288
289
|
});
|
289
290
|
|
290
|
-
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`, () => {
|
291
292
|
drawingResponsePage.steps.switchToEditTab();
|
292
293
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
293
294
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[1]}`]);
|
@@ -306,7 +307,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
306
307
|
});
|
307
308
|
});
|
308
309
|
|
309
|
-
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', () => {
|
310
311
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
311
312
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
312
313
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
@@ -360,13 +361,14 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
360
361
|
cy.barsPreLoaderWait();
|
361
362
|
});
|
362
363
|
|
363
|
-
|
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`, () => {
|
364
366
|
drawingResponsePage.steps.switchToPreviewTab();
|
365
367
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
366
368
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]), 'notExist');
|
367
369
|
});
|
368
370
|
|
369
|
-
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`, () => {
|
370
372
|
drawingResponsePage.steps.switchToEditTab();
|
371
373
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
372
374
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[2]}`]);
|
@@ -389,7 +391,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
389
391
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
390
392
|
});
|
391
393
|
|
392
|
-
it(
|
394
|
+
it('When user clicks on \'Font size\' secondary toolbar option, then the \'Font size\' popup should be displayed', () => {
|
393
395
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]);
|
394
396
|
});
|
395
397
|
|
@@ -461,7 +463,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
461
463
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
462
464
|
});
|
463
465
|
|
464
|
-
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', () => {
|
465
467
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[2]);
|
466
468
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
467
469
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
@@ -479,12 +481,12 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
479
481
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(100);
|
480
482
|
});
|
481
483
|
|
482
|
-
it(
|
484
|
+
it('When the user changes value in the opacity input field, the slider value should also change accordingly', () => {
|
483
485
|
drawingResponsePage.steps.enterValueInOpacityInputFieldValue(10);
|
484
486
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(10);
|
485
487
|
});
|
486
488
|
|
487
|
-
it(
|
489
|
+
it('When the user changes the opacity slider value, value in the opacity input field should also change', () => {
|
488
490
|
drawingResponsePage.steps.clickOnSecondaryPopupSlider();
|
489
491
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(51);
|
490
492
|
drawingResponsePage.steps.verifySecondaryPopupOpacityInputFieldValue(51);
|
@@ -564,7 +566,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
564
566
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
565
567
|
});
|
566
568
|
|
567
|
-
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', () => {
|
568
570
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[1]);
|
569
571
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
570
572
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
@@ -630,13 +632,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
630
632
|
cy.barsPreLoaderWait();
|
631
633
|
});
|
632
634
|
|
633
|
-
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`, () => {
|
634
636
|
drawingResponsePage.steps.switchToPreviewTab();
|
635
637
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
636
638
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]), 'notExist');
|
637
639
|
});
|
638
640
|
|
639
|
-
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`, () => {
|
640
642
|
drawingResponsePage.steps.switchToEditTab();
|
641
643
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
642
644
|
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();
|
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();
|
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();
|
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();
|
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();
|
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();
|
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(1);
|
127
127
|
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
128
128
|
readingRulerPage.steps.clickOnSaveQuestionButton();
|
129
129
|
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
@@ -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');
|
@@ -120,7 +112,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
120
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
121
113
|
});
|
122
114
|
|
123
|
-
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', () => {
|
124
116
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
125
117
|
if (view === 'Grading view') {
|
126
118
|
studentViewPage.steps.submitResponse();
|
@@ -139,7 +131,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
139
131
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
140
132
|
});
|
141
133
|
|
142
|
-
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', () => {
|
143
135
|
if (view === 'Grading view') {
|
144
136
|
studentViewPage.steps.clearResponses();
|
145
137
|
};
|
@@ -161,7 +153,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
161
153
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
162
154
|
});
|
163
155
|
|
164
|
-
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', () => {
|
165
157
|
if (view === 'Grading view') {
|
166
158
|
studentViewPage.steps.clearResponses();
|
167
159
|
};
|
@@ -183,7 +175,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
183
175
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
184
176
|
});
|
185
177
|
|
186
|
-
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', () => {
|
187
179
|
if (view === 'Grading view') {
|
188
180
|
studentViewPage.steps.clearResponses();
|
189
181
|
};
|
@@ -205,7 +197,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
205
197
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
206
198
|
});
|
207
199
|
|
208
|
-
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', () => {
|
209
201
|
if (view === 'Grading view') {
|
210
202
|
studentViewPage.steps.clearResponses();
|
211
203
|
};
|
@@ -226,7 +218,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
226
218
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
227
219
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
228
220
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question correctly`);
|
230
221
|
});
|
231
222
|
});
|
232
223
|
});
|
@@ -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.editOptionInputField(0, 'Birds');
|
38
38
|
fillInTheGapsDragAndDropPage.steps.clearTextInOptionInputField(1);
|
39
|
-
fillInTheGapsDragAndDropPage.steps.
|
39
|
+
fillInTheGapsDragAndDropPage.steps.editOptionInputField(1, 'Insects');
|
40
40
|
fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
41
41
|
fillInTheGapsDragAndDropPage.steps.verifyOptionFieldTextInOptionsSection(options);
|
42
42
|
});
|
@@ -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();
|
@@ -84,10 +76,9 @@ describe('Preview tab contents for all views', () => {
|
|
84
76
|
}
|
85
77
|
});
|
86
78
|
|
87
|
-
it(
|
79
|
+
it('Question instructions should be visible', () => {
|
88
80
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'Drag and drop the options in appropriate dropzone');
|
89
81
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'visible');
|
90
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Options with image, equation, and bold text`);
|
91
82
|
});
|
92
83
|
|
93
84
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -99,7 +90,7 @@ describe('Preview tab contents for all views', () => {
|
|
99
90
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
100
91
|
});
|
101
92
|
|
102
|
-
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container`, () => {
|
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}`, () => {
|
103
94
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
104
95
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
105
96
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -134,8 +125,7 @@ describe('Preview tab contents for all views', () => {
|
|
134
125
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneIsNotEditableInGradingView();
|
135
126
|
});
|
136
127
|
} else {
|
137
|
-
it(
|
138
|
-
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
128
|
+
it('The dropzone should be displayed filled with answers', () => {
|
139
129
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
140
130
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
141
131
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'This is a bold option');
|
@@ -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');
|
@@ -120,7 +112,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
120
112
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
121
113
|
});
|
122
114
|
|
123
|
-
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', () => {
|
124
116
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
125
117
|
if (view === 'Grading view') {
|
126
118
|
studentViewPage.steps.submitResponse();
|
@@ -138,7 +130,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
138
130
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
139
131
|
});
|
140
132
|
|
141
|
-
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', () => {
|
142
134
|
if (view === 'Grading view') {
|
143
135
|
studentViewPage.steps.clearResponses();
|
144
136
|
};
|
@@ -159,7 +151,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
159
151
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
160
152
|
});
|
161
153
|
|
162
|
-
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', () => {
|
163
155
|
if (view === 'Grading view') {
|
164
156
|
studentViewPage.steps.clearResponses();
|
165
157
|
};
|
@@ -178,7 +170,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
178
170
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
179
171
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
180
172
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
181
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting the question correctly`);
|
182
173
|
});
|
183
174
|
});
|
184
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();
|
@@ -72,14 +64,13 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
72
64
|
}
|
73
65
|
});
|
74
66
|
|
75
|
-
it(
|
67
|
+
it('Question instructions should be visible', () => {
|
76
68
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
77
69
|
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.questionInstructionsText(), 'visible');
|
78
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Default state`);
|
79
70
|
});
|
80
71
|
|
81
72
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
82
|
-
it(
|
73
|
+
it('The sample \'Lorem Ipsum\' text along with two response dropdowns should be displayed', () => {
|
83
74
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
84
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');
|
85
76
|
});
|
@@ -98,7 +89,7 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
98
89
|
fillInTheGapsDropdownPage.steps.verifyDropdownIsDisabled(1);
|
99
90
|
});
|
100
91
|
} else {
|
101
|
-
it(
|
92
|
+
it('The dropdowns should be displayed filled with correct answers', () => {
|
102
93
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
103
94
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
104
95
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
@@ -12,14 +12,6 @@ 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
|
-
|
23
15
|
if (!grepTags || !grepTags.includes('smoke')) {
|
24
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
25
17
|
abortEarlySetup();
|
@@ -110,7 +102,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
110
102
|
});
|
111
103
|
};
|
112
104
|
|
113
|
-
it(
|
105
|
+
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 with correct answers and respective option numeration', () => {
|
114
106
|
if (view === 'Grading view') {
|
115
107
|
studentViewPage.steps.submitResponse();
|
116
108
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -128,7 +120,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
128
120
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
129
121
|
});
|
130
122
|
|
131
|
-
it(
|
123
|
+
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', () => {
|
132
124
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
133
125
|
if (view === 'Grading view') {
|
134
126
|
studentViewPage.steps.submitResponse();
|
@@ -147,7 +139,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
147
139
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
148
140
|
});
|
149
141
|
|
150
|
-
it(
|
142
|
+
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', () => {
|
151
143
|
if (view === 'Grading view') {
|
152
144
|
studentViewPage.steps.clearResponses();
|
153
145
|
};
|
@@ -169,7 +161,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
169
161
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
170
162
|
});
|
171
163
|
|
172
|
-
it(
|
164
|
+
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', () => {
|
173
165
|
if (view === 'Grading view') {
|
174
166
|
studentViewPage.steps.clearResponses();
|
175
167
|
};
|
@@ -191,7 +183,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
191
183
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
192
184
|
});
|
193
185
|
|
194
|
-
it(
|
186
|
+
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', () => {
|
195
187
|
if (view === 'Grading view') {
|
196
188
|
studentViewPage.steps.clearResponses();
|
197
189
|
};
|
@@ -213,7 +205,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
213
205
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
214
206
|
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
215
207
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
216
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
|
217
208
|
});
|
218
209
|
});
|
219
210
|
});
|
@@ -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.editOptionInputField(0, 'Birds');
|
42
42
|
fillInTheGapsOverImageDragAndDropPage.steps.clearTextInOptionInputField(1);
|
43
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
43
|
+
fillInTheGapsOverImageDragAndDropPage.steps.editOptionInputField(1, 'Insects');
|
44
44
|
fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
45
45
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionFieldTextInOptionsSection(options);
|
46
46
|
});
|