itemengine-cypress-automation 1.0.72 → 1.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponse/{audioResponseMinimalPreviewSection.js → audioResponseMinimalPreviewSection.smoke.js} +263 -254
- package/cypress/e2e/ILC/AudioResponse/{audioResponseStandardPreviewSection.js → audioResponseStandardPreviewSection.smoke.js} +100 -97
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.smoke.js +121 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachCell.js → groupedOptionsPartialScoreForEachCell.smoke.js} +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachResponse.js → groupedOptionsPartialScoreForEachResponse.smoke.js} +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.smoke.js +164 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{standardTotalScoreDividedBetweenResponse.js → standardTotalScoreDividedBetweenResponse.smoke.js} +21 -18
- package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +753 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.smoke.js +943 -0
- package/cypress/e2e/ILC/EssayResponse/{essayResponseCustomizeFormattingOptions1.js → essayResponseCustomizeFormattingOptions1.smoke.js} +113 -110
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +581 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.smoke.js +111 -0
- package/cypress/e2e/ILC/EssayResponse/{essayResponsePreviewContentsForAllViews.js → essayResponsePreviewContentsForAllViews.smoke.js} +6 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.smoke.js +81 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/{fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js → fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.smoke.js} +25 -22
- package/cypress/e2e/ILC/FillInTheGapsDropdown/{fillInTheGapsDropdownAllOrNothingScoring.js → fillInTheGapsDropdownAllOrNothingScoring.smoke.js} +16 -14
- package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.smoke.js} +80 -74
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.smoke.js +361 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.smoke.js +137 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.smoke.js +171 -0
- package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.smoke.js} +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextAllOrNothingScoring.js → fillInTheGapsOverImageTextAllOrNothingScoring.smoke.js} +32 -29
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextCheckAnswerForAllViews.js → fillInTheGapsOverImageTextCheckAnswerForAllViews.smoke.js} +5 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.smoke.js +137 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.smoke.js +146 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewContentsForAllViews.js → fillInTheGapsOverImageTextPreviewContentsForAllViews.smoke.js} +5 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewTab.js → fillInTheGapsOverImageTextPreviewTab.smoke.js} +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextShowCorrectAnswerForAllView.js → fillInTheGapsOverImageTextShowCorrectAnswerForAllView.smoke.js} +6 -4
- package/cypress/e2e/ILC/FillInTheGapsText/{fillInTheGapsTextAutoScoredScoring.js → fillInTheGapsTextAutoScoredScoring.smoke.js} +12 -9
- package/cypress/e2e/ILC/Highlight/HighlightScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +36 -34
- package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.smoke.js +462 -0
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.smoke.js +148 -0
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.smoke.js +185 -0
- package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.smoke.js +138 -0
- package/cypress/e2e/ILC/HighlightImage/{highlightImagePreviewTab.js → highlightImagePreviewTab.smoke.js} +1 -1
- package/cypress/e2e/ILC/HighlightImage/{highlightImageToolsFunctionalityPreviewTab.js → highlightImageToolsFunctionalityPreviewTab.smoke.js} +4 -4
- package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.smoke.js +122 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingAlternateAnswer.js → listMatchingAlternateAnswer.smoke.js} +47 -43
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.smoke.js +211 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.smoke.js +254 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.smoke.js +191 -0
- package/cypress/e2e/ILC/ListOrdering/ListOrderingScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +34 -32
- package/cypress/e2e/ILC/ListSorting/ListSortingScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +41 -38
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.smoke.js +269 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridAutoScoredScoring.js → multipleSelectionGridAutoScoredScoring.smoke.js} +36 -34
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.smoke.js +407 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/{singleSelectionGridAutoScoredScoring.js → singleSelectionGridAutoScoredScoring.smoke.js} +32 -29
- package/cypress/e2e/ILC/UploadResponse/{uploadResponsePreview.js → uploadResponsePreview.smoke.js} +64 -59
- package/cypress/e2e/ILC/VideoResponse/{videoResponsePreviewTab.js → videoResponsePreviewTab.smoke.js} +290 -281
- package/cypress/pages/components/additionalSettingsPanel.js +0 -27
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +321 -0
- package/cypress/pages/components/createQuestionBasePage.js +1 -7
- package/cypress/pages/components/essayResponseCommonComponents.js +0 -6
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -13
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -10
- package/cypress/pages/components/scoringSectionBase.js +3 -2
- package/cypress/pages/createItemPage.js +3 -79
- package/cypress/pages/dialogBoxBase.js +8 -23
- package/cypress/pages/index.js +1 -4
- package/cypress/pages/itemPreviewSettingsPage.js +446 -0
- package/cypress/pages/multipleSelectionPage.js +113 -64
- package/cypress/pages/selectQuestionResourceToolPage.js +0 -5
- package/cypress/pages/shortTextResponsePage.js +0 -6
- package/cypress/pages/singleSelectionPage.js +0 -1
- package/package.json +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.js +0 -116
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.js +0 -160
- package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.js +0 -932
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.js +0 -572
- package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.js +0 -106
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.js +0 -76
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.js +0 -134
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.js +0 -133
- package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.js +0 -457
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +0 -143
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +0 -178
- package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.js +0 -125
- package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.js +0 -117
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.js +0 -207
- package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.js +0 -246
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.js +0 -185
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettings.js +0 -820
- package/cypress/e2e/ILC/ListSorting/listSortingAutoScoredScoring.js +0 -936
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.js +0 -263
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.js +0 -402
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +0 -356
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +0 -134
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +0 -156
package/cypress/e2e/ILC/UploadResponse/{uploadResponsePreview.js → uploadResponsePreview.smoke.js}
RENAMED
@@ -5,13 +5,14 @@ let fileTypes = ['CSV', 'Excel', 'GIF', 'JPG', 'PDF', 'PNG', 'Powerpoint', 'Publ
|
|
5
5
|
let fileTypesString = fileTypes.toString().replaceAll(',', ', ')
|
6
6
|
let infoIconTooltipText = 'Supported file formats: ' + fileTypesString + '.';
|
7
7
|
const css = Cypress.env('css');
|
8
|
+
const grepTags = Cypress.env('grepTags');
|
8
9
|
|
9
10
|
describe('Create question page - Upload Response: Preview', () => {
|
10
11
|
before(() => {
|
11
12
|
cy.loginAs('admin');
|
12
13
|
});
|
13
14
|
|
14
|
-
describe('Preview tab contents', () => {
|
15
|
+
describe('Preview tab contents', { tags: 'smoke' }, () => {
|
15
16
|
abortEarlySetup();
|
16
17
|
before(() => {
|
17
18
|
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
@@ -96,7 +97,7 @@ describe('Create question page - Upload Response: Preview', () => {
|
|
96
97
|
});
|
97
98
|
});
|
98
99
|
|
99
|
-
describe('Uploading file', () => {
|
100
|
+
describe('Uploading file', { tags: 'smoke' }, () => {
|
100
101
|
abortEarlySetup();
|
101
102
|
before(() => {
|
102
103
|
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
@@ -197,58 +198,60 @@ describe('Create question page - Upload Response: Preview', () => {
|
|
197
198
|
});
|
198
199
|
|
199
200
|
//TODO : testing this manually for now, need to work around this
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
201
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
202
|
+
describe.skip('Allow students to capture photos preview', () => {
|
203
|
+
abortEarlySetup();
|
204
|
+
before(() => {
|
205
|
+
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
206
|
+
cy.log('Selecting Allow students to capture photos checkbox');
|
207
|
+
multipleSelectionPO.steps.expandAdditonalSettings();
|
208
|
+
uploadResponsePage.steps.checkCapturePhotosCheckbox();
|
209
|
+
uploadResponsePage.steps.switchToPreviewTab();
|
210
|
+
});
|
209
211
|
|
210
212
|
|
211
|
-
|
212
|
-
|
213
|
+
it('Camera icon should be displayed before link text \'capture an image\'', () => {
|
214
|
+
});
|
213
215
|
|
214
|
-
|
216
|
+
it('When the user clicks on the link text \'capture an image\' a \'Capture image\' popup should open', () => {
|
215
217
|
|
216
|
-
|
218
|
+
});
|
217
219
|
|
218
|
-
|
220
|
+
it('CSS of \'Capture image\' popup', () => {
|
219
221
|
|
220
|
-
|
222
|
+
});
|
221
223
|
|
222
|
-
|
224
|
+
it('On \'Capture image\' popup following should be displayed - \'Capture image\' title text, Camera preview, Capture and Cancel buttons', () => {
|
223
225
|
|
224
|
-
|
226
|
+
});
|
225
227
|
|
226
|
-
|
228
|
+
it('When the user clicks on \'Cancel\' button the \'Capture image\' popup should close', () => {
|
227
229
|
|
228
|
-
|
230
|
+
});
|
229
231
|
|
230
|
-
|
232
|
+
it('When the user clicks on \'Capture\' button, then an image should get captured and a preview of the captured image should be displayed in place of the camera preview and also two buttons \'Retake\' and \'Save\' should be displayed in the popup and \'Cancel\' and \'Capture\' buttons should not be displayed in the popup', () => {
|
231
233
|
|
232
|
-
|
234
|
+
});
|
233
235
|
|
234
|
-
|
236
|
+
it('When the user clicks on \'Save\' button, it should upload the captured image in the response', () => {
|
235
237
|
|
236
|
-
|
238
|
+
});
|
237
239
|
|
238
|
-
|
240
|
+
it('The captured image should be saved in .jpeg format and the 1st image should be saved with the name \'Photo.jpeg\'', () => {
|
239
241
|
|
240
|
-
|
242
|
+
});
|
241
243
|
|
242
|
-
|
243
|
-
|
244
|
+
it('If the user uploads another image the name should be \'Photo-1.jpeg\' and so on', () => {
|
245
|
+
//check till Photo-2.jpeg
|
244
246
|
|
245
|
-
|
247
|
+
});
|
246
248
|
|
247
|
-
|
249
|
+
it('When the user clicks on \'Retake\' button, it should take the user back to the capture an image flow where the user should be able to capture another image', () => {
|
250
|
+
});
|
248
251
|
});
|
249
|
-
}
|
252
|
+
}
|
250
253
|
|
251
|
-
describe('File Upload error', () => {
|
254
|
+
describe('File Upload error', { tags: 'smoke' }, () => {
|
252
255
|
abortEarlySetup();
|
253
256
|
before(() => {
|
254
257
|
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
@@ -296,34 +299,36 @@ describe('Create question page - Upload Response: Preview', () => {
|
|
296
299
|
uploadResponsePage.tests.verifyErrorMessageDisappear();
|
297
300
|
});
|
298
301
|
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
302
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
303
|
+
describe('Supported file types- preview tab', () => {
|
304
|
+
abortEarlySetup();
|
305
|
+
before(() => {
|
306
|
+
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
307
|
+
});
|
304
308
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
309
|
+
it('When user modifies supported files types, then in preview tab on hovering over the Supported file formats info icon a tooltip with the modified list of selected supported file types should be displayed', () => {
|
310
|
+
cy.log('Pre-step: checking a new file type and unchecking a default selected file type')
|
311
|
+
uploadResponsePage.steps.expandSupportedFileTypesAccordion();
|
312
|
+
uploadResponsePage.steps.uncheckSupportedFileTypeCheckbox(4);
|
313
|
+
uploadResponsePage.steps.checkSupportedFileTypeCheckbox(14);
|
314
|
+
cy.log('Switching to Preview tab')
|
315
|
+
uploadResponsePage.steps.switchToPreviewTab();
|
316
|
+
utilities.triggerMouseover(uploadResponsePage.supportedFileInfoIcon());
|
317
|
+
//https://redmine.zeuslearning.com/issues/533063
|
318
|
+
utilities.verifyInnerText(uploadResponsePage.supportedFilesTooltip(), 'Supported file formats: Excel, GIF, JPG, MP3, PDF, PNG, Powerpoint, Publisher, RTF, TXT, Word, XPS, ZIP.');
|
319
|
+
});
|
316
320
|
|
317
|
-
|
318
|
-
|
319
|
-
|
321
|
+
it('User should be able to upload file of newly added supported file type', () => {
|
322
|
+
uploadResponsePage.steps.fileUploadAndVerify(['sample.mp3']);
|
323
|
+
});
|
320
324
|
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
325
|
+
it('When the user uploads file type which is now removed from supported file type, then file upload error message - \'Error: The file type is not supported. Please upload files with the following supported formats: *file format separated by commas*\' should be displayed', () => {
|
326
|
+
uploadResponsePage.steps.uploadFile('uploads/sample.csv');
|
327
|
+
//https://redmine.zeuslearning.com/issues/534957
|
328
|
+
utilities.verifyInnerText(uploadResponsePage.errorMessage(), 'Error: The file type is not supported. Please upload files with the following supported formats: Excel, GIF, JPG, MP3, PDF, PNG, Powerpoint, Publisher, RTF, TXT, Word, XPS, ZIP.');
|
329
|
+
});
|
326
330
|
|
327
|
-
|
328
|
-
|
331
|
+
uploadResponsePage.tests.verifyErrorMessageDisappear();
|
332
|
+
});
|
333
|
+
}
|
329
334
|
});
|