itemengine-cypress-automation 1.0.336 → 1.0.338-12thMarchRegressionFixes-1cd5906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/editQuestion.smoke.js +94 -0
  2. package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +93 -0
  3. package/cypress/e2e/ILC/ChartsDotsPlot/editQuestion.smoke.js +92 -0
  4. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +84 -0
  5. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +2 -2
  6. package/cypress/e2e/ILC/CkEditorEquationEditor/selectModeEditorBasic.js +1 -1
  7. package/cypress/e2e/ILC/CkEditorInsertImage/insertImageBasicFile.js +1 -1
  8. package/cypress/e2e/ILC/CkEditorInsertImage/upload.js +1 -1
  9. package/cypress/e2e/ILC/CkEditorInsertTable/insertTableEditorBasicFile.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +1 -1
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +12 -9
  12. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +2 -1
  13. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +63 -1
  14. package/cypress/e2e/ILC/EssayResponse/editQuestion.smoke.js +1 -1
  15. package/cypress/e2e/ILC/EssayResponseBasic/editQuestion.smoke.js +1 -1
  16. package/cypress/e2e/ILC/EssayResponseMath/editQuestion.smoke.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/checkScoringLableBannerAndCorrectAnswer.js +84 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/checkAddAlternativeButton.js +33 -0
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +2 -4
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -8
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +32 -2
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +39 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +119 -0
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +91 -0
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/checkAddAlternativeButton.js +37 -0
  27. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +3 -3
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +36 -2
  30. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +36 -6
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViewsInIncompleteAuthoring.smoke.js +103 -0
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +1 -1
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +96 -0
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAddAlternativeButton.js +38 -0
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -1
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +2 -2
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +39 -0
  38. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +39 -8
  39. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +1 -1
  40. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViewsInIncompleteuthoring.smoke.js +106 -0
  41. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +2 -3
  42. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +38 -5
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +88 -0
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -1
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/checkAddAlternative.js +35 -0
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +33 -1
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViewsInIncompleteAuthoring.js +97 -0
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -4
  49. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +79 -0
  50. package/cypress/e2e/ILC/FillInTheGapsTextNew/checkAddAlternativeButton.js +32 -0
  51. package/cypress/e2e/ILC/FillInTheGapsTextNew/editQuestion.smoke.js +1 -1
  52. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +30 -2
  53. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +35 -4
  54. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViewsInIncompleteAuthoring.smoke.js +99 -0
  55. package/cypress/e2e/ILC/GridFill/editQuestion.smoke.js +1 -1
  56. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +109 -0
  57. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternatePoints.js +45 -0
  58. package/cypress/e2e/ILC/ImageHighlight/Scoring/checkScoringLableBannerAndCorrectAnswer.js +96 -0
  59. package/cypress/e2e/ILC/ImageHighlight/checkAddAlternativeButton.js +39 -0
  60. package/cypress/e2e/ILC/ImageHighlight/editQuestion.smoke.js +76 -0
  61. package/cypress/e2e/ILC/ImageHighlight/editTabBasicSection.js +46 -0
  62. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +35 -5
  63. package/cypress/e2e/ILC/ImageHighlight/previewContentForAllViewInIncompleteAuthoring.js +118 -0
  64. package/cypress/e2e/ILC/ListOrderingNew/editQuestion.smoke.js +3 -0
  65. package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +1 -1
  66. package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationLayoutProperties.js +3 -3
  67. package/cypress/e2e/ILC/NumberLine/editQuestion.smoke.js +79 -0
  68. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  69. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/editQuestion.smoke.js +72 -0
  70. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +1 -0
  71. package/cypress/e2e/ILC/NumberLineLabel/editQuestion.smoke.js +80 -0
  72. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +81 -0
  73. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  74. package/cypress/e2e/ILC/ShortTextResponseNew/editQuestion.smoke.js +56 -0
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
  76. package/cypress/e2e/ILC/SingleSelection/editQuestion.smoke.js +1 -1
  77. package/cypress/e2e/ILC/SingleSelection/editTabBasicSection.js +1 -1
  78. package/cypress/e2e/ILC/SingleSelectionGridNew/editQuestion.smoke.js +1 -1
  79. package/cypress/e2e/ILC/TextEntryMath/editQuestion.smoke.js +76 -0
  80. package/cypress/e2e/ILC/TextEntryMathWithImage/editQuestion.smoke.js +92 -0
  81. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -1
  82. package/cypress/e2e/ILC/TextSelection/editQuestion.smoke.js +0 -3
  83. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  84. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
  85. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  86. package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +1 -0
  87. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +1 -1
  88. package/cypress/fixtures/uploadResponseFileType.js +1 -1
  89. package/cypress/pages/chartsBarPage.js +3 -0
  90. package/cypress/pages/chartsDotPlotPage.js +2 -0
  91. package/cypress/pages/chartsLinePage.js +38 -2
  92. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  93. package/cypress/pages/components/browseItemsPage.js +4 -4
  94. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +22 -1
  95. package/cypress/pages/components/layoutSectionComponent.js +1 -1
  96. package/cypress/pages/components/optionsWrapperComponent.js +1 -0
  97. package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -1
  98. package/cypress/pages/createItemPage.js +7 -0
  99. package/cypress/pages/drawingResponsePage.js +73 -2
  100. package/cypress/pages/feedbackScalePage.js +2 -0
  101. package/cypress/pages/fillInTheGapsDropdownPage.js +21 -0
  102. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -2
  103. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +22 -0
  104. package/cypress/pages/fillInTheGapsOverImageTextPage.js +22 -0
  105. package/cypress/pages/fillInTheGapsTextPage.js +24 -2
  106. package/cypress/pages/imageHighlightPage.js +37 -2
  107. package/cypress/pages/listOrderingPage.js +4 -2
  108. package/cypress/pages/menuBarPage.js +65 -65
  109. package/cypress/pages/numberLineLabelPage.js +4 -1
  110. package/cypress/pages/numberLinePage.js +2 -0
  111. package/cypress/pages/shortTextResponsePage.js +2 -0
  112. package/cypress/pages/textEntryMathPage.js +7 -3
  113. package/cypress/pages/textEntryMathWithImagePage.js +3 -0
  114. package/package.json +2 -2
@@ -0,0 +1,94 @@
1
+ import { chartsBarPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ import utilities from "../../../../support/helpers/utilities";
4
+
5
+ describe('Edit item - Charts - Bar', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Edit Horizontal bar charts question', { tags: 'smoke' }, () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
14
+ cy.barsPreLoaderWait();
15
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set bars on charts');
16
+ chartsBarPage.steps.selectHorizontalDirectionRadioButton();
17
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 2, range: 10 }, 'horizontal');
18
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 }, 'horizontal');
19
+ chartsBarPage.steps.lockBar(0);
20
+ chartsBarPage.steps.allotPoints(20);
21
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 3, range: 10 }, 'horizontal');
22
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 6, range: 10 }, 'horizontal');
23
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
24
+ });
25
+
26
+ it('User should be able to edit question instruction and save the question', () => {
27
+ chartsBarPage.steps.editItem();
28
+ chartsBarPage.steps.clearQuestionInstructionsInputField();
29
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Charts - Bar question instruction Updated');
30
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
31
+ chartsBarPage.steps.verifyQuestionInstructionsTextPreviewTab('Charts - Bar question instruction Updated');
32
+ });
33
+
34
+ it('User should be able to edit correct answer and save the question', () => {
35
+ chartsBarPage.steps.editItem();
36
+ chartsBarPage.steps.lockBar(2);
37
+ chartsBarPage.steps.unlockBar(0);
38
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 3, range: 10 }, 'horizontal');
39
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 6, range: 10 }, 'horizontal');
40
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
41
+ });
42
+
43
+ it('User should be able to edit Grid options and save the question', () => {
44
+ chartsBarPage.steps.editItem();
45
+ chartsBarPage.steps.setMaxYValue(20);
46
+ chartsBarPage.steps.enterTextInIntervalInputField(0.25);
47
+ chartsBarPage.steps.enterTextInAnnotateEveryInputField(2);
48
+ chartsBarPage.steps.enterValueInGridSnappingInputField(2);
49
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
50
+ });
51
+
52
+ it('User should be able to edit New bar label, Max bar count and add bars and save the question', () => {
53
+ chartsBarPage.steps.editItem();
54
+ chartsBarPage.steps.selectAddBarOrPointToolbarOption();
55
+ chartsBarPage.steps.setMaxBarCountValue(2);
56
+ chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day');
57
+ cy.wait(500);
58
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
59
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 6, range: 20 }, 'horizontal');
60
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
61
+ utilities.verifyElementCount(chartsBarPage.bar(), 4);
62
+ });
63
+
64
+ it('User should be able to edit points and save the question', () => {
65
+ chartsBarPage.steps.editItem();
66
+ chartsBarPage.steps.allotPoints(30);
67
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
68
+ chartsBarPage.steps.verifyPointInQuestionPreview(30);
69
+ });
70
+
71
+ it('User should be able to change scoring type to manually scored and save the question', () => {
72
+ chartsBarPage.steps.editItem();
73
+ chartsBarPage.steps.expandScoringTypeDropdown();
74
+ chartsBarPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
75
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
76
+ });
77
+
78
+ it('User should be able to change scoring type to non scored and save the question', () => {
79
+ chartsBarPage.steps.editItem();
80
+ chartsBarPage.steps.expandScoringTypeDropdown();
81
+ chartsBarPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
82
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 6, range: 20 }, 'horizontal');
83
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
84
+ });
85
+
86
+ it('User should be able to change bar chart orientation and save the question', () => {
87
+ chartsBarPage.steps.editItem();
88
+ chartsBarPage.steps.selectVerticalDirectionRadioButton();
89
+ chartsBarPage.steps.verifyChartOrientationSpecifyCorrectAnswer('Vertical');
90
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
91
+ chartsBarPage.steps.verifyChartOrientationPreviewTab('Vertical');
92
+ });
93
+ });
94
+ });
@@ -0,0 +1,93 @@
1
+ import { chartsBarPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ describe('Edit item - Charts - Bar', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Edit Bar charts question', { tags: 'smoke' }, () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
14
+ cy.barsPreLoaderWait();
15
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set bars on charts');
16
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 2, range: 10 });
17
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
18
+ chartsBarPage.steps.lockBar(0);
19
+ chartsBarPage.steps.allotPoints(20);
20
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 3, range: 10 });
21
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 6, range: 10 });
22
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
23
+ });
24
+
25
+ it('User should be able to edit question instruction and save the question', () => {
26
+ chartsBarPage.steps.editItem();
27
+ chartsBarPage.steps.clearQuestionInstructionsInputField();
28
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Charts - Bar question instruction Updated');
29
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
30
+ chartsBarPage.steps.verifyQuestionInstructionsTextPreviewTab('Charts - Bar question instruction Updated');
31
+ });
32
+
33
+ it('User should be able to edit correct answer and save the question', () => {
34
+ chartsBarPage.steps.editItem();
35
+ chartsBarPage.steps.lockBar(2);
36
+ chartsBarPage.steps.unlockBar(0);
37
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 3, range: 10 });
38
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 6, range: 10 });
39
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
40
+ });
41
+
42
+ it('User should be able to edit Grid options and save the question', () => {
43
+ chartsBarPage.steps.editItem();
44
+ chartsBarPage.steps.setMaxYValue(20);
45
+ chartsBarPage.steps.enterTextInIntervalInputField(0.25);
46
+ chartsBarPage.steps.enterTextInAnnotateEveryInputField(2);
47
+ chartsBarPage.steps.enterValueInGridSnappingInputField(2);
48
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
49
+ });
50
+
51
+ it('User should be able to edit New bar label, Max bar count and add bars and save the question', () => {
52
+ chartsBarPage.steps.editItem();
53
+ chartsBarPage.steps.selectAddBarOrPointToolbarOption();
54
+ chartsBarPage.steps.setMaxBarCountValue(2);
55
+ chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day');
56
+ cy.wait(500);
57
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
58
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 6, range: 20 });
59
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
60
+ utilities.verifyElementCount(chartsBarPage.bar(), 4);
61
+ });
62
+
63
+ it('User should be able to edit points and save the question', () => {
64
+ chartsBarPage.steps.editItem();
65
+ chartsBarPage.steps.allotPoints(30);
66
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
67
+ chartsBarPage.steps.verifyPointInQuestionPreview(30);
68
+ });
69
+
70
+ it('User should be able to change scoring type to manually scored and save the question', () => {
71
+ chartsBarPage.steps.editItem();
72
+ chartsBarPage.steps.expandScoringTypeDropdown();
73
+ chartsBarPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
74
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
75
+ });
76
+
77
+ it('User should be able to change scoring type to non scored and save the question', () => {
78
+ chartsBarPage.steps.editItem();
79
+ chartsBarPage.steps.expandScoringTypeDropdown();
80
+ chartsBarPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
81
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 6, range: 20 });
82
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
83
+ });
84
+
85
+ it('User should be able to change bar chart orientation and save the question', () => {
86
+ chartsBarPage.steps.editItem();
87
+ chartsBarPage.steps.selectHorizontalDirectionRadioButton();
88
+ chartsBarPage.steps.verifyChartOrientationSpecifyCorrectAnswer('Horizontal');
89
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
90
+ chartsBarPage.steps.verifyChartOrientationPreviewTab('Horizontal');
91
+ });
92
+ });
93
+ });
@@ -0,0 +1,92 @@
1
+ import { chartsDotPlotPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ describe('Edit item - Charts -Line', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Edit Dot plot charts question', { tags: 'smoke' }, () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
14
+ cy.barsPreLoaderWait();
15
+ chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Set dots on plot');
16
+ chartsDotPlotPage.steps.selectDotPlot();
17
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 0, interval: 0.25, defaultDots: 0 });
18
+ chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 0, interval: 0.25 });
19
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 0, interval: 0.25, defaultDots: 0 });
20
+ chartsDotPlotPage.steps.allotPoints(20);
21
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 0, min: 0, interval: 0.25, defaultDots: 0 });
22
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 0, interval: 0.25, defaultDots: 0 });
23
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(10, { point: 5, min: 0, interval: 0.25, defaultDots: 0 });
24
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
25
+ });
26
+
27
+ it('User should be able to edit question instruction and save the question', () => {
28
+ chartsDotPlotPage.steps.editItem();
29
+ chartsDotPlotPage.steps.clearQuestionInstructionsInputField();
30
+ chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Charts - Dot plot question instruction Updated');
31
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
32
+ chartsDotPlotPage.steps.verifyQuestionInstructionsTextPreviewTab('Charts - Dot plot question instruction Updated');
33
+ });
34
+
35
+ it('User should be able to edit correct answer and save the question', () => {
36
+ chartsDotPlotPage.steps.editItem();
37
+ chartsDotPlotPage.steps.lockDotColumn({ point: 0, min: 0, interval: 0.25 });
38
+ chartsDotPlotPage.steps.unlockDotColumn({ point: 1, min: 0, interval: 0.25 });
39
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(9, { point: 1, min: 0, interval: 0.25, defaultDots: 1 });
40
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2.5, min: 0, interval: 0.25, defaultDots: 0 });
41
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 3, min: 0, interval: 0.25, defaultDots: 0 });
42
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 0, interval: 0.25, defaultDots: 10 });
43
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
44
+ });
45
+
46
+ it('User should be able to edit points and save the question', () => {
47
+ chartsDotPlotPage.steps.editItem();
48
+ chartsDotPlotPage.steps.allotPoints(30);
49
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
50
+ chartsDotPlotPage.steps.verifyPointInQuestionPreview(30);
51
+ });
52
+
53
+ it('User should be able to change scoring type to manually scored and save the question', () => {
54
+ chartsDotPlotPage.steps.editItem();
55
+ chartsDotPlotPage.steps.expandScoringTypeDropdown();
56
+ chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
57
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
58
+ });
59
+
60
+ it('User should be able to change scoring type to non scored and save the question', () => {
61
+ chartsDotPlotPage.steps.editItem();
62
+ chartsDotPlotPage.steps.expandScoringTypeDropdown();
63
+ chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
64
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 0.25, defaultDots: 0 });
65
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
66
+ });
67
+
68
+ it('User should be able to edit Line settings, Dot type and save the question', () => {
69
+ chartsDotPlotPage.steps.editItem();
70
+ chartsDotPlotPage.steps.selectDisplayNumbersToggleButton('Above line');
71
+ chartsDotPlotPage.steps.selectLineSettingsToggleButton('Decimals');
72
+ chartsDotPlotPage.steps.verifyLineSettingsToggleButtonSelected('Decimals');
73
+ chartsDotPlotPage.steps.enterTextInAnnotateEveryInputField(1);
74
+ chartsDotPlotPage.steps.selectXMarkRadioButton();
75
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
76
+ chartsDotPlotPage.steps.verifyDotTypePreviewTab('XMark', { point: 1, min: 0, interval: 0.25 });
77
+ chartsDotPlotPage.steps.verifyDisplayNumbersOrientationOnChartPreviewTab('Above');
78
+ chartsDotPlotPage.steps.verifyLabelOnNumberLineAxisPreviewTab([{ value: 0.25, index: 1 }]);
79
+ });
80
+
81
+ it('User should be able to edit select chart type settings and save the question', () => {
82
+ chartsDotPlotPage.steps.editItem();
83
+ chartsDotPlotPage.steps.selectLineSettingsToggleButton('Whole numbers');
84
+ chartsDotPlotPage.steps.enterTextInMinInputField(1);
85
+ chartsDotPlotPage.steps.enterTextInMaxInputField(6);
86
+ chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
87
+ chartsDotPlotPage.steps.enterTextInAnnotateEveryInputField(2);
88
+ chartsDotPlotPage.steps.saveAQuestionAndVerifySnackbar();
89
+ chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisPreviewTab(1, 6, 1);
90
+ });
91
+ });
92
+ });
@@ -0,0 +1,84 @@
1
+ import { chartsLinePage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ describe('Edit item - Charts -Line', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Edit Line charts question', { tags: 'smoke' }, () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ chartsLinePage.steps.navigateToCreateQuestion('charts');
14
+ cy.barsPreLoaderWait();
15
+ chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set points on charts');
16
+ chartsLinePage.steps.selectLineButton();
17
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({pointIndex: 0, value: 2, range: 10 });
18
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({pointIndex: 2, value: 3, range: 10 });
19
+ chartsLinePage.steps.lockPoint(0);
20
+ chartsLinePage.steps.allotPoints(20);
21
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 1, value: 3, range: 10 });
22
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 2, value: 6, range: 10 });
23
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
24
+ });
25
+
26
+ it('User should be able to edit question instruction and save the question', () => {
27
+ chartsLinePage.steps.editItem();
28
+ chartsLinePage.steps.clearQuestionInstructionsInputField();
29
+ chartsLinePage.steps.addTextInQuestionInstructionsInputField('Charts - Line question instruction Updated');
30
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
31
+ chartsLinePage.steps.verifyQuestionInstructionsTextPreviewTab('Charts - Line question instruction Updated');
32
+ });
33
+
34
+ it('User should be able to edit correct answer and save the question', () => {
35
+ chartsLinePage.steps.editItem();
36
+ chartsLinePage.steps.lockPoint(2);
37
+ chartsLinePage.steps.unlockPoint(0);
38
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 0, value: 3, range: 10 });
39
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 1, value: 6, range: 10 });
40
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
41
+ });
42
+
43
+ it('User should be able to edit Grid options and save the question', () => {
44
+ chartsLinePage.steps.editItem();
45
+ chartsLinePage.steps.setMaxYValue(20);
46
+ chartsLinePage.steps.enterTextInIntervalInputField(0.25);
47
+ chartsLinePage.steps.enterTextInAnnotateEveryInputField(2);
48
+ chartsLinePage.steps.enterValueInGridSnappingInputField(2);
49
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
50
+ });
51
+
52
+ it('User should be able to edit New point label, add points and save the question', () => {
53
+ chartsLinePage.steps.editItem();
54
+ chartsLinePage.steps.updateNewPointLabelInputFieldValue('Day');
55
+ cy.wait(500);
56
+ chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
57
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 3, value: 6, range: 20 });
58
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
59
+ utilities.verifyElementCount(chartsLinePage.point(), 4);
60
+ });
61
+
62
+ it('User should be able to edit points and save the question', () => {
63
+ chartsLinePage.steps.editItem();
64
+ chartsLinePage.steps.allotPoints(30);
65
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
66
+ chartsLinePage.steps.verifyPointInQuestionPreview(30);
67
+ });
68
+
69
+ it('User should be able to change scoring type to manually scored and save the question', () => {
70
+ chartsLinePage.steps.editItem();
71
+ chartsLinePage.steps.expandScoringTypeDropdown();
72
+ chartsLinePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
73
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
74
+ });
75
+
76
+ it('User should be able to change scoring type to non scored and save the question', () => {
77
+ chartsLinePage.steps.editItem();
78
+ chartsLinePage.steps.expandScoringTypeDropdown();
79
+ chartsLinePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
80
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 3, value: 6, range: 20 });
81
+ chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
82
+ });
83
+ });
84
+ });
@@ -98,7 +98,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
98
98
  utilities.verifyElementCount(chartsLinePage.previewTabChartRowHeaderContainer(), 21);
99
99
  });
100
100
 
101
- it('User should be able to edit the Y axis and X axis labels in preview tab', () => {
101
+ it('User should be able to edit the point label', () => {
102
102
  chartsLinePage.steps.editYAxisLabelInPreviewTab('Edited Y axis label');
103
103
  utilities.verifyInnerText(chartsLinePage.previewTabYAxisLabelButton(), 'Edited Y axis label');
104
104
  chartsLinePage.steps.editXAxisLabelInPreviewTab('Edited X axis label');
@@ -142,7 +142,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
142
142
 
143
143
  chartsLinePage.tests.verifyPointTooltipContentsCSSAndA11yInPreviewTab('0', 'Point 1');
144
144
 
145
- it('User should be able to edit the point label', () => {
145
+ it(`${view} - Charts line: User should be able to edit the point label`, () => {
146
146
  chartsLinePage.steps.editPointLabelInPreviewTab(0, '2000');
147
147
  });
148
148
 
@@ -51,7 +51,7 @@ describe('Equation Editor: Edit tab', () => {
51
51
  'color': 'rgb(0, 0, 0)',
52
52
  'font-size': '16px',
53
53
  'font-weight': '400'
54
- });;
54
+ });
55
55
  utilities.verifyCSS(multipleSelectionPage.toolButton().eq(1), {
56
56
  'color': 'rgb(0, 0, 0)',
57
57
  'font-size': '16px',
@@ -32,7 +32,7 @@ describe('Insert Image: Edit tab', () => {
32
32
  'color': 'rgb(72, 72, 72)',
33
33
  'font-size': '12px',
34
34
  'font-weight': '700'
35
- });;
35
+ });
36
36
  utilities.verifyCSS(multipleSelectionPage.buttonOk(), {
37
37
  'color': 'rgb(255, 255, 255)',
38
38
  'font-size': '12px',
@@ -32,7 +32,7 @@ describe('Insert Image: Edit tab', () => {
32
32
  'color': 'rgb(0, 0, 0)',
33
33
  'font-size': '12px',
34
34
  'font-weight': '400'
35
- });;
35
+ });
36
36
  utilities.verifyCSS(multipleSelectionPage.insertImageChooseFileButton(), {
37
37
  'color': 'rgb(0, 0, 0)',
38
38
  'font-size': '12px',
@@ -31,7 +31,7 @@ describe('Insert Table: Edit tab', () => {
31
31
  'color': 'rgb(72, 72, 72)',
32
32
  'font-size': '12px',
33
33
  'font-weight': '700'
34
- });;
34
+ });
35
35
  utilities.verifyCSS(multipleSelectionPage.buttonOk(), {
36
36
  'color': 'rgb(255, 255, 255)',
37
37
  'font-size': '12px',
@@ -57,7 +57,7 @@ describe('Edit item - Drag and drop into categories', () => {
57
57
  dragAndDropIntoCategoriesPage.steps.verifyPointInQuestionPreview(30);
58
58
  });
59
59
 
60
- it('User should be able to change scoring type to manually and save the question', () => {
60
+ it('User should be able to change scoring type to manually scored and save the question', () => {
61
61
  dragAndDropIntoCategoriesPage.steps.editItem();
62
62
  dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
63
63
  dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
@@ -417,9 +417,10 @@ describe('Create item page - Drag and drop into categories: Question instruction
417
417
  it('When first column cells are set as heading and user unchecks the \'Set first column cells as heading\' checkbox, then all the cells of first column should change to \'None\'', () => {
418
418
  dragAndDropIntoCategoriesPage.steps.uncheckSetFirstColumnCellsAsHeadingCheckbox();
419
419
  dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(0, 'Heading');
420
- dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(3, 'Dropzone');
421
- dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(6, 'Dropzone');
422
- dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(9, 'Dropzone');
420
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5519
421
+ // dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(3, 'Dropzone');
422
+ // dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(6, 'Dropzone');
423
+ // dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(9, 'Dropzone');
423
424
  });
424
425
 
425
426
  //TODO - Modify when https://redmine.zeuslearning.com/issues/556747 is resolved
@@ -638,9 +639,10 @@ describe('Create item page - Drag and drop into categories: Question instruction
638
639
  it('When first column cells are set as heading and user unchecks the \'Set first column cells as heading\' checkbox, then in \'Specify correct answer\' section table the first cell of the first column should remain \'Heading\' whereas others should reset to \'Dropzone\'', () => {
639
640
  dragAndDropIntoCategoriesPage.steps.uncheckSetFirstColumnCellsAsHeadingCheckbox();
640
641
  dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(0, 'Heading');
641
- dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(3, 'Dropzone');
642
- dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(6, 'Dropzone');
643
- dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(9, 'Dropzone');
642
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5519
643
+ // dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(3, 'Dropzone');
644
+ // dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(6, 'Dropzone');
645
+ // dragAndDropIntoCategoriesPage.steps.verifySpecifyCorrectAnswerSectionCellProperty(9, 'Dropzone');
644
646
  });
645
647
 
646
648
  it(`When user open the cell property menu, a list of ${cellPropertyMenuOptions.length} options should be displayed - ${cellPropertyMenuOptions.join(', ')}`, () => {
@@ -710,9 +712,10 @@ describe('Create item page - Drag and drop into categories: Question instruction
710
712
  dragAndDropIntoCategoriesPage.steps.uncheckSetFirstColumnCellsAsHeadingCheckbox();
711
713
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
712
714
  dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(0, 'Heading');
713
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(3, 'Dropzone');
714
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(6, 'Dropzone');
715
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Dropzone');
715
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5519
716
+ // dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(3, 'Dropzone');
717
+ // dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(6, 'Dropzone');
718
+ // dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Dropzone');
716
719
  });
717
720
 
718
721
  //TODO - Modify when https://redmine.zeuslearning.com/issues/556747 is resolved
@@ -2,7 +2,7 @@ import { dragAndDropIntoCategoriesPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
 
5
- const rowColumnOptions = ['Small', 'Wide','No spacing'];
5
+ const rowColumnOptions = ['No spacing', 'Small', 'Wide'];
6
6
  const dropzoneDimensions = ['Auto', 'Custom'];
7
7
 
8
8
  describe('Drag and drop into categories - Style and layout customization accordion', () => {
@@ -88,6 +88,7 @@ describe('Drag and drop into categories - Style and layout customization accordi
88
88
  cy.barsPreLoaderWait();
89
89
  dragAndDropIntoCategoriesPage.steps.expandStyleAndLayoutCustomizationAccordion();
90
90
  });
91
+
91
92
  rowColumnOptions.forEach((option) => {
92
93
  it(`When user selects \'Row spacing\' ${option} option then ${option} spacing should be displayed between the row options`, () => {
93
94
  dragAndDropIntoCategoriesPage.steps.expandRowSpacingDropdown();
@@ -218,6 +218,68 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
218
218
  });
219
219
  });
220
220
 
221
+ describe('Preview tab - \'Capture image\'', { tags: 'smoke' }, () => {
222
+ abortEarlySetup();
223
+ before(() => {
224
+ drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
225
+ cy.barsPreLoaderWait();
226
+ drawingResponsePage.steps.switchToPreviewTab();
227
+ });
228
+
229
+ it('When user select \'Capture Image\' icon then display \'Capture Image\' container should be visible', () => {
230
+ // Select 'Capture Image' option from the drawing toolbar
231
+ drawingResponsePage.steps.selectPreviewTabToolbarOption(
232
+ drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[4].displayName
233
+ );
234
+ drawingResponsePage.steps.verifyCaptureImageContainerIsVisible();
235
+ });
236
+
237
+ it('When user clicks on Capture button then Capture Image popup and Save and Retake button should be visible', () => {
238
+ drawingResponsePage.steps.clickOnCaptureButtonOfCaptureImage();
239
+ drawingResponsePage.steps.verifyCaptureImageContainerIsVisible();
240
+ drawingResponsePage.steps.verifyCaptureImageIsVisible();
241
+ drawingResponsePage.steps.verifySaveAndRetakeButtonsAreVisible();
242
+ });
243
+
244
+ it('When user clicks on the Retake Button then camera should be visible with capture and cancel button', () => {
245
+ drawingResponsePage.steps.clickOnRetakeButton();
246
+ drawingResponsePage.steps.verifyCameraIsVisible();
247
+ drawingResponsePage.steps.verifyCaptureAndCancelButtonIsVisible();
248
+ })
249
+
250
+ it('When user clicks on save button then camera popup should close', () => {
251
+ drawingResponsePage.steps.clickOnCaptureButtonOfCaptureImage();
252
+ drawingResponsePage.steps.verifyCaptureImageIsVisible();
253
+ drawingResponsePage.steps.verifySaveAndRetakeButtonsAreVisible();
254
+ drawingResponsePage.steps.clickOnSaveButton();
255
+ drawingResponsePage.steps.verifyCaptureImageContainerNotExist();
256
+ })
257
+ });
258
+
259
+ describe('Preview tab - \'Capture image\' on click cancel', { tags: 'smoke' }, () => {
260
+ abortEarlySetup();
261
+ before(() => {
262
+ drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
263
+ cy.barsPreLoaderWait();
264
+ drawingResponsePage.steps.switchToPreviewTab();
265
+ });
266
+
267
+ it('When user clicks on \'Capture Image\' then display Capture Image container should be visible', () => {
268
+ drawingResponsePage.steps.selectPreviewTabToolbarOption(
269
+ drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[4].displayName
270
+ );
271
+ drawingResponsePage.steps.verifyCaptureImageContainerIsVisible();
272
+ });
273
+
274
+ it('When clicks on \'Cancel\' button then camera popup should not be displayed', () => {
275
+ drawingResponsePage.steps.verifyCaptureImageContainerIsVisible();
276
+ drawingResponsePage.steps.verifyCameraIsVisible();
277
+ drawingResponsePage.steps.verifyCaptureAndCancelButtonIsVisible();
278
+ drawingResponsePage.steps.clickOnCancelIconOfCaptureImage();
279
+ drawingResponsePage.steps.verifyCaptureImageContainerNotExist();
280
+ })
281
+ });
282
+
221
283
  //Failing due to https://redmine.zeuslearning.com/issues/555008
222
284
  describe('Preview tab - secondary toolbar option - \'Special characters\' - content and functionality', { tags: 'smoke' }, () => {
223
285
  abortEarlySetup();
@@ -725,7 +787,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
725
787
  it('When user clicks on \'Text color\' secondary toolbar option, then the \'Text color\' popup should be displayed with \'Text color\' title', () => {
726
788
  drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]);
727
789
  drawingResponsePage.steps.verifySecondaryPopupExist();
728
- drawingResponsePage.steps.verifySecondaryOptionPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]);
790
+ utilities.verifyTextContent(drawingResponsePage.textColorTitle(), drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]);
729
791
  //Selected state of secondary toolbar option. Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
730
792
  });
731
793
 
@@ -27,7 +27,7 @@ describe('Edit item - Essay Response', () => {
27
27
  });
28
28
 
29
29
 
30
- it('User should be able to change scoring type to manually and save the question', () => {
30
+ it('User should be able to change scoring type to manually scored and save the question', () => {
31
31
  essayResponsePage.steps.editItem();
32
32
  essayResponsePage.steps.expandScoringTypeDropdown();
33
33
  essayResponsePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
@@ -27,7 +27,7 @@ describe('Edit item - Essay response - Basic', () => {
27
27
  });
28
28
 
29
29
 
30
- it('User should be able to change scoring type to manually and save the question', () => {
30
+ it('User should be able to change scoring type to manually scored and save the question', () => {
31
31
  essayResponseBasicPage.steps.editItem();
32
32
  essayResponseBasicPage.steps.expandScoringTypeDropdown();
33
33
  essayResponseBasicPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
@@ -27,7 +27,7 @@ describe('Edit item - Essay response math', () => {
27
27
  });
28
28
 
29
29
 
30
- it('User should be able to change scoring type to manually and save the question', () => {
30
+ it('User should be able to change scoring type to manually scored and save the question', () => {
31
31
  essayResponseMathPage.steps.editItem();
32
32
  essayResponseMathPage.steps.expandScoringTypeDropdown();
33
33
  essayResponseMathPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');