itemengine-cypress-automation 1.0.172-uploadResponseMigration-88018d1.0 → 1.0.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
|
@@ -556,10 +556,10 @@ export const verifyIeQuestionData = {
|
|
556
556
|
});
|
557
557
|
} else {
|
558
558
|
utilities.verifyElementVisibilityState(iePage.shortTextResponseCorrectAnswerText(), 'notExist');
|
559
|
-
}
|
559
|
+
}
|
560
560
|
});
|
561
561
|
},
|
562
|
-
|
562
|
+
|
563
563
|
uploadResponse: (expectedQuestionData, index) => {
|
564
564
|
cy.get('.ngie-upload-response')
|
565
565
|
.eq(index)
|
@@ -569,7 +569,7 @@ export const verifyIeQuestionData = {
|
|
569
569
|
.invoke('attr', 'aria-label')
|
570
570
|
.then((ariaLabel) => {
|
571
571
|
let supportedFormatsText = ariaLabel.replace('Supported file formats: ', '').replace(/\.$/, '').trim();
|
572
|
-
let supportedFormatsArray = supportedFormatsText.split(', ');
|
572
|
+
let supportedFormatsArray = supportedFormatsText.split(', ');
|
573
573
|
// Replace "MP4" with "Video" in the supported formats array
|
574
574
|
supportedFormatsArray = supportedFormatsArray.map(format => format === 'MP4' ? 'Video' : format);
|
575
575
|
expect(supportedFormatsArray).to.have.lengthOf(expectedQuestionData.supportedFormatsArray.length);
|
@@ -577,14 +577,14 @@ export const verifyIeQuestionData = {
|
|
577
577
|
expect(expectedQuestionData.supportedFormatsArray).to.include(element);
|
578
578
|
});
|
579
579
|
});
|
580
|
-
|
580
|
+
|
581
581
|
uploadResponsePage.uploadedFileCount()
|
582
582
|
.then(($element) => {
|
583
583
|
let fileLimit = $element[0].innerText;
|
584
584
|
let normalizedFileUploadLimitText = fileLimit.trim().replace(/\s+/g, '');
|
585
585
|
expect(normalizedFileUploadLimitText).to.be.eq(expectedQuestionData.fileLimit);
|
586
586
|
});
|
587
|
-
|
587
|
+
|
588
588
|
if (expectedQuestionData.captureImage) {
|
589
589
|
uploadResponsePage.fileUploadOptionsLabel()
|
590
590
|
.within(() => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.173",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|