itemengine-cypress-automation 1.0.295-applitools-219e3f5.0 → 1.0.295
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 +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
- 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 +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -12
- 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 +1 -11
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +1 -10
- 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/scripts/sorry-cypress.mjs +5 -0
- 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();
|
@@ -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') {
|
@@ -135,7 +126,6 @@ describe('Preview tab contents for all views', () => {
|
|
135
126
|
});
|
136
127
|
} else {
|
137
128
|
it('The dropzone should be displayed filled with answers', () => {
|
138
|
-
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
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();
|
@@ -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,10 +64,9 @@ 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') {
|
@@ -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();
|
@@ -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
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -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();
|
@@ -101,9 +93,8 @@ describe('Preview tab contents for all views', () => {
|
|
101
93
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
|
102
94
|
});
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
105
97
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
|
106
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - default state`);
|
107
98
|
});
|
108
99
|
|
109
100
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -16,14 +16,6 @@ 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
|
-
|
27
19
|
if (!grepTags || !grepTags.includes('smoke')) {
|
28
20
|
describe('Question preview modes: Student view and Grading view', () => {
|
29
21
|
abortEarlySetup();
|
@@ -168,7 +160,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
168
160
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
169
161
|
});
|
170
162
|
|
171
|
-
it(
|
163
|
+
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', () => {
|
172
164
|
if (view === 'Grading view') {
|
173
165
|
studentViewPage.steps.clearResponses();
|
174
166
|
};
|
@@ -188,7 +180,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
188
180
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
189
181
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
190
182
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
191
|
-
cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
|
192
183
|
});
|
193
184
|
});
|
194
185
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,14 +14,6 @@ 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
|
-
|
25
17
|
views.forEach((view) => {
|
26
18
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -75,10 +67,9 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
75
67
|
}
|
76
68
|
});
|
77
69
|
|
78
|
-
it(
|
70
|
+
it('Question instructions should be visible', () => {
|
79
71
|
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
80
72
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'visible');
|
81
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - defualt state`);
|
82
73
|
});
|
83
74
|
|
84
75
|
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
@@ -91,7 +82,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
91
82
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '' }, { dropdownIndex: 1, dropdownText: '' }]);
|
92
83
|
});
|
93
84
|
|
94
|
-
it(
|
85
|
+
it('User should be select an option from the dropdown', () => {
|
95
86
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
96
87
|
});
|
97
88
|
} else if (view === 'Grading view') {
|
@@ -105,7 +96,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
105
96
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsDisabled(1);
|
106
97
|
});
|
107
98
|
} else {
|
108
|
-
it(
|
99
|
+
it('The dropdowns should be displayed filled with correct answers', () => {
|
109
100
|
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 2);
|
110
101
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
111
102
|
});
|
@@ -11,14 +11,6 @@ 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
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -162,7 +154,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
162
154
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
163
155
|
});
|
164
156
|
|
165
|
-
it(
|
157
|
+
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', () => {
|
166
158
|
if (view === 'Grading view') {
|
167
159
|
studentViewPage.steps.clearResponses();
|
168
160
|
};
|
@@ -184,7 +176,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
184
176
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
185
177
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
186
178
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
187
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
|
188
179
|
});
|
189
180
|
});
|
190
181
|
});
|
@@ -9,14 +9,6 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
9
9
|
cy.loginAs('admin');
|
10
10
|
});
|
11
11
|
|
12
|
-
beforeEach(() => {
|
13
|
-
cy.startApplitools();
|
14
|
-
});
|
15
|
-
|
16
|
-
afterEach(() => {
|
17
|
-
cy.eyesClose();
|
18
|
-
});
|
19
|
-
|
20
12
|
views.forEach((view) => {
|
21
13
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
22
14
|
abortEarlySetup();
|
@@ -70,10 +62,9 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
70
62
|
}
|
71
63
|
});
|
72
64
|
|
73
|
-
it(
|
65
|
+
it('Question instructions should be visible', () => {
|
74
66
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'Fill in the gaps');
|
75
67
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'visible');
|
76
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
77
68
|
});
|
78
69
|
|
79
70
|
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
@@ -86,12 +77,12 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
86
77
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
87
78
|
});
|
88
79
|
|
89
|
-
it(
|
80
|
+
it('User should be able to enter text in the answer input fields', () => {
|
90
81
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
91
82
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
92
83
|
});
|
93
84
|
} else if (view === 'Grading view') {
|
94
|
-
it(
|
85
|
+
it('The answer input fields should be displayed filled with answers', () => {
|
95
86
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
96
87
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
97
88
|
});
|
@@ -102,7 +93,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
102
93
|
fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
103
94
|
});
|
104
95
|
} else {
|
105
|
-
it(
|
96
|
+
it('The answer input fields should be displayed filled with correct answers', () => {
|
106
97
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
107
98
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
108
99
|
});
|