itemengine-cypress-automation 1.0.184-e2e-execution-crash-3b9d0d0.0 → 1.0.185-repoUpdate26April-b17eb46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +79 -0
  2. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +345 -0
  3. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +429 -0
  4. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +162 -0
  5. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +489 -0
  6. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +313 -0
  7. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
  8. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
  9. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  11. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +5 -8
  12. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +417 -28
  13. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  14. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  25. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  26. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -4
  27. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  28. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
  29. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
  30. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  31. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  32. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  33. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  34. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  35. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  36. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +11 -3
  37. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  38. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  39. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +230 -0
  40. package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +124 -0
  41. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +201 -0
  42. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +216 -0
  43. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +214 -0
  44. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +251 -0
  45. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
  46. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +128 -0
  47. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +279 -0
  48. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +109 -0
  49. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +278 -0
  50. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +278 -0
  51. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +335 -0
  52. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +250 -0
  53. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +161 -0
  54. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +216 -0
  55. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +252 -0
  56. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +118 -0
  57. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +243 -0
  58. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  59. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +155 -0
  60. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +195 -0
  61. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +78 -0
  62. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  63. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +176 -0
  64. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +112 -0
  65. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +244 -0
  66. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  67. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +1 -0
  68. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  69. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +181 -0
  70. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  71. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +57 -1
  72. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +33 -0
  73. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +46 -0
  74. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  75. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
  76. package/cypress/e2e/ILC/NumberLine/toolSettings.js +2 -1
  77. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +696 -0
  78. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +173 -0
  79. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +183 -0
  80. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +73 -0
  81. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +204 -0
  82. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +288 -0
  83. package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +153 -0
  84. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +164 -0
  85. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +120 -0
  86. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  87. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +49 -1
  88. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
  89. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  90. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  91. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -1
  92. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -1
  93. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -1
  94. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +0 -1
  95. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +125 -0
  96. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -1
  97. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +1 -2
  98. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +5 -4
  99. package/cypress/e2e/ILC/TextSelection/headerSection.js +73 -0
  100. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +6 -7
  101. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +179 -0
  102. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +89 -0
  103. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +436 -0
  104. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +277 -0
  105. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +222 -0
  106. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +260 -0
  107. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +380 -0
  108. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  109. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  110. package/cypress/fixtures/constants.js +1 -1
  111. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  112. package/cypress/fixtures/theme/ilc.json +20 -18
  113. package/cypress/pages/audioPlayerPage.js +274 -504
  114. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  115. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  116. package/cypress/pages/components/autoScoredStudentViewSettings.js +5 -5
  117. package/cypress/pages/components/commonComponents.js +1 -0
  118. package/cypress/pages/components/draggableOptionContainer.js +1 -0
  119. package/cypress/pages/components/equationEditorFlyout.js +3 -2
  120. package/cypress/pages/components/essayResponseCommonComponents.js +8 -2
  121. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  122. package/cypress/pages/components/imageCanvasComponent.js +2 -1
  123. package/cypress/pages/components/index.js +3 -0
  124. package/cypress/pages/components/layoutSectionComponent.js +1191 -0
  125. package/cypress/pages/components/numberLineCommonComponent.js +36 -0
  126. package/cypress/pages/components/optionsWrapperComponent.js +13 -2
  127. package/cypress/pages/components/playbackControlsBaseComponent.js +20 -13
  128. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
  129. package/cypress/pages/components/toolSettingsComponent.js +6 -0
  130. package/cypress/pages/contentBlocksPage.js +18 -2
  131. package/cypress/pages/createItemPage.js +75 -8
  132. package/cypress/pages/dialogBoxBase.js +2 -2
  133. package/cypress/pages/drawingResponsePage.js +24 -4
  134. package/cypress/pages/feedbackScalePage.js +3 -0
  135. package/cypress/pages/graphingPage.js +19 -1
  136. package/cypress/pages/gridFillPage.js +25 -8
  137. package/cypress/pages/index.js +2 -1
  138. package/cypress/pages/itemPreviewSettingsPage.js +4 -0
  139. package/cypress/pages/listOrderingPage.js +435 -557
  140. package/cypress/pages/matchingPage.js +1 -1
  141. package/cypress/pages/multipleSelectionPage.js +23 -1
  142. package/cypress/pages/numberLineLabelPage.js +333 -0
  143. package/cypress/pages/numberLinePage.js +1370 -132
  144. package/cypress/pages/rulerPage.js +6 -2
  145. package/cypress/pages/textSelectionPage.js +461 -23
  146. package/package.json +1 -1
@@ -16,15 +16,19 @@ describe('Item preview: Settings tab - functionality', () => {
16
16
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
17
17
  });
18
18
 
19
- it('When user checks \'Enable side by side panels\' checkbox and clicks on \'Apply changes\', then two panels should be displayed in \'Edit tab\'', () => {
19
+ it('When user checks \'Enable side by side panels\' checkbox and clicks on \'Apply changes\', then two panels should be displayed in \'Edit tab\' and when user switches to preview tab \'Preview not available\' should be displayed', () => {
20
20
  itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
21
21
  itemPreviewSettingsPage.steps.clickApplyChanges();
22
22
  itemPreviewSettingsPage.steps.verifyPanelCount(2);
23
23
  itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(0);
24
24
  itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
25
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
26
+ utilities.verifyInnerText(itemPreviewSettingsPage.noPreviewText(), 'Preview not available');
27
+ utilities.verifyElementCount(itemPreviewSettingsPage.noPreviewText(), 2);
25
28
  });
26
29
 
27
30
  it('User should be able to add questions or resource and tools in both the panels', () => {
31
+ itemPreviewSettingsPage.steps.switchToEditTab();
28
32
  itemPreviewSettingsPage.steps.clickOnAddQuestion(0);
29
33
  itemPreviewSettingsPage.steps.selectQuestionType('short text response');
30
34
  itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('shortTextResponseHeading', 2, 'Answer');
@@ -33,31 +37,54 @@ describe('Item preview: Settings tab - functionality', () => {
33
37
  itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Heading', 'Content heading');
34
38
  });
35
39
 
36
- it('When user has added question in the left panel, then it should be displayed in the left panel ', () => {
40
+ it('When user has added question in the left panel, then it should be displayed in the left panel within half of the container width in edit tab and preview tab', () => {
41
+ itemPreviewSettingsPage.steps.switchToEditTab();
37
42
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', panel: 0 });
43
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
44
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
45
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', panel: 0 })
46
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
38
47
  });
39
48
 
40
- it('When user has added resource and tool in the right panel, then it should be displayed in the right panel', () => {
49
+ it('When user has added resource and tool in the right panel, then it should be displayed in the right panel within half of the container width in edit tab and preview tab', () => {
50
+ itemPreviewSettingsPage.steps.switchToEditTab();
41
51
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Content heading', panel: 1 });
52
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
53
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
54
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Content heading', panel: 1 });
55
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
42
56
  });
43
57
 
44
- it('When user unchecks \'Enable side by side panels\' checkbox, then only one panel should be displayed and and added questions or resource and tools should be displayed inline', () => {
58
+ it('When user unchecks \'Enable side by side panels\' checkbox, then only one panel should be displayed and and added questions or resource and tools should be displayed inline in edit tab and preview tab', () => {
59
+ itemPreviewSettingsPage.steps.switchToEditTab();
45
60
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
46
61
  itemPreviewSettingsPage.steps.uncheckEnableSideBySidePanelsCheckbox();
47
62
  itemPreviewSettingsPage.steps.clickApplyChanges();
48
63
  itemPreviewSettingsPage.steps.verifyQuestionsCount(2);
49
64
  itemPreviewSettingsPage.steps.verifyPanelCount(1);
50
65
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', panel: 0 });
51
- itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Content heading', panel: 0 });
66
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Content heading', panel: 0 });
67
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
68
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
69
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', panel: 0 })
70
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Content heading', panel: 0 });
71
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
52
72
  });
53
73
 
54
- it('When user checks \'Enable side by side panels\' checkbox again, then \'Edit tab\' should be displayed with two panels, the left panel should be prefilled with added questions and resource tools and right panel should have \'Add question\' and \'Add resource and tool\' buttons', () => {
74
+ it('When user checks \'Enable side by side panels\' checkbox again, then \'Edit tab\' should be displayed with two panels, the left panel should be prefilled with added questions and resource tools and right panel should have \'Add question\' and \'Add resource and tool\' buttons in edit tab and \'No preview\' should be displayed in the right panel', () => {
75
+ itemPreviewSettingsPage.steps.switchToEditTab();
55
76
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
56
77
  itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
57
78
  itemPreviewSettingsPage.steps.clickApplyChanges();
58
79
  itemPreviewSettingsPage.steps.verifyPanelCount(2);
59
80
  itemPreviewSettingsPage.steps.verifyQuestionsExistInLeftPanel();
60
81
  itemPreviewSettingsPage.steps.verifyQuestionsDoNotExistInRightPanel();
82
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
83
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
84
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', panel: 0 })
85
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Content heading', panel: 0 });
86
+ utilities.verifyInnerText(itemPreviewSettingsPage.noPreviewText(), 'Preview not available');
87
+ utilities.verifyElementCount(itemPreviewSettingsPage.noPreviewText(), 1);
61
88
  });
62
89
 
63
90
  it('Accessibility of panels', { tags: 'a11y' }, () => {
@@ -244,25 +271,38 @@ describe('Item preview: Settings tab - functionality', () => {
244
271
  itemPreviewSettingsPage.steps.selectQuestionType('short text response');
245
272
  itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('ShortText', '2', 'Answer');
246
273
  itemPreviewSettingsPage.steps.navigateToSection2();
247
- itemPreviewSettingsPage.steps.clickOnAddQuestion();
274
+ itemPreviewSettingsPage.steps.clickOnAddResource();
248
275
  itemPreviewSettingsPage.steps.selectResourceType('content blocks');
249
276
  itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Global', 'Warming');
250
277
  });
251
278
 
252
- it('When user has added question in section 1 then, it should be displayed in the section 1 ', () => {
279
+ it('When user has added question in section 1 then, it should be displayed in the section 1 and the width should be equal to item width in edit tab and preview tab', () => {
253
280
  itemPreviewSettingsPage.steps.navigateToSection1();
254
281
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
282
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
283
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
284
+ itemPreviewSettingsPage.steps.navigateToSection1();
285
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
286
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
255
287
  });
256
288
 
257
- it('When user has added resource and tool in section 2 then, it should be displayed in the section 2', () => {
289
+ it('When user has added resource and tool in section 2 then, it should be displayed in the section 2 and the width should be equal to item width in edit tab and preview tab', () => {
290
+ itemPreviewSettingsPage.steps.switchToEditTab();
291
+ itemPreviewSettingsPage.steps.navigateToSection2();
292
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
293
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
294
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
258
295
  itemPreviewSettingsPage.steps.navigateToSection2();
259
- itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
296
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
297
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
260
298
  });
261
299
 
262
300
  it('When the user has checked \'Enable sections\' then on switching to \'Edit tab\', section navigation orientation should be \'Horizontal\', section navigation style should be \'Underlined\' and section navigation alignment should be \'Left aligned\' by default', () => {
301
+ itemPreviewSettingsPage.steps.switchToEditTab();
263
302
  itemPreviewSettingsPage.steps.verifyHorizontalNavigationOrientation();
264
303
  itemPreviewSettingsPage.steps.verifyUnderlinedNavigationStyle(4);
265
304
  itemPreviewSettingsPage.steps.verifyLeftAlignedNavigationAlignment();
305
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
266
306
  });
267
307
 
268
308
  it('When user selects \'Separated using dividers\' navigation style and \'Horizontal\' navigation orientation is active selection, then vertical line should be displayed between the section titles', () => {
@@ -270,6 +310,7 @@ describe('Item preview: Settings tab - functionality', () => {
270
310
  itemPreviewSettingsPage.steps.selectSeparatedUsingDividersNavigationStyle();
271
311
  itemPreviewSettingsPage.steps.clickApplyChanges();
272
312
  itemPreviewSettingsPage.steps.verifySeparatedUsingDividersNavigationStyle('horizontal');
313
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
273
314
  });
274
315
 
275
316
  it('When user selects \'Numbered\' navigation style, then numbers should be displayed with section titles', () => {
@@ -277,6 +318,7 @@ describe('Item preview: Settings tab - functionality', () => {
277
318
  itemPreviewSettingsPage.steps.selectNumberedNavigationStyle();
278
319
  itemPreviewSettingsPage.steps.clickApplyChanges();
279
320
  itemPreviewSettingsPage.steps.verifyNumberedSectionNavigationStyle();
321
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
280
322
  });
281
323
 
282
324
  it('When user selects \'Center aligned\' navigation alignment, then section titles should be center aligned', () => {
@@ -284,6 +326,7 @@ describe('Item preview: Settings tab - functionality', () => {
284
326
  itemPreviewSettingsPage.steps.selectCenterAlignedNavigationAlignment();
285
327
  itemPreviewSettingsPage.steps.clickApplyChanges();
286
328
  itemPreviewSettingsPage.steps.verifyCenterAlignedNavigationAlignment();
329
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
287
330
  });
288
331
 
289
332
  it('When user selects \'Right aligned\' navigation alignment, then section titles should be right aligned', () => {
@@ -291,16 +334,26 @@ describe('Item preview: Settings tab - functionality', () => {
291
334
  itemPreviewSettingsPage.steps.selectRightAlignedNavigationAlignment();
292
335
  itemPreviewSettingsPage.steps.clickApplyChanges();
293
336
  itemPreviewSettingsPage.steps.verifyRightAlignedNavigationAlignment();
337
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
294
338
  });
295
339
 
296
- it('When user selects \'Vertical\' navigation orientation, then vertically oriented sections should be displayed', () => {
340
+ it('When user selects \'Vertical\' navigation orientation, then vertically oriented sections should be displayed and the width should be equal to item width in edit tab and preview tab', () => {
297
341
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
298
342
  itemPreviewSettingsPage.steps.selectVerticalNavigationOrientation();
299
343
  itemPreviewSettingsPage.steps.clickApplyChanges();
300
344
  itemPreviewSettingsPage.steps.verifyVerticalNavigationOrientation();
345
+ itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
346
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
347
+ itemPreviewSettingsPage.steps.navigateToSection1();
348
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
349
+ itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
350
+ itemPreviewSettingsPage.steps.navigateToSection2();
351
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
352
+ itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
301
353
  });
302
354
 
303
355
  it('When \'Numbered\' navigation style is the active selection, then numbers should be displayed with the section titles', () => {
356
+ itemPreviewSettingsPage.steps.switchToEditTab();
304
357
  itemPreviewSettingsPage.steps.verifyNumberedSectionNavigationStyle();
305
358
  });
306
359
 
@@ -318,15 +371,21 @@ describe('Item preview: Settings tab - functionality', () => {
318
371
  itemPreviewSettingsPage.steps.verifySeparatedUsingDividersNavigationStyle('vertical');
319
372
  });
320
373
 
321
- it('When user checks \'Enable side by side panels\' checkbox and \'Left panel\' is active selection for \'Enable sections in\', then \'Edit tab\' should have two panels and \'Left panel\' should have two sections', () => {
374
+ it('When user checks \'Enable side by side panels\' checkbox and \'Left panel\' is active selection for \'Enable sections in\', then \'Edit tab\' should have two panels and \'Left panel\' should have two sections and on switching to preview tab the added question and resource should be displayed in respective panels', () => {
322
375
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
323
376
  itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
324
377
  itemPreviewSettingsPage.steps.clickApplyChanges();
325
378
  itemPreviewSettingsPage.steps.verifyPanelCount(2);
326
379
  itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
380
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
381
+ itemPreviewSettingsPage.steps.navigateToSection1();
382
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
383
+ itemPreviewSettingsPage.steps.navigateToSection2();
384
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
327
385
  });
328
386
 
329
387
  it('When user checks \'Right panel\' checkbox in \'Enable sections in\', then right panel should have two sections in it', () => {
388
+ itemPreviewSettingsPage.steps.switchToEditTab();
330
389
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
331
390
  itemPreviewSettingsPage.steps.checkRightPanelCheckbox();
332
391
  itemPreviewSettingsPage.steps.clickApplyChanges();
@@ -341,50 +400,79 @@ describe('Item preview: Settings tab - functionality', () => {
341
400
  itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Heading', 'Body');
342
401
  itemPreviewSettingsPage.steps.navigateToSection2(1);
343
402
  itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
344
- itemPreviewSettingsPage.steps.clickOnAddResource(1);
403
+ itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
345
404
  itemPreviewSettingsPage.steps.selectQuestionType('short text response');
346
405
  itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('ShortTextResponse', '2', 'Result');
347
406
  });
348
407
 
349
- it('When user has added question in section 1 then, it should be displayed in the section 1 ', () => {
350
- itemPreviewSettingsPage.steps.navigateToSection1();
408
+ it('When user has added question in section 1 then, it should be displayed in the section 1 and the width should be half of item width in edit tab and preview tab', () => {
409
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
351
410
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
411
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
412
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
413
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
414
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Body', panel: 1 });
415
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
352
416
  });
353
417
 
354
- it('When user has added resource and tool in section 2 then, it should be displayed in the section 2', () => {
355
- itemPreviewSettingsPage.steps.navigateToSection2();
356
- itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
418
+ it('When user has added resource and tool in section 2 then, it should be displayed in the section 2 and the width should be half of item width in edit tab and preview tab', () => {
419
+ itemPreviewSettingsPage.steps.switchToEditTab();
420
+ itemPreviewSettingsPage.steps.navigateToSection2(1);
421
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
422
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
423
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
424
+ itemPreviewSettingsPage.steps.navigateToSection2(1);
425
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortTextResponse', panel: 1 });
426
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
357
427
  });
358
428
 
359
- it('When user unchecks \'Left panel\' checkbox, then section titles should disappear and questions in \'Left panel\' should be displayed inline', () => {
429
+ it('When user unchecks \'Left panel\' checkbox, then section titles should disappear and questions in \'Left panel\' should be displayed inline and the width should be half of item width in edit tab and preview tab', () => {
430
+ itemPreviewSettingsPage.steps.switchToEditTab();
360
431
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
361
432
  itemPreviewSettingsPage.steps.uncheckLeftPanelCheckbox();
362
433
  itemPreviewSettingsPage.steps.clickApplyChanges();
363
434
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
364
435
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
365
- itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
436
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
437
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
438
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
439
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
440
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
441
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
366
442
  });
367
443
 
368
- it('When user checks \'Left panel\' checkbox, then \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons', () => {
444
+ it('When user checks \'Left panel\' checkbox, then \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons and on switching to preview tab the added question and resource and tool should be displayed', () => {
445
+ itemPreviewSettingsPage.steps.switchToEditTab();
369
446
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
370
447
  itemPreviewSettingsPage.steps.checkLeftPanelCheckbox();
371
448
  itemPreviewSettingsPage.steps.clickApplyChanges();
372
449
  itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
373
- itemPreviewSettingsPage.steps.navigateToSection1(0);
450
+ itemPreviewSettingsPage.steps.navigateToSection1();
374
451
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
375
- itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
452
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
453
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
454
+ itemPreviewSettingsPage.steps.navigateToSection1();
455
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
456
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
376
457
  });
377
458
 
378
- it('When user unchecks \'Right panel\' checkbox, then in \'Right panel\' section titles should disappear and questions should be displayed inline', () => {
459
+ it('When user unchecks \'Right panel\' checkbox, then in \'Right panel\' section titles should disappear and questions should be displayed inline and the width should be half of item width in edit tab and preview tab', () => {
460
+ itemPreviewSettingsPage.steps.switchToEditTab();
379
461
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
380
462
  itemPreviewSettingsPage.steps.uncheckRightPanelCheckbox();
381
463
  itemPreviewSettingsPage.steps.clickApplyChanges();
382
464
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
383
465
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
384
466
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
467
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
468
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
469
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortTextResponse', panel: 1 });
470
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Body', panel: 1 });
471
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
385
472
  });
386
473
 
387
- it('When user checks \'Right panel\' checkbox, then in \'Right panel\' \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons', () => {
474
+ it('When user checks \'Right panel\' checkbox, then in \'Right panel\' \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons in edit tab and preview tab', () => {
475
+ itemPreviewSettingsPage.steps.switchToEditTab();
388
476
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
389
477
  itemPreviewSettingsPage.steps.checkRightPanelCheckbox();
390
478
  itemPreviewSettingsPage.steps.clickApplyChanges();
@@ -392,19 +480,320 @@ describe('Item preview: Settings tab - functionality', () => {
392
480
  itemPreviewSettingsPage.steps.navigateToSection1(1);
393
481
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
394
482
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
483
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
484
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
485
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
486
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortTextResponse', panel: 1 });
487
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Body', panel: 1 });
488
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
395
489
  });
396
490
 
397
- //Failing due to https://redmine.zeuslearning.com/issues/555337
398
- it('When user unchecks \'Enable sections\' checkbox, then section titles should disappear and \'Left panel\' and \'Right panel\' should have prefilled questions', () => {
491
+ it('When user unchecks \'Enable sections\' checkbox, then section titles should disappear and \'Left panel\' and \'Right panel\' should have prefilled questions and the width should be half of item width in edit tab and preview tab', () => {
492
+ itemPreviewSettingsPage.steps.switchToEditTab();
399
493
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
400
494
  itemPreviewSettingsPage.steps.uncheckEnableSectionsCheckbox();
401
495
  itemPreviewSettingsPage.steps.clickApplyChanges();
402
496
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
403
497
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
404
498
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
405
- itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
499
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
500
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
406
501
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
407
502
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Short text response', questionInstructions: 'ShortTextResponse', panel: 1 });
503
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
504
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
505
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
506
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Warming', panel: 0 });
507
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
508
+ itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Body', panel: 1 });
509
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'ShortTextResponse', panel: 1 });
510
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
511
+ });
512
+ });
513
+
514
+ describe('Functionality for \'Enable side by side panels\' section for canvas questions', () => {
515
+ abortEarlySetup();
516
+ before(() => {
517
+ cy.log('Navigating to Item preview settings tab');
518
+ itemPreviewSettingsPage.steps.navigateToCreateItemPage();
519
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
520
+ });
521
+
522
+ it('When user checks \'Enable side by side panels\' checkbox and clicks on \'Apply changes\', then two panels should be displayed in \'Edit tab\' and on switching to preview tab \'Preview not available\; should be displayed', () => {
523
+ itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
524
+ itemPreviewSettingsPage.steps.clickApplyChanges();
525
+ itemPreviewSettingsPage.steps.verifyPanelCount(2);
526
+ itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(0);
527
+ itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
528
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
529
+ utilities.verifyInnerText(itemPreviewSettingsPage.noPreviewText(), 'Preview not available');
530
+ utilities.verifyElementCount(itemPreviewSettingsPage.noPreviewText(), 2);
531
+ });
532
+
533
+ it('User should be able to add canvas question to both the panels', () => {
534
+ itemPreviewSettingsPage.steps.switchToEditTab();
535
+ itemPreviewSettingsPage.steps.clickOnAddQuestion(0);
536
+ itemPreviewSettingsPage.steps.selectQuestionType('Graphing');
537
+ itemPreviewSettingsPage.steps.createBasicGraphingResponseQuestion('Graphing question', 2);
538
+ itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
539
+ itemPreviewSettingsPage.steps.selectQuestionType('Drawing Response');
540
+ itemPreviewSettingsPage.steps.createBasicDrawingResponseQuestion('Drawing question', 2);
541
+ });
542
+
543
+ it('When user has added canvas question in the left panel, then it should be displayed in the left panel within half of the container width in edit tab and preview tab', () => {
544
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
545
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
546
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
547
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 })
548
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
549
+ });
550
+
551
+ it('When user has added canvas question in the right panel, then it should be displayed in the right panel within half of the container width in edit tab and preview tab', () => {
552
+ itemPreviewSettingsPage.steps.switchToEditTab();
553
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 1 });
554
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
555
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
556
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 1 });
557
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
558
+ });
559
+
560
+ it('When user unchecks \'Enable side by side panels\' checkbox, then only one panel should be displayed and and added questions should be displayed inline in edit tab and preview tab', () => {
561
+ itemPreviewSettingsPage.steps.switchToEditTab();
562
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
563
+ itemPreviewSettingsPage.steps.uncheckEnableSideBySidePanelsCheckbox();
564
+ itemPreviewSettingsPage.steps.clickApplyChanges();
565
+ itemPreviewSettingsPage.steps.verifyQuestionsCount(2);
566
+ itemPreviewSettingsPage.steps.verifyPanelCount(1);
567
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
568
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 0 });
569
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
570
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
571
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
572
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Drawing question', panel: 0 });
573
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
574
+ });
575
+
576
+ it('When user checks \'Enable side by side panels\' checkbox again, then \'Edit tab\' should be displayed with two panels, the left panel should be prefilled with added questions right panel should have \'Add question\' and \'Add resource and tool\' buttons and \'No preview\' should be displayed in the right panel', () => {
577
+ itemPreviewSettingsPage.steps.switchToEditTab();
578
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
579
+ itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
580
+ itemPreviewSettingsPage.steps.clickApplyChanges();
581
+ itemPreviewSettingsPage.steps.verifyPanelCount(2);
582
+ itemPreviewSettingsPage.steps.verifyQuestionsExistInLeftPanel();
583
+ itemPreviewSettingsPage.steps.verifyQuestionsDoNotExistInRightPanel();
584
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
585
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
586
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
587
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Drawing question', panel: 0 });
588
+ utilities.verifyInnerText(itemPreviewSettingsPage.noPreviewText(), 'Preview not available');
589
+ utilities.verifyElementCount(itemPreviewSettingsPage.noPreviewText(), 1);
590
+ });
591
+ });
592
+
593
+ describe('Functionality of \'Sections\' section for canvas questions', () => {
594
+ abortEarlySetup();
595
+ before(() => {
596
+ cy.log('Navigating to Item preview settings tab');
597
+ itemPreviewSettingsPage.steps.navigateToCreateItemPage();
598
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
599
+ });
600
+
601
+ it('When user checks \'Enable sections\' checkbox, then two sections should be displayed in \'Edit tab\' and both sections should have \'Add question\' and \'Add resource and tool\' buttons', () => {
602
+ itemPreviewSettingsPage.steps.checkEnableSectionsCheckbox();
603
+ itemPreviewSettingsPage.steps.clickApplyChanges();
604
+ itemPreviewSettingsPage.steps.verifyTwoSectionsExist();
605
+ itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton();
606
+ itemPreviewSettingsPage.steps.navigateToSection2();
607
+ itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton();
608
+ });
609
+
610
+ it('User should be able to add canvas questions in both sections', () => {
611
+ itemPreviewSettingsPage.steps.navigateToSection1();
612
+ itemPreviewSettingsPage.steps.clickOnAddQuestion();
613
+ itemPreviewSettingsPage.steps.selectQuestionType('Graphing');
614
+ itemPreviewSettingsPage.steps.createBasicGraphingResponseQuestion('Graphing question', 2);
615
+ itemPreviewSettingsPage.steps.navigateToSection2();
616
+ itemPreviewSettingsPage.steps.clickOnAddQuestion();
617
+ itemPreviewSettingsPage.steps.selectQuestionType('Drawing Response');
618
+ itemPreviewSettingsPage.steps.createBasicDrawingResponseQuestion('Drawing question', 2);
619
+ });
620
+
621
+ it('When user has added question in section 1 then, it should be displayed in the section 1 and the width should be equal to item width in edit tab and preview tab', () => {
622
+ itemPreviewSettingsPage.steps.navigateToSection1();
623
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
624
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
625
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
626
+ itemPreviewSettingsPage.steps.navigateToSection1();
627
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
628
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
629
+ });
630
+
631
+ it('When user has added question in section 2 then, it should be displayed in the section 2 and the width should be equal to item width in edit tab and preview tab', () => {
632
+ itemPreviewSettingsPage.steps.switchToEditTab();
633
+ itemPreviewSettingsPage.steps.navigateToSection2();
634
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 0 });
635
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
636
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
637
+ itemPreviewSettingsPage.steps.navigateToSection2();
638
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 0 });
639
+ itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
640
+ });
641
+
642
+ it('When user selects \'Vertical\' navigation orientation, then vertically oriented sections should be displayed in edit tab and preview tab', () => {
643
+ itemPreviewSettingsPage.steps.switchToEditTab();
644
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
645
+ itemPreviewSettingsPage.steps.selectVerticalNavigationOrientation();
646
+ itemPreviewSettingsPage.steps.clickApplyChanges();
647
+ itemPreviewSettingsPage.steps.verifyVerticalNavigationOrientation();
648
+ itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
649
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
650
+ itemPreviewSettingsPage.steps.navigateToSection1();
651
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
652
+ itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
653
+ itemPreviewSettingsPage.steps.navigateToSection2();
654
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 0 });
655
+ itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
656
+ });
657
+
658
+ it('When user checks \'Enable side by side panels\' checkbox and \'Left panel\' is active selection for \'Enable sections in\', then \'Edit tab\' should have two panels and \'Left panel\' should have two sections and the width should be half of item width and on switching to preview tab the added questions should be displayed', () => {
659
+ itemPreviewSettingsPage.steps.switchToEditTab();
660
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
661
+ itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
662
+ itemPreviewSettingsPage.steps.clickApplyChanges();
663
+ itemPreviewSettingsPage.steps.verifyPanelCount(2);
664
+ itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
665
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
666
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
667
+ itemPreviewSettingsPage.steps.navigateToSection1();
668
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
669
+ itemPreviewSettingsPage.steps.navigateToSection2();
670
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 0 });
671
+ });
672
+
673
+ it('When user checks \'Right panel\' checkbox in \'Enable sections in\', then right panel should have two sections in it', () => {
674
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
675
+ itemPreviewSettingsPage.steps.checkRightPanelCheckbox();
676
+ itemPreviewSettingsPage.steps.clickApplyChanges();
677
+ itemPreviewSettingsPage.steps.verifyPanelCount(2);
678
+ itemPreviewSettingsPage.steps.verifyTwoSectionsExist(1);
679
+ });
680
+
681
+ it('User should be able to add questions in both sections of \'Right panel\'', () => {
682
+ itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
683
+ itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
684
+ itemPreviewSettingsPage.steps.selectQuestionType('Drawing Response');
685
+ itemPreviewSettingsPage.steps.createBasicDrawingResponseQuestion('Drawing question', 2);
686
+ itemPreviewSettingsPage.steps.navigateToSection2(1);
687
+ itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
688
+ itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
689
+ itemPreviewSettingsPage.steps.selectQuestionType('Graphing');
690
+ itemPreviewSettingsPage.steps.createBasicGraphingResponseQuestion('Graphing question', 2);
691
+ });
692
+
693
+ it('When user has added question in section 1 then, it should be displayed in the section 1 and the width should be half of item width in edit tab and preview tab', () => {
694
+ itemPreviewSettingsPage.steps.switchToEditTab();
695
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
696
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 1 });
697
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
698
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
699
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
700
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 1 });
701
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
702
+ });
703
+
704
+ it('When user has added question in section 2 then, it should be displayed in the section 2 and the width should be half of item width in edit tab and preview tab', () => {
705
+ itemPreviewSettingsPage.steps.switchToEditTab();
706
+ itemPreviewSettingsPage.steps.navigateToSection2(1);
707
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 1 });
708
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
709
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
710
+ itemPreviewSettingsPage.steps.navigateToSection2(1);
711
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 1 });
712
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
713
+ });
714
+
715
+ it('When user unchecks \'Left panel\' checkbox, then section titles should disappear and questions in \'Left panel\' should be displayed inline and the width should be half of item width in edit tab and preview tab', () => {
716
+ itemPreviewSettingsPage.steps.switchToEditTab();
717
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
718
+ itemPreviewSettingsPage.steps.uncheckLeftPanelCheckbox();
719
+ itemPreviewSettingsPage.steps.clickApplyChanges();
720
+ itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
721
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
722
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 0 });
723
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
724
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
725
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
726
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
727
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
728
+ });
729
+
730
+ it('When user checks \'Left panel\' checkbox, then \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons in edit tab and preview tab', () => {
731
+ itemPreviewSettingsPage.steps.switchToEditTab();
732
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
733
+ itemPreviewSettingsPage.steps.checkLeftPanelCheckbox();
734
+ itemPreviewSettingsPage.steps.clickApplyChanges();
735
+ itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
736
+ itemPreviewSettingsPage.steps.navigateToSection1(0);
737
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
738
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 0 });
739
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
740
+ itemPreviewSettingsPage.steps.navigateToSection1();
741
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
742
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 0 });
743
+ });
744
+
745
+ it('When user unchecks \'Right panel\' checkbox, then in \'Right panel\' section titles should disappear and questions should be displayed inline and the width should be half of item width in edit tab and preview tab', () => {
746
+ itemPreviewSettingsPage.steps.switchToEditTab();
747
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
748
+ itemPreviewSettingsPage.steps.uncheckRightPanelCheckbox();
749
+ itemPreviewSettingsPage.steps.clickApplyChanges();
750
+ itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
751
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 1 });
752
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 1 });
753
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
754
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
755
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 1 });
756
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Graphing question', panel: 1 });
757
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
758
+ });
759
+
760
+ it('When user checks \'Right panel\' checkbox, then in \'Right panel\' \'Section 1\' should be prefilled with questions and both sections should have \'Add question\' & \'Add resource and tool\' buttons and the width should be half of item width in edit tab and preview tab', () => {
761
+ itemPreviewSettingsPage.steps.switchToEditTab();
762
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
763
+ itemPreviewSettingsPage.steps.checkRightPanelCheckbox();
764
+ itemPreviewSettingsPage.steps.clickApplyChanges();
765
+ itemPreviewSettingsPage.steps.verifyTwoSectionsExist(1);
766
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
767
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 1 });
768
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 1 });
769
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
770
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
771
+ itemPreviewSettingsPage.steps.navigateToSection1(1);
772
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 1 });
773
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Graphing question', panel: 1 });
774
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
775
+ });
776
+
777
+ it('When user unchecks \'Enable sections\' checkbox, then section titles should disappear and \'Left panel\' and \'Right panel\' should have prefilled questions and the width should be half of item width in edit tab and preview tab', () => {
778
+ itemPreviewSettingsPage.steps.switchToEditTab();
779
+ itemPreviewSettingsPage.steps.clickOnSettingsButton();
780
+ itemPreviewSettingsPage.steps.uncheckEnableSectionsCheckbox();
781
+ itemPreviewSettingsPage.steps.clickApplyChanges();
782
+ itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
783
+ itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
784
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 0 });
785
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 0 });
786
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
787
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Drawing response', questionInstructions: 'Drawing question', panel: 1 });
788
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Graphing', questionInstructions: 'Graphing question', panel: 1 });
789
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
790
+ itemPreviewSettingsPage.steps.switchToPreviewTab();
791
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Graphing question', panel: 0 });
792
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Drawing question', panel: 0 });
793
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
794
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'Drawing question', panel: 1 });
795
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 1, questionInstructions: 'Graphing question', panel: 1 });
796
+ itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(1);
408
797
  });
409
798
  });
410
799
  });