itemengine-cypress-automation 1.0.94 → 1.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/editTabBasic.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/previewTabContent.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/studentViewSettings.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +13 -13
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +0 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +1 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +5 -7
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +9 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.js +24 -43
- package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +1 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -6
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +12 -7
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +8 -9
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +5 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +6 -7
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -2
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +7 -7
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -1
- package/cypress/pages/components/additionalSettingsPanel.js +2 -2
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/createCustomCategoryFlyout.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +2 -2
- package/cypress/pages/components/essayResponseCommonComponents.js +5 -2
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/measuringToolComponent.js +2 -1
- package/cypress/pages/desmosGraphingPage.js +3 -3
- package/cypress/pages/desmosToolPage.js +8 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +16 -9
- package/cypress/pages/drawingResponsePage.js +21 -38
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +9 -10
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -2
- package/cypress/pages/multipleSelectionPage.js +1 -0
- package/cypress/pages/protractorPage.js +3 -4
- package/cypress/pages/rulerPage.js +9 -5
- package/cypress/pages/singleSelectionPage.js +5 -1
- package/package.json +1 -1
@@ -14,7 +14,7 @@ var itemReferenceID = "";
|
|
14
14
|
const thickness = ['5', '10', '15', '20', '25'];
|
15
15
|
const fontSizePopupOptions = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
|
16
16
|
const defaultUnselectedEditTabCustomizeOptionTiles = ['Item eraser', 'Rectangle', 'Ellipse', 'Polygon', 'Compass'];
|
17
|
-
const lineTypeOptions = ['
|
17
|
+
const lineTypeOptions = ['basic line', 'dashed line', 'dotted line', 'single arrow line', 'double arrow line'];
|
18
18
|
|
19
19
|
describe('Preview tab contents - primary toolbar options, secondary toolbar options', () => {
|
20
20
|
before(() => {
|
@@ -151,25 +151,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
151
151
|
drawingResponsePage.steps.switchToPreviewTab();
|
152
152
|
});
|
153
153
|
|
154
|
-
it('When user selects \'Insert image\' option then the canvas should have text \'Upload, or drag and drop, an image from your device.\' should be displayed', () => {
|
155
|
-
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
156
|
-
drawingResponsePage.steps.verifyInsertImageContainerIsVisible();
|
157
|
-
utilities.verifyInnerText(drawingResponsePage.insertImageContainerTitle(), 'Upload, or drag and drop, an image from your device.');
|
158
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.insertImageContainerTitle(), 'visible');
|
159
|
-
});
|
160
|
-
|
161
|
-
it('\'Only JPEG, PNG and GIF file formats will be accepted. Maximum file size - 5MB\' helptext should be displayed on the canvas', () => {
|
162
|
-
utilities.verifyInnerText(drawingResponsePage.insertImageContainerHelptext(), 'Only JPEG, PNG and GIF file formats will be accepted.\nMaximum file size - 5MB');
|
163
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.insertImageContainerHelptext(), 'visible');
|
164
|
-
});
|
165
|
-
|
166
|
-
it('\'Select image\' button and a \'Close\' button should be displayed', () => {
|
167
|
-
utilities.verifyInnerText(drawingResponsePage.insertImageContainerSelectButton(), 'Select image');
|
168
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.insertImageContainerSelectButton(), 'visible');
|
169
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.insertImageContainerCloseButton(), 'visible');
|
170
|
-
});
|
171
|
-
|
172
154
|
it('User should be able to upload an image', () => {
|
155
|
+
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
173
156
|
drawingResponsePage.steps.uploadFile('uploads/image.png');
|
174
157
|
});
|
175
158
|
|
@@ -222,7 +205,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
222
205
|
});
|
223
206
|
|
224
207
|
it('CSS of \'Special characters\' secondary toolbar option in deselected state', { tags: 'css' }, () => {
|
225
|
-
utilities.verifyCSS(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[
|
208
|
+
utilities.verifyCSS(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]), {
|
226
209
|
'background-color': css.color.defaultToolbarOptionBg
|
227
210
|
});
|
228
211
|
});
|
@@ -385,6 +368,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
385
368
|
});
|
386
369
|
|
387
370
|
describe('Preview tab - secondary toolbar option - \'Font size\' - content and functionality', { tags: 'smoke' }, () => {
|
371
|
+
abortEarlySetup();
|
388
372
|
before(() => {
|
389
373
|
cy.log('Navigating to drawing response question type');
|
390
374
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
@@ -418,7 +402,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
418
402
|
});
|
419
403
|
|
420
404
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
421
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
405
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
422
406
|
});
|
423
407
|
|
424
408
|
it('When user clicks on \'Font size\' secondary toolbar option, then the \'Font size\' popup should be displayed', () => {
|
@@ -491,7 +475,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
491
475
|
});
|
492
476
|
|
493
477
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
494
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
478
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
495
479
|
});
|
496
480
|
|
497
481
|
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', () => {
|
@@ -530,7 +514,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
530
514
|
});
|
531
515
|
|
532
516
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
533
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
517
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
534
518
|
});
|
535
519
|
|
536
520
|
it('When user makes some changes in the \'Opacity\' popup and clicks anywhere outside the popup, then the popup should closed.', () => {
|
@@ -581,7 +565,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
581
565
|
cy.barsPreLoaderWait();
|
582
566
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
583
567
|
drawingResponsePage.steps.switchToPreviewTab();
|
584
|
-
drawingResponsePage.steps.selectPreviewTabToolbarOption(
|
568
|
+
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].displayName);
|
585
569
|
});
|
586
570
|
|
587
571
|
it('By default the \'Stroke thickness\' secondary toolbar option should be in deselected state', () => {
|
@@ -595,7 +579,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
595
579
|
});
|
596
580
|
|
597
581
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
598
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
582
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
599
583
|
});
|
600
584
|
|
601
585
|
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', () => {
|
@@ -629,7 +613,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
629
613
|
});
|
630
614
|
|
631
615
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
632
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
616
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
633
617
|
});
|
634
618
|
|
635
619
|
it('When user makes some changes in the \'Stroke thickness\' popup and clicks anywhere outside the popup, then the popup should close.', () => {
|
@@ -675,6 +659,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
675
659
|
drawingResponsePage.steps.switchToEditTab();
|
676
660
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
677
661
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
662
|
+
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[4]}`]);
|
678
663
|
drawingResponsePage.steps.switchToPreviewTab();
|
679
664
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
680
665
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]), 'visible');
|
@@ -695,7 +680,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
695
680
|
});
|
696
681
|
|
697
682
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
698
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
683
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
699
684
|
});
|
700
685
|
|
701
686
|
it('When user clicks on \'Text color\' secondary toolbar option, then the \'Text color\' popup should be displayed with \'Text color\' title', () => {
|
@@ -705,7 +690,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
705
690
|
//Selected state of secondary toolbar option. Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
706
691
|
});
|
707
692
|
|
708
|
-
it('The \'Text color\' popup should contain
|
693
|
+
it('The \'Text color\' popup should contain 3 default color options for the author to choose from and the first color option should be selected by default', () => {
|
709
694
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(0, 112, 128)');
|
710
695
|
drawingResponsePage.steps.verifySelectedOptionFromSecondaryOptionPopup(0);
|
711
696
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(0, 133, 89)');
|
@@ -858,16 +843,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
858
843
|
});
|
859
844
|
|
860
845
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
861
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
846
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
862
847
|
});
|
863
848
|
|
864
849
|
it(`In preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} secondary toolbar option \'Fill color\' popup should contain three default color options and a \'No color\' option for the author to choose from and the first color option should be selected by default`, () => {
|
865
|
-
drawingResponsePage.steps.switchToEditTab();
|
866
|
-
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[5]}`]);
|
867
850
|
drawingResponsePage.steps.switchToPreviewTab();
|
868
851
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
869
852
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]);
|
870
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]);
|
871
853
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(0, 224, 255)');
|
872
854
|
drawingResponsePage.steps.verifySelectedOptionFromSecondaryOptionPopup(0);
|
873
855
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(6, 255, 172)');
|
@@ -1015,7 +997,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1015
997
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
1016
998
|
drawingResponsePage.steps.switchToPreviewTab();
|
1017
999
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
1018
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[1]), '
|
1000
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[1]), 'visible');
|
1019
1001
|
});
|
1020
1002
|
|
1021
1003
|
it('By default the \'Stroke color\' secondary toolbar option should be in deselected state', () => {
|
@@ -1023,7 +1005,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1023
1005
|
});
|
1024
1006
|
|
1025
1007
|
it('The default stroke color should be displayed under the \'Stroke color\' secondary toolbar option', () => {
|
1026
|
-
drawingResponsePage.steps.verifySecondaryOptionStrokeColor(
|
1008
|
+
drawingResponsePage.steps.verifySecondaryOptionStrokeColor(0, 'rgb(0, 112, 128)');
|
1027
1009
|
});
|
1028
1010
|
|
1029
1011
|
it('CSS of \'Stroke color\' secondary toolbar option in deselected state', { tags: 'css' }, () => {
|
@@ -1033,7 +1015,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1033
1015
|
});
|
1034
1016
|
|
1035
1017
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
1036
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
1018
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
1037
1019
|
});
|
1038
1020
|
|
1039
1021
|
it(`In preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[1]} secondary toolbar option popup should contain four default color options and a \'No color\' option for the author to choose from and the first color option should be selected by default`, () => {
|
@@ -1043,9 +1025,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1043
1025
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(0, 112, 128)');
|
1044
1026
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(0, 133, 89)');
|
1045
1027
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(2, 'rgb(128, 25, 0)');
|
1046
|
-
drawingResponsePage.steps.
|
1047
|
-
drawingResponsePage.
|
1048
|
-
utilities.verifyElementCount(drawingResponsePage.previewTabSecondaryOptionPopupOptions(), '5');
|
1028
|
+
drawingResponsePage.steps.verifyNoColorOptionFromSecondaryOptionPopup(3);
|
1029
|
+
utilities.verifyElementCount(drawingResponsePage.previewTabSecondaryOptionPopupOptions(), '4');
|
1049
1030
|
});
|
1050
1031
|
|
1051
1032
|
it(`When \'Stroke color picker\'additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[1]} secondary toolbar option popup should not display color picker and its related components`, () => {
|
@@ -1189,7 +1170,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1189
1170
|
});
|
1190
1171
|
|
1191
1172
|
it('Accessibility of \'Line type\' secondary toolbar option', { tags: 'a11y' }, () => {
|
1192
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
1173
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
1193
1174
|
});
|
1194
1175
|
|
1195
1176
|
it('When user clicks on \'Line type\' secondary toolbar option, then the \'Line type\' popup should be displayed and \'Line type\' secondary toolbar option should be in selected state', () => {
|
@@ -1199,7 +1180,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1199
1180
|
});
|
1200
1181
|
|
1201
1182
|
it(`A \'Line type\' title along with the five line type options - ${lineTypeOptions.join(', ')} should be displayed`, () => {
|
1202
|
-
drawingResponsePage.steps.verifySecondaryOptionPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[
|
1183
|
+
drawingResponsePage.steps.verifySecondaryOptionPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[2].secondaryToolbarOptions[2]);
|
1203
1184
|
lineTypeOptions.forEach((thickness, index) => {
|
1204
1185
|
drawingResponsePage.steps.verifySecondaryPopupLineType(thickness, index);
|
1205
1186
|
});
|
@@ -1223,7 +1204,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1223
1204
|
});
|
1224
1205
|
|
1225
1206
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
1226
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption());
|
1207
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
1227
1208
|
});
|
1228
1209
|
|
1229
1210
|
it('When user makes some changes in the \'Line type\' popup, then the popup should close.', () => {
|
@@ -1272,7 +1253,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1272
1253
|
});
|
1273
1254
|
|
1274
1255
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
1275
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
1256
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
1276
1257
|
});
|
1277
1258
|
|
1278
1259
|
it('When user clicks on \'Eraser thickness\' secondary toolbar option, then the \'Eraser thickness\' popup should be displayed and \'Eraser thickness\' secondary toolbar option should be in selected state', () => {
|
@@ -1305,7 +1286,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1305
1286
|
});
|
1306
1287
|
|
1307
1288
|
it('Accessibility of secondary toolbar options', { tags: 'a11y' }, () => {
|
1308
|
-
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption(
|
1289
|
+
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
1309
1290
|
});
|
1310
1291
|
|
1311
1292
|
it('When user makes some changes in the \'Eraser thickness\' popup and clicks anywhere outside the popup, then the popup should close.', () => {
|
@@ -79,6 +79,7 @@ describe('Create question page - Essay response: Scoring', () => {
|
|
79
79
|
cy.barsPreLoaderWait();
|
80
80
|
essayResponsePage.steps.expandScoringTypeDropdown();
|
81
81
|
essayResponsePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
82
|
+
essayResponsePage.steps.switchToPreviewTab();
|
82
83
|
});
|
83
84
|
|
84
85
|
essayResponsePage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
|
@@ -165,12 +165,6 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
165
165
|
it('By default, the \'Previous button\' should be disabled and \'Next button\' should be enabled on opening the flyout as user is at the beginning of the tablist', () => {
|
166
166
|
utilities.verifyElementDisabled(equationEditorFlyout.buttonPrevious());
|
167
167
|
utilities.verifyElementNotDisabled(equationEditorFlyout.buttonNext());
|
168
|
-
// equationEditorFlyout.buttonPrevious()
|
169
|
-
// .should('have.class', 'disabled')
|
170
|
-
// .and('be.disabled');
|
171
|
-
// equationEditorFlyout.buttonNext()
|
172
|
-
// .should('not.have.class', 'disabled')
|
173
|
-
// .and('be.enabled');
|
174
168
|
});
|
175
169
|
|
176
170
|
it('When user clicks on the \'Next button\', the \'Previous button\' and the \'Next button\' both should get enabled, When the user reaches end of the tablist the \'Next button\' should get disabled and \'Previous button\' should remain enabled.', () => {
|
@@ -51,7 +51,7 @@ describe('Essay Response Preview: Edit Table functionality', () => {
|
|
51
51
|
});
|
52
52
|
});
|
53
53
|
customizationLabelSelectors.forEach((label) => {
|
54
|
-
utilities.verifyCSS(label()
|
54
|
+
utilities.verifyCSS(label(), {
|
55
55
|
'color': css.color.labelText,
|
56
56
|
'font-size': css.fontSize.normal,
|
57
57
|
'font-weight': css.fontWeight.regular
|
@@ -223,7 +223,6 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
223
223
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
224
224
|
fillInTheGapsOverImageDragAndDropPage.steps.deleteAlternativeAnswerAccordion(0);
|
225
225
|
fillInTheGapsOverImageDragAndDropPage.steps.addAlternativeAnswerAccordion(1);
|
226
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandAlternativeAnswerAccordion(0);
|
227
226
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Roots': 0, 'Stem': 1, 'Seed': 2 });
|
228
227
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPartialDifferentWeightsPoints({ 0: 11.4, 1: 1.2, 2: 10.4 });
|
229
228
|
fillInTheGapsOverImageDragAndDropPage.steps.expandCorrectAnswerAccordion();
|
@@ -223,7 +223,6 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
223
223
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
224
224
|
fillInTheGapsOverImageDragAndDropPage.steps.deleteAlternativeAnswerAccordion(0);
|
225
225
|
fillInTheGapsOverImageDragAndDropPage.steps.addAlternativeAnswerAccordion(1);
|
226
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandAlternativeAnswerAccordion(0);
|
227
226
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Roots': 0, 'Stem': 1, 'Seed': 2 });
|
228
227
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.2, 1: 2.2, 2: 1.6 });
|
229
228
|
fillInTheGapsOverImageDragAndDropPage.steps.expandCorrectAnswerAccordion();
|
@@ -202,7 +202,6 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
202
202
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
203
203
|
fillInTheGapsOverImageDragAndDropPage.steps.deleteAlternativeAnswerAccordion(0);
|
204
204
|
fillInTheGapsOverImageDragAndDropPage.steps.addAlternativeAnswerAccordion(1);
|
205
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandAlternativeAnswerAccordion(0);
|
206
205
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Roots': 0, 'Stem': 1, 'Seed': 2 });
|
207
206
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(23);
|
208
207
|
fillInTheGapsOverImageDragAndDropPage.steps.expandCorrectAnswerAccordion();
|
@@ -202,7 +202,6 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
202
202
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
203
203
|
fillInTheGapsOverImageDragAndDropPage.steps.deleteAlternativeAnswerAccordion(0);
|
204
204
|
fillInTheGapsOverImageDragAndDropPage.steps.addAlternativeAnswerAccordion(1);
|
205
|
-
fillInTheGapsOverImageDragAndDropPage.steps.expandAlternativeAnswerAccordion(0);
|
206
205
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Roots': 0, 'Stem': 1, 'Seed': 2 });
|
207
206
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(5);
|
208
207
|
fillInTheGapsOverImageDragAndDropPage.steps.expandCorrectAnswerAccordion();
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js
CHANGED
@@ -353,6 +353,8 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
353
353
|
before(() => {
|
354
354
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
355
355
|
cy.barsPreLoaderWait();
|
356
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
357
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
356
358
|
});
|
357
359
|
|
358
360
|
it('When user clicks inside canvas, then one dropzone should be added with pointer, close button and numeration.', () => {
|
@@ -403,8 +405,8 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
403
405
|
});
|
404
406
|
|
405
407
|
it('When the user has not made any changes in the canvas, the \'Undo\' and \'Redo\' button should be in disabled state', () => {
|
406
|
-
|
407
|
-
|
408
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyUndoButtonDisabled();
|
409
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyRedoButtonDisabled();
|
408
410
|
});
|
409
411
|
|
410
412
|
it('When user adds dropzone inside canvas, the \'Undo\' button should get enabled but the \'Redo\' button should continue to stay in disabled state', () => {
|
@@ -457,6 +459,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
457
459
|
it('When user clicks on undo button, then previously added dropzones should be restored and error message should disappear', () => {
|
458
460
|
fillInTheGapsOverImageDragAndDropPage.steps.undoAction();
|
459
461
|
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.dropzone(), 4);
|
462
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 'notExist');
|
460
463
|
});
|
461
464
|
});
|
462
465
|
|
@@ -670,7 +670,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
670
670
|
});
|
671
671
|
|
672
672
|
it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
|
673
|
-
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed':
|
673
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2 });
|
674
674
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyGroupedOptionsTitlePreviewTab(0, 'Group A')
|
675
675
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyEmptyGroupInPreviewTab(0);
|
676
676
|
});
|
@@ -38,7 +38,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
38
38
|
|
39
39
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyAddOptionFunctionality();
|
40
40
|
|
41
|
-
fillInTheGapsOverImageDragAndDropPage.tests.verifyOptionInputFieldErrorState();
|
41
|
+
fillInTheGapsOverImageDragAndDropPage.tests.verifyOptionInputFieldErrorState(0);
|
42
42
|
|
43
43
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyEnabledDeleteButtonAndTooltip();
|
44
44
|
|
@@ -110,32 +110,32 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
110
110
|
|
111
111
|
it('When the user gives a score input to \'Points\' input field, then the score should be equally divided among the dropzone \'Points per response\' label', () => {
|
112
112
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(6);
|
113
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
113
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('2');
|
114
114
|
});
|
115
115
|
|
116
116
|
it('When the user inserts one more dropzone, then points per response should get updated accordingly', () => {
|
117
117
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(60);
|
118
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
118
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('1.5');
|
119
119
|
});
|
120
120
|
|
121
121
|
it('When the user deletes a dropzone, then points per response should get updated accordingly', () => {
|
122
122
|
fillInTheGapsOverImageDragAndDropPage.steps.removeDropzone(3);
|
123
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
123
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('2');
|
124
124
|
});
|
125
125
|
|
126
126
|
it('When the user adds another option in the dropzone, then points per response should remain the same', () => {
|
127
127
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Roots': 1 });
|
128
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
128
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('2');
|
129
129
|
});
|
130
130
|
|
131
131
|
it('When the user adds an option in the options section then the points should not change', () => {
|
132
132
|
fillInTheGapsOverImageDragAndDropPage.steps.addOption();
|
133
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
133
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('2');
|
134
134
|
});
|
135
135
|
|
136
136
|
it('When the user deletes an option in the options section then the points should not change', () => {
|
137
137
|
fillInTheGapsOverImageDragAndDropPage.steps.deleteOption(4);
|
138
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
138
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('2');
|
139
139
|
});
|
140
140
|
|
141
141
|
it('When the user switches to \'All or nothing\' scoring, the \'Points per response\' label and the points displayed for individual responses should not be displayed and the points displayed in \'Points\' input field should remain unchanged', () => {
|
@@ -147,7 +147,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
147
147
|
it('When the user updates the entered points in \'All or nothing\' scoring type and switches to \'Partial equal weights\' scoring type, then the points should be equally divided and displayed besides each correct option', () => {
|
148
148
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(12);
|
149
149
|
fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
150
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
150
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('4');
|
151
151
|
});
|
152
152
|
|
153
153
|
it('CSS of \'Points per response\' label and its displayed score', { tags: 'css' }, () => {
|
@@ -32,7 +32,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
|
|
32
32
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
33
33
|
});
|
34
34
|
|
35
|
-
fillInTheGapsOverImageDragAndDropPage.tests.verifyCancelButton('fill in the gaps over image
|
35
|
+
fillInTheGapsOverImageDragAndDropPage.tests.verifyCancelButton('fill in the gaps over image with drag and drop')
|
36
36
|
});
|
37
37
|
|
38
38
|
describe('Save Question button', () => {
|
@@ -67,7 +67,10 @@ describe('Create Item page - Fill in the gaps over image with drag and drop: Spe
|
|
67
67
|
});
|
68
68
|
|
69
69
|
it('When the user has added options in the options sections then they should be displayed in the \'Alternative\' accordion options section', () => {
|
70
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection(
|
70
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection(0, 'Petals');
|
71
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection(1, 'Leaves');
|
72
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection(2, 'Roots');
|
73
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection(3, 'Stem');
|
71
74
|
});
|
72
75
|
|
73
76
|
fillInTheGapsOverImageDragAndDropPage.tests.verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Alternative');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js
CHANGED
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
let flowers = [['Flower', 'Petals', 'Seed', 'Pollen'],
|
4
4
|
['Leaflet', 'Leaves', 'Leaf', 'Green'],
|
5
5
|
['Stem', 'Branch', 'Trunk', 'Tree'],
|
6
|
-
['Rose', 'Lily', 'Orchid', '
|
6
|
+
['Rose', 'Lily', 'Orchid', 'Petals']
|
7
7
|
];
|
8
8
|
let groupTitles = ['Group A', 'Group B', 'Group C', 'Group D'];
|
9
9
|
|
@@ -41,6 +41,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
|
|
41
41
|
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
|
42
42
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
43
43
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
44
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
44
45
|
cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
45
46
|
multipleSelectionPage.steps.checkAnswer();
|
46
47
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
@@ -82,6 +83,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
|
|
82
83
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
83
84
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
84
85
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
86
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
85
87
|
cy.log('When the user has attempted the question question correctly and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
|
86
88
|
multipleSelectionPage.steps.checkAnswer();
|
87
89
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
@@ -41,6 +41,7 @@ describe('Create Item page - Multiple selection: Partial equal weights ', () =>
|
|
41
41
|
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
|
42
42
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
43
43
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
44
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
44
45
|
cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
45
46
|
multipleSelectionPage.steps.checkAnswer();
|
46
47
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
@@ -82,6 +83,7 @@ describe('Create Item page - Multiple selection: Partial equal weights ', () =>
|
|
82
83
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
83
84
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
84
85
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
86
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
85
87
|
cy.log('When the user has attempted the question question correctly and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
|
86
88
|
multipleSelectionPage.steps.checkAnswer();
|
87
89
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
@@ -339,7 +339,7 @@ describe('Create Item page - Multiple selection: Student view settings', () => {
|
|
339
339
|
for (let index = 1; index < options.length + 1; index++) {
|
340
340
|
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.minimumNumberOfAnswersDropdownOptions(), index), `${index}`);
|
341
341
|
}
|
342
|
-
multipleSelectionPage.steps.selectOptionFromMinimumNumberOfAnswersDropdown('None')
|
342
|
+
multipleSelectionPage.steps.selectOptionFromMinimumNumberOfAnswersDropdown('None');
|
343
343
|
multipleSelectionPage.steps.expandMaximumNumberOfAnswersDropdown();
|
344
344
|
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.maximumNumberOfAnswersDropdownOptions(), 0), 'None');
|
345
345
|
for (let index = 1; index < options.length + 1; index++) {
|
@@ -7,6 +7,10 @@ const angleTypeOptions = ['Acute', 'Obtuse', 'Both acute and obtuse'];
|
|
7
7
|
const rotationOptions = ['None', 'Allow rotation']
|
8
8
|
|
9
9
|
describe('Create Item page - Protractor : Edit Tab', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
10
14
|
describe('\'Angle type\' section - Edit tab', () => {
|
11
15
|
abortEarlySetup();
|
12
16
|
before(() => {
|
@@ -214,10 +218,9 @@ describe('Create Item page - Protractor : Edit Tab', () => {
|
|
214
218
|
protractorPage.steps.verifyOpacityInputFieldValue(50);
|
215
219
|
});
|
216
220
|
|
217
|
-
//Failed due to https://redmine.zeuslearning.com/issues/553920
|
218
221
|
it('\'Protractor Color\' label and 6 solid color should be displayed and by default \'White\' color radio button should be selected', () => {
|
219
|
-
utilities.verifyInnerText(protractorPage.
|
220
|
-
utilities.verifyElementVisibilityState(protractorPage.
|
222
|
+
utilities.verifyInnerText(protractorPage.toolColorLabel(), 'Protractor color');
|
223
|
+
utilities.verifyElementVisibilityState(protractorPage.toolColorLabel(), 'visible');
|
221
224
|
utilities.verifyElementCount(protractorPage.toolColorBlock(), 6);
|
222
225
|
protractorPage.steps.verifyToolColorBlocksVisibility();
|
223
226
|
protractorPage.steps.verifyToolColorSelectedState(0);
|
@@ -230,7 +233,7 @@ describe('Create Item page - Protractor : Edit Tab', () => {
|
|
230
233
|
});
|
231
234
|
|
232
235
|
it('CSS of \'Color\' Section in Edit tab', { tags: 'css' }, () => {
|
233
|
-
utilities.verifyCSS(protractorPage.
|
236
|
+
utilities.verifyCSS(protractorPage.toolColorLabel(), {
|
234
237
|
'color': css.color.labels,
|
235
238
|
'font-size': css.fontSize.normal,
|
236
239
|
'font-weight': css.fontWeight.semibold
|
@@ -238,7 +241,7 @@ describe('Create Item page - Protractor : Edit Tab', () => {
|
|
238
241
|
});
|
239
242
|
|
240
243
|
it('Accessibility of newly selected color', { tags: 'a11y' }, () => {
|
241
|
-
cy.checkAccessibility(protractorPage.
|
244
|
+
cy.checkAccessibility(protractorPage.toolColorLabel().parents('[class*="Protractorstyle__ProtractorColorWrapper"] '));
|
242
245
|
});
|
243
246
|
});
|
244
247
|
|
@@ -255,7 +258,8 @@ describe('Create Item page - Protractor : Edit Tab', () => {
|
|
255
258
|
});
|
256
259
|
|
257
260
|
it('\'Add show/hide button\' label and checkbox should be displayed and by default the checkbox should be unchecked', () => {
|
258
|
-
protractorPage.steps.
|
261
|
+
protractorPage.steps.verifyAddShowHideButtonLabel();
|
262
|
+
protractorPage.steps.verifyAddShowHideButtonCheckboxUnchecked();
|
259
263
|
});
|
260
264
|
|
261
265
|
it('CSS of \'Protractor visibility\' section', { tags: 'css' }, () => {
|
@@ -284,7 +288,8 @@ describe('Create Item page - Protractor : Edit Tab', () => {
|
|
284
288
|
|
285
289
|
it('When user checks \'Add show/hide button\' checkbox, then \'Launch the Protractor by default\' label and checkbox should be displayed and by default the checkbox should be unchecked', () => {
|
286
290
|
protractorPage.steps.checkAddShowHideButtonCheckbox();
|
287
|
-
protractorPage.steps.
|
291
|
+
protractorPage.steps.verifyLaunchToolByDefaultLabel('protractor');
|
292
|
+
protractorPage.steps.verifyLaunchToolByDefaultCheckboxUnchecked();
|
288
293
|
});
|
289
294
|
|
290
295
|
it('User should be able to check \'Launch the Protractor by default\' checkbox', () => {
|
@@ -5,8 +5,6 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
const rotationOptions = ['None', 'Allow rotation', 'Allow rotation and display angle'];
|
7
7
|
const unitOfMeasurementOptions = ['Centimeter', 'Inch', 'Pixel', 'Both centimeter and inch', 'Custom image'];
|
8
|
-
const colors = ['White', 'Purple', 'Light blue', 'Orange', 'Yellow', 'Grey'];
|
9
|
-
const colorValues = ['rgba(255, 255, 255, 1)', 'rgb(186, 201, 255)', 'rgb(128, 239, 255)', 'rgb(255, 238, 215)', 'rgb(255, 238, 78)', 'rgb(220, 223, 230)'];
|
10
8
|
const rulerOptions = [
|
11
9
|
{
|
12
10
|
displayName: 'Centimeter',
|
@@ -279,7 +277,7 @@ describe('Create Item page - Ruler: Edit Tab', () => {
|
|
279
277
|
it('When user locks the aspect ratio button and changes the value in the width input field, the height input field should be updated accordingly to maintain the updated aspect ratio', () => {
|
280
278
|
rulerPage.steps.lockAspectRatio();
|
281
279
|
rulerPage.steps.updateImageWidth(600);
|
282
|
-
rulerPage.steps.verifyUpdatedHeightInImageHeightInputField(
|
280
|
+
rulerPage.steps.verifyUpdatedHeightInImageHeightInputField(480);
|
283
281
|
});
|
284
282
|
|
285
283
|
it('When user selects the \'Reset dimensions\' button the height and width should reset to the original values', () => {
|
@@ -468,10 +466,9 @@ describe('Create Item page - Ruler: Edit Tab', () => {
|
|
468
466
|
rulerPage.steps.verifyOpacityInputFieldValue(50);
|
469
467
|
});
|
470
468
|
|
471
|
-
//Failed due to https://redmine.zeuslearning.com/issues/556472
|
472
469
|
it('\'Ruler Color\' label and 6 solid color should be displayed and by default \'White\' color radio button should be selected', () => {
|
473
|
-
utilities.verifyInnerText(rulerPage.
|
474
|
-
utilities.verifyElementVisibilityState(rulerPage.
|
470
|
+
utilities.verifyInnerText(rulerPage.toolColorLabel(), 'Ruler Color');
|
471
|
+
utilities.verifyElementVisibilityState(rulerPage.toolColorLabel(), 'visible');
|
475
472
|
rulerPage.steps.verifyToolColorBlocksVisibility();
|
476
473
|
rulerPage.steps.verifyToolColorSelectedState(0);
|
477
474
|
});
|
@@ -483,7 +480,7 @@ describe('Create Item page - Ruler: Edit Tab', () => {
|
|
483
480
|
});
|
484
481
|
|
485
482
|
it('CSS of \'Color\' Section in Edit tab', { tags: 'css' }, () => {
|
486
|
-
utilities.verifyCSS(rulerPage.
|
483
|
+
utilities.verifyCSS(rulerPage.toolColorLabel(), {
|
487
484
|
'color': css.color.labels,
|
488
485
|
'font-size': css.fontSize.normal,
|
489
486
|
'font-weight': css.fontWeight.semibold
|
@@ -501,7 +498,8 @@ describe('Create Item page - Ruler: Edit Tab', () => {
|
|
501
498
|
|
502
499
|
it('\'Add show/hide button\' label and checkbox should be displayed and by default the checkbox should be unchecked', () => {
|
503
500
|
utilities.verifyElementVisibilityState(rulerPage.addShowHideButtonCheckbox(), 'exist');
|
504
|
-
rulerPage.steps.
|
501
|
+
rulerPage.steps.verifyAddShowHideButtonLabel();
|
502
|
+
rulerPage.steps.verifyAddShowHideButtonCheckboxUnchecked();
|
505
503
|
});
|
506
504
|
|
507
505
|
it('CSS of \'Ruler visibility\' section', { tags: 'css' }, () => {
|
@@ -520,7 +518,8 @@ describe('Create Item page - Ruler: Edit Tab', () => {
|
|
520
518
|
it('When user checks \'Add show/hide button\' checkbox, then \'Launch the ruler by default\' label and checkbox should be displayed and by default the checkbox should be unchecked', () => {
|
521
519
|
rulerPage.steps.checkAddShowHideButtonCheckbox();
|
522
520
|
utilities.verifyElementVisibilityState(rulerPage.launchToolByDefaultCheckbox(), 'exist');
|
523
|
-
rulerPage.steps.
|
521
|
+
rulerPage.steps.verifyLaunchToolByDefaultLabel('ruler');
|
522
|
+
rulerPage.steps.verifyLaunchToolByDefaultCheckboxUnchecked();
|
524
523
|
});
|
525
524
|
|
526
525
|
it('User should be able to check \'Launch the ruler by default\' checkbox', () => {
|