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.
Files changed (90) hide show
  1. package/cypress/e2e/ILC/AudioResponse/{audioResponseMinimalPreviewSection.js → audioResponseMinimalPreviewSection.smoke.js} +263 -254
  2. package/cypress/e2e/ILC/AudioResponse/{audioResponseStandardPreviewSection.js → audioResponseStandardPreviewSection.smoke.js} +100 -97
  3. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.smoke.js +121 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachCell.js → groupedOptionsPartialScoreForEachCell.smoke.js} +1 -1
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachResponse.js → groupedOptionsPartialScoreForEachResponse.smoke.js} +1 -1
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.smoke.js +164 -0
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{standardTotalScoreDividedBetweenResponse.js → standardTotalScoreDividedBetweenResponse.smoke.js} +21 -18
  8. package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +753 -0
  9. package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.smoke.js +943 -0
  10. package/cypress/e2e/ILC/EssayResponse/{essayResponseCustomizeFormattingOptions1.js → essayResponseCustomizeFormattingOptions1.smoke.js} +113 -110
  11. package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +581 -0
  12. package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.smoke.js +111 -0
  13. package/cypress/e2e/ILC/EssayResponse/{essayResponsePreviewContentsForAllViews.js → essayResponsePreviewContentsForAllViews.smoke.js} +6 -3
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.smoke.js +81 -0
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/{fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js → fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.smoke.js} +25 -22
  16. package/cypress/e2e/ILC/FillInTheGapsDropdown/{fillInTheGapsDropdownAllOrNothingScoring.js → fillInTheGapsDropdownAllOrNothingScoring.smoke.js} +16 -14
  17. package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.smoke.js} +80 -74
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.smoke.js +361 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.smoke.js +137 -0
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.smoke.js +171 -0
  21. package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.smoke.js} +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextAllOrNothingScoring.js → fillInTheGapsOverImageTextAllOrNothingScoring.smoke.js} +32 -29
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextCheckAnswerForAllViews.js → fillInTheGapsOverImageTextCheckAnswerForAllViews.smoke.js} +5 -3
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.smoke.js +137 -0
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.smoke.js +146 -0
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewContentsForAllViews.js → fillInTheGapsOverImageTextPreviewContentsForAllViews.smoke.js} +5 -3
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewTab.js → fillInTheGapsOverImageTextPreviewTab.smoke.js} +1 -1
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextShowCorrectAnswerForAllView.js → fillInTheGapsOverImageTextShowCorrectAnswerForAllView.smoke.js} +6 -4
  29. package/cypress/e2e/ILC/FillInTheGapsText/{fillInTheGapsTextAutoScoredScoring.js → fillInTheGapsTextAutoScoredScoring.smoke.js} +12 -9
  30. package/cypress/e2e/ILC/Highlight/HighlightScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +36 -34
  31. package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.smoke.js +462 -0
  32. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.smoke.js +148 -0
  33. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.smoke.js +185 -0
  34. package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.smoke.js +138 -0
  35. package/cypress/e2e/ILC/HighlightImage/{highlightImagePreviewTab.js → highlightImagePreviewTab.smoke.js} +1 -1
  36. package/cypress/e2e/ILC/HighlightImage/{highlightImageToolsFunctionalityPreviewTab.js → highlightImageToolsFunctionalityPreviewTab.smoke.js} +4 -4
  37. package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.smoke.js +122 -0
  38. package/cypress/e2e/ILC/ListMatching/{listMatchingAlternateAnswer.js → listMatchingAlternateAnswer.smoke.js} +47 -43
  39. package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.smoke.js +211 -0
  40. package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.smoke.js +254 -0
  41. package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.smoke.js +191 -0
  42. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +34 -32
  43. package/cypress/e2e/ILC/ListSorting/ListSortingScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +41 -38
  44. package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.smoke.js +269 -0
  45. package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridAutoScoredScoring.js → multipleSelectionGridAutoScoredScoring.smoke.js} +36 -34
  46. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.smoke.js +407 -0
  47. package/cypress/e2e/ILC/SingleSelectionGrid/{singleSelectionGridAutoScoredScoring.js → singleSelectionGridAutoScoredScoring.smoke.js} +32 -29
  48. package/cypress/e2e/ILC/UploadResponse/{uploadResponsePreview.js → uploadResponsePreview.smoke.js} +64 -59
  49. package/cypress/e2e/ILC/VideoResponse/{videoResponsePreviewTab.js → videoResponsePreviewTab.smoke.js} +290 -281
  50. package/cypress/pages/components/additionalSettingsPanel.js +0 -27
  51. package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
  52. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +321 -0
  53. package/cypress/pages/components/createQuestionBasePage.js +1 -7
  54. package/cypress/pages/components/essayResponseCommonComponents.js +0 -6
  55. package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -13
  56. package/cypress/pages/components/index.js +2 -1
  57. package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -10
  58. package/cypress/pages/components/scoringSectionBase.js +3 -2
  59. package/cypress/pages/createItemPage.js +3 -79
  60. package/cypress/pages/dialogBoxBase.js +8 -23
  61. package/cypress/pages/index.js +1 -4
  62. package/cypress/pages/itemPreviewSettingsPage.js +446 -0
  63. package/cypress/pages/multipleSelectionPage.js +113 -64
  64. package/cypress/pages/selectQuestionResourceToolPage.js +0 -5
  65. package/cypress/pages/shortTextResponsePage.js +0 -6
  66. package/cypress/pages/singleSelectionPage.js +0 -1
  67. package/package.json +2 -2
  68. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.js +0 -116
  69. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.js +0 -160
  70. package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.js +0 -932
  71. package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.js +0 -572
  72. package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.js +0 -106
  73. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.js +0 -76
  74. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.js +0 -134
  75. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.js +0 -133
  76. package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.js +0 -457
  77. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +0 -143
  78. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +0 -178
  79. package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.js +0 -125
  80. package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.js +0 -117
  81. package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.js +0 -207
  82. package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.js +0 -246
  83. package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.js +0 -185
  84. package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettings.js +0 -820
  85. package/cypress/e2e/ILC/ListSorting/listSortingAutoScoredScoring.js +0 -936
  86. package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.js +0 -263
  87. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.js +0 -402
  88. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +0 -356
  89. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +0 -134
  90. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +0 -156
@@ -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
- describe.skip('Allow students to capture photos preview', () => {
201
- abortEarlySetup();
202
- before(() => {
203
- uploadResponsePage.steps.navigateToCreateQuestion('upload response');
204
- cy.log('Selecting Allow students to capture photos checkbox');
205
- multipleSelectionPO.steps.expandAdditonalSettings();
206
- uploadResponsePage.steps.checkCapturePhotosCheckbox();
207
- uploadResponsePage.steps.switchToPreviewTab();
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
- it('Camera icon should be displayed before link text \'capture an image\'', () => {
212
- });
213
+ it('Camera icon should be displayed before link text \'capture an image\'', () => {
214
+ });
213
215
 
214
- it('When the user clicks on the link text \'capture an image\' a \'Capture image\' popup should open', () => {
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
- it('CSS of \'Capture image\' popup', () => {
220
+ it('CSS of \'Capture image\' popup', () => {
219
221
 
220
- });
222
+ });
221
223
 
222
- it('On \'Capture image\' popup following should be displayed - \'Capture image\' title text, Camera preview, Capture and Cancel buttons', () => {
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
- it('When the user clicks on \'Cancel\' button the \'Capture image\' popup should close', () => {
228
+ it('When the user clicks on \'Cancel\' button the \'Capture image\' popup should close', () => {
227
229
 
228
- });
230
+ });
229
231
 
230
- 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', () => {
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
- it('When the user clicks on \'Save\' button, it should upload the captured image in the response', () => {
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
- it('The captured image should be saved in .jpeg format and the 1st image should be saved with the name \'Photo.jpeg\'', () => {
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
- it('If the user uploads another image the name should be \'Photo-1.jpeg\' and so on', () => {
243
- //check till Photo-2.jpeg
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
- 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', () => {
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
- describe('Supported file types- preview tab', () => {
300
- abortEarlySetup();
301
- before(() => {
302
- uploadResponsePage.steps.navigateToCreateQuestion('upload response');
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
- 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', () => {
306
- cy.log('Pre-step: checking a new file type and unchecking a default selected file type')
307
- uploadResponsePage.steps.expandSupportedFileTypesAccordion();
308
- uploadResponsePage.steps.uncheckSupportedFileTypeCheckbox(4);
309
- uploadResponsePage.steps.checkSupportedFileTypeCheckbox(14);
310
- cy.log('Switching to Preview tab')
311
- uploadResponsePage.steps.switchToPreviewTab();
312
- utilities.triggerMouseover(uploadResponsePage.supportedFileInfoIcon());
313
- //https://redmine.zeuslearning.com/issues/533063
314
- utilities.verifyInnerText(uploadResponsePage.supportedFilesTooltip(), 'Supported file formats: Excel, GIF, JPG, MP3, PDF, PNG, Powerpoint, Publisher, RTF, TXT, Word, XPS, ZIP.');
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
- it('User should be able to upload file of newly added supported file type', () => {
318
- uploadResponsePage.steps.fileUploadAndVerify(['sample.mp3']);
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
- 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', () => {
322
- uploadResponsePage.steps.uploadFile('uploads/sample.csv');
323
- //https://redmine.zeuslearning.com/issues/534957
324
- 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.');
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
- uploadResponsePage.tests.verifyErrorMessageDisappear();
328
- });
331
+ uploadResponsePage.tests.verifyErrorMessageDisappear();
332
+ });
333
+ }
329
334
  });