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
@@ -1,13 +1,14 @@
1
1
  import { audioResponsePage } from "../../../pages/audioResponsePage";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
+ const grepTags = Cypress.env('grepTags');
4
5
 
5
6
  describe('Preview tab of Audio Response', () => {
6
7
  before(() => {
7
8
  cy.loginAs('admin');
8
9
  });
9
10
 
10
- describe('Preview tab of Minimal recorder style with recording overlay', () => {
11
+ describe('Preview tab of Minimal recorder style with recording overlay', { tags: 'smoke' }, () => {
11
12
  abortEarlySetup();
12
13
  before(() => {
13
14
  cy.log('Navigating to Audio Response question type');
@@ -306,95 +307,97 @@ describe('Preview tab of Audio Response', () => {
306
307
  });
307
308
  });
308
309
 
309
- describe('Preview tab of Minimal recorder style without recording overlay', () => {
310
- abortEarlySetup();
311
- before(() => {
312
- cy.log('Navigating to Audio Response question type');
313
- audioResponsePage.steps.navigateToCreateQuestion('audio response');
314
- cy.log('Setting Maximum recording length to 10 seconds');
315
- audioResponsePage.steps.setMaximumRecorderLength(10);
316
- cy.log('Switching to Minimal recorder style deselect recording overlay option, and switching to Preview tab');
317
- audioResponsePage.steps.switchToMinimalRecorderStyle();
318
- audioResponsePage.steps.expandCustomizeRecorderAndPlaybackControlsAccordion();
319
- audioResponsePage.recordingOverlayOptionButton()
320
- .click();
321
- audioResponsePage.steps.switchToPreviewTab();
322
- });
323
-
324
- it('When the user clicks on the \'Record\' icon, the recording should start and \'Record\' button should get replaced with Stop button. \'Playback\' button should be disabled. Recording overlay should not be displayed', () => {
325
- audioResponsePage.minimalPreviewRecordButton()
326
- .click();
327
- cy.log('Starting a recording and letting it record until Maximum recording length is reached');
328
- audioResponsePage.minimalPreviewStopRecordingButton()
329
- .verifyInnerText('Stop')
330
- .should('be.visible')
331
- .and('be.enabled')
332
- .find('svg')
333
- .should('be.visible');
334
- audioResponsePage.minimalPreviewPlaybackButton()
335
- .should('be.disabled')
336
- .and('be.visible')
337
- .verifyInnerText('Playback')
338
- .find('svg')
339
- .should('be.visible');
340
- audioResponsePage.minimalPreviewRecordingOverlay()
341
- .should('not.exist');
342
- });
343
-
344
- it('When recording is inprogress, user should not be able to pause the recording as the recording overlay is not displayed', () => {
345
- audioResponsePage.minimalPreviewPauseRecordingButton()
346
- .should('not.exist');
347
- });
348
-
349
- it('When recording is inprogress and the user clicks on \'Stop\' button, recording should stop and \'Your response has been recorded\' help text message should be displayed in preview. Stop button should get replaced with Retake button and Playback button should be enabled. Overlay should not be displayed in player', () => {
350
- audioResponsePage.minimalPreviewStopRecordingButton()
351
- .click();
352
- audioResponsePage.minimalPreviewRecorderHelpText()
353
- .should('have.text', 'Your response has been recorded');
354
- audioResponsePage.minimalPreviewRetakeButton()
355
- .should('be.enabled')
356
- .and('be.visible')
357
- .verifyInnerText('Retake')
358
- .find('svg')
359
- .should('be.visible');
360
- audioResponsePage.minimalPreviewPlaybackButton()
361
- .should('be.enabled')
362
- .and('be.visible')
363
- .verifyInnerText('Playback')
364
- .find('svg')
365
- .should('be.visible');
366
- audioResponsePage.minimalPreviewRecordingOverlay()
367
- .should('not.exist');
368
- audioResponsePage.minimalPreviewPlaybackOverlay()
369
- .should('not.exist');
370
- });
371
-
372
- it('When recording is inprogress, recording should stop at recording length and \'Stop\' button should get replaced with Retake button. Playback button should be displayed in enabled state. \Your response has been recorded\' help message should be displayed in preview. Overlay should not be displayed in player', () => {
373
- cy.log('Pre-step : Switching to edit tab and back to preview tab to reset the recording, and then starting a new record response');
374
- audioResponsePage.steps.resetQuestionPreview();
375
- audioResponsePage.minimalPreviewRecordButton()
376
- .click();
377
- cy.log('Starting a recording and letting it record until Maximum recording length is reached');
378
- audioResponsePage.minimalPreviewRecorderHelpText()
379
- .should('have.text', 'Your response has been recorded');
380
- audioResponsePage.minimalPreviewRetakeButton()
381
- .should('be.visible')
382
- .and('be.enabled');
383
- audioResponsePage.minimalPreviewStopRecordingButton()
384
- .should('not.exist');
385
- audioResponsePage.minimalPreviewPlaybackButton()
386
- .should('be.visible')
387
- .and('be.enabled');
388
- audioResponsePage.minimalPreviewPlaybackOverlay()
389
- .should('not.exist');
390
- audioResponsePage.minimalPreviewRecordingOverlay()
391
- .should('not.exist');
392
- cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
393
- audioResponsePage.steps.switchToEditTab();
394
- });
395
- });
396
-
397
- describe('Minimal recorder style- Playback player with playback overlay', () => {
310
+ if (!grepTags || !grepTags.includes('smoke')) {
311
+ describe('Preview tab of Minimal recorder style without recording overlay', () => {
312
+ abortEarlySetup();
313
+ before(() => {
314
+ cy.log('Navigating to Audio Response question type');
315
+ audioResponsePage.steps.navigateToCreateQuestion('audio response');
316
+ cy.log('Setting Maximum recording length to 10 seconds');
317
+ audioResponsePage.steps.setMaximumRecorderLength(10);
318
+ cy.log('Switching to Minimal recorder style deselect recording overlay option, and switching to Preview tab');
319
+ audioResponsePage.steps.switchToMinimalRecorderStyle();
320
+ audioResponsePage.steps.expandCustomizeRecorderAndPlaybackControlsAccordion();
321
+ audioResponsePage.recordingOverlayOptionButton()
322
+ .click();
323
+ audioResponsePage.steps.switchToPreviewTab();
324
+ });
325
+
326
+ it('When the user clicks on the \'Record\' icon, the recording should start and \'Record\' button should get replaced with Stop button. \'Playback\' button should be disabled. Recording overlay should not be displayed', () => {
327
+ audioResponsePage.minimalPreviewRecordButton()
328
+ .click();
329
+ cy.log('Starting a recording and letting it record until Maximum recording length is reached');
330
+ audioResponsePage.minimalPreviewStopRecordingButton()
331
+ .verifyInnerText('Stop')
332
+ .should('be.visible')
333
+ .and('be.enabled')
334
+ .find('svg')
335
+ .should('be.visible');
336
+ audioResponsePage.minimalPreviewPlaybackButton()
337
+ .should('be.disabled')
338
+ .and('be.visible')
339
+ .verifyInnerText('Playback')
340
+ .find('svg')
341
+ .should('be.visible');
342
+ audioResponsePage.minimalPreviewRecordingOverlay()
343
+ .should('not.exist');
344
+ });
345
+
346
+ it('When recording is inprogress, user should not be able to pause the recording as the recording overlay is not displayed', () => {
347
+ audioResponsePage.minimalPreviewPauseRecordingButton()
348
+ .should('not.exist');
349
+ });
350
+
351
+ it('When recording is inprogress and the user clicks on \'Stop\' button, recording should stop and \'Your response has been recorded\' help text message should be displayed in preview. Stop button should get replaced with Retake button and Playback button should be enabled. Overlay should not be displayed in player', () => {
352
+ audioResponsePage.minimalPreviewStopRecordingButton()
353
+ .click();
354
+ audioResponsePage.minimalPreviewRecorderHelpText()
355
+ .should('have.text', 'Your response has been recorded');
356
+ audioResponsePage.minimalPreviewRetakeButton()
357
+ .should('be.enabled')
358
+ .and('be.visible')
359
+ .verifyInnerText('Retake')
360
+ .find('svg')
361
+ .should('be.visible');
362
+ audioResponsePage.minimalPreviewPlaybackButton()
363
+ .should('be.enabled')
364
+ .and('be.visible')
365
+ .verifyInnerText('Playback')
366
+ .find('svg')
367
+ .should('be.visible');
368
+ audioResponsePage.minimalPreviewRecordingOverlay()
369
+ .should('not.exist');
370
+ audioResponsePage.minimalPreviewPlaybackOverlay()
371
+ .should('not.exist');
372
+ });
373
+
374
+ it('When recording is inprogress, recording should stop at recording length and \'Stop\' button should get replaced with Retake button. Playback button should be displayed in enabled state. \Your response has been recorded\' help message should be displayed in preview. Overlay should not be displayed in player', () => {
375
+ cy.log('Pre-step : Switching to edit tab and back to preview tab to reset the recording, and then starting a new record response');
376
+ audioResponsePage.steps.resetQuestionPreview();
377
+ audioResponsePage.minimalPreviewRecordButton()
378
+ .click();
379
+ cy.log('Starting a recording and letting it record until Maximum recording length is reached');
380
+ audioResponsePage.minimalPreviewRecorderHelpText()
381
+ .should('have.text', 'Your response has been recorded');
382
+ audioResponsePage.minimalPreviewRetakeButton()
383
+ .should('be.visible')
384
+ .and('be.enabled');
385
+ audioResponsePage.minimalPreviewStopRecordingButton()
386
+ .should('not.exist');
387
+ audioResponsePage.minimalPreviewPlaybackButton()
388
+ .should('be.visible')
389
+ .and('be.enabled');
390
+ audioResponsePage.minimalPreviewPlaybackOverlay()
391
+ .should('not.exist');
392
+ audioResponsePage.minimalPreviewRecordingOverlay()
393
+ .should('not.exist');
394
+ cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
395
+ audioResponsePage.steps.switchToEditTab();
396
+ });
397
+ });
398
+ }
399
+
400
+ describe('Minimal recorder style- Playback player with playback overlay', { tags: 'smoke' }, () => {
398
401
  abortEarlySetup();
399
402
  before(() => {
400
403
  cy.log('Navigating to Audio Response question type');
@@ -774,168 +777,174 @@ describe('Preview tab of Audio Response', () => {
774
777
  });
775
778
  });
776
779
 
777
- describe('Minimal recorder style- Playback player without playback overlay', () => {
778
- abortEarlySetup();
779
- before(() => {
780
- cy.log('Navigating to Audio Response question type');
781
- audioResponsePage.steps.navigateToCreateQuestion('audio response');
782
- cy.log('Setting Maximum recording length to 10 seconds and selecting minimal recorder style');
783
- audioResponsePage.steps.setMaximumRecorderLength(10);
784
- audioResponsePage.steps.switchToMinimalRecorderStyle();
785
- audioResponsePage.steps.expandCustomizeRecorderAndPlaybackControlsAccordion();
786
- audioResponsePage.playbackOverlayOptionButton()
787
- .click();
788
- cy.log('Switch to Preview tab');
789
- audioResponsePage.steps.switchToPreviewTab();
790
- audioResponsePage.minimalPreviewRecordButton()
791
- .click();
792
- cy.log('Starting a recording and letting it record until Maximum recording length is reached');
793
- audioResponsePage.minimalPreviewRecorderHelpText()
794
- .should('have.text', 'Your response has been recorded');
795
- });
796
-
797
-
798
- it('When the user clicks on \'Playback\' button, playback of saved recording should start and Playback button should get replaced with stop button. Playback overlay should not be displayed', () => {
799
- audioResponsePage.minimalPreviewPlaybackButton()
800
- .click()
801
- .should('not.exist');
802
- audioResponsePage.minimalPreviewStopPlaybackButton()
803
- .should('be.visible')
804
- .and('be.enabled')
805
- .verifyInnerText('Stop')
806
- .find('svg')
807
- .should('be.visible');
808
- audioResponsePage.minimalPreviewPlaybackOverlay()
809
- .should('not.exist');
810
- });
811
-
812
- it('When user clicks on \'Stop\' button, playback should stop and Stop button should get replaced with Playback button.', () => {
813
- audioResponsePage.minimalPreviewStopPlaybackButton()
814
- .click()
815
- .should('not.exist');
816
- audioResponsePage.minimalPreviewPlaybackButton()
817
- .should('be.visible')
818
- .and('be.enabled');
819
- audioResponsePage.minimalPreviewPlaybackOverlay()
820
- .should('not.exist');
821
- cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
822
- audioResponsePage.steps.switchToEditTab();
823
- });
824
- });
825
-
826
- describe('Preview tab of Minimal recorder style- Retake my audio response with recording overlay', () => {
827
- abortEarlySetup();
828
- before(() => {
829
- cy.log('Navigating to Audio Response question type');
830
- audioResponsePage.steps.navigateToCreateQuestion('audio response');
831
- cy.log('Setting Maximum recording length to 10 seconds and selecting minimal recorder style');
832
- audioResponsePage.steps.setMaximumRecorderLength(10);
833
- audioResponsePage.steps.switchToMinimalRecorderStyle();
834
- cy.log('Switch to Preview tab');
835
- audioResponsePage.steps.switchToPreviewTab();
836
- audioResponsePage.minimalPreviewRecordButton()
837
- .click();
838
- cy.log('Starting a recording and letting it record until Maximum recording length is reached');
839
- audioResponsePage.minimalPreviewRecorderHelpText()
840
- .should('have.text', 'Your response has been recorded');
841
- });
842
-
843
- it('When the user clicks on \'Retake\' button, \'Retake\' popup should be displayed along with \'Are you sure you want to overwrite the existing audio recording?\' message', () => {
844
- audioResponsePage.minimalPreviewRetakeButton()
845
- .click();
846
- audioResponsePage.dialogBox()
847
- .should('be.visible');
848
- audioResponsePage.dialogBoxTitle()
849
- .verifyInnerText('Retake');
850
- audioResponsePage.retakePopupContent()
851
- .verifyInnerText('Are you sure you want to overwrite the existing audio recording?');
852
- audioResponsePage.confirmRetakeButton()
853
- .should('be.visible')
854
- .and('be.enabled')
855
- .verifyInnerText('Confirm');
856
- audioResponsePage.cancelRetakeButton()
857
- .should('be.visible')
858
- .and('be.enabled')
859
- .verifyInnerText('Cancel');
860
- });
861
-
862
- it('When the user clicks on Cancel button, popup should close and previous state persist', () => {
863
- audioResponsePage.cancelRetakeButton()
864
- .click();
865
- audioResponsePage.dialogBox()
866
- .should('not.exist');
867
- audioResponsePage.minimalPreviewRetakeButton()
868
- .should('be.visible');
869
- audioResponsePage.minimalPreviewPlaybackButton()
870
- .should('be.visible');
871
- audioResponsePage.minimalPreviewRecorderHelpText()
872
- .should('have.text', 'Your response has been recorded');
873
- });
874
-
875
- it('When the user clicks on Confirm button of the retake popup, the previous recording should get deleted and a new recording should begin. When recording is inprogress, recording overlay should be displayed', () => {
876
- audioResponsePage.minimalPreviewRetakeButton()
877
- .click();
878
- audioResponsePage.confirmRetakeButton()
879
- .click();
880
- audioResponsePage.dialogBox()
881
- .should('not.exist');
882
- audioResponsePage.minimalPreviewRecordingOverlay()
883
- .should('be.visible');
884
- audioResponsePage.minimalPreviewRecorderFlyoutHelpText()
885
- .verifyInnerText('Recording...');
886
- audioResponsePage.minimalPreviewStopRecordingButton()
887
- .should('be.visible')
888
- .and('be.enabled');
889
- audioResponsePage.minimalPreviewPlaybackButton()
890
- .should('be.visible')
891
- .and('be.disabled');
892
- cy.log('Letting it record until Maximum recording length of 10 seconds is reached');
893
- audioResponsePage.minimalPreviewRecorderHelpText()
894
- .should('have.text', 'Your response has been recorded');
895
- cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
896
- audioResponsePage.steps.switchToEditTab();
897
- });
898
- });
899
-
900
- describe('Preview tab of Minimal recorder style- Retake my audio response without recording overlay', () => {
901
- abortEarlySetup();
902
- before(() => {
903
- cy.log('Navigating to Audio Response question type');
904
- audioResponsePage.steps.navigateToCreateQuestion('audio response');
905
- cy.log('Setting Maximum recording length to 10 seconds and selecting minimal recorder style');
906
- audioResponsePage.steps.setMaximumRecorderLength(10);
907
- audioResponsePage.steps.switchToMinimalRecorderStyle();
908
- cy.log('Expand \'Customize recorder and playback controls (for student player)\' accordion and deselect recording overlay, then switching to preview tab');
909
- audioResponsePage.customizeRecorderAndPlaybackControlsAccordionLabel()
910
- .click();
911
- audioResponsePage.recordingOverlayOptionButton()
912
- .click();
913
- audioResponsePage.steps.switchToPreviewTab();
914
- audioResponsePage.minimalPreviewRecordButton()
915
- .click();
916
- cy.log('Starting a recording and letting it record until Maximum recording length of 10 seconds is reached');
917
- audioResponsePage.minimalPreviewRecorderHelpText()
918
- .should('have.text', 'Your response has been recorded');
919
- });
920
-
921
- it('When the user clicks on Confirm button of the retake popup, the previous recording should get deleted and a new recording should begin. When recording is inprogress, recording overlay should not be displayed', () => {
922
- audioResponsePage.minimalPreviewRetakeButton()
923
- .click();
924
- audioResponsePage.confirmRetakeButton()
925
- .click();
926
- audioResponsePage.dialogBox()
927
- .should('not.exist');
928
- audioResponsePage.minimalPreviewStopRecordingButton()
929
- .should('be.visible')
930
- .and('be.enabled');
931
- audioResponsePage.minimalPreviewPlaybackButton()
932
- .should('be.visible')
933
- .and('be.disabled');
934
- audioResponsePage.minimalPreviewRecordingOverlay()
935
- .should('not.exist');
936
- cy.log('Letting it record until Maximum recording length of 10 seconds is reached');
937
- audioResponsePage.minimalPreviewRecorderHelpText()
938
- .should('have.text', 'Your response has been recorded');
939
- });
940
- });
780
+ if (!grepTags || !grepTags.includes('smoke')) {
781
+ describe('Minimal recorder style- Playback player without playback overlay', () => {
782
+ abortEarlySetup();
783
+ before(() => {
784
+ cy.log('Navigating to Audio Response question type');
785
+ audioResponsePage.steps.navigateToCreateQuestion('audio response');
786
+ cy.log('Setting Maximum recording length to 10 seconds and selecting minimal recorder style');
787
+ audioResponsePage.steps.setMaximumRecorderLength(10);
788
+ audioResponsePage.steps.switchToMinimalRecorderStyle();
789
+ audioResponsePage.steps.expandCustomizeRecorderAndPlaybackControlsAccordion();
790
+ audioResponsePage.playbackOverlayOptionButton()
791
+ .click();
792
+ cy.log('Switch to Preview tab');
793
+ audioResponsePage.steps.switchToPreviewTab();
794
+ audioResponsePage.minimalPreviewRecordButton()
795
+ .click();
796
+ cy.log('Starting a recording and letting it record until Maximum recording length is reached');
797
+ audioResponsePage.minimalPreviewRecorderHelpText()
798
+ .should('have.text', 'Your response has been recorded');
799
+ });
800
+
801
+
802
+ it('When the user clicks on \'Playback\' button, playback of saved recording should start and Playback button should get replaced with stop button. Playback overlay should not be displayed', () => {
803
+ audioResponsePage.minimalPreviewPlaybackButton()
804
+ .click()
805
+ .should('not.exist');
806
+ audioResponsePage.minimalPreviewStopPlaybackButton()
807
+ .should('be.visible')
808
+ .and('be.enabled')
809
+ .verifyInnerText('Stop')
810
+ .find('svg')
811
+ .should('be.visible');
812
+ audioResponsePage.minimalPreviewPlaybackOverlay()
813
+ .should('not.exist');
814
+ });
815
+
816
+ it('When user clicks on \'Stop\' button, playback should stop and Stop button should get replaced with Playback button.', () => {
817
+ audioResponsePage.minimalPreviewStopPlaybackButton()
818
+ .click()
819
+ .should('not.exist');
820
+ audioResponsePage.minimalPreviewPlaybackButton()
821
+ .should('be.visible')
822
+ .and('be.enabled');
823
+ audioResponsePage.minimalPreviewPlaybackOverlay()
824
+ .should('not.exist');
825
+ cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
826
+ audioResponsePage.steps.switchToEditTab();
827
+ });
828
+ });
829
+ }
830
+
831
+ if (!grepTags || !grepTags.includes('smoke')) {
832
+ describe('Preview tab of Minimal recorder style- Retake my audio response with recording overlay', () => {
833
+ abortEarlySetup();
834
+ before(() => {
835
+ cy.log('Navigating to Audio Response question type');
836
+ audioResponsePage.steps.navigateToCreateQuestion('audio response');
837
+ cy.log('Setting Maximum recording length to 10 seconds and selecting minimal recorder style');
838
+ audioResponsePage.steps.setMaximumRecorderLength(10);
839
+ audioResponsePage.steps.switchToMinimalRecorderStyle();
840
+ cy.log('Switch to Preview tab');
841
+ audioResponsePage.steps.switchToPreviewTab();
842
+ audioResponsePage.minimalPreviewRecordButton()
843
+ .click();
844
+ cy.log('Starting a recording and letting it record until Maximum recording length is reached');
845
+ audioResponsePage.minimalPreviewRecorderHelpText()
846
+ .should('have.text', 'Your response has been recorded');
847
+ });
848
+
849
+ it('When the user clicks on \'Retake\' button, \'Retake\' popup should be displayed along with \'Are you sure you want to overwrite the existing audio recording?\' message', () => {
850
+ audioResponsePage.minimalPreviewRetakeButton()
851
+ .click();
852
+ audioResponsePage.dialogBox()
853
+ .should('be.visible');
854
+ audioResponsePage.dialogBoxTitle()
855
+ .verifyInnerText('Retake');
856
+ audioResponsePage.retakePopupContent()
857
+ .verifyInnerText('Are you sure you want to overwrite the existing audio recording?');
858
+ audioResponsePage.confirmRetakeButton()
859
+ .should('be.visible')
860
+ .and('be.enabled')
861
+ .verifyInnerText('Confirm');
862
+ audioResponsePage.cancelRetakeButton()
863
+ .should('be.visible')
864
+ .and('be.enabled')
865
+ .verifyInnerText('Cancel');
866
+ });
867
+
868
+ it('When the user clicks on Cancel button, popup should close and previous state persist', () => {
869
+ audioResponsePage.cancelRetakeButton()
870
+ .click();
871
+ audioResponsePage.dialogBox()
872
+ .should('not.exist');
873
+ audioResponsePage.minimalPreviewRetakeButton()
874
+ .should('be.visible');
875
+ audioResponsePage.minimalPreviewPlaybackButton()
876
+ .should('be.visible');
877
+ audioResponsePage.minimalPreviewRecorderHelpText()
878
+ .should('have.text', 'Your response has been recorded');
879
+ });
880
+
881
+ it('When the user clicks on Confirm button of the retake popup, the previous recording should get deleted and a new recording should begin. When recording is inprogress, recording overlay should be displayed', () => {
882
+ audioResponsePage.minimalPreviewRetakeButton()
883
+ .click();
884
+ audioResponsePage.confirmRetakeButton()
885
+ .click();
886
+ audioResponsePage.dialogBox()
887
+ .should('not.exist');
888
+ audioResponsePage.minimalPreviewRecordingOverlay()
889
+ .should('be.visible');
890
+ audioResponsePage.minimalPreviewRecorderFlyoutHelpText()
891
+ .verifyInnerText('Recording...');
892
+ audioResponsePage.minimalPreviewStopRecordingButton()
893
+ .should('be.visible')
894
+ .and('be.enabled');
895
+ audioResponsePage.minimalPreviewPlaybackButton()
896
+ .should('be.visible')
897
+ .and('be.disabled');
898
+ cy.log('Letting it record until Maximum recording length of 10 seconds is reached');
899
+ audioResponsePage.minimalPreviewRecorderHelpText()
900
+ .should('have.text', 'Your response has been recorded');
901
+ cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
902
+ audioResponsePage.steps.switchToEditTab();
903
+ });
904
+ });
905
+ }
906
+
907
+ if (!grepTags || !grepTags.includes('smoke')) {
908
+ describe('Preview tab of Minimal recorder style- Retake my audio response without recording overlay', () => {
909
+ abortEarlySetup();
910
+ before(() => {
911
+ cy.log('Navigating to Audio Response question type');
912
+ audioResponsePage.steps.navigateToCreateQuestion('audio response');
913
+ cy.log('Setting Maximum recording length to 10 seconds and selecting minimal recorder style');
914
+ audioResponsePage.steps.setMaximumRecorderLength(10);
915
+ audioResponsePage.steps.switchToMinimalRecorderStyle();
916
+ cy.log('Expand \'Customize recorder and playback controls (for student player)\' accordion and deselect recording overlay, then switching to preview tab');
917
+ audioResponsePage.customizeRecorderAndPlaybackControlsAccordionLabel()
918
+ .click();
919
+ audioResponsePage.recordingOverlayOptionButton()
920
+ .click();
921
+ audioResponsePage.steps.switchToPreviewTab();
922
+ audioResponsePage.minimalPreviewRecordButton()
923
+ .click();
924
+ cy.log('Starting a recording and letting it record until Maximum recording length of 10 seconds is reached');
925
+ audioResponsePage.minimalPreviewRecorderHelpText()
926
+ .should('have.text', 'Your response has been recorded');
927
+ });
928
+
929
+ it('When the user clicks on Confirm button of the retake popup, the previous recording should get deleted and a new recording should begin. When recording is inprogress, recording overlay should not be displayed', () => {
930
+ audioResponsePage.minimalPreviewRetakeButton()
931
+ .click();
932
+ audioResponsePage.confirmRetakeButton()
933
+ .click();
934
+ audioResponsePage.dialogBox()
935
+ .should('not.exist');
936
+ audioResponsePage.minimalPreviewStopRecordingButton()
937
+ .should('be.visible')
938
+ .and('be.enabled');
939
+ audioResponsePage.minimalPreviewPlaybackButton()
940
+ .should('be.visible')
941
+ .and('be.disabled');
942
+ audioResponsePage.minimalPreviewRecordingOverlay()
943
+ .should('not.exist');
944
+ cy.log('Letting it record until Maximum recording length of 10 seconds is reached');
945
+ audioResponsePage.minimalPreviewRecorderHelpText()
946
+ .should('have.text', 'Your response has been recorded');
947
+ });
948
+ });
949
+ }
941
950
  });