itemengine-cypress-automation 1.0.174-uploadResponseMigrationScript-45ca862.0 → 1.0.174

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -18
  2. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +1 -1
  3. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +10 -7
  4. package/cypress/e2e/ILC/FeedbackScaleNew/additionalSettings.js +111 -0
  5. package/cypress/e2e/ILC/FeedbackScaleNew/colorPopup.js +206 -0
  6. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +262 -0
  7. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +51 -0
  8. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +17 -17
  9. package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +1 -1
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +2 -2
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +3 -3
  12. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/conditionalCheckboxScoring.js +1 -0
  13. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +6 -7
  14. package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +3 -3
  15. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +0 -1
  16. package/cypress/e2e/ILC/Graphing/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
  17. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +0 -1
  18. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +2 -0
  19. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +3 -4
  20. package/cypress/e2e/ILC/GridFill/gridLayoutEditTabFunctionality.js +2 -2
  21. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +12 -12
  22. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +91 -90
  23. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +93 -92
  24. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +97 -95
  25. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +62 -62
  26. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +118 -117
  27. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +124 -120
  28. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +128 -125
  29. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +97 -96
  30. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +222 -196
  31. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +34 -34
  32. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +20 -20
  33. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +29 -29
  34. package/cypress/e2e/ILC/NumberLine/headerSection.js +3 -2
  35. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +40 -37
  36. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +7 -4
  37. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +14 -12
  38. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +24 -23
  39. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +2 -2
  40. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  41. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +2 -0
  42. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -0
  43. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -0
  44. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +1 -0
  45. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +1 -0
  46. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -0
  47. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -15
  48. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +1 -0
  49. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -0
  50. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +1 -1
  51. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +332 -0
  52. package/cypress/e2e/ILC/TextSelection/Scoring/manuallyAndNonScored.js +149 -0
  53. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +0 -1
  54. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +0 -1
  55. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +11 -11
  56. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +3 -3
  57. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +337 -0
  58. package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +206 -0
  59. package/cypress/e2e/ILC/TextSelection/{previewContentsForAllViews.js → previewContentsForAllViews.smoke.js} +3 -3
  60. package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +87 -87
  61. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +5 -5
  62. package/cypress/pages/audioResponsePage.js +1 -0
  63. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -1
  64. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  65. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -4
  66. package/cypress/pages/components/colorPopupComponent.js +11 -0
  67. package/cypress/pages/components/createCustomCategoryFlyout.js +13 -9
  68. package/cypress/pages/components/draggableOptionContainer.js +1 -0
  69. package/cypress/pages/components/equationEditorFlyout.js +0 -1
  70. package/cypress/pages/components/essayResponseCommonComponents.js +1 -1
  71. package/cypress/pages/components/imageCanvasComponent.js +1 -1
  72. package/cypress/pages/components/index.js +2 -1
  73. package/cypress/pages/components/optionsWrapperComponent.js +2 -1
  74. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  75. package/cypress/pages/components/questionInstructionsComponent.js +19 -7
  76. package/cypress/pages/components/setPointsPopupBase.js +17 -4
  77. package/cypress/pages/components/studentViewSettingsLabelComponent.js +2 -2
  78. package/cypress/pages/drawingResponsePage.js +2 -3
  79. package/cypress/pages/feedbackScalePage.js +143 -2
  80. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
  81. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +12 -12
  82. package/cypress/pages/graphingPage.js +6 -6
  83. package/cypress/pages/gridFillPage.js +64 -7
  84. package/cypress/pages/matchingPage.js +3 -3
  85. package/cypress/pages/numberLinePage.js +342 -215
  86. package/cypress/pages/readingRulerPage.js +1 -1
  87. package/cypress/pages/textEntryMathPage.js +9 -0
  88. package/cypress/pages/textEntryMathWithImagePage.js +11 -11
  89. package/cypress/pages/textSelectionPage.js +125 -57
  90. package/package.json +2 -2
  91. package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +0 -161
  92. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -356
  93. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +0 -299
  94. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToCorrectPoints.js +0 -355
  95. package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +0 -28
  96. package/cypress/pages/feedbackScalePage copy.js +0 -716
@@ -0,0 +1,262 @@
1
+ import { feedbackScalePage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ describe('Create item page: Feedback scale - Question instructions, Legend text, Scoring, Student view settings', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Question instructions input field - Edit tab', () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
15
+ cy.barsPreLoaderWait();
16
+ });
17
+
18
+ it('\'Question Instructions\' label and input field should be displayed and \'Enter Question Instructions\' placeholder text should be displayed on input field', () => {
19
+ utilities.verifyInnerText(feedbackScalePage.questionInstructionsLabelEditTab(), 'Question instructions');
20
+ feedbackScalePage.steps.verifyQuestionInstructionsPlaceholderText();
21
+ });
22
+
23
+ it('When user focus in and out of the \'Question Instructions\' input field without typing anything, error message should not be displayed', () => {
24
+ feedbackScalePage.steps.focusInAndOutOfQuestionInstructionsInputField();
25
+ utilities.verifyElementVisibilityState(feedbackScalePage.errorMessage(), 'notExist');
26
+ });
27
+
28
+ it('The user should be able to add the Question Instructions, the placeholder text should disappeared', () => {
29
+ feedbackScalePage.steps.addTextInQuestionInstructionsInputField('Reflect on your progress toward the learning target by rating your comfort level');
30
+ feedbackScalePage.steps.verifyQuestionInstructionsPlaceholderTextNotExists();
31
+ });
32
+
33
+ it('CSS of Question Instructions in Edit tab', { tags: 'css' }, () => {
34
+ utilities.verifyCSS(feedbackScalePage.questionInstructionsLabelEditTab(), {
35
+ 'color': css.color.sectionHeading,
36
+ 'font-size': css.fontSize.normal,
37
+ 'font-weight': css.fontWeight.semibold
38
+ });
39
+ utilities.verifyCSS(feedbackScalePage.questionInstructionsInputField(), {
40
+ 'color': css.color.text,
41
+ 'font-size': css.fontSize.default,
42
+ 'font-weight': css.fontWeight.regular
43
+ });
44
+ });
45
+ });
46
+
47
+ describe('Question instructions input field - Preview tab', () => {
48
+ abortEarlySetup();
49
+ before(() => {
50
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
51
+ cy.barsPreLoaderWait();
52
+ });
53
+
54
+ feedbackScalePage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
55
+ });
56
+
57
+ describe('Legend - Edit tab', () => {
58
+ abortEarlySetup();
59
+ before(() => {
60
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
61
+ cy.barsPreLoaderWait();
62
+ });
63
+
64
+ it('"Legend" label and "Show legend" checkbox and label should be displayed. By default, "Show legend" checkbox should be in checked state', () => {
65
+ utilities.verifyInnerText(feedbackScalePage.legendSectionLabel(), 'Legend');
66
+ utilities.verifyInnerText(feedbackScalePage.showLegendCheckboxLabel(), 'Show legend');
67
+ feedbackScalePage.steps.verifyShowLegendCheckboxCheckedState();
68
+ });
69
+
70
+ it('"Legend visibility" label and two radio buttons with label, "Expanded" and "Collapsed" should be displayed. By default "Expanded" radio button should be in checked state', () => {
71
+ utilities.verifyInnerText(feedbackScalePage.legendVisibilityLabel(), 'Legend visibility');
72
+ utilities.verifyInnerText(feedbackScalePage.expandedRadioButtonLabel(), 'Expanded');
73
+ utilities.verifyInnerText(feedbackScalePage.collapsedRadioButtonLabel(), 'Collapsed');
74
+ feedbackScalePage.steps.verifyExpandedRadioButtonCheckedState();
75
+ });
76
+
77
+ it('"Legend placement" label and two radio buttons with label, "Top" and "Bottom" should be displayed. By default "Bottom" radio button should be in checked state', () => {
78
+ utilities.verifyInnerText(feedbackScalePage.legendPlacementLabel(), 'Legend placement');
79
+ utilities.verifyInnerText(feedbackScalePage.topRadioButtonLabel(), 'Top');
80
+ utilities.verifyInnerText(feedbackScalePage.bottomRadioButtonLabel(), 'Bottom');
81
+ feedbackScalePage.steps.verifyBottomRadioButtonCheckedState();
82
+ });
83
+
84
+ it('CSS of Legend text section - "Show legend" checked state', { tags: 'css' }, () => {
85
+ const labelTextCSS = {
86
+ 'color': css.color.labelText,
87
+ 'font-size': css.fontSize.normal,
88
+ 'font-weight': css.fontWeight.regular
89
+ };
90
+ const labelCSS = {
91
+ 'color': css.color.labels,
92
+ 'font-size': css.fontSize.normal,
93
+ 'font-weight': css.fontWeight.semibold
94
+ }
95
+ utilities.verifyCSS(feedbackScalePage.legendSectionLabel(), {
96
+ 'color': css.color.labels,
97
+ 'font-size': css.fontSize.default,
98
+ 'font-weight': css.fontWeight.semibold
99
+ });
100
+ utilities.verifyCSS(feedbackScalePage.showLegendCheckbox().parent().find('svg g g').eq(0), {
101
+ 'fill': css.color.activeButtons
102
+ });
103
+ utilities.verifyCSS(feedbackScalePage.showLegendCheckboxLabel(), labelTextCSS);
104
+ utilities.verifyCSS(feedbackScalePage.legendVisibilityLabel(), labelCSS);
105
+ utilities.verifyCSS(feedbackScalePage.expandedRadioButton().parent().find('svg'), {
106
+ 'fill': css.color.activeButtons
107
+ });
108
+ utilities.verifyCSS(feedbackScalePage.expandedRadioButtonLabel(), labelTextCSS);
109
+ utilities.verifyCSS(feedbackScalePage.collapsedRadioButtonLabel(), labelTextCSS);
110
+ utilities.verifyCSS(feedbackScalePage.legendPlacementLabel(), labelCSS);
111
+ utilities.verifyCSS(feedbackScalePage.topRadioButtonLabel(), labelTextCSS);
112
+ utilities.verifyCSS(feedbackScalePage.bottomRadioButton().parent().find('svg'), {
113
+ 'fill': css.color.activeButtons
114
+ });
115
+ utilities.verifyCSS(feedbackScalePage.bottomRadioButtonLabel(), labelTextCSS);
116
+ });
117
+
118
+ it('When the user unchecks the "Show legend" checkbox, then "Legend visibility" and "Legend placement" sections should get removed from the "Legend text" section', () => {
119
+ feedbackScalePage.steps.uncheckShowLegendCheckbox();
120
+ utilities.verifyElementVisibilityState(feedbackScalePage.expandedRadioButton(), 'notExist');
121
+ utilities.verifyElementVisibilityState(feedbackScalePage.bottomRadioButton(), 'notExist');
122
+ });
123
+
124
+ it('CSS of Legend text section - "Show legend" unchecked state', { tags: 'css' }, () => {
125
+ utilities.verifyCSS(feedbackScalePage.showLegendCheckbox().parent().find('svg'), {
126
+ 'fill': css.color.uncheckedCheckbox
127
+ });
128
+ });
129
+
130
+ it('Accessibility of Legend text section - "Show legend" unchecked state', { tags: 'a11y' }, () => {
131
+ cy.checkAccessibility(feedbackScalePage.showLegendCheckbox().parents('.feedback-legend-wrapper'));
132
+ });
133
+ });
134
+
135
+ describe('Legend text - Preview tab', () => {
136
+ abortEarlySetup();
137
+ before(() => {
138
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
139
+ cy.barsPreLoaderWait();
140
+ feedbackScalePage.steps.switchToPreviewTab();
141
+ });
142
+
143
+ feedbackScalePage.tests.verifyLegendAccordionDefaultState();
144
+
145
+ it('When the user user switches to the edit tab and selects the "Collapsed" option in the "Legend visibility" radio buttons, then in the preview tab, the legend accordion should be in collapsed state by default. The user should be able to expand the collapsed accordion', () => {
146
+ feedbackScalePage.steps.switchToEditTab();
147
+ feedbackScalePage.steps.selectLegendVisibilityRadioButton('Collapsed');
148
+ feedbackScalePage.steps.switchToPreviewTab();
149
+ feedbackScalePage.steps.verifyLegendAccordionCollapsedState();
150
+ feedbackScalePage.steps.expandLegendAccordion();
151
+ });
152
+
153
+ it('When "Bottom" option in the "Legend placement" radio buttons is in selected state, then in the preview tab, the legend accordion should be placed below the feedback scale', () => {
154
+ feedbackScalePage.steps.switchToPreviewTab();
155
+ feedbackScalePage.steps.verifyLegendAccordionPlacement('Bottom');
156
+ });
157
+
158
+ it('When the user switches to the edit tab and selects the "Top" option in the "Legend placement" radio buttons, then in the preview tab, the legend accordion should be placed above the feedback scale', () => {
159
+ feedbackScalePage.steps.switchToEditTab();
160
+ feedbackScalePage.steps.selectLegendPlacementRadioButton('Top');
161
+ feedbackScalePage.steps.switchToPreviewTab();
162
+ feedbackScalePage.steps.verifyLegendAccordionPlacement('Top');
163
+ });
164
+
165
+ it('When the user switches to the edit tab and unchecks the "Show legend" checkbox, then in the preview tab, the legend accordion should be not be displayed', () => {
166
+ feedbackScalePage.steps.switchToEditTab();
167
+ feedbackScalePage.steps.uncheckShowLegendCheckbox();
168
+ feedbackScalePage.steps.switchToPreviewTab();
169
+ utilities.verifyElementVisibilityState(feedbackScalePage.legendAccordion(), 'notExist');
170
+ });
171
+
172
+ it('When the user checks the "Show legend" checkbox again, then in the preview tab, the legend accordion should be displayed', () => {
173
+ feedbackScalePage.steps.switchToEditTab();
174
+ feedbackScalePage.steps.checkShowLegendCheckbox();
175
+ feedbackScalePage.steps.switchToPreviewTab();
176
+ utilities.verifyElementVisibilityState(feedbackScalePage.legendAccordion(), 'visible');
177
+ });
178
+ });
179
+
180
+ describe('Scoring', () => {
181
+ abortEarlySetup();
182
+ before(() => {
183
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
184
+ cy.barsPreLoaderWait();
185
+ });
186
+
187
+ it('Scoring label should be displayed along with a help text, "This is a non scored question."', () => {
188
+ utilities.verifyInnerText(feedbackScalePage.scoringLabel(), 'Scoring');
189
+ utilities.verifyInnerText(feedbackScalePage.scoringHelpText(), 'This is a non scored question.');
190
+ });
191
+
192
+ it('CSS of scoring section', { tags: 'css' }, () => {
193
+ utilities.verifyCSS(feedbackScalePage.scoringLabel(), {
194
+ 'color': css.color.labels,
195
+ 'font-size': css.fontSize.default,
196
+ 'font-weight': css.fontWeight.semibold
197
+ });
198
+ utilities.verifyCSS(feedbackScalePage.scoringHelpText(), {
199
+ 'color': css.color.helperText,
200
+ 'font-size': css.fontSize.normal,
201
+ 'font-weight': css.fontWeight.regular,
202
+ 'font-style': 'italic'
203
+ });
204
+ });
205
+
206
+ it('Pre-step: Switching to preview tab', () => {
207
+ feedbackScalePage.steps.switchToPreviewTab();
208
+ });
209
+
210
+ feedbackScalePage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
211
+ });
212
+
213
+ describe('Student view settings - Edit tab', () => {
214
+ abortEarlySetup();
215
+ before(() => {
216
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
217
+ cy.barsPreLoaderWait();
218
+ });
219
+
220
+ it('\'Student view settings\' label should be displayed', () => {
221
+ utilities.verifyInnerText(feedbackScalePage.studentViewSettingsLabel(), 'Student view settings');
222
+ utilities.verifyElementVisibilityState(feedbackScalePage.studentViewSettingsLabel(), 'visible');
223
+ });
224
+
225
+ it('"Allow students to add comment" label and checkbox and label should be displayed. By default, "Allow students to add comment" checkbox should be in unchecked state', () => {
226
+ utilities.verifyInnerText(feedbackScalePage.allowStudentsToAddCommentCheckboxLabel(), "Allow students to add comment");
227
+ feedbackScalePage.steps.verifyAllowStudentsToAddCommentCheckboxUncheckedState();
228
+ });
229
+
230
+ it('CSS of student view settings - "Allow students to add comment" unchecked state', { tags: 'css' }, () => {
231
+ utilities.verifyCSS(feedbackScalePage.studentViewSettingsLabel(), {
232
+ 'color': css.color.labels,
233
+ 'font-size': css.fontSize.default,
234
+ 'font-weight': css.fontWeight.semibold
235
+ });
236
+ utilities.verifyCSS(feedbackScalePage.allowStudentsToAddCommentCheckbox().parent().find('svg'), {
237
+ 'fill': css.color.uncheckedCheckbox
238
+ });
239
+ utilities.verifyCSS(feedbackScalePage.showLegendCheckboxLabel(), {
240
+ 'color': css.color.labelText,
241
+ 'font-size': css.fontSize.normal,
242
+ 'font-weight': css.fontWeight.regular
243
+ });
244
+ });
245
+
246
+ it('The user should be able to check "Allow students to add comment" checkbox', () => {
247
+ feedbackScalePage.steps.checkAllowStudentsToAddCommentCheckbox();
248
+ });
249
+
250
+ it('CSS of student view settings - "Allow students to add comment" checked state', { tags: 'css' }, () => {
251
+ utilities.verifyCSS(feedbackScalePage.allowStudentsToAddCommentCheckbox().parent().find('svg g g').eq(0), {
252
+ 'fill': css.color.activeButtons
253
+ });
254
+ });
255
+
256
+ it('Accessibility of student view settings - "Allow students to add comment" unchecked state', { tags: 'a11y' }, () => {
257
+ cy.checkAccessibility(feedbackScalePage.allowStudentsToAddCommentCheckboxLabel().parents('.feedback-settings-wrapper'))
258
+ });
259
+ });
260
+
261
+ //Note: Allow students to add comment preview functionality is covered in previewContentsForAllViews.js
262
+ });
@@ -0,0 +1,51 @@
1
+ import { feedbackScalePage } from "../../../pages/feedbackScalePage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Create question page - Feedback scale: Header section and Saving question', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Header section contents', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale')
13
+ });
14
+
15
+ feedbackScalePage.tests.verifyCreateQuestionPageQuestionTypeHeader('Feedback scale');
16
+ });
17
+
18
+ describe('Tabs section', () => {
19
+ abortEarlySetup();
20
+ before(() => {
21
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale')
22
+ });
23
+
24
+ feedbackScalePage.tests.verifyTabsSection();
25
+ });
26
+
27
+ describe('Cancel button', () => {
28
+ abortEarlySetup();
29
+ before(() => {
30
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale')
31
+ });
32
+
33
+ feedbackScalePage.tests.verifyCancelButton('feedback scale');
34
+ });
35
+
36
+ describe('Saving a question', () => {
37
+ abortEarlySetup();
38
+ before(() => {
39
+ feedbackScalePage.steps.navigateToCreateQuestion('feedback scale')
40
+ cy.barsPreLoaderWait();
41
+ });
42
+
43
+ feedbackScalePage.tests.verifyCreateItemWrapperContentsA11y();
44
+
45
+ it('When user clicks on "Save question" button, then the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
46
+ feedbackScalePage.steps.saveAQuestionAndVerifySnackbar();
47
+ });
48
+
49
+ feedbackScalePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
50
+ });
51
+ });
@@ -68,9 +68,9 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
68
68
  });
69
69
 
70
70
  it('By default 5 number buttons with text "#" (# being a number from 1 to 5) should be displayed in the preview tab', () => {
71
- utilities.verifyElementCount(feedbackScalePage.feedbackButton(), 5);
71
+ utilities.verifyElementCount(feedbackScalePage.feedbackNumberButton(), 5);
72
72
  for (let index = 0; index < 5; index++) {
73
- feedbackScalePage.steps.verifyFeedbackButtonInPreviewTab(index, `${index + 1}`)
73
+ feedbackScalePage.steps.verifyNumberFeedbackButtonInPreviewTab(index, `${index + 1}`)
74
74
  };
75
75
  });
76
76
 
@@ -103,13 +103,13 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
103
103
  'font-size': css.fontSize.extraLarge,
104
104
  'font-weight': css.fontWeight.regular,
105
105
  });
106
- utilities.verifyCSS(feedbackScalePage.feedbackButton(), {
106
+ utilities.verifyCSS(feedbackScalePage.feedbackNumberButton(), {
107
107
  'background-color': css.color.transparent,
108
108
  'border': `1px solid ${css.color.figDefaultComponentBorder}`
109
109
  });
110
110
  cy.log('Hover state CSS')
111
- utilities.hoverOverElement(utilities.getNthElement(feedbackScalePage.feedbackButton(), 0));
112
- utilities.verifyCSS(utilities.getNthElement(feedbackScalePage.feedbackButton(), 0), {
111
+ utilities.hoverOverElement(utilities.getNthElement(feedbackScalePage.feedbackNumberButton(), 0));
112
+ utilities.verifyCSS(utilities.getNthElement(feedbackScalePage.feedbackNumberButton(), 0), {
113
113
  'background-color': css.color.transparent,
114
114
  'border': `2px solid ${css.color.figDefaultComponentBorder}`
115
115
  });
@@ -117,16 +117,16 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
117
117
  });
118
118
 
119
119
  it('Accessibility of number buttons - unselected state', { tags: 'a11y' }, () => {
120
- cy.checkAccessibility(feedbackScalePage.feedbackButton().parents('[class*="question-preview-wrapper"]'));
120
+ cy.checkAccessibility(feedbackScalePage.feedbackNumberButton().parents('[class*="question-preview-wrapper"]'));
121
121
  });
122
122
 
123
123
  it('The user should be able to mark feedback by clicking on any number button', () => {
124
- feedbackScalePage.steps.clickOnFeedbackButton(0);
124
+ feedbackScalePage.steps.clickOnNumberFeedbackButton(0);
125
125
  feedbackScalePage.steps.verifyFeedbackButtonSelectedState(0);
126
126
  });
127
127
 
128
128
  it('The user should be able to update the feedback by selecting other button, previously selected button should get unselected', () => {
129
- feedbackScalePage.steps.clickOnFeedbackButton(1);
129
+ feedbackScalePage.steps.clickOnNumberFeedbackButton(1);
130
130
  feedbackScalePage.steps.verifyFeedbackButtonSelectedState(1);
131
131
  feedbackScalePage.steps.verifyFeedbackButtonUnselectedState(0);
132
132
  });
@@ -137,7 +137,7 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
137
137
  'font-size': css.fontSize.extraLarge,
138
138
  'font-weight': css.fontWeight.bold,
139
139
  });
140
- utilities.verifyCSS(utilities.getNthElement(feedbackScalePage.feedbackButton(), 1), {
140
+ utilities.verifyCSS(utilities.getNthElement(feedbackScalePage.feedbackNumberButton(), 1), {
141
141
  'background-color': "rgba(107, 139, 255, 0.1)",
142
142
  'border': `2px solid ${css.color.figDefaultComponentBorder}`
143
143
  });
@@ -154,7 +154,7 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
154
154
  });
155
155
 
156
156
  it('Accessibility of number buttons - selected state', { tags: 'a11y' }, () => {
157
- cy.checkAccessibility(feedbackScalePage.feedbackButton().parents('[class*="question-preview-wrapper"]'));
157
+ cy.checkAccessibility(feedbackScalePage.feedbackNumberButton().parents('[class*="question-preview-wrapper"]'));
158
158
  });
159
159
  });
160
160
 
@@ -214,7 +214,7 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
214
214
  it('When the increases the stepper count in the options input field, the newly added feedback buttons should be displayed in the preview tab', () => {
215
215
  feedbackScalePage.steps.increaseOptionsInputStepperCount(1);
216
216
  feedbackScalePage.steps.switchToPreviewTab();
217
- feedbackScalePage.steps.verifyFeedbackButtonInPreviewTab(5, '6');
217
+ feedbackScalePage.steps.verifyNumberFeedbackButtonInPreviewTab(5, '6');
218
218
  feedbackScalePage.steps.verifyNumberBlocksInLegendAccordion(5);
219
219
  });
220
220
 
@@ -222,7 +222,7 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
222
222
  feedbackScalePage.steps.switchToEditTab();
223
223
  feedbackScalePage.steps.addOption();
224
224
  feedbackScalePage.steps.switchToPreviewTab();
225
- feedbackScalePage.steps.verifyFeedbackButtonInPreviewTab(6, '7');
225
+ feedbackScalePage.steps.verifyNumberFeedbackButtonInPreviewTab(6, '7');
226
226
  feedbackScalePage.steps.verifyNumberBlocksInLegendAccordion(6);
227
227
  });
228
228
 
@@ -230,9 +230,9 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
230
230
  feedbackScalePage.steps.switchToEditTab();
231
231
  feedbackScalePage.steps.deleteOptionAccordion(5);
232
232
  feedbackScalePage.steps.switchToPreviewTab();
233
- utilities.verifyElementCount(feedbackScalePage.feedbackButton(), 6);
233
+ utilities.verifyElementCount(feedbackScalePage.feedbackNumberButton(), 6);
234
234
  for (let index = 0; index < 6; index++) {
235
- feedbackScalePage.steps.verifyFeedbackButtonInPreviewTab(index, `${index + 1}`);
235
+ feedbackScalePage.steps.verifyNumberFeedbackButtonInPreviewTab(index, `${index + 1}`);
236
236
  feedbackScalePage.steps.verifyNumberBlocksInLegendAccordion(index);
237
237
  };
238
238
  });
@@ -241,9 +241,9 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
241
241
  feedbackScalePage.steps.switchToEditTab();
242
242
  feedbackScalePage.steps.decreaseOptionsInputStepperCount(1);
243
243
  feedbackScalePage.steps.switchToPreviewTab();
244
- utilities.verifyElementCount(feedbackScalePage.feedbackButton(), 5);
244
+ utilities.verifyElementCount(feedbackScalePage.feedbackNumberButton(), 5);
245
245
  for (let index = 0; index < 5; index++) {
246
- feedbackScalePage.steps.verifyFeedbackButtonInPreviewTab(index, `${index + 1}`);
246
+ feedbackScalePage.steps.verifyNumberFeedbackButtonInPreviewTab(index, `${index + 1}`);
247
247
  feedbackScalePage.steps.verifyNumberBlocksInLegendAccordion(index);
248
248
  };
249
249
  });
@@ -300,7 +300,7 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
300
300
  colorPopupComponent.steps.addInputToOpacityInputField('70');
301
301
  colorPopupComponent.steps.clickOnOkButton();
302
302
  feedbackScalePage.steps.switchToPreviewTab();
303
- feedbackScalePage.steps.clickOnFeedbackButton(1);
303
+ feedbackScalePage.steps.clickOnNumberFeedbackButton(1);
304
304
  feedbackScalePage.steps.verifyFeedbackButtonSelectedState(1);
305
305
  feedbackScalePage.steps.verifyFeedbackButtonSelectedStateColor(1, modifiedColor);
306
306
  });
@@ -2,7 +2,7 @@ import { feedbackScalePage } from "../../../pages";
2
2
  import { colorPopupComponent } from "../../../pages/components";
3
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../support/helpers/utilities";
5
- const thumbsDefaultColor = "rgba(0, 0, 0, 1)";
5
+ const thumbsDefaultColor = "rgb(0, 0, 0)";
6
6
  const css = Cypress.env('css');
7
7
  const legendTexts = ['Satisfied', 'Not satisfied'];
8
8
  const optionsTextArray = ['Thumbs down', 'Thumbs up'];
@@ -43,7 +43,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Additional Set
43
43
 
44
44
  fontSizeDropdownOptions.forEach((option, fontsIndex) => {
45
45
  it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
46
- fillInTheGapsDragAndDropPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
46
+ fillInTheGapsDragAndDropPage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
47
47
  utilities.verifyInnerText(fillInTheGapsDragAndDropPage.fontSizeDropdown(), `${option}`);
48
48
  utilities.verifyCSS(fillInTheGapsDragAndDropPage.optionContainerOptionsSpecifyCorrectAnswerSection(), {
49
49
  'font-size': fontSizes[fontsIndex]
@@ -66,7 +66,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Additional Set
66
66
 
67
67
  fontSizeDropdownOptions.forEach((option, fontsIndex) => {
68
68
  it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
69
- fillInTheGapsDragAndDropPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
69
+ fillInTheGapsDragAndDropPage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
70
70
  utilities.verifyInnerText(fillInTheGapsDragAndDropPage.fontSizeDropdown(), `${option}`);
71
71
  fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
72
72
  utilities.verifyCSS(fillInTheGapsDragAndDropPage.questionInstructionsText(), {
@@ -322,7 +322,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
322
322
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Flower']);
323
323
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(2, ['Petals']);
324
324
  });
325
-
325
+
326
326
  it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
327
327
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInPreviewTab('Flower');
328
328
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Flower', 'Stem', 'Seed']);
@@ -341,7 +341,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
341
341
  fillInTheGapsDragAndDropPage.steps.addGroupTitle('Group A');
342
342
  fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
343
343
  fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(groupedOptions[0]);
344
- fillInTheGapsDragAndDropPage.steps.addGroupWithTitleAndOptionsInDraggableOptionsSection('Group A', groupedOptions[1]);
344
+ fillInTheGapsDragAndDropPage.steps.addGroupWithTitleAndOptionsInDraggableOptionsSection('Group B', groupedOptions[1]);
345
345
  });
346
346
 
347
347
  it('When the user has not selected any option, the options and dropzone should be in inactive state', () => {
@@ -661,7 +661,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
661
661
  });
662
662
 
663
663
  it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
664
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2, 'Petals': 3 , 'Flower':1});
664
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2, 'Petals': 3, 'Flower': 1 });
665
665
  fillInTheGapsDragAndDropPage.steps.verifyGroupedOptionsTitlePreviewTab(0, 'Group A')
666
666
  fillInTheGapsDragAndDropPage.steps.verifyEmptyGroupInPreviewTab(0);
667
667
  });
@@ -281,6 +281,7 @@ describe('Fill In the gaps with text \'Correct response condition\' checkboxes',
281
281
  cy.barsPreLoaderWait();
282
282
  fillInTheGapsTextPage.steps.deleteAResponseArea(0);
283
283
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
284
+ fillInTheGapsTextPage.steps.allotPoints(10);
284
285
  fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
285
286
  fillInTheGapsTextPage.steps.switchToPreviewTab();
286
287
  });
@@ -3,7 +3,6 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const unselectedToolOption = ['Circle', 'Parabola', 'Sine', 'Polygon'];
5
5
  const selectedToolOption = ['Point', 'Line', 'Label', 'Ray', 'Segment', 'Vector'];
6
- const controlOptions = ['Move', 'Undo', 'Redo', 'Reset'];
7
6
  const toolOptions = [...selectedToolOption, ...unselectedToolOption];
8
7
 
9
8
  describe('Graphing: Add background shapes section', () => {
@@ -68,10 +67,10 @@ describe('Graphing: Add background shapes section', () => {
68
67
  });
69
68
 
70
69
  //Graph title
71
- it('When the user clicks on the \'Graph title\' a popup with title \'Graph title\' and \'Add label\' label with input field should be displayed along with \'Save\' and \'Cancel\' button', () => {
70
+ it('When the user clicks on the \'Graph title\' a popup with title \'Graph title\' and \'Add title\' label with input field should be displayed along with \'Save\' and \'Cancel\' button', () => {
72
71
  graphingPage.steps.clickOnGraphTitle();
73
72
  utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Graph title');
74
- utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add label');
73
+ utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add title');
75
74
  utilities.verifyElementVisibilityState(graphingPage.titlePopupAddLabelInputField(), 'visible');
76
75
  utilities.verifyInnerText(graphingPage.titlePopupSaveButton(), 'Save');
77
76
  utilities.verifyInnerText(graphingPage.titlePopupCancelButton(), 'Cancel');
@@ -101,10 +100,10 @@ describe('Graphing: Add background shapes section', () => {
101
100
  });
102
101
 
103
102
  //X axis
104
- it('When the user clicks on the \'X axis label\' a popup with title \'X axis label\' and \'Add label\' label with input field should be displayed', () => {
103
+ it('When the user clicks on the \'X axis label\' a popup with title \'X axis label\' and \'Add title\' label with input field should be displayed', () => {
105
104
  graphingPage.steps.clickOnXAxisLabel();
106
105
  utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'X axis label');
107
- utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add label');
106
+ utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add title');
108
107
  utilities.verifyElementVisibilityState(graphingPage.titlePopupAddLabelInputField(), 'visible');
109
108
  utilities.verifyInnerText(graphingPage.titlePopupSaveButton(), 'Save');
110
109
  utilities.verifyInnerText(graphingPage.titlePopupCancelButton(), 'Cancel');
@@ -134,10 +133,10 @@ describe('Graphing: Add background shapes section', () => {
134
133
  });
135
134
 
136
135
  //Y axis
137
- it('When the user clicks on the \'Y axis label\' a popup with title \'Y axis label\' and \'Add label\' label with input field should be displayed', () => {
136
+ it('When the user clicks on the \'Y axis label\' a popup with title \'Y axis label\' and \'Add title\' label with input field should be displayed', () => {
138
137
  graphingPage.steps.clickOnYAxisLabel();
139
138
  utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Y axis label');
140
- utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add label');
139
+ utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add title');
141
140
  utilities.verifyElementVisibilityState(graphingPage.titlePopupAddLabelInputField(), 'visible');
142
141
  utilities.verifyInnerText(graphingPage.titlePopupSaveButton(), 'Save');
143
142
  utilities.verifyInnerText(graphingPage.titlePopupCancelButton(), 'Cancel');
@@ -39,9 +39,9 @@ describe('Create item page - Graphing: Additional Settings accordion', () => {
39
39
  graphingPage.steps.expandAdditionalSettings();
40
40
  });
41
41
 
42
- fontSizeDropdownOptions.forEach((option, fontsIndex) => {
42
+ fontSizeDropdownOptions.forEach((option) => {
43
43
  it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the edit tab graph resource should not change`, () => {
44
- graphingPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
44
+ graphingPage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
45
45
  utilities.verifyInnerText(graphingPage.fontSizeDropdown(), `${option}`);
46
46
  utilities.verifyCSS(graphingPage.graphSpecifyCorrectAnswerSection(), {
47
47
  'font-size': css.fontSize.normal
@@ -60,7 +60,7 @@ describe('Create item page - Graphing: Additional Settings accordion', () => {
60
60
 
61
61
  fontSizeDropdownOptions.forEach((option, fontsIndex) => {
62
62
  it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab graph resource should change`, () => {
63
- graphingPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
63
+ graphingPage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
64
64
  utilities.verifyInnerText(graphingPage.fontSizeDropdown(), `${option}`);
65
65
  graphingPage.steps.switchToPreviewTab();
66
66
  utilities.verifyCSS(graphingPage.graphPreviewTab(), {
@@ -1,5 +1,4 @@
1
1
  import { graphingPage, gradingViewPage, itemPreviewPage, studentViewPage, dialogBoxBase } from "../../../pages";
2
- import { equationEditorFlyout } from "../../../pages/components";
3
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
4
3
  import utilities from "../../../support/helpers/utilities";
5
4
  const grepTags = Cypress.env('grepTags');
@@ -27,7 +27,6 @@ describe('Create item page - Graphing - Check answer functionality', () => {
27
27
  }
28
28
  };
29
29
 
30
- //Failing due to https://redmine.zeuslearning.com/issues/563789
31
30
  describe(`${view} - Check answer functionality`, { tags: 'smoke' }, () => {
32
31
  abortEarlySetup();
33
32
  before(() => {
@@ -528,7 +528,6 @@ describe('Graphing: Tools and controls - Edit tab and preview tab tool options',
528
528
  utilities.verifyElementVisibilityState(graphingPage.imageAlignmentLabel(), 'visible');
529
529
  });
530
530
 
531
- //Failing due to https://redmine.zeuslearning.com/issues/564132
532
531
  it(`\'Image alignment\' section should have three options ${alignmentOptions} and ${alignmentOptions[0]} should be active selection by default`, () => {
533
532
  utilities.verifyInnerText(graphingPage.topLeftAlignmentButton(), 'Top left');
534
533
  utilities.verifyElementVisibilityState(graphingPage.topLeftAlignmentButton(), 'visible');
@@ -62,6 +62,8 @@ describe('Create item page - grid fill - Check answer functionality', () => {
62
62
  break;
63
63
  case 'Student view':
64
64
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
65
+ cy.log('Adding wait so that student view loads properly');
66
+ cy.wait(5000);
65
67
  break;
66
68
  }
67
69
  });
@@ -27,11 +27,10 @@ describe('Create Item page - Grid fill : Grid layout', () => {
27
27
  gridFillPage.steps.verifyOpenTheGridSelectorDropdownCollapsed();
28
28
  });
29
29
 
30
- //Failing due to https://redmine.zeuslearning.com/issues/565285
31
- it('When user clicks on \'Open the grid selector\' dropdown then grid selector should be displayed and it should have 20 columns and 20 rows', () => {
30
+ it('When user clicks on \'Open the grid selector\' dropdown then grid selector should be displayed and it should have 17 columns and 9 rows', () => {
32
31
  gridFillPage.steps.expandOpenTheGridSelectorDropdown();
33
32
  utilities.verifyElementVisibilityState(gridFillPage.gridInOpenTheGridSelectorDropdownContainer(), 'visible');
34
- gridFillPage.steps.verifyGridSizeInGridLayoutSection(20, 20);
33
+ gridFillPage.steps.verifyGridSizeInGridLayoutSection(9, 17);
35
34
  });
36
35
 
37
36
  it('When \'Open the grid selector\' dropdown is expanded, then by default it should have 5 columns and 3 rows selected', () => {
@@ -85,7 +84,7 @@ describe('Create Item page - Grid fill : Grid layout', () => {
85
84
  gridFillPage.steps.verifyRowInputStepperIncreaseButtonIsDisabled();
86
85
  gridFillPage.steps.verifyColumnInputStepperIncreaseButtonIsDisabled();
87
86
  gridFillPage.steps.expandOpenTheGridSelectorDropdown();
88
- gridFillPage.steps.verifySelectedRowsAndColumns(20, 20);
87
+ gridFillPage.steps.verifySelectedRowsAndColumns(9,17);
89
88
  gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
90
89
  });
91
90