itemengine-cypress-automation 1.0.248-23rdSeptUpdates-8103a8f.0 → 1.0.248
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +8 -0
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -2
- package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationDropDown.js +166 -0
- package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSameList.js +1 -0
- package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSeperateList.js +344 -0
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -2
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +121 -0
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +6 -3
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/pages/components/imageCanvasComponent.js +2 -3
- package/cypress/pages/components/listOrderingCommonStyleAndLayoutComponent.js +287 -53
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -1
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/uploadResponsePage.js +49 -4
- package/deploy/e2e/deploy.yaml +2 -2
- package/deploy/smoke/deploy.yaml +2 -2
- 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(
|
519
|
+
cy.wait(4000);
|
475
520
|
},
|
476
521
|
|
477
522
|
verifyDefaultSelectedFileTypes: () => {
|
package/deploy/e2e/deploy.yaml
CHANGED
package/deploy/smoke/deploy.yaml
CHANGED