itemengine-cypress-automation 1.0.247 → 1.0.248

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.
Files changed (23) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -5
  4. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +8 -0
  5. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +2 -0
  6. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -1
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -2
  8. package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationDropDown.js +166 -0
  9. package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSameList.js +1 -0
  10. package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSeperateList.js +344 -0
  11. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -2
  12. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +121 -0
  13. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +6 -3
  14. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  15. package/cypress/pages/components/imageCanvasComponent.js +2 -3
  16. package/cypress/pages/components/listOrderingCommonStyleAndLayoutComponent.js +287 -53
  17. package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -1
  18. package/cypress/pages/listOrderingPage.js +1 -1
  19. package/cypress/pages/matchingPage.js +1 -1
  20. package/cypress/pages/uploadResponsePage.js +49 -4
  21. package/deploy/e2e/deploy.yaml +2 -2
  22. package/deploy/smoke/deploy.yaml +2 -2
  23. package/package.json +1 -1
@@ -87,7 +87,16 @@ const selectors = {
87
87
  acceptButton: () => cy.get('.popup-button-wrapper button').eq(1),
88
88
  cancelButton: () => cy.get('.popup-button-wrapper button').eq(0),
89
89
  questionWrapperPreviewTab: () => cy.get('[class*="UploadQuestionPreviewstyle__UploadQuestionPreviewWrapper"]'),
90
- maximumFileSize: () => cy.get('[class*="UploadQuestionPreviewstyle__MaxFileLimitDesc"]')
90
+ maximumFileSize: () => cy.get('[class*="UploadQuestionPreviewstyle__MaxFileLimitDesc"]'),
91
+ unSupportedFileInfoIcon: () => cy.get('[class*="UploadedDocumentsstyle__UnSupportedFileIcon"]'),
92
+ //Thumb nail
93
+ imageThumbNail: () => cy.get('[class*="UploadedDocumentsstyle__ImageContainer"]'),
94
+ imageThumbNailButton: () => cy.get('[class*="UploadedDocumentsstyle__ImageContainerButton"]'),
95
+ popUpWrapper: () => cy.get('[class*="UploadedDocumentsstyle__ImagePopupDiv"]'),
96
+ imageDisplayedInsidePopUp: () => cy.get('.image-upload-popup-wrapper'),
97
+ downloadIconOfPopUp: () => cy.get('.download-icon'),
98
+ downloadTextOfPopUp: () => cy.get('[class*="UploadedDocumentsstyle__DownloadTextWrapper"]'),
99
+ closePopUpButton: () => cy.get('.close-popup-btn'),
91
100
  }
92
101
 
93
102
  const steps = {
@@ -130,6 +139,22 @@ const steps = {
130
139
  .click();
131
140
  },
132
141
 
142
+ clickOnImageThumbNail: () => {
143
+ uploadResponsePage.imageThumbNailButton()
144
+ .click();
145
+ },
146
+
147
+ closeImagePopup: () => {
148
+ uploadResponsePage.closePopUpButton()
149
+ .click();
150
+ },
151
+
152
+ clickOnFileName: () => {
153
+ uploadResponsePage.fileName()
154
+ .click();
155
+ },
156
+
157
+
133
158
  /**
134
159
  * @description Function uploads files
135
160
  * @param {string[]} filesToUploadArray An array containing the file names to be uploaded.
@@ -146,8 +171,6 @@ const steps = {
146
171
  cy.wait(10000);
147
172
  uploadResponsePage.virusErrorMessageWrapper()
148
173
  .should('not.be.visible', { delay: 500 });
149
- uploadResponsePage.uploadedFileLink()
150
- .should('have.attr', 'alt', files[index]);
151
174
  return uploadSequentially(files, index + 1);
152
175
  });
153
176
  }
@@ -214,6 +237,28 @@ const steps = {
214
237
  });
215
238
  },
216
239
 
240
+ /**
241
+ * Verifies the pop up details and visiblity when user clicks on thumb nail or on image name
242
+ */
243
+ verifyImagePopUpDetail: () => {
244
+ utilities.verifyElementVisibilityState(uploadResponsePage.popUpWrapper(), 'visible');
245
+ utilities.verifyElementVisibilityState(uploadResponsePage.imageDisplayedInsidePopUp(), 'visible');
246
+ utilities.verifyElementVisibilityState(uploadResponsePage.downloadIconOfPopUp(), 'visible');
247
+ utilities.verifyElementVisibilityState(uploadResponsePage.downloadTextOfPopUp(), 'visible');
248
+ utilities.verifyInnerText(uploadResponsePage.downloadTextOfPopUp(), 'Download');
249
+ utilities.verifyElementVisibilityState(uploadResponsePage.closePopUpButton(), 'visible');
250
+ utilities.verifyInnerText(uploadResponsePage.closePopUpButton(), 'Close');
251
+ },
252
+
253
+ /**
254
+ * Verifies the thumbnail is present for given file type
255
+ */
256
+ verifyThumbNailExistOrNotExist: (filename, thumbnail) => {
257
+ uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, filename);
258
+ uploadResponsePage.steps.verifyUploadedFileLimitCount(1, 1);
259
+ utilities.verifyElementVisibilityState(uploadResponsePage.imageThumbNail(), thumbnail);
260
+ },
261
+
217
262
  uploadedFileContentsNotExistPreviewTab: () => {
218
263
  utilities.verifyElementVisibilityState(uploadResponsePage.uploadedFileWrapper(), 'notExist');
219
264
  },
@@ -471,7 +516,7 @@ const steps = {
471
516
  uploadFile: (file) => {
472
517
  uploadResponsePage.inputTypeFile()
473
518
  .attachFile(file);
474
- cy.wait(2000);
519
+ cy.wait(4000);
475
520
  },
476
521
 
477
522
  verifyDefaultSelectedFileTypes: () => {
@@ -10,8 +10,8 @@ deployment:
10
10
  job:
11
11
  backoffLimit: 100
12
12
  activeDeadlineSeconds: 10800
13
- parallelism: 10
14
- completions: 10
13
+ parallelism: 12
14
+ completions: 12
15
15
 
16
16
  image:
17
17
  cmd: /ie-e2e/deploy/e2e/run.sh
@@ -10,8 +10,8 @@ deployment:
10
10
  job:
11
11
  backoffLimit: 25
12
12
  activeDeadlineSeconds: 7200
13
- parallelism: 3
14
- completions: 3
13
+ parallelism: 5
14
+ completions: 5
15
15
 
16
16
  image:
17
17
  cmd: /ie-e2e/deploy/smoke/run.sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.247",
3
+ "version": "1.0.248",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {