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.
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +210 -0
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +91 -0
- package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +392 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +152 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +196 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +195 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +288 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +141 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +413 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +218 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +163 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +83 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +653 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +180 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabScoringSection.js +229 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +90 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/switchingCasesBetweenOptionsLayout.js +50 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +204 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +204 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +298 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingPenaltyScoring.js +63 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +111 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +231 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsBasic.js +90 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +232 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +231 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsBasic.js +138 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +186 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +214 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +161 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +328 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +144 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabScoringSection.js +250 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +74 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +188 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +1 -52
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +3 -211
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +39 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -50
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/conditionalCheckboxScoring.js +325 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +1 -146
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +78 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +265 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/responseAnswersAndAcceptedStudentInput.js +56 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +40 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +249 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +64 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +128 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +889 -0
- package/cypress/e2e/ILC/Graphing/checkAnswerFunctionalityForAllViews.smoke.js +168 -0
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +203 -0
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +222 -0
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +349 -0
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +132 -0
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +35 -7
- package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +213 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +41 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +377 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +161 -0
- package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +250 -0
- package/cypress/e2e/migration/migration.js +4 -41
- package/cypress/e2e/migration/migration10.js +6 -43
- package/cypress/e2e/migration/migration2.js +6 -43
- package/cypress/e2e/migration/migration3.js +6 -43
- package/cypress/e2e/migration/migration4.js +6 -43
- package/cypress/e2e/migration/migration5.js +6 -43
- package/cypress/e2e/migration/migration6.js +6 -43
- package/cypress/e2e/migration/migration7.js +6 -43
- package/cypress/e2e/migration/migration8.js +6 -43
- package/cypress/e2e/migration/migration9.js +6 -43
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/fixtures/theme/ilc.json +6 -1
- package/cypress/fixtures/uploadResponseFileType.js +5 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +13 -13
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +24 -6
- package/cypress/pages/components/draggableOptionContainer.js +1 -0
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +42 -4
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +149 -5
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +954 -77
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +2 -1
- package/cypress/pages/contentBlocksPage.js +515 -0
- package/cypress/pages/drawingResponsePage.js +2 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +359 -3
- package/cypress/pages/fillInTheGapsDropdownPage.js +21 -1
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +5 -57
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +3 -24
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -435
- package/cypress/pages/fillInTheGapsTextPage.js +9 -2
- package/cypress/pages/graphingPage.js +484 -0
- package/cypress/pages/index.js +4 -1
- package/cypress/pages/simpleCalculatorPage.js +310 -0
- package/cypress/pages/uploadResponsePage.js +260 -92
- package/cypress/support/commands.js +33 -1
- package/package.json +2 -2
- package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +0 -242
- package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +0 -99
- package/cypress/e2e/ILC/Passage/passageEditTab.js +0 -241
- package/cypress/e2e/ILC/Passage/passageHeaderSection.js +0 -73
- 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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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 {
|
5
|
+
import { verifyIeQuestionData } from "../../support/migrationHelpers/verifyIeQuestionData";
|
6
6
|
|
7
|
-
Cypress.
|
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);//["
|
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
|
-
|
131
|
-
|
132
|
-
|
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
|
}
|
package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js
CHANGED
@@ -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
|
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: '
|
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
|
-
|
13
|
-
|
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
|
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
|
159
|
-
helpText = 'You can set the correct answer by selecting the correct
|
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
|
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.
|
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
|
|