itemengine-cypress-automation 1.0.171-uploadResponseMigration-45e0037.0 → 1.0.172-uploadResponseMigration-88018d1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -569,18 +569,22 @@ 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
|
+
// Replace "MP4" with "Video" in the supported formats array
|
574
|
+
supportedFormatsArray = supportedFormatsArray.map(format => format === 'MP4' ? 'Video' : format);
|
573
575
|
expect(supportedFormatsArray).to.have.lengthOf(expectedQuestionData.supportedFormatsArray.length);
|
574
576
|
cy.wrap(supportedFormatsArray).each((element) => {
|
575
577
|
expect(expectedQuestionData.supportedFormatsArray).to.include(element);
|
576
578
|
});
|
577
579
|
});
|
580
|
+
|
578
581
|
uploadResponsePage.uploadedFileCount()
|
579
582
|
.then(($element) => {
|
580
583
|
let fileLimit = $element[0].innerText;
|
581
584
|
let normalizedFileUploadLimitText = fileLimit.trim().replace(/\s+/g, '');
|
582
585
|
expect(normalizedFileUploadLimitText).to.be.eq(expectedQuestionData.fileLimit);
|
583
586
|
});
|
587
|
+
|
584
588
|
if (expectedQuestionData.captureImage) {
|
585
589
|
uploadResponsePage.fileUploadOptionsLabel()
|
586
590
|
.within(() => {
|