itemengine-cypress-automation 1.0.51 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
  2. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
  3. package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
  4. package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
  5. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
  6. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
  7. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
  8. package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsAnswerNumeration.js +206 -0
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
  18. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
  19. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
  20. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
  21. package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
  22. package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
  23. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
  24. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
  25. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
  26. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
  27. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
  28. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
  29. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
  30. package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
  31. package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
  32. package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
  33. package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
  34. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
  35. package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
  36. package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
  37. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
  38. package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
  39. package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
  40. package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
  41. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
  42. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
  43. package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
  44. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
  45. package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
  46. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
  47. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
  48. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
  49. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
  50. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
  51. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
  52. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
  53. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
  54. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
  55. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
  56. package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
  57. package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
  58. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
  59. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
  60. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
  61. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
  62. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
  63. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
  64. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
  65. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
  66. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
  67. package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
  68. package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
  69. package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
  70. package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
  71. package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
  72. package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
  73. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
  74. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
  75. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
  76. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
  77. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
  78. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
  79. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
  80. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
  81. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
  82. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
  83. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
  84. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
  85. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
  86. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
  87. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
  88. package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
  89. package/package.json +1 -1
  90. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
  91. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
  92. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
  93. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
  94. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
  95. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
  96. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
  97. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  98. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  99. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
  100. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  101. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
  102. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  103. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
  104. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  105. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  106. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  107. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
  108. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  109. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
  110. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  111. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
  112. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
  113. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
  114. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
  115. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
  116. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  117. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  118. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
  119. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  120. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
  121. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  122. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
  123. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  124. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  125. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  126. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
  127. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
  128. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
  129. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
  130. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
  131. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
  132. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
  133. /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
  134. /package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridOptionsAdditionalSettings.js → multipleSelectionAdditionalSettingsGridOptions.js} +0 -0
@@ -0,0 +1,366 @@
1
+ import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ const optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
7
+ const pointerDropdownList = ['Left', 'Right', 'Top', 'Bottom', 'Top left', 'Top right', 'None'];
8
+
9
+ describe('Fill In the gaps over image - dropdown - Additional settings', () => {
10
+ before(() => {
11
+ cy.loginAs('admin');
12
+ });
13
+
14
+ describe('Additional settings : \'Advanced settings for individual response area\' section contents', () => {
15
+ abortEarlySetup();
16
+ before(() => {
17
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
18
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
19
+ cy.barsPreLoaderWait();
20
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
21
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
22
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
23
+ });
24
+
25
+ it('When the user has not added any response container, response accordion should not be displayed', () => {
26
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseAccordionWrapper(), 'notExist');
27
+ });
28
+
29
+ it('When the user adds a response container, \'Advanced settings for individual response area\' label along with a response accordion should be displayed', () => {
30
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
31
+ utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.advanceSettingForIndividualResponsesLabel(), 'Advanced settings for individual response area');
32
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.advanceSettingForIndividualResponsesLabel(), 'visible');
33
+ });
34
+
35
+ it('By default the \'Response #\' accordion should be collapsed and by clicking on the \'Response #\' accordion, user should be able to expand the accordion', () => {
36
+ fillInTheGapsOverImageDropdownPage.steps.verifyResponseAccordionCollapsedState(0);
37
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0);
38
+ });
39
+
40
+ it('\'Placeholder text\' label and input field should be displayed and by default, the input field should be empty', () => {
41
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderTextLabelAndInputFieldResponseAccordion();
42
+ });
43
+
44
+ it('\'Pointer\' label and dropdown should be displayed and in \'Type of answer input\' dropdown \'Left\' option should be selected by default', () => {
45
+ fillInTheGapsOverImageDropdownPage.steps.verifyPointerLabelAndDropdownResponseAccordion();
46
+ });
47
+
48
+ it('\'Height (px)\' and \'Width (px)\' labels and input fields should be displayed and by default, the input fields should be empty', () => {
49
+ fillInTheGapsOverImageDropdownPage.steps.verifyHeightAndWidthLabelAndInputFieldResponseAccordion();
50
+ });
51
+
52
+ //Note: The CSS of labels and dropdowns are being verified in their respective describes, so not verifying them here again
53
+
54
+ it('Accessibility of \'Advanced settings for individual response area\' section contents', { tags: 'a11y' }, () => {
55
+ cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.responseAccordionWrapper());
56
+ });
57
+ });
58
+
59
+ describe('Response accordions: Placeholder text : Set correct answer section', () => {
60
+ abortEarlySetup();
61
+ before(() => {
62
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
63
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
64
+ cy.barsPreLoaderWait();
65
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
66
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
67
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
68
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
69
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
70
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse1);
71
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
72
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0);
73
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(1);
74
+ });
75
+
76
+ it('When the user has not set placeholder text in the Response accordion then placeholder should not be displayed in \'Set correct answer\' section', () => {
77
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdownNotExists(0);
78
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdownNotExists(1);
79
+ });
80
+
81
+ fillInTheGapsOverImageDropdownPage.tests.verifyCustomLabelNotVisibleOnResponseAccordion('Placeholder text');
82
+
83
+ it('When the user has set a placeholder text in either response accordion then a placeholder text should be displayed for the respective response in \'Set correct answer\' section', () => {
84
+ fillInTheGapsOverImageDropdownPage.steps.setPlaceholderTextInResponseAccordion(0, 'Enter response here');
85
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdown(0, 'Enter response here');
86
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdownNotExists(1);
87
+ });
88
+
89
+ fillInTheGapsOverImageDropdownPage.tests.verifyCustomLabelVisibleOnResponseAccordion('Placeholder text');
90
+
91
+ it('CSS of Custom label', { tags: 'css' }, () => {
92
+ utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseAccordionCustomLabel(), {
93
+ 'color': css.color.activeButtons,
94
+ 'font-size': css.fontSize.normal,
95
+ 'font-weight': css.fontWeight.medium,
96
+ 'border': `1px solid ${css.color.primaryBtnBorder}`
97
+ });
98
+ });
99
+
100
+ it('When the user removes the placeholder text from the individual responses, then the placeholder attribute of the dropdowns should get updated accordingly in \'Set correct answer\' section', () => {
101
+ fillInTheGapsOverImageDropdownPage.steps.clearPlaceholderTextInResponseAccordion(0);
102
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdownNotExists(0);
103
+ });
104
+
105
+ it('When the user has set placeholder text in the individual response areas, then it should override the placeholder text set in the \'Advanced settings for all response areas\' in the \'Set correct answer\' section', () => {
106
+ fillInTheGapsOverImageDropdownPage.steps.setResponseFieldPlaceholderTextGlobal('Global placeholder');
107
+ fillInTheGapsOverImageDropdownPage.steps.setPlaceholderTextInResponseAccordion(0, 'Enter response here');
108
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdown(0, 'Enter response here');
109
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdown(1, 'Global placeholder');
110
+ });
111
+
112
+ it('Accessibility of \'Placeholder text\' in \'Set correct answer\' section', { tags: 'a11y' }, () => {
113
+ cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.responseDropdownWrapperSetCorrectAnswerSection());
114
+ });
115
+
116
+ it('When the user selects and option in dropdown, then the placeholder text should disappear', () => {
117
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, optionsForResponse1[0]);
118
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInSetCorrectAnswerSectionResponseDropdownNotExists(0);
119
+ });
120
+ });
121
+
122
+ describe('Response accordions: Placeholder text : Preview tab', () => {
123
+ abortEarlySetup();
124
+ before(() => {
125
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
126
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
127
+ cy.barsPreLoaderWait();
128
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
129
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
130
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
131
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
132
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
133
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
134
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
135
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0)
136
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(1)
137
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
138
+ });
139
+
140
+ it('When the user has not set placeholder text in the Response accordion then placeholder should not be displayed in preview tab dropdowns', () => {
141
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdownNotExists(0);
142
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdownNotExists(1);
143
+ });
144
+
145
+ it('When the user has set a placeholder text in either individual response accordion a placeholder text should be displayed for the respective response in preview tab', () => {
146
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
147
+ fillInTheGapsOverImageDropdownPage.steps.setPlaceholderTextInResponseAccordion(0, 'Enter response here');
148
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
149
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdown(0, 'Enter response here');
150
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdownNotExists(1);
151
+ });
152
+
153
+ it('When the user removes the placeholder text from individual responses the Placeholders should get updated accordingly for both the responses in preview tab', () => {
154
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
155
+ fillInTheGapsOverImageDropdownPage.steps.clearPlaceholderTextInResponseAccordion(0);
156
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
157
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdownNotExists(0);
158
+ });
159
+
160
+ it('When the user has set placeholder text in the individual response area, then it should override the placeholder text set in the \'Advanced settings for all response areas\' in the preview tab dropdowns', () => {
161
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
162
+ fillInTheGapsOverImageDropdownPage.steps.setResponseFieldPlaceholderTextGlobal('Global placeholder');
163
+ fillInTheGapsOverImageDropdownPage.steps.setPlaceholderTextInResponseAccordion(0, 'Enter response here');
164
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
165
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdown(0, 'Enter response here');
166
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdown(1, 'Global placeholder');
167
+ });
168
+
169
+ it('Accessibility of \'Placeholder text\' in preview tab', { tags: 'a11y' }, () => {
170
+ cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.responseFieldPreviewTab().parents('.response-input-field'))
171
+ });
172
+
173
+ it('When the user selects and option in dropdown, then the placeholder text should disappear', () => {
174
+ fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, optionsForResponse1[0]);
175
+ fillInTheGapsOverImageDropdownPage.steps.verifyPlaceholderAttributeInPreviewTabDropdownNotExists(0);
176
+ });
177
+ });
178
+
179
+ describe('Response accordions: Pointer dropdown contents', () => {
180
+ abortEarlySetup();
181
+ before(() => {
182
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
183
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
184
+ cy.barsPreLoaderWait();
185
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
186
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
187
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
188
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
189
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
190
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse1);
191
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
192
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0);
193
+ });
194
+
195
+ fillInTheGapsOverImageDropdownPage.tests.verifyPointerDropdownContentsResponseAccordion();
196
+ });
197
+
198
+ describe('Response accordions: Pointer dropdown functionality: Set correct answer section', () => {
199
+ abortEarlySetup();
200
+ before(() => {
201
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
202
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
203
+ cy.barsPreLoaderWait();
204
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
205
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
206
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
207
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
208
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
209
+ fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse1);
210
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
211
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0);
212
+ });
213
+
214
+ it('When the user has not updated the \'Pointer\' dropdown in the Response accordion then pointer should be displayed according to the global \'Pointer\' dropdown option \'Image\' section', () => {
215
+ fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerPointerInImageSection(0, 0);
216
+ fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerPointerInImageSection(1, 0);
217
+ });
218
+
219
+ fillInTheGapsOverImageDropdownPage.tests.verifyCustomLabelNotVisibleOnResponseAccordion('Pointer');
220
+
221
+ pointerDropdownList.forEach((dropdownOption, dropdownOptionIndex) => {
222
+ it(`When the user selects \'${dropdownOption}\' option from the \'Pointer\' dropdown, then pointer position of the respective response container should change to ${dropdownOption} in the \'Image\' section`, () => {
223
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromPointerDropdownResponseAccordion(0, dropdownOption);
224
+ fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerPointerInImageSection(0, dropdownOptionIndex);
225
+ cy.log('Checking pointer of response container 2 is according to the Global pointer dropdown option')
226
+ fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerPointerInImageSection(1, 0);
227
+ });
228
+ });
229
+
230
+ it(`When user selects ${pointerDropdownList[6]} then the pointer should not be displayed in the \'Image\' section`, () => {
231
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseContainerPointer(), 'hidden');
232
+ });
233
+
234
+ fillInTheGapsOverImageDropdownPage.tests.verifyCustomLabelVisibleOnResponseAccordion('Placeholder text');
235
+
236
+ it('When the user selects response pointer dropdown option similar to the global pointer dropdown option, then the Custom label should not be displayed on response accordion', () => {
237
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromPointerDropdownGlobal(pointerDropdownList[6]);
238
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseAccordionCustomLabel(), 'notExist');
239
+ });
240
+ });
241
+
242
+ //TODO: Script for preview tab will be added once https://redmine.zeuslearning.com/issues/542815 is resolved
243
+
244
+ describe('Response accordions: Height and Width : Set correct answer section', () => {
245
+ abortEarlySetup();
246
+ before(() => {
247
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
248
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
249
+ cy.barsPreLoaderWait();
250
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
251
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
252
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
253
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
254
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
255
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0);
256
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(1);
257
+ });
258
+
259
+ it('When the user has not set \'Height\' and \'Width\' for dropdowns then the default dimension of the dropdown in the \'Set correct answer\' section should be (120x34)px', () => {
260
+ fillInTheGapsOverImageDropdownPage.steps.verifyHeightOfResponseDropdownInSetCorrectAnswerSection(0, 34);
261
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(0, 120);
262
+ });
263
+
264
+ fillInTheGapsOverImageDropdownPage.tests.verifyCustomLabelNotVisibleOnResponseAccordion('Height and Width');
265
+
266
+ it('When the user has set \'Height\' for the dropdown then the height of the dropdown should get updated accordingly in the \'Set correct answer\' section', () => {
267
+ fillInTheGapsOverImageDropdownPage.steps.setHeightInResponseAccordion(0, 100);
268
+ fillInTheGapsOverImageDropdownPage.steps.verifyHeightOfResponseDropdownInSetCorrectAnswerSection(0, 100);
269
+ fillInTheGapsOverImageDropdownPage.steps.verifyHeightOfResponseDropdownInSetCorrectAnswerSection(1, 34);
270
+ });
271
+
272
+ fillInTheGapsOverImageDropdownPage.tests.verifyCustomLabelVisibleOnResponseAccordion('Height and Width');
273
+
274
+ it('When the user has set \'Width\' for the dropdown then the Width of the dropdown should get updated accordingly in the \'Set correct answer\' section', () => {
275
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 100);
276
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(0, 100);
277
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(1, 120);
278
+ });
279
+
280
+ it('When the user has set width below 80px then the width should remain 80px in the \'Set correct answer\' section', () => {
281
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 20);
282
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(0, 80);
283
+ });
284
+
285
+ it('When the user has set width above 400px then the width should remain 400px in the \'Set correct answer\' section', () => {
286
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 800);
287
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(0, 400);
288
+ });
289
+
290
+ it('When the user has set \'Height\' and \'Width\' in the individual responses accordion then it should override the \'Height\' and \'Width\'set in the \'Advanced settings for all response areas\' in the \'Set correct answer\' section', () => {
291
+ fillInTheGapsOverImageDropdownPage.steps.setResponseFieldWidthGlobal(250);
292
+ fillInTheGapsOverImageDropdownPage.steps.setResponseFieldHeightGlobal(180);
293
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 175);
294
+ fillInTheGapsOverImageDropdownPage.steps.setHeightInResponseAccordion(0, 120);
295
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(0, 175);
296
+ fillInTheGapsOverImageDropdownPage.steps.verifyHeightOfResponseDropdownInSetCorrectAnswerSection(0, 120);
297
+ fillInTheGapsOverImageDropdownPage.steps.verifyWidthOfResponseDropdownInSetCorrectAnswerSection(1, 250);
298
+ fillInTheGapsOverImageDropdownPage.steps.verifyHeightOfResponseDropdownInSetCorrectAnswerSection(1, 180);
299
+ });
300
+ });
301
+
302
+ describe('Response accordions: Height and Width : Preview tab', () => {
303
+ abortEarlySetup();
304
+ before(() => {
305
+ cy.log('Navigate to fill in the gaps over image - dropdown question type');
306
+ fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
307
+ fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
308
+ fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
309
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
310
+ fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
311
+ fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
312
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(0);
313
+ fillInTheGapsOverImageDropdownPage.steps.expandResponseAccordion(1);
314
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
315
+ });
316
+
317
+ it('When the user has not set \'Height\' and \'Width\' for the response accordion then the default dimension of the dropdown in the preview tab should be (120x34)px', () => {
318
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownHeightPreviewTab(0, 34)
319
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownWidthPreviewTab(0, 120);
320
+ });
321
+
322
+ it('When the user has set \'Height\' for the dropdown then the height of the preview tab dropdown should get updated accordingly', () => {
323
+ cy.log('Pre step: Switch to Edit tab')
324
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
325
+ fillInTheGapsOverImageDropdownPage.steps.setHeightInResponseAccordion(0, 100);
326
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
327
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownHeightPreviewTab(0, 100);
328
+ });
329
+
330
+ it('When the user has set \'Width\' for the dropdown then the width of the preview tab dropdown should get updated accordingly', () => {
331
+ cy.log('Pre step: Switch to Edit tab')
332
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
333
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 100);
334
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
335
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownWidthPreviewTab(0, 100);
336
+ });
337
+
338
+ it('When the user has set width below 80px then the width of the preview tab dropdown should remain 80px', () => {
339
+ cy.log('Pre step: Switch to Edit tab')
340
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
341
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 20);
342
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
343
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownWidthPreviewTab(0, 80);
344
+ });
345
+
346
+ it('When the user has set width above 400px then the width of the preview tab dropdown should remain 400px', () => {
347
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
348
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 800);
349
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
350
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownWidthPreviewTab(0, 400);
351
+ });
352
+
353
+ it('When the user has set \'Height\' and \'Width\' in the individual responses accordion then it should override the \'Height\' and \'Width\'set in the \'Advanced settings for all response areas\' for the preview tab dropdowns', () => {
354
+ fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
355
+ fillInTheGapsOverImageDropdownPage.steps.setResponseFieldWidthGlobal(250);
356
+ fillInTheGapsOverImageDropdownPage.steps.setResponseFieldHeightGlobal(180);
357
+ fillInTheGapsOverImageDropdownPage.steps.setWidthInResponseAccordion(0, 175);
358
+ fillInTheGapsOverImageDropdownPage.steps.setHeightInResponseAccordion(0, 120);
359
+ fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
360
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownWidthPreviewTab(0, 175);
361
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownHeightPreviewTab(0, 120);
362
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownWidthPreviewTab(1, 250);
363
+ fillInTheGapsOverImageDropdownPage.steps.verifyDropdownHeightPreviewTab(1, 180);
364
+ });
365
+ });
366
+ });