itemengine-cypress-automation 1.0.128 → 1.0.131-updateILCrepo6March-02c78d1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +210 -0
  2. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +91 -0
  3. package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +392 -0
  4. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -1
  5. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +1 -1
  6. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
  7. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -1
  8. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +1 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +152 -0
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +196 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +195 -0
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +288 -0
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +141 -0
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +245 -0
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +413 -0
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +218 -0
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +245 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +163 -0
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +83 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +653 -0
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +180 -0
  25. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabScoringSection.js +229 -0
  26. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +90 -0
  27. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/switchingCasesBetweenOptionsLayout.js +50 -0
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +204 -0
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +204 -0
  30. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +298 -0
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingPenaltyScoring.js +63 -0
  32. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +111 -0
  33. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +231 -0
  34. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsBasic.js +90 -0
  35. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
  36. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +232 -0
  37. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +231 -0
  38. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsBasic.js +138 -0
  39. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +213 -0
  40. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +186 -0
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +214 -0
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +161 -0
  43. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +328 -0
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +144 -0
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabScoringSection.js +250 -0
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +75 -0
  47. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  48. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +74 -0
  49. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +188 -0
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +8 -8
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +4 -2
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +1 -52
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +3 -211
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +39 -3
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -8
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -50
  59. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/conditionalCheckboxScoring.js +325 -0
  60. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +1 -146
  61. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
  62. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +78 -0
  63. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +265 -0
  64. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +75 -0
  65. package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  66. package/cypress/e2e/ILC/FillInTheGapsTextNew/responseAnswersAndAcceptedStudentInput.js +56 -0
  67. package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +40 -2
  68. package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +249 -0
  69. package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +64 -0
  70. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +128 -0
  71. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +889 -0
  72. package/cypress/e2e/ILC/Graphing/checkAnswerFunctionalityForAllViews.smoke.js +168 -0
  73. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +203 -0
  74. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +222 -0
  75. package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +349 -0
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +132 -0
  77. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +35 -7
  78. package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +213 -0
  79. package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +41 -0
  80. package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +377 -0
  81. package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +161 -0
  82. package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +250 -0
  83. package/cypress/e2e/migration/migration.js +4 -41
  84. package/cypress/e2e/migration/migration10.js +6 -43
  85. package/cypress/e2e/migration/migration2.js +6 -43
  86. package/cypress/e2e/migration/migration3.js +6 -43
  87. package/cypress/e2e/migration/migration4.js +6 -43
  88. package/cypress/e2e/migration/migration5.js +6 -43
  89. package/cypress/e2e/migration/migration6.js +6 -43
  90. package/cypress/e2e/migration/migration7.js +6 -43
  91. package/cypress/e2e/migration/migration8.js +6 -43
  92. package/cypress/e2e/migration/migration9.js +6 -43
  93. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  94. package/cypress/fixtures/theme/ilc.json +6 -1
  95. package/cypress/fixtures/uploadResponseFileType.js +5 -0
  96. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +13 -13
  97. package/cypress/pages/components/customizeSpecialCharacterComponent.js +24 -6
  98. package/cypress/pages/components/draggableOptionContainer.js +1 -0
  99. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +42 -4
  100. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +149 -5
  101. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +954 -77
  102. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  103. package/cypress/pages/components/questionInstructionsComponent.js +2 -1
  104. package/cypress/pages/contentBlocksPage.js +515 -0
  105. package/cypress/pages/drawingResponsePage.js +2 -2
  106. package/cypress/pages/fillInTheGapsDragAndDropPage.js +359 -3
  107. package/cypress/pages/fillInTheGapsDropdownPage.js +21 -1
  108. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +5 -57
  109. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +3 -24
  110. package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -435
  111. package/cypress/pages/fillInTheGapsTextPage.js +9 -2
  112. package/cypress/pages/graphingPage.js +484 -0
  113. package/cypress/pages/index.js +4 -1
  114. package/cypress/pages/simpleCalculatorPage.js +310 -0
  115. package/cypress/pages/uploadResponsePage.js +260 -92
  116. package/cypress/support/commands.js +33 -1
  117. package/package.json +2 -2
  118. package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +0 -242
  119. package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +0 -99
  120. package/cypress/e2e/ILC/Passage/passageEditTab.js +0 -241
  121. package/cypress/e2e/ILC/Passage/passageHeaderSection.js +0 -73
  122. package/cypress/e2e/ILC/Passage/passagePreviewTab.js +0 -246
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(200, 300);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(200, 300);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(300, 400);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(300, 400);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(400, 500);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(400, 500);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(500, 600);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(500, 600);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(600, 700);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(600, 700);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(700, 800);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(700, 800);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -2,39 +2,9 @@ import { autoScoredScoringPreviewTab } from "../../pages/components";
2
2
  import utilities from "../../support/helpers/utilities";
3
3
  import { extractLrnQuestionData, lrnPage } from "../../support/migrationHelpers/extractLrnQuestionData";
4
4
  import lrnQuestionTypesENUM from "../../support/migrationHelpers/lrnQestionTypesENUM";
5
- import { iePage, verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
5
+ import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
6
6
 
7
- Cypress.Commands.add('learnosityLoaderWait', () => {
8
- // cy.get('.lrn-spinner')
9
- // .should('be.visible');
10
- lrnPage.questionsLoader()
11
- .should('not.be.visible');
12
- lrnPage.questionWrapper()
13
- .eq(0)
14
- .should('be.visible');
15
- });
16
-
17
- Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
18
- iePage.questionWrapper()
19
- .then((elements) => {
20
- if (retries <= 0) {
21
- throw new Error('Itemengine questions did not lazy load in time');
22
- };
23
- if (elements.length < count) {
24
- iePage.questionWrapper()
25
- .last()
26
- .scrollIntoView()
27
- .wait(1000);
28
- cy.lazyLoadPreviewQuestions(count, retries - 1)
29
- };
30
- cy.log('All question parts loaded');
31
- });
32
- iePage.barsPreloader()
33
- .should('not.exist');
34
- cy.learnosityLoaderWait();
35
- })
36
-
37
- const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["essayResponse"]
7
+ const migrationQuestionTypes = Cypress.env('migrationQuestionTypes');//["drawingResponse"]
38
8
  const migrationQuestionTypesLrn = migrationQuestionTypes.map((questionType) => lrnQuestionTypesENUM[questionType]);
39
9
  let lrnMcqTypesRegex = /Multiple choice – standard|Multiple choice – multiple response|True or false|Multiple choice – block layout/;
40
10
  let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
@@ -43,7 +13,7 @@ let lrnEssayResponseRegex = /Math essay with rich text|Essay with rich text/
43
13
  let lrnQuestionDataArr = [];
44
14
  let lrnGradingDataArr = [];
45
15
 
46
- let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(800, 900);//["0715a48c-4c1f-4eed-8058-793ad9402f89", "c476e9ca-2ac6-4ebc-b548-241ef3cd13bb"]
16
+ let referenceIds = JSON.parse(Cypress.env('referenceIds')).slice(800, 900);//["85f864fd-8ce9-4d9d-a326-afb13963d6bd", "6ff35364-0fb6-4cc4-b09c-426f6199e3d6", "d5644e39-1f23-4c4d-a6ad-f80fee66cb62"]
47
17
 
48
18
  if (referenceIds.length > 0) {
49
19
  describe('Migration item check for MCQ questions', () => {
@@ -127,16 +97,9 @@ if (referenceIds.length > 0) {
127
97
  currQuestionType = lrnQuestionTypesENUM.mcq
128
98
  }
129
99
  if (migrationQuestionTypesLrn.includes(currQuestionType)) {
130
- switch (currQuestionType) {
131
- case lrnQuestionTypesENUM.mcq: return extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
132
- case lrnQuestionTypesENUM.textEntryMath: return extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
133
- case lrnQuestionTypesENUM.textEntryMathImage: return extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
134
- case lrnQuestionTypesENUM.essayResponse:
135
- case lrnQuestionTypesENUM.essayResponseBasic:
136
- case lrnQuestionTypesENUM.drawingResponse:
137
- return;
138
- default: throw new Error('Invalid lrn question type');
139
- }
100
+ if (currQuestionType === lrnQuestionTypesENUM.mcq) extractLrnQuestionData.mcqGrading(lrnGradingDataArr, index);
101
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMath) extractLrnQuestionData.textEntryMathGrading(lrnGradingDataArr, index);
102
+ else if (currQuestionType === lrnQuestionTypesENUM.textEntryMathImage) extractLrnQuestionData.textEntryMathImageGrading(lrnGradingDataArr, index);
140
103
  }
141
104
  });
142
105
  }
@@ -15,7 +15,7 @@ export const drawingToolbarOptionsAndAdditionalOptions = {
15
15
  {
16
16
  displayName: 'Line',
17
17
  additionalOptions: [' strokefontcolor', ' strokefontcolorpicker'],
18
- secondaryToolbarOptions: ['Stroke color', 'Stroke thickness', 'Line type', 'Opacity'],
18
+ secondaryToolbarOptions: ['Stroke color', 'Stroke thickness', 'Line Type', 'Opacity'],
19
19
  tooltipText: 'LineDraw a straight line',
20
20
  toolType: 'tool'
21
21
  },
@@ -88,7 +88,7 @@ export const drawingToolbarOptionsAndAdditionalOptions = {
88
88
  toolType: 'action'
89
89
  },
90
90
  {
91
- displayName: 'Send to back',
91
+ displayName: 'send to back',
92
92
  tooltipText: 'Bring backwardSend selected item back a layer',
93
93
  toolType: 'action'
94
94
  },
@@ -111,7 +111,12 @@
111
111
  "microphoneIcon": "rgb(59, 126, 255)",
112
112
  "playerButtonBorder": "rgb(107, 139, 255)",
113
113
  "toggleButtonSelectedBg": "rgb(81, 0, 255)",
114
- "UnselectedToggleButton": "rgb(68, 68, 97)"
114
+ "UnselectedToggleButton": "rgb(68, 68, 97)",
115
+ "darkThemeBg": "rgb(0, 0, 97)",
116
+ "darkThemeBtnBg": "rgb(28, 28, 155)",
117
+ "darkThemeBtnBorder": "rgb(117, 51, 255)",
118
+ "lightThemeBtnBg": "rgb(82, 0, 255)",
119
+ "lightThemeBtnBorder": "rgb(94, 110, 255)"
115
120
  },
116
121
  "fontSize": {
117
122
  "extraSmall": "10px",
@@ -0,0 +1,5 @@
1
+ export const supportedFileType = {
2
+ fileTypeCategoryLabels: ['Document', 'Engineering and programming', 'Image', 'Video/Audio', 'Presentation', 'Miscellaneous'],
3
+ fileTypeList: ['Word', 'RTF', 'PUB', 'PDF', 'OOo', 'XLS', 'CSV', 'TXT', 'vlg', 'V', 'qsf', 'MATLab', 'LabVIEW', 'C++', 'C', 'asm', 'S', 'H', 'JSON', 'XML', 'PNG', 'JPG', 'GIF', 'HEIF', 'HEIC', 'MP4', 'HEVC', 'MP3', 'PPT', 'ZIP', 'XPS'],
4
+ defaultSelectedFileTypeList: ['Word', 'RTF', 'PUB', 'PDF', 'OOo', 'XLS', 'CSV', 'TXT', 'PNG', 'JPG', 'GIF', 'PPT', 'ZIP', 'XPS']
5
+ }
@@ -9,9 +9,8 @@ const selectors = {
9
9
  specifyCorrectAnswerHelpText: () => cy.get('.edit-set-correct-answer-help-text'),
10
10
  specifyCorrectAnswerSectionWrapper: () => cy.get('.edit-question-auto-scored-set-correct-answer-wrapper'),
11
11
  alternativeAnswerButton: () => cy.get('[class*="AlternateAnswer"] button'),
12
- //TODO: Need to update the selector of correct answer accordion once a unique selector is made available
13
- correctAnswerAccordion: () => cy.get('.correct-answer-accordion [role="button"]').eq(0),
14
- alternativeAnswerAccordion: () => cy.get('.correct-answer-accordion .ngie-accordion-summary'),
12
+ correctAnswerAccordion: () => cy.get('[data-ngie-testid="correct-answer-accordion"]'),
13
+ alternativeAnswerAccordion: () => cy.get('[data-ngie-testid*="alternate"][data-ngie-testid*="accordion"]'),
15
14
  //TODO: Need to update the selector of correct answer accordion once a unique selector is made available
16
15
  correctAnswerAccordionLabel: () => cy.get('[class*="AnswerAccordionstyles__Label"]').eq(0),
17
16
  alternativeAnswerAccordionLabel: () => cy.get('[class*="AnswerAccordionstyles__Label"]'),
@@ -56,6 +55,11 @@ const steps = {
56
55
  .should('have.attr', 'aria-expanded', 'false');
57
56
  },
58
57
 
58
+ verifyCorrectAnswerAccordionIsExpanded: () => {
59
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
60
+ .should('have.attr', 'aria-expanded', 'true');
61
+ },
62
+
59
63
  /**
60
64
  * @description Verify that the alternative answer accordion is expanded
61
65
  * @param {number} accordionIndex - The index of the alternative answer accordion
@@ -149,17 +153,17 @@ const tests = {
149
153
  case 'single selection':
150
154
  helpText = 'You can set the correct answer by selecting the correct answer option.';
151
155
  break;
152
- case 'fill in the gaps - text':
156
+ case 'fill in the gaps with text':
153
157
  helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s).';
154
158
  break;
155
159
  case 'short text response':
156
160
  helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s).';
157
161
  break;
158
- case 'fill in the gaps - dropdown':
159
- helpText = 'You can set the correct answer by selecting the correct answer(s) in the response area(s).';
162
+ case 'fill in the gaps with dropdown':
163
+ helpText = 'You can set the correct answer by selecting the correct option.';
160
164
  break;
161
165
  case 'fill in the gaps - drag and drop':
162
- helpText = 'You can set the correct answer by dragging the correct answer(s) in the response area(s).';
166
+ helpText = 'You can set the correct answer by dragging the correct answer(s) in the dropzone(s).';
163
167
  break;
164
168
  case 'single selection grid':
165
169
  helpText = 'You can set the correct answer(s) by selecting the correct answer option(s).';
@@ -302,7 +306,7 @@ const tests = {
302
306
  utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), {
303
307
  'color': css.color.activeButtons,
304
308
  'font-size': css.fontSize.default,
305
- 'font-weight': css.fontWeight.medium
309
+ 'font-weight': css.fontWeight.regular
306
310
  });
307
311
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
308
312
  .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
@@ -348,13 +352,9 @@ const tests = {
348
352
  if (questionType != 'list ordering' && questionType != 'short text response' && questionType != 'text entry math') {
349
353
  steps.verifySpecifyCorrectAnswerErrorMessage();
350
354
  }
351
- else if (questionType === 'short text response') {
355
+ else if (questionType === 'short text response' || questionType === 'fill in the gaps with text' || questionType === 'fill in the gaps over image text' || questionType === 'text entry math') {
352
356
  utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), -1), 'Error: Answer is required.');
353
357
  }
354
- else if (questionType === 'fill in the gaps over image text' || questionType === 'text entry math') {
355
- utilities.verifyInnerText(commonComponents.errorMessage().last(), 'Error: Please enter points.');
356
- utilities.verifyElementVisibilityState(commonComponents.errorMessage().last(), 'visible');
357
- }
358
358
  });
359
359
  },
360
360