itemengine-cypress-automation 1.0.173-uploadResponseMigration-c1e2b7c.0 → 1.0.174-uploadResponseMigrationScript-45ca862.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -560,6 +560,7 @@ export const extractLrnQuestionData = {
|
|
560
560
|
cy.log(`Extracting the question instructions and answer input field attributes from question ${index}`);
|
561
561
|
obj.questionIndex = index;
|
562
562
|
obj.questionType = 'shortTextResponse'
|
563
|
+
lrnPage.steps.extractQuestionInstructions(obj, index);
|
563
564
|
lrnPage.questionWrapper()
|
564
565
|
.eq(index)
|
565
566
|
.within(() => {
|
@@ -576,7 +577,7 @@ export const extractLrnQuestionData = {
|
|
576
577
|
obj.specialCharactersEnabled = true;
|
577
578
|
}
|
578
579
|
});
|
579
|
-
})
|
580
|
+
})
|
580
581
|
lrnQuestionDataArr.push(obj);
|
581
582
|
},
|
582
583
|
|
@@ -27,7 +27,6 @@ export const iePage = {
|
|
27
27
|
shortTextResponseCorrectAnswerText: () => cy.get('[class*="CorrectAnswerValueWrapper"]'),
|
28
28
|
specialCharactersButtonPreviewTab: () => cy.get('.custon-special-character-button'),
|
29
29
|
uploadResponseCaptureImage: () => cy.get('[aria-label="capture an image"]'),
|
30
|
-
|
31
30
|
steps: {
|
32
31
|
verifyQuestionInstructions: (expectedQuestionData) => {
|
33
32
|
if (expectedQuestionData.previewQuestionInstructions) {
|
@@ -557,7 +556,7 @@ export const verifyIeQuestionData = {
|
|
557
556
|
});
|
558
557
|
} else {
|
559
558
|
utilities.verifyElementVisibilityState(iePage.shortTextResponseCorrectAnswerText(), 'notExist');
|
560
|
-
}
|
559
|
+
}
|
561
560
|
});
|
562
561
|
},
|
563
562
|
|