itemengine-cypress-automation 1.0.171-uploadResponseMigration-45e0037.0 → 1.0.173-uploadResponseMigration-c1e2b7c.0

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.
@@ -27,6 +27,7 @@ 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
+
30
31
  steps: {
31
32
  verifyQuestionInstructions: (expectedQuestionData) => {
32
33
  if (expectedQuestionData.previewQuestionInstructions) {
@@ -559,7 +560,7 @@ export const verifyIeQuestionData = {
559
560
  };
560
561
  });
561
562
  },
562
-
563
+
563
564
  uploadResponse: (expectedQuestionData, index) => {
564
565
  cy.get('.ngie-upload-response')
565
566
  .eq(index)
@@ -570,17 +571,21 @@ export const verifyIeQuestionData = {
570
571
  .then((ariaLabel) => {
571
572
  let supportedFormatsText = ariaLabel.replace('Supported file formats: ', '').replace(/\.$/, '').trim();
572
573
  let supportedFormatsArray = supportedFormatsText.split(', ');
574
+ // Replace "MP4" with "Video" in the supported formats array
575
+ supportedFormatsArray = supportedFormatsArray.map(format => format === 'MP4' ? 'Video' : format);
573
576
  expect(supportedFormatsArray).to.have.lengthOf(expectedQuestionData.supportedFormatsArray.length);
574
577
  cy.wrap(supportedFormatsArray).each((element) => {
575
578
  expect(expectedQuestionData.supportedFormatsArray).to.include(element);
576
579
  });
577
580
  });
581
+
578
582
  uploadResponsePage.uploadedFileCount()
579
583
  .then(($element) => {
580
584
  let fileLimit = $element[0].innerText;
581
585
  let normalizedFileUploadLimitText = fileLimit.trim().replace(/\s+/g, '');
582
586
  expect(normalizedFileUploadLimitText).to.be.eq(expectedQuestionData.fileLimit);
583
587
  });
588
+
584
589
  if (expectedQuestionData.captureImage) {
585
590
  uploadResponsePage.fileUploadOptionsLabel()
586
591
  .within(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.171-uploadResponseMigration-45e0037.0",
3
+ "version": "1.0.173-uploadResponseMigration-c1e2b7c.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {