itemengine-cypress-automation 1.0.185-repoUpdate26April-b17eb46.0 → 1.0.185

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/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
  3. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  5. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +8 -5
  6. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +28 -417
  7. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  8. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +1 -29
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  20. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -3
  21. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +0 -1
  23. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
  24. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  25. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  26. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  27. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  28. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  29. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  30. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +3 -11
  31. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  32. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  33. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  34. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -1
  35. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  36. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  37. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +1 -57
  38. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  39. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
  40. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -2
  41. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  42. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -49
  43. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
  44. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  45. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  46. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -0
  47. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -0
  48. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -0
  49. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -0
  50. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -0
  51. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -1
  52. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +4 -5
  53. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -6
  54. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  55. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  56. package/cypress/fixtures/constants.js +1 -1
  57. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  58. package/cypress/fixtures/theme/ilc.json +18 -20
  59. package/cypress/pages/audioPlayerPage.js +504 -274
  60. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  61. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  62. package/cypress/pages/components/autoScoredStudentViewSettings.js +5 -5
  63. package/cypress/pages/components/commonComponents.js +0 -1
  64. package/cypress/pages/components/draggableOptionContainer.js +0 -1
  65. package/cypress/pages/components/equationEditorFlyout.js +2 -3
  66. package/cypress/pages/components/essayResponseCommonComponents.js +2 -8
  67. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -1
  68. package/cypress/pages/components/imageCanvasComponent.js +1 -2
  69. package/cypress/pages/components/index.js +0 -3
  70. package/cypress/pages/components/optionsWrapperComponent.js +2 -13
  71. package/cypress/pages/components/playbackControlsBaseComponent.js +13 -20
  72. package/cypress/pages/components/toolSettingsComponent.js +0 -6
  73. package/cypress/pages/contentBlocksPage.js +2 -18
  74. package/cypress/pages/createItemPage.js +8 -75
  75. package/cypress/pages/dialogBoxBase.js +2 -2
  76. package/cypress/pages/drawingResponsePage.js +4 -24
  77. package/cypress/pages/feedbackScalePage.js +0 -3
  78. package/cypress/pages/graphingPage.js +1 -19
  79. package/cypress/pages/gridFillPage.js +8 -25
  80. package/cypress/pages/index.js +1 -2
  81. package/cypress/pages/itemPreviewSettingsPage.js +0 -4
  82. package/cypress/pages/listOrderingPage.js +557 -435
  83. package/cypress/pages/matchingPage.js +1 -1
  84. package/cypress/pages/multipleSelectionPage.js +1 -23
  85. package/cypress/pages/numberLinePage.js +132 -1370
  86. package/cypress/pages/rulerPage.js +2 -6
  87. package/cypress/pages/textSelectionPage.js +23 -461
  88. package/package.json +1 -1
  89. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +0 -79
  90. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +0 -345
  91. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +0 -429
  92. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +0 -162
  93. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +0 -489
  94. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +0 -313
  95. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +0 -230
  96. package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +0 -124
  97. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +0 -201
  98. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -216
  99. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -214
  100. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -251
  101. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +0 -52
  102. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +0 -128
  103. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -279
  104. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +0 -109
  105. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -278
  106. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -278
  107. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +0 -335
  108. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -250
  109. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +0 -161
  110. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -216
  111. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -252
  112. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +0 -118
  113. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -243
  114. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -128
  115. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -155
  116. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +0 -195
  117. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +0 -78
  118. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -194
  119. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +0 -176
  120. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -112
  121. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +0 -244
  122. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +0 -181
  123. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +0 -33
  124. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +0 -46
  125. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -696
  126. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +0 -173
  127. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +0 -183
  128. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +0 -73
  129. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +0 -204
  130. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -288
  131. package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +0 -153
  132. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -164
  133. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +0 -120
  134. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +0 -125
  135. package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -73
  136. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +0 -179
  137. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +0 -89
  138. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +0 -436
  139. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +0 -277
  140. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +0 -222
  141. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +0 -260
  142. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -380
  143. package/cypress/pages/components/layoutSectionComponent.js +0 -1191
  144. package/cypress/pages/components/numberLineCommonComponent.js +0 -36
  145. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +0 -46
  146. package/cypress/pages/numberLineLabelPage.js +0 -333
@@ -16,19 +16,15 @@ 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\' and when user switches to preview tab \'Preview not available\' should be displayed', () => {
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\'', () => {
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);
28
25
  });
29
26
 
30
27
  it('User should be able to add questions or resource and tools in both the panels', () => {
31
- itemPreviewSettingsPage.steps.switchToEditTab();
32
28
  itemPreviewSettingsPage.steps.clickOnAddQuestion(0);
33
29
  itemPreviewSettingsPage.steps.selectQuestionType('short text response');
34
30
  itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('shortTextResponseHeading', 2, 'Answer');
@@ -37,54 +33,31 @@ describe('Item preview: Settings tab - functionality', () => {
37
33
  itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Heading', 'Content heading');
38
34
  });
39
35
 
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();
36
+ it('When user has added question in the left panel, then it should be displayed in the left panel ', () => {
42
37
  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);
47
38
  });
48
39
 
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();
40
+ it('When user has added resource and tool in the right panel, then it should be displayed in the right panel', () => {
51
41
  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);
56
42
  });
57
43
 
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();
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', () => {
60
45
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
61
46
  itemPreviewSettingsPage.steps.uncheckEnableSideBySidePanelsCheckbox();
62
47
  itemPreviewSettingsPage.steps.clickApplyChanges();
63
48
  itemPreviewSettingsPage.steps.verifyQuestionsCount(2);
64
49
  itemPreviewSettingsPage.steps.verifyPanelCount(1);
65
50
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'shortTextResponseHeading', 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();
51
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Content heading', panel: 0 });
72
52
  });
73
53
 
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();
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', () => {
76
55
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
77
56
  itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
78
57
  itemPreviewSettingsPage.steps.clickApplyChanges();
79
58
  itemPreviewSettingsPage.steps.verifyPanelCount(2);
80
59
  itemPreviewSettingsPage.steps.verifyQuestionsExistInLeftPanel();
81
60
  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);
88
61
  });
89
62
 
90
63
  it('Accessibility of panels', { tags: 'a11y' }, () => {
@@ -271,38 +244,25 @@ describe('Item preview: Settings tab - functionality', () => {
271
244
  itemPreviewSettingsPage.steps.selectQuestionType('short text response');
272
245
  itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('ShortText', '2', 'Answer');
273
246
  itemPreviewSettingsPage.steps.navigateToSection2();
274
- itemPreviewSettingsPage.steps.clickOnAddResource();
247
+ itemPreviewSettingsPage.steps.clickOnAddQuestion();
275
248
  itemPreviewSettingsPage.steps.selectResourceType('content blocks');
276
249
  itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Global', 'Warming');
277
250
  });
278
251
 
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', () => {
252
+ it('When user has added question in section 1 then, it should be displayed in the section 1 ', () => {
280
253
  itemPreviewSettingsPage.steps.navigateToSection1();
281
254
  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();
287
255
  });
288
256
 
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();
257
+ it('When user has added resource and tool in section 2 then, it should be displayed in the section 2', () => {
295
258
  itemPreviewSettingsPage.steps.navigateToSection2();
296
- itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
297
- itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
259
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
298
260
  });
299
261
 
300
262
  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();
302
263
  itemPreviewSettingsPage.steps.verifyHorizontalNavigationOrientation();
303
264
  itemPreviewSettingsPage.steps.verifyUnderlinedNavigationStyle(4);
304
265
  itemPreviewSettingsPage.steps.verifyLeftAlignedNavigationAlignment();
305
- itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
306
266
  });
307
267
 
308
268
  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', () => {
@@ -310,7 +270,6 @@ describe('Item preview: Settings tab - functionality', () => {
310
270
  itemPreviewSettingsPage.steps.selectSeparatedUsingDividersNavigationStyle();
311
271
  itemPreviewSettingsPage.steps.clickApplyChanges();
312
272
  itemPreviewSettingsPage.steps.verifySeparatedUsingDividersNavigationStyle('horizontal');
313
- itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
314
273
  });
315
274
 
316
275
  it('When user selects \'Numbered\' navigation style, then numbers should be displayed with section titles', () => {
@@ -318,7 +277,6 @@ describe('Item preview: Settings tab - functionality', () => {
318
277
  itemPreviewSettingsPage.steps.selectNumberedNavigationStyle();
319
278
  itemPreviewSettingsPage.steps.clickApplyChanges();
320
279
  itemPreviewSettingsPage.steps.verifyNumberedSectionNavigationStyle();
321
- itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
322
280
  });
323
281
 
324
282
  it('When user selects \'Center aligned\' navigation alignment, then section titles should be center aligned', () => {
@@ -326,7 +284,6 @@ describe('Item preview: Settings tab - functionality', () => {
326
284
  itemPreviewSettingsPage.steps.selectCenterAlignedNavigationAlignment();
327
285
  itemPreviewSettingsPage.steps.clickApplyChanges();
328
286
  itemPreviewSettingsPage.steps.verifyCenterAlignedNavigationAlignment();
329
- itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
330
287
  });
331
288
 
332
289
  it('When user selects \'Right aligned\' navigation alignment, then section titles should be right aligned', () => {
@@ -334,26 +291,16 @@ describe('Item preview: Settings tab - functionality', () => {
334
291
  itemPreviewSettingsPage.steps.selectRightAlignedNavigationAlignment();
335
292
  itemPreviewSettingsPage.steps.clickApplyChanges();
336
293
  itemPreviewSettingsPage.steps.verifyRightAlignedNavigationAlignment();
337
- itemPreviewSettingsPage.steps.verifyPanelWidthEqualToItemWidth();
338
294
  });
339
295
 
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', () => {
296
+ it('When user selects \'Vertical\' navigation orientation, then vertically oriented sections should be displayed', () => {
341
297
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
342
298
  itemPreviewSettingsPage.steps.selectVerticalNavigationOrientation();
343
299
  itemPreviewSettingsPage.steps.clickApplyChanges();
344
300
  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();
353
301
  });
354
302
 
355
303
  it('When \'Numbered\' navigation style is the active selection, then numbers should be displayed with the section titles', () => {
356
- itemPreviewSettingsPage.steps.switchToEditTab();
357
304
  itemPreviewSettingsPage.steps.verifyNumberedSectionNavigationStyle();
358
305
  });
359
306
 
@@ -371,21 +318,15 @@ describe('Item preview: Settings tab - functionality', () => {
371
318
  itemPreviewSettingsPage.steps.verifySeparatedUsingDividersNavigationStyle('vertical');
372
319
  });
373
320
 
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', () => {
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', () => {
375
322
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
376
323
  itemPreviewSettingsPage.steps.checkEnableSideBySidePanelsCheckbox();
377
324
  itemPreviewSettingsPage.steps.clickApplyChanges();
378
325
  itemPreviewSettingsPage.steps.verifyPanelCount(2);
379
326
  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 });
385
327
  });
386
328
 
387
329
  it('When user checks \'Right panel\' checkbox in \'Enable sections in\', then right panel should have two sections in it', () => {
388
- itemPreviewSettingsPage.steps.switchToEditTab();
389
330
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
390
331
  itemPreviewSettingsPage.steps.checkRightPanelCheckbox();
391
332
  itemPreviewSettingsPage.steps.clickApplyChanges();
@@ -400,79 +341,50 @@ describe('Item preview: Settings tab - functionality', () => {
400
341
  itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('Heading', 'Body');
401
342
  itemPreviewSettingsPage.steps.navigateToSection2(1);
402
343
  itemPreviewSettingsPage.steps.verifyAddQuestionAndAddResourceButton(1);
403
- itemPreviewSettingsPage.steps.clickOnAddQuestion(1);
344
+ itemPreviewSettingsPage.steps.clickOnAddResource(1);
404
345
  itemPreviewSettingsPage.steps.selectQuestionType('short text response');
405
346
  itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('ShortTextResponse', '2', 'Result');
406
347
  });
407
348
 
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);
349
+ it('When user has added question in section 1 then, it should be displayed in the section 1 ', () => {
350
+ itemPreviewSettingsPage.steps.navigateToSection1();
410
351
  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);
416
352
  });
417
353
 
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);
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 });
427
357
  });
428
358
 
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();
359
+ it('When user unchecks \'Left panel\' checkbox, then section titles should disappear and questions in \'Left panel\' should be displayed inline', () => {
431
360
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
432
361
  itemPreviewSettingsPage.steps.uncheckLeftPanelCheckbox();
433
362
  itemPreviewSettingsPage.steps.clickApplyChanges();
434
363
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
435
364
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', 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);
365
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
442
366
  });
443
367
 
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();
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', () => {
446
369
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
447
370
  itemPreviewSettingsPage.steps.checkLeftPanelCheckbox();
448
371
  itemPreviewSettingsPage.steps.clickApplyChanges();
449
372
  itemPreviewSettingsPage.steps.verifyTwoSectionsExist(0);
450
- itemPreviewSettingsPage.steps.navigateToSection1();
373
+ itemPreviewSettingsPage.steps.navigateToSection1(0);
451
374
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', 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 });
375
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
457
376
  });
458
377
 
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();
378
+ it('When user unchecks \'Right panel\' checkbox, then in \'Right panel\' section titles should disappear and questions should be displayed inline', () => {
461
379
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
462
380
  itemPreviewSettingsPage.steps.uncheckRightPanelCheckbox();
463
381
  itemPreviewSettingsPage.steps.clickApplyChanges();
464
382
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
465
383
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
466
384
  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);
472
385
  });
473
386
 
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();
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', () => {
476
388
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
477
389
  itemPreviewSettingsPage.steps.checkRightPanelCheckbox();
478
390
  itemPreviewSettingsPage.steps.clickApplyChanges();
@@ -480,320 +392,19 @@ describe('Item preview: Settings tab - functionality', () => {
480
392
  itemPreviewSettingsPage.steps.navigateToSection1(1);
481
393
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
482
394
  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);
489
395
  });
490
396
 
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();
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', () => {
493
399
  itemPreviewSettingsPage.steps.clickOnSettingsButton();
494
400
  itemPreviewSettingsPage.steps.uncheckEnableSectionsCheckbox();
495
401
  itemPreviewSettingsPage.steps.clickApplyChanges();
496
402
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(0);
497
403
  itemPreviewSettingsPage.steps.verifySectionsLabelsNotExist(1);
498
404
  itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 0, questionTitle: 'Short text response', questionInstructions: 'ShortText', panel: 0 });
499
- itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
500
- itemPreviewSettingsPage.steps.verifyPanelWidthIsHalfOfItemWidth(0);
405
+ itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreview({ questionIndex: 1, questionTitle: 'Content blocks', questionInstructions: 'Warming', panel: 0 });
501
406
  itemPreviewSettingsPage.steps.verifyContentBlockContentsPreview({ questionIndex: 0, questionTitle: 'Content blocks', questionInstructions: 'Body', panel: 1 });
502
407
  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);
797
408
  });
798
409
  });
799
410
  });