itemengine-cypress-automation 1.0.291-RCA-5154-dad9b9b.0 → 1.0.292

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -0
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +74 -0
  3. package/cypress/e2e/ILC/DrawingResponse/editQuestion.smoke.js +46 -0
  4. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +0 -1
  5. package/cypress/e2e/ILC/EssayResponse/editQuestion.smoke.js +46 -0
  6. package/cypress/e2e/ILC/EssayResponseBasic/editQuestion.smoke.js +46 -0
  7. package/cypress/e2e/ILC/EssayResponseMath/editQuestion.smoke.js +46 -0
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +76 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  10. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +68 -0
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +78 -0
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +72 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +65 -0
  15. package/cypress/e2e/ILC/FillInTheGapsTextNew/editQuestion.smoke.js +60 -0
  16. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +1 -0
  17. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -1
  18. package/cypress/e2e/ILC/GridFill/editQuestion.smoke.js +66 -0
  19. package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -5
  20. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +0 -1
  21. package/cypress/e2e/ILC/ListOrderingNew/editQuestion.smoke.js +72 -0
  22. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -0
  23. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +2 -0
  24. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +1 -0
  25. package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +72 -0
  26. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +4 -2
  27. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -4
  28. package/cypress/e2e/ILC/MultipleSelection/editQuestion.smoke.js +73 -0
  29. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +123 -117
  30. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -1
  31. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +0 -2
  32. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -3
  33. package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +0 -2
  34. package/cypress/e2e/ILC/MultipleSelectionGridNew/editQuestion.smoke.js +82 -0
  35. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +2 -0
  36. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +2 -0
  37. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +0 -1
  38. package/cypress/e2e/ILC/SingleSelectionGridNew/editQuestion.smoke.js +74 -0
  39. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -1
  40. package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodMatchValue.js → evaluationMethodMatchValue.smoke.js} +1 -1
  41. package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodsWithoutSetResponse.js → evaluationMethodsWithoutSetResponse.smoke.js} +2 -13
  42. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -1
  43. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -2
  44. package/cypress/e2e/ILC/TextSelection/editQuestion.smoke.js +88 -0
  45. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +0 -1
  46. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -3
  47. package/cypress/e2e/ILC/VideoResponseNew/headerSection.js +1 -1
  48. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsStandardRecorderStyle.js +2 -3
  49. package/cypress/pages/components/autoScoredScoringPreviewTab.js +6 -1
  50. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +11 -1
  51. package/cypress/pages/components/browseItemsPage.js +27 -2
  52. package/cypress/pages/components/commonComponents.js +2 -1
  53. package/cypress/pages/components/createQuestionBasePage.js +31 -2
  54. package/cypress/pages/components/draggableOptionContainer.js +6 -4
  55. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +12 -1
  56. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
  57. package/cypress/pages/components/gridQuestionCommonComponent.js +23 -0
  58. package/cypress/pages/components/imageCanvasComponent.js +0 -1
  59. package/cypress/pages/components/optionsWrapperComponent.js +15 -0
  60. package/cypress/pages/dragAndDropIntoCategoriesPage.js +15 -1
  61. package/cypress/pages/drawingResponsePage.js +2 -1
  62. package/cypress/pages/essayResponseBasicPage.js +3 -1
  63. package/cypress/pages/essayResponsePage.js +2 -0
  64. package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -0
  65. package/cypress/pages/fillInTheGapsDropdownPage.js +4 -2
  66. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -0
  67. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +3 -1
  68. package/cypress/pages/fillInTheGapsOverImageTextPage.js +2 -0
  69. package/cypress/pages/fillInTheGapsTextPage.js +2 -0
  70. package/cypress/pages/gridFillPage.js +2 -1
  71. package/cypress/pages/listOrderingPage.js +13 -0
  72. package/cypress/pages/matchingPage.js +13 -2
  73. package/cypress/pages/multipleSelectionGridPage.js +33 -0
  74. package/cypress/pages/multipleSelectionPage.js +27 -0
  75. package/cypress/pages/singleSelectionGridPage.js +25 -0
  76. package/cypress/pages/singleSelectionPage.js +30 -4
  77. package/cypress/pages/studentViewPage.js +2 -2
  78. package/cypress/pages/textSelectionPage.js +13 -0
  79. package/cypress/pages/videoResponsePage.js +14 -1
  80. package/package.json +1 -1
  81. /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodEquivalentStructures.js → evaluationMethodEquivalentStructures.smoke.js} +0 -0
  82. /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodMatchExact.js → evaluationMethodMatchExact.smoke.js} +0 -0
  83. /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodSymbolsAreEquivalent.js → evaluationMethodSymbolsAreEquivalent.smoke.js} +0 -0
  84. /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodValueIsEquivalent.js → evaluationMethodValueIsEquivalent.smoke.js} +0 -0
@@ -232,6 +232,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
232
232
  });
233
233
  });
234
234
  });
235
+
235
236
  views.forEach((view) => {
236
237
  //https://weldnorthed.atlassian.net/browse/IEI-4998
237
238
  describe(`${view}: Drag and drop into categories - Manually scored`, { tags: 'smoke' }, () => {
@@ -243,6 +244,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
243
244
  cy.barsPreLoaderWait();
244
245
  dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
245
246
  dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
247
+ utilities.verifyInnerText(dragAndDropIntoCategoriesPage.scoringTypeDropdown(), 'Manually scored');
246
248
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
247
249
  break;
248
250
  case 'Grading view':
@@ -0,0 +1,74 @@
1
+ import { dragAndDropIntoCategoriesPage } from "../../../pages/dragAndDropIntoCategoriesPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+ const options = ['Birds', 'Insects'];
6
+
7
+ describe('Edit item - Drag and drop into categories', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Edit drag and drop into categories question', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
16
+ cy.barsPreLoaderWait();
17
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop into categories')
18
+ dragAndDropIntoCategoriesPage.steps.allotPoints(20);
19
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(0, 'Animal');
20
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(1, 'Vehicle');
21
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Animal': 1 });
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Vehicle': 0 });
23
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
24
+ });
25
+
26
+ it('User should be able to edit question instruction and save the question', () => {
27
+ dragAndDropIntoCategoriesPage.steps.editItem();
28
+ dragAndDropIntoCategoriesPage.steps.clearQuestionInstructionsInputField();
29
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop into categories question instruction Updated');
30
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
31
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop into categories question instruction Updated');
32
+ });
33
+
34
+ it('User should be able to edit options and save the question', () => {
35
+ dragAndDropIntoCategoriesPage.steps.editItem();
36
+ dragAndDropIntoCategoriesPage.steps.clearTextInOptionInputField(0);
37
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(0, 'Birds');
38
+ dragAndDropIntoCategoriesPage.steps.clearTextInOptionInputField(1);
39
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(1, 'Insects');
40
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
41
+ dragAndDropIntoCategoriesPage.steps.verifyOptionFieldTextInOptionsSection(options);
42
+ });
43
+
44
+ it('User should be able to edit correct answer and save the question', () => {
45
+ dragAndDropIntoCategoriesPage.steps.editItem();
46
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Birds');
47
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Insects');
48
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Insects': 0 });
49
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Birds': 1 });
50
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
51
+ });
52
+
53
+ it('User should be able to edit points and save the question', () => {
54
+ dragAndDropIntoCategoriesPage.steps.editItem();
55
+ dragAndDropIntoCategoriesPage.steps.allotPoints(30);
56
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
57
+ dragAndDropIntoCategoriesPage.steps.verifyPointInQuestionPreview(30);
58
+ });
59
+
60
+ it('User should be able to change scoring type to manually and save the question', () => {
61
+ dragAndDropIntoCategoriesPage.steps.editItem();
62
+ dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
63
+ dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
64
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
65
+ });
66
+
67
+ it('User should be able to change scoring type to non scored and save the question', () => {
68
+ dragAndDropIntoCategoriesPage.steps.editItem();
69
+ dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
70
+ dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
71
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
72
+ });
73
+ });
74
+ });
@@ -0,0 +1,46 @@
1
+ import { drawingResponsePage } from "../../../pages/drawingResponsePage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ describe('Edit item - Drawing response', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Edit Drawing response Question', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
15
+ cy.barsPreLoaderWait();
16
+ drawingResponsePage.steps.addQuestionInstructions();
17
+ drawingResponsePage.steps.allotPoints(20);
18
+ drawingResponsePage.steps.saveAQuestionAndVerifySnackbar();
19
+ });
20
+
21
+ it('User should be able to edit question instruction and save the question', () => {
22
+ drawingResponsePage.steps.editItem();
23
+ drawingResponsePage.steps.clearQuestionInstructionsInputField();
24
+ drawingResponsePage.steps.addTextInQuestionInstructionsInputField('Drawing response question instruction Updated');
25
+ drawingResponsePage.steps.saveAQuestionAndVerifySnackbar();
26
+ drawingResponsePage.steps.verifyQuestionInstructionsTextPreviewTab('Drawing response question instruction Updated');
27
+ });
28
+
29
+ it('User should be able to change scoring type to manually and save the question', () => {
30
+ drawingResponsePage.steps.editItem();
31
+ drawingResponsePage.steps.expandScoringTypeDropdown();
32
+ drawingResponsePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
33
+ drawingResponsePage.steps.allotPoints(30);
34
+ drawingResponsePage.steps.saveAQuestionAndVerifySnackbar();
35
+ drawingResponsePage.steps.verifyPointInQuestionPreview(30);
36
+ });
37
+
38
+ it('User should be able to change scoring type to non scored and save the question', () => {
39
+ drawingResponsePage.steps.editItem();
40
+ drawingResponsePage.steps.expandScoringTypeDropdown();
41
+ drawingResponsePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
42
+ drawingResponsePage.steps.saveAQuestionAndVerifySnackbar();
43
+ drawingResponsePage.steps.verifyPointInQuestionPreview(0);
44
+ });
45
+ });
46
+ });
@@ -466,7 +466,6 @@ describe('Create question page - Essay Response: Create custom category', () =>
466
466
  equationEditorFlyout.steps.clickOnEquationEditorButtonNext();
467
467
  equationEditorFlyout.steps.verifyCategoryInEquationEditorPreviewTab('Edited category name', '@');
468
468
  equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Edited category name');
469
- //Failing due to https://redmine.zeuslearning.com/issues/526950
470
469
  equationEditorFlyout.steps.verifyCharactersDisplayedInEquationEditorCategoryPreviewTab(symbolsArray);
471
470
  });
472
471
  });
@@ -0,0 +1,46 @@
1
+ import { essayResponsePage } from "../../../pages/essayResponsePage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ const css = Cypress.env('css');
6
+
7
+ describe('Edit item - Essay Response', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Edit Essay Response Question', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ essayResponsePage.steps.navigateToCreateQuestion('essay response');
16
+ cy.barsPreLoaderWait();
17
+ essayResponsePage.steps.addQuestionInstructions();
18
+ essayResponsePage.steps.saveAQuestionAndVerifySnackbar();
19
+ });
20
+
21
+ it('User should be able to edit question instruction and save the question', () => {
22
+ essayResponsePage.steps.editItem();
23
+ essayResponsePage.steps.clearQuestionInstructionsInputField();
24
+ essayResponsePage.steps.addTextInQuestionInstructionsInputField('Essay Response question instruction Updated');
25
+ essayResponsePage.steps.saveAQuestionAndVerifySnackbar();
26
+ essayResponsePage.steps.verifyQuestionInstructionsTextPreviewTab('Essay Response question instruction Updated');
27
+ });
28
+
29
+
30
+ it('User should be able to change scoring type to manually and save the question', () => {
31
+ essayResponsePage.steps.editItem();
32
+ essayResponsePage.steps.expandScoringTypeDropdown();
33
+ essayResponsePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
34
+ essayResponsePage.steps.allotPoints(30);
35
+ essayResponsePage.steps.saveAQuestionAndVerifySnackbar();
36
+ essayResponsePage.steps.verifyPointInQuestionPreview(30);
37
+ });
38
+
39
+ it('User should be able to change scoring type to non scored and save the question', () => {
40
+ essayResponsePage.steps.editItem();
41
+ essayResponsePage.steps.expandScoringTypeDropdown();
42
+ essayResponsePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
43
+ essayResponsePage.steps.saveAQuestionAndVerifySnackbar();
44
+ });
45
+ });
46
+ });
@@ -0,0 +1,46 @@
1
+ import { essayResponseBasicPage } from "../../../pages/essayResponseBasicPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ const css = Cypress.env('css');
6
+
7
+ describe('Edit item - Essay response - Basic', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Edit Essay response - Basic Question', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ essayResponseBasicPage.steps.navigateToCreateQuestion('essay response - basic');
16
+ cy.barsPreLoaderWait();
17
+ essayResponseBasicPage.steps.addQuestionInstructions();
18
+ essayResponseBasicPage.steps.saveAQuestionAndVerifySnackbar();
19
+ });
20
+
21
+ it('User should be able to edit question instruction and save the question', () => {
22
+ essayResponseBasicPage.steps.editItem();
23
+ essayResponseBasicPage.steps.clearQuestionInstructionsInputField();
24
+ essayResponseBasicPage.steps.addTextInQuestionInstructionsInputField('Essay response - Basic question instruction Updated');
25
+ essayResponseBasicPage.steps.saveAQuestionAndVerifySnackbar();
26
+ essayResponseBasicPage.steps.verifyQuestionInstructionsTextPreviewTab('Essay response - Basic question instruction Updated');
27
+ });
28
+
29
+
30
+ it('User should be able to change scoring type to manually and save the question', () => {
31
+ essayResponseBasicPage.steps.editItem();
32
+ essayResponseBasicPage.steps.expandScoringTypeDropdown();
33
+ essayResponseBasicPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
34
+ essayResponseBasicPage.steps.allotPoints(30);
35
+ essayResponseBasicPage.steps.saveAQuestionAndVerifySnackbar();
36
+ essayResponseBasicPage.steps.verifyPointInQuestionPreview(30);
37
+ });
38
+
39
+ it('User should be able to change scoring type to non scored and save the question', () => {
40
+ essayResponseBasicPage.steps.editItem();
41
+ essayResponseBasicPage.steps.expandScoringTypeDropdown();
42
+ essayResponseBasicPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
43
+ essayResponseBasicPage.steps.saveAQuestionAndVerifySnackbar();
44
+ });
45
+ });
46
+ });
@@ -0,0 +1,46 @@
1
+ import { essayResponseMathPage } from "../../../pages/essayResponseMathPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ const css = Cypress.env('css');
6
+
7
+ describe('Edit item - Essay response math', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Edit Essay response math Question', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ essayResponseMathPage.steps.navigateToCreateQuestion('essay response - basic');
16
+ cy.barsPreLoaderWait();
17
+ essayResponseMathPage.steps.addQuestionInstructions();
18
+ essayResponseMathPage.steps.saveAQuestionAndVerifySnackbar();
19
+ });
20
+
21
+ it('User should be able to edit question instruction and save the question', () => {
22
+ essayResponseMathPage.steps.editItem();
23
+ essayResponseMathPage.steps.clearQuestionInstructionsInputField();
24
+ essayResponseMathPage.steps.addTextInQuestionInstructionsInputField('Essay response math question instruction Updated');
25
+ essayResponseMathPage.steps.saveAQuestionAndVerifySnackbar();
26
+ essayResponseMathPage.steps.verifyQuestionInstructionsTextPreviewTab('Essay response math question instruction Updated');
27
+ });
28
+
29
+
30
+ it('User should be able to change scoring type to manually and save the question', () => {
31
+ essayResponseMathPage.steps.editItem();
32
+ essayResponseMathPage.steps.expandScoringTypeDropdown();
33
+ essayResponseMathPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
34
+ essayResponseMathPage.steps.allotPoints(30);
35
+ essayResponseMathPage.steps.saveAQuestionAndVerifySnackbar();
36
+ essayResponseMathPage.steps.verifyPointInQuestionPreview(30);
37
+ });
38
+
39
+ it('User should be able to change scoring type to non scored and save the question', () => {
40
+ essayResponseMathPage.steps.editItem();
41
+ essayResponseMathPage.steps.expandScoringTypeDropdown();
42
+ essayResponseMathPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
43
+ essayResponseMathPage.steps.saveAQuestionAndVerifySnackbar();
44
+ });
45
+ });
46
+ });
@@ -0,0 +1,76 @@
1
+ import { fillInTheGapsDragAndDropPage } from "../../../pages/fillInTheGapsDragAndDropPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+ const options = ['Birds', 'Insects'];
6
+
7
+ describe('Edit item - fill in the gaps with drag and drop', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Edit fill in the gaps with drag and drop question', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
16
+ cy.barsPreLoaderWait();
17
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with drag and drop')
18
+ fillInTheGapsDragAndDropPage.steps.allotPoints(20);
19
+ fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(0, 'Animal');
20
+ fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(1, 'Vehicle');
21
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Animal': 1 });
22
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Vehicle': 0 });
23
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
24
+ });
25
+
26
+ it('User should be able to edit question instruction and save the question', () => {
27
+ fillInTheGapsDragAndDropPage.steps.editItem();
28
+ fillInTheGapsDragAndDropPage.steps.clearQuestionInstructionsInputField();
29
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with drag and drop question instruction Updated');
30
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
31
+ fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Fill in the gaps with drag and drop question instruction Updated');
32
+ });
33
+
34
+ it('User should be able to edit options and save the question', () => {
35
+ fillInTheGapsDragAndDropPage.steps.editItem();
36
+ fillInTheGapsDragAndDropPage.steps.clearTextInOptionInputField(0);
37
+ fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(0, 'Birds');
38
+ fillInTheGapsDragAndDropPage.steps.clearTextInOptionInputField(1);
39
+ fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(1, 'Insects');
40
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
41
+ fillInTheGapsDragAndDropPage.steps.verifyOptionFieldTextInOptionsSection(options);
42
+ });
43
+
44
+ it('User should be able to edit correct answer and save the question', () => {
45
+ fillInTheGapsDragAndDropPage.steps.editItem();
46
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Birds');
47
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Insects');
48
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Insects': 0 });
49
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Birds': 1 });
50
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
51
+ });
52
+
53
+ it('User should be able to edit points and save the question', () => {
54
+ fillInTheGapsDragAndDropPage.steps.editItem();
55
+ fillInTheGapsDragAndDropPage.steps.allotPoints(30);
56
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
57
+ fillInTheGapsDragAndDropPage.steps.verifyPointInQuestionPreview(30);
58
+ });
59
+
60
+ it('User should be able to change scoring type to manually and save the question', () => {
61
+ fillInTheGapsDragAndDropPage.steps.editItem();
62
+ fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
63
+ fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
64
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
65
+ });
66
+
67
+ it('User should be able to change scoring type to non scored and save the question', () => {
68
+ fillInTheGapsDragAndDropPage.steps.editItem();
69
+ fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
70
+ fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
71
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Insects': 0 });
72
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Birds': 1 });
73
+ fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
74
+ });
75
+ });
76
+ });
@@ -113,9 +113,9 @@ describe('Preview tab contents for all views', () => {
113
113
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '3\nPetals');
114
114
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
115
115
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '1\nThis is a bold option');
116
- fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
116
+ // fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
117
117
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
118
- fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
118
+ // fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
119
119
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
120
120
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
121
121
  utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.optionContainerOptionsPreviewTab(), 'notExist');
@@ -0,0 +1,68 @@
1
+ import { fillInTheGapsDropdownPage } from "../../../pages/fillInTheGapsDropdownPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ const optionsForDropdown1 = ['Flower', 'Petal', 'Stem', 'Branch'];
7
+ const optionsForDropdown2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
8
+ const correctAnswerArray = ['Flower', 'Leaf'];
9
+ const correctAnswerArray1 = ['Leaves', 'Petal'];
10
+
11
+ describe('Edit item - fill in the gaps with dropdown', () => {
12
+ before(() => {
13
+ cy.loginAs('admin');
14
+ });
15
+
16
+ describe('Edit fill in the gaps with dropdown question', () => {
17
+ abortEarlySetup();
18
+ before(() => {
19
+ fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
20
+ cy.barsPreLoaderWait();
21
+ fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with dropdown')
22
+ fillInTheGapsDropdownPage.steps.allotPoints(20);
23
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
24
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
25
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
26
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
27
+ fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
28
+ });
29
+
30
+ it('User should be able to edit question instruction and save the question', () => {
31
+ fillInTheGapsDropdownPage.steps.editItem();
32
+ fillInTheGapsDropdownPage.steps.clearQuestionInstructionsInputField();
33
+ fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with dropdown question instruction Updated');
34
+ fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
35
+ fillInTheGapsDropdownPage.steps.verifyQuestionInstructionsTextPreviewTab('Fill in the gaps with dropdown question instruction Updated');
36
+ });
37
+
38
+ it('User should be able to edit correct answer and save the question', () => {
39
+ fillInTheGapsDropdownPage.steps.editItem();
40
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray1[1]);
41
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray1[0]);;
42
+ fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
43
+ });
44
+
45
+ it('User should be able to edit points and save the question', () => {
46
+ fillInTheGapsDropdownPage.steps.editItem();
47
+ fillInTheGapsDropdownPage.steps.allotPoints(30);
48
+ fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
49
+ fillInTheGapsDropdownPage.steps.verifyPointInQuestionPreview(30);
50
+ });
51
+
52
+ it('User should be able to change scoring type to manually and save the question', () => {
53
+ fillInTheGapsDropdownPage.steps.editItem();
54
+ fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
55
+ fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
56
+ fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
57
+ });
58
+
59
+ it('User should be able to change scoring type to non scored and save the question', () => {
60
+ fillInTheGapsDropdownPage.steps.editItem();
61
+ fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
62
+ fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
63
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
64
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
65
+ fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
66
+ });
67
+ });
68
+ });
@@ -0,0 +1,78 @@
1
+ import { fillInTheGapsOverImageDragAndDropPage } from "../../../pages/fillInTheGapsOverImageDragAndDropPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+ const options = ['Birds', 'Insects'];
6
+
7
+ describe('Edit item - fill in the gaps over image with drag and drop', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Edit fill in the gaps over image with drag and drop question', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
16
+ cy.barsPreLoaderWait();
17
+ fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('fill in the gaps over image with drag and drop')
18
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(20);
19
+ fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
20
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
21
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
22
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
23
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, 'Animal');
24
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, 'Vehicle');
25
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Animal': 1 });
26
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Vehicle': 0 });
27
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
28
+ });
29
+
30
+ it('User should be able to edit question instruction and save the question', () => {
31
+ fillInTheGapsOverImageDragAndDropPage.steps.editItem();
32
+ fillInTheGapsOverImageDragAndDropPage.steps.clearQuestionInstructionsInputField();
33
+ fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop question instruction Updated');
34
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
35
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Fill in the gaps over image with drag and drop question instruction Updated');
36
+ });
37
+
38
+ it('User should be able to edit options and save the question', () => {
39
+ fillInTheGapsOverImageDragAndDropPage.steps.editItem();
40
+ fillInTheGapsOverImageDragAndDropPage.steps.clearTextInOptionInputField(0);
41
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, 'Birds');
42
+ fillInTheGapsOverImageDragAndDropPage.steps.clearTextInOptionInputField(1);
43
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, 'Insects');
44
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
45
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionFieldTextInOptionsSection(options);
46
+ });
47
+
48
+ it('User should be able to edit correct answer and save the question', () => {
49
+ fillInTheGapsOverImageDragAndDropPage.steps.editItem();
50
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Birds');
51
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Insects');
52
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Insects': 0 });
53
+ fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Birds': 1 });
54
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
55
+ });
56
+
57
+ it('User should be able to edit points and save the question', () => {
58
+ fillInTheGapsOverImageDragAndDropPage.steps.editItem();
59
+ fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(30);
60
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
61
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyPointInQuestionPreview(30);
62
+ });
63
+
64
+ it('User should be able to change scoring type to manually and save the question', () => {
65
+ fillInTheGapsOverImageDragAndDropPage.steps.editItem();
66
+ fillInTheGapsOverImageDragAndDropPage.steps.expandScoringTypeDropdown();
67
+ fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
68
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
69
+ });
70
+
71
+ it('User should be able to change scoring type to non scored and save the question', () => {
72
+ fillInTheGapsOverImageDragAndDropPage.steps.editItem();
73
+ fillInTheGapsOverImageDragAndDropPage.steps.expandScoringTypeDropdown();
74
+ fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
75
+ fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
76
+ });
77
+ });
78
+ });
@@ -53,10 +53,14 @@ describe('Preview tab contents for all views', () => {
53
53
  fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
54
54
  break;
55
55
  case 'Student view':
56
+ cy.wait(5000);
56
57
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
58
+ cy.wait(5000);
57
59
  break;
58
60
  case 'Grading view':
61
+ cy.wait(5000);
59
62
  cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
63
+ cy.wait(5000);
60
64
  break;
61
65
  case 'Correct answer view':
62
66
  cy.wait(5000);
@@ -0,0 +1,72 @@
1
+ import { fillInTheGapsOverImageDropdownPage } from "../../../pages/fillInTheGapsOverImageDropdownPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ const optionsForDropdown1 = ['Flower', 'Petal', 'Stem', 'Branch'];
7
+ const optionsForDropdown2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
8
+ const correctAnswerArray = ['Flower', 'Leaf'];
9
+ const correctAnswerArray1 = ['Leaves', 'Petal'];
10
+
11
+ describe('Edit item - ', () => {
12
+ before(() => {
13
+ cy.loginAs('admin');
14
+ });
15
+
16
+ describe('Edit fill in the gaps over image with dropdown question', () => {
17
+ abortEarlySetup();
18
+ before(() => {
19
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
20
+ cy.barsPreLoaderWait();
21
+ fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with dropdown');
22
+ fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
23
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
24
+ fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
25
+ fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
26
+ fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
27
+ fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
28
+ fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
29
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
30
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
31
+ fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
32
+ });
33
+
34
+ it('User should be able to edit question instruction and save the question', () => {
35
+ fillInTheGapsOverImageDropdownPage.steps.editItem();
36
+ fillInTheGapsOverImageDropdownPage.steps.clearQuestionInstructionsInputField();
37
+ fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with dropdown question instruction Updated');
38
+ fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
39
+ fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsTextPreviewTab('Fill in the gaps over image with dropdown question instruction Updated');
40
+ });
41
+
42
+ it('User should be able to edit correct answer and save the question', () => {
43
+ fillInTheGapsOverImageDropdownPage.steps.editItem();
44
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray1[1]);
45
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray1[0]);;
46
+ fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
47
+ });
48
+
49
+ it('User should be able to edit points and save the question', () => {
50
+ fillInTheGapsOverImageDropdownPage.steps.editItem();
51
+ fillInTheGapsOverImageDropdownPage.steps.allotPoints(30);
52
+ fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
53
+ fillInTheGapsOverImageDropdownPage.steps.verifyPointInQuestionPreview(30);
54
+ });
55
+
56
+ it('User should be able to change scoring type to manually and save the question', () => {
57
+ fillInTheGapsOverImageDropdownPage.steps.editItem();
58
+ fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
59
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
60
+ fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
61
+ });
62
+
63
+ it('User should be able to change scoring type to non scored and save the question', () => {
64
+ fillInTheGapsOverImageDropdownPage.steps.editItem();
65
+ fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
66
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
67
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
68
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
69
+ fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
70
+ });
71
+ });
72
+ });