itemengine-cypress-automation 1.0.133-7thMarchFixes-0e78080.0 → 1.0.134-14MarchUpdates-0b00629.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DesmosGraphing/previewTabContent.smoke.js +1 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +53 -54
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +0 -149
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +312 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +71 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +98 -0
- package/cypress/e2e/ILC/GeogebraActivity/editTabScoringSection.js +56 -0
- package/cypress/e2e/ILC/GeogebraActivity/gradingViewAndCorrectAnswerViewContents.smoke.js +106 -0
- package/cypress/e2e/ILC/GeogebraActivity/headerSection.js +74 -0
- package/cypress/e2e/ILC/GeogebraActivity/previewTabContent.smoke.js +91 -0
- package/cypress/e2e/ILC/GeogebraActivity/questionInstructions.js +28 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingPenaltyScoring.js +79 -0
- package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +253 -0
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +307 -0
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +84 -0
- package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +105 -0
- package/cypress/e2e/ILC/Graphing/headerSection.js +77 -0
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +916 -0
- package/cypress/e2e/ILC/Graphing/minimumScoringPenaltyPointsAndRoundingDropdown.js +57 -0
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Graphing/specifyCorrectAnswerSection.js +72 -0
- package/cypress/e2e/ILC/Graphing/studentViewSettings.js +120 -0
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +858 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/additionalSettings.js +337 -4
- package/cypress/fixtures/constants.js +1 -1
- package/cypress/fixtures/theme/ilc.json +3 -1
- package/cypress/pages/components/additionalSettingsAccessibilitySectionComponent.js +66 -0
- package/cypress/pages/components/additionalSettingsPanel.js +95 -90
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +9 -7
- package/cypress/pages/components/backgroundImageUploadComponent.js +16 -14
- package/cypress/pages/components/colorPopupComponent.js +14 -17
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -1
- package/cypress/pages/components/imageCanvasComponent.js +3 -3
- package/cypress/pages/components/index.js +2 -2
- package/cypress/pages/components/opacityComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +18 -0
- package/cypress/pages/components/studentResponseAreaAndLayoutComponent.js +1 -1
- package/cypress/pages/dialogBoxBase.js +1 -1
- package/cypress/pages/drawingResponsePage.js +35 -4
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +2 -2
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +2 -0
- package/cypress/pages/geogebraActivityPage.js +106 -0
- package/cypress/pages/graphingPage.js +1458 -77
- package/cypress/pages/index.js +1 -0
- package/cypress/pages/multipleSelectionPage.js +0 -1
- package/cypress/pages/shortTextResponsePage.js +155 -3
- package/cypress/pages/uploadResponsePage.js +0 -2
- package/package.json +1 -1
@@ -0,0 +1,916 @@
|
|
1
|
+
import { graphingPage } 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('Graphing: Layout section - Edit tab and preview tab tool options', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Layout section: Edit tab content and functionality', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
});
|
17
|
+
|
18
|
+
it('\'Layout\' accordion with accordion icon should be displayed and by default it should be in expanded state', () => {
|
19
|
+
utilities.verifyInnerText(graphingPage.layoutAccordionLabel(), 'Layout');
|
20
|
+
graphingPage.steps.verifyLayoutAccordionExpanded();
|
21
|
+
utilities.verifyElementVisibilityState(graphingPage.layoutAccordionExpandIcon(), 'visible');
|
22
|
+
});
|
23
|
+
|
24
|
+
it('Height (px), Width (px), Margin (px) labels should be displayed with 880, 880 and 10 in their input fields by default', () => {
|
25
|
+
utilities.verifyInnerText(graphingPage.widthLabel(), 'Width (px)');
|
26
|
+
utilities.verifyInnerText(graphingPage.heightLabel(), 'Height (px)');
|
27
|
+
utilities.verifyInnerText(graphingPage.marginLabel(), 'Margin (px)');
|
28
|
+
graphingPage.steps.verifyLayoutInputFieldValue('Height', 880);
|
29
|
+
graphingPage.steps.verifyLayoutInputFieldValue('Width', 880);
|
30
|
+
graphingPage.steps.verifyLayoutInputFieldValue('Margin', 10);
|
31
|
+
});
|
32
|
+
|
33
|
+
it('\'Make responsive\' label with switch should be displayed with help text \'The column width was automatically adjusted to be at least 44 pixels.\'', () => {
|
34
|
+
utilities.verifyInnerText(graphingPage.makeResponsiveLabel(), 'Make responsive');
|
35
|
+
utilities.verifyElementVisibilityState(graphingPage.makeResponsiveSwitch(), 'visible');
|
36
|
+
graphingPage.steps.verifyMakeResponsiveIsChecked();
|
37
|
+
utilities.verifyInnerText(graphingPage.makeResponsiveHelpText(), 'The column width was automatically adjusted to be at least 44 pixels.');
|
38
|
+
});
|
39
|
+
|
40
|
+
it('\'What is this?\' label should be displayed and when user hovers over the label then \'Activating this toggle ensures each column width automatically adjusts to be at least 44 pixels.\' tooltip should be displayed', () => {
|
41
|
+
utilities.verifyInnerText(graphingPage.whatIsThisLabel(), 'What is this?');
|
42
|
+
graphingPage.whatIsThisLabel()
|
43
|
+
.verifyTooltip('Activating this toggle ensures each column width automatically adjusts to be at least 44 pixels.');
|
44
|
+
});
|
45
|
+
|
46
|
+
it('User should be able to collapse and expand the \'Layout\' accordion', () => {
|
47
|
+
graphingPage.steps.collapseLayoutAccordion();
|
48
|
+
graphingPage.steps.expandLayoutAccordion();
|
49
|
+
});
|
50
|
+
|
51
|
+
it('When user unchecks the switch the help text should not be displayed', () => {
|
52
|
+
graphingPage.steps.clickMakeResponsive();
|
53
|
+
graphingPage.steps.verifyMakeResponsiveIsUnchecked();
|
54
|
+
utilities.verifyElementVisibilityState(graphingPage.makeResponsiveHelpText(), 'notExist');
|
55
|
+
});
|
56
|
+
|
57
|
+
it('The \'Specify correct answer\' section and background section graph should have 880px height and width by default', () => {
|
58
|
+
graphingPage.steps.verifyHeightWidthOfGraphEditTab('880', '880');
|
59
|
+
graphingPage.steps.verifyHeightWidthOfGraphSpecifyCorrectAnswerSection('880', '880');
|
60
|
+
});
|
61
|
+
|
62
|
+
it('When the user has updated the Height (px), Width (px) in the input field should be updated in \'Specify correct answer\' section and background section graph', () => {
|
63
|
+
graphingPage.steps.enterValueInHeightInputField('600');
|
64
|
+
graphingPage.steps.enterValueInWidthInputField('600');
|
65
|
+
graphingPage.steps.verifyHeightWidthOfGraphEditTab('600', '600');
|
66
|
+
graphingPage.steps.verifyHeightWidthOfGraphSpecifyCorrectAnswerSection('600', '600');
|
67
|
+
});
|
68
|
+
|
69
|
+
it('CSS of grid options section', { tags: 'css' }, () => {
|
70
|
+
utilities.verifyCSS(graphingPage.layoutAccordionLabel(), {
|
71
|
+
'color': css.color.activeButtons,
|
72
|
+
'font-size': css.fontSize.default,
|
73
|
+
'font-weight': css.fontWeight.bold
|
74
|
+
});
|
75
|
+
utilities.verifyCSS(graphingPage.layoutAccordionExpandIcon(), {
|
76
|
+
'color': css.color.activeButtons,
|
77
|
+
'font-size': css.fontSize.normal,
|
78
|
+
'font-weight': css.fontWeight.regular
|
79
|
+
});
|
80
|
+
utilities.verifyCSS(graphingPage.heightLabel(), {
|
81
|
+
'color': css.color.labels,
|
82
|
+
'font-size': css.fontSize.normal,
|
83
|
+
'font-weight': css.fontWeight.semibold
|
84
|
+
});
|
85
|
+
utilities.verifyCSS(graphingPage.widthLabel(), {
|
86
|
+
'color': css.color.labels,
|
87
|
+
'font-size': css.fontSize.normal,
|
88
|
+
'font-weight': css.fontWeight.semibold
|
89
|
+
});
|
90
|
+
utilities.verifyCSS(graphingPage.marginLabel(), {
|
91
|
+
'color': css.color.labels,
|
92
|
+
'font-size': css.fontSize.normal,
|
93
|
+
'font-weight': css.fontWeight.semibold
|
94
|
+
});
|
95
|
+
utilities.verifyCSS(graphingPage.makeResponsiveLabel().find('.title-casing'), {
|
96
|
+
'color': css.color.UnselectedToggleButton,
|
97
|
+
'font-size': css.fontSize.normal,
|
98
|
+
'font-weight': css.fontWeight.semibold
|
99
|
+
});
|
100
|
+
graphingPage.steps.clickMakeResponsive();
|
101
|
+
utilities.verifyCSS(graphingPage.makeResponsiveHelpText(), {
|
102
|
+
'color': css.color.labelText,
|
103
|
+
'font-size': css.fontSize.small,
|
104
|
+
'font-weight': css.fontWeight.regular
|
105
|
+
});
|
106
|
+
utilities.verifyCSS(graphingPage.whatIsThisLabel(), {
|
107
|
+
'color': css.color.activeButtons,
|
108
|
+
'font-size': css.fontSize.normal,
|
109
|
+
'font-weight': css.fontWeight.bold
|
110
|
+
});
|
111
|
+
utilities.verifyCSS(graphingPage.makeResponsiveSwitch().parents('.mobile-responsive-wrapper').find('.MuiSwitch-track'), {
|
112
|
+
'background-color': css.color.enabledSwitchBg,
|
113
|
+
});
|
114
|
+
graphingPage.steps.clickMakeResponsive();
|
115
|
+
utilities.verifyCSS(graphingPage.makeResponsiveSwitch().parents('.mobile-responsive-wrapper').find('.MuiSwitch-track'), {
|
116
|
+
'background-color': css.color.secondaryBtn,
|
117
|
+
});
|
118
|
+
});
|
119
|
+
|
120
|
+
it('Accessibility of grid options section', { tags: 'a11y' }, () => {
|
121
|
+
cy.checkAccessibility(graphingPage.layoutAccordion().parents('.graphing-response-accordion'));
|
122
|
+
});
|
123
|
+
|
124
|
+
//TODO: Need to add margin functionality once https://redmine.zeuslearning.com/issues/563280 is resolved
|
125
|
+
});
|
126
|
+
|
127
|
+
describe('Layout section: Preview tab functionality', () => {
|
128
|
+
abortEarlySetup();
|
129
|
+
before(() => {
|
130
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
131
|
+
cy.barsPreLoaderWait();
|
132
|
+
graphingPage.steps.switchToPreviewTab();
|
133
|
+
});
|
134
|
+
|
135
|
+
|
136
|
+
it('The preview tab graph should have 880px height and width by default', () => {
|
137
|
+
graphingPage.steps.verifyHeightWidthOfGraphPreviewTab('880', '880');
|
138
|
+
});
|
139
|
+
|
140
|
+
it('When the user has updated the Height (px), Width (px) in the input field should be updated in preview tab', () => {
|
141
|
+
graphingPage.steps.switchToEditTab();
|
142
|
+
graphingPage.steps.enterValueInHeightInputField('600');
|
143
|
+
graphingPage.steps.enterValueInWidthInputField('600');
|
144
|
+
graphingPage.steps.switchToPreviewTab();
|
145
|
+
graphingPage.steps.verifyHeightWidthOfGraphPreviewTab('600', '600');
|
146
|
+
});
|
147
|
+
|
148
|
+
//TODO: Need to add margin functionality once https://redmine.zeuslearning.com/issues/563280 is resolved
|
149
|
+
});
|
150
|
+
|
151
|
+
describe('Grid options: Edit tab content', () => {
|
152
|
+
abortEarlySetup();
|
153
|
+
before(() => {
|
154
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
155
|
+
cy.barsPreLoaderWait();
|
156
|
+
});
|
157
|
+
|
158
|
+
it('\'Grid options\' accordion should be displayed in expanded state', () => {
|
159
|
+
utilities.verifyInnerText(graphingPage.gridOptionsAccordionLabel(), 'Grid options');
|
160
|
+
graphingPage.steps.verifyGridOptionsAccordionExpanded();
|
161
|
+
utilities.verifyElementVisibilityState(graphingPage.gridOptionsAccordionExpandIcon(), 'visible');
|
162
|
+
});
|
163
|
+
|
164
|
+
it('User should be able to expand and collapse the accordion', () => {
|
165
|
+
graphingPage.steps.collapseGridOptionsAccordion();
|
166
|
+
graphingPage.steps.expandGridOptionsAccordion();
|
167
|
+
});
|
168
|
+
|
169
|
+
it('\'Snap to grid\' checkbox and label should be displayed and by default the checkbox should be unchecked', () => {
|
170
|
+
utilities.verifyInnerText(graphingPage.snapToGridLabel(), 'Snap to grid');
|
171
|
+
utilities.verifyElementVisibilityState(graphingPage.snapToGridCheckbox(), 'exist');
|
172
|
+
graphingPage.steps.verifySnapToCheckboxIsUnchecked();
|
173
|
+
});
|
174
|
+
|
175
|
+
it('\'X tolerance\' and \'Y tolerance\' label along with input field should be displayed and by default 0 should be displayed in the input field', () => {
|
176
|
+
utilities.verifyInnerText(graphingPage.xToleranceLabel(), 'X tolerance');
|
177
|
+
graphingPage.steps.verifyXToleranceInputFieldValue('0');
|
178
|
+
utilities.verifyInnerText(graphingPage.yToleranceLabel(), 'Y tolerance');
|
179
|
+
graphingPage.steps.verifyYToleranceInputFieldValue('0');
|
180
|
+
});
|
181
|
+
|
182
|
+
it('User should be able to update X and Y tolerance value in the input field', () => {
|
183
|
+
graphingPage.steps.enterInputToXToleranceInputFieldValue(2);
|
184
|
+
graphingPage.steps.enterInputToYToleranceInputFieldValue(3);
|
185
|
+
});
|
186
|
+
|
187
|
+
it('CSS of grid options section', { tags: 'css' }, () => {
|
188
|
+
utilities.verifyCSS(graphingPage.gridOptionsAccordionLabel(), {
|
189
|
+
'color': css.color.activeButtons,
|
190
|
+
'font-size': css.fontSize.default,
|
191
|
+
'font-weight': css.fontWeight.bold
|
192
|
+
});
|
193
|
+
utilities.verifyCSS(graphingPage.gridOptionsAccordionExpandIcon(), {
|
194
|
+
'color': css.color.activeButtons,
|
195
|
+
'font-size': css.fontSize.normal,
|
196
|
+
'font-weight': css.fontWeight.regular
|
197
|
+
});
|
198
|
+
utilities.verifyCSS(graphingPage.snapToGridLabel(), {
|
199
|
+
'color': css.color.labelText,
|
200
|
+
'font-size': css.fontSize.normal,
|
201
|
+
'font-weight': css.fontWeight.regular
|
202
|
+
});
|
203
|
+
utilities.verifyCSS(graphingPage.xToleranceLabel(), {
|
204
|
+
'color': css.color.labels,
|
205
|
+
'font-size': css.fontSize.normal,
|
206
|
+
'font-weight': css.fontWeight.semibold
|
207
|
+
});
|
208
|
+
utilities.verifyCSS(graphingPage.yToleranceLabel(), {
|
209
|
+
'color': css.color.labels,
|
210
|
+
'font-size': css.fontSize.normal,
|
211
|
+
'font-weight': css.fontWeight.semibold
|
212
|
+
});
|
213
|
+
utilities.verifyCSS(graphingPage.xToleranceInputField(), {
|
214
|
+
'color': css.color.text,
|
215
|
+
'font-size': css.fontSize.default,
|
216
|
+
'font-weight': css.fontWeight.regular
|
217
|
+
});
|
218
|
+
utilities.verifyCSS(graphingPage.yToleranceInputField(), {
|
219
|
+
'color': css.color.text,
|
220
|
+
'font-size': css.fontSize.default,
|
221
|
+
'font-weight': css.fontWeight.regular
|
222
|
+
});
|
223
|
+
utilities.verifyCSS(graphingPage.originOptionLabel(), {
|
224
|
+
'color': css.color.labels,
|
225
|
+
'font-size': css.fontSize.normal,
|
226
|
+
'font-weight': css.fontWeight.semibold
|
227
|
+
});
|
228
|
+
utilities.verifyCSS(graphingPage.originToggleOptions('Blank'), {
|
229
|
+
'background-color': css.color.activeButtons,
|
230
|
+
'color': css.color.primaryBtn,
|
231
|
+
'font-size': css.fontSize.normal,
|
232
|
+
'font-weight': css.fontWeight.bold
|
233
|
+
});
|
234
|
+
utilities.verifyCSS(graphingPage.originToggleOptions('0,0'), {
|
235
|
+
'background-color': css.color.transparent,
|
236
|
+
'color': css.color.UnselectedToggleButton,
|
237
|
+
'font-size': css.fontSize.normal,
|
238
|
+
'font-weight': css.fontWeight.bold
|
239
|
+
});
|
240
|
+
});
|
241
|
+
|
242
|
+
it('Accessibility of grid options section', { tags: 'a11y' }, () => {
|
243
|
+
cy.checkAccessibility(graphingPage.snapToGridLabel().parents('[id*="panel-content"]'));
|
244
|
+
});
|
245
|
+
|
246
|
+
it('\'Origin option\' label should be displayed', () => {
|
247
|
+
utilities.verifyInnerText(graphingPage.originOptionLabel(), 'Origin option');
|
248
|
+
});
|
249
|
+
|
250
|
+
it('\'Blank\', \'0,0\' and \'Symbol(O)\' toggle options should be displayed and by default \'Blank\' should be selected', () => {
|
251
|
+
utilities.verifyInnerText(graphingPage.originOptionLabel(), 'Origin option');
|
252
|
+
utilities.verifyTextContent(graphingPage.originToggleOptions('Blank'), 'Blank');
|
253
|
+
utilities.verifyTextContent(graphingPage.originToggleOptions('0,0'), '0,0');
|
254
|
+
utilities.verifyTextContent(graphingPage.originToggleOptions('Symbol(O)'), 'Symbol(O)');
|
255
|
+
});
|
256
|
+
|
257
|
+
it('\'X axis and Y axis\' labels should be displayed', () => {
|
258
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabel(), 'visible');
|
259
|
+
utilities.verifyInnerText(graphingPage.xAxisLabel(), 'X axis');
|
260
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabel(), 'visible');
|
261
|
+
utilities.verifyInnerText(graphingPage.yAxisLabel(), 'Y axis');
|
262
|
+
});
|
263
|
+
|
264
|
+
it('\'X grid spacing\' and \'Tick interval\' for X axis labels should be displayed with input field and by default they should have the value 1', () => {
|
265
|
+
utilities.verifyInnerText(graphingPage.xGridSpacingLabel(), 'X grid spacing');
|
266
|
+
utilities.verifyInnerText(graphingPage.xTickIntervalLabel(), 'Tick interval');
|
267
|
+
graphingPage.steps.verifyXGridSpacingInputFieldValue('1');
|
268
|
+
graphingPage.steps.verifyXTickIntervalInputFieldValue('1');
|
269
|
+
});
|
270
|
+
|
271
|
+
it('\'X grid spacing\' and \'Tick interval\' for Y axis labels should be displayed with input field and by default they should have the value 1', () => {
|
272
|
+
utilities.verifyInnerText(graphingPage.yGridSpacingLabel(), 'Y grid spacing');
|
273
|
+
utilities.verifyInnerText(graphingPage.yTickIntervalLabel(), 'Tick interval');
|
274
|
+
graphingPage.steps.verifyYGridSpacingInputFieldValue('1');
|
275
|
+
graphingPage.steps.verifyYTickIntervalInputFieldValue('1');
|
276
|
+
});
|
277
|
+
|
278
|
+
it('\'Display axis label, Remove ticks, Show tick labels, Min arrow, Max arrow, Display comma for thousand separator\' checkbox with labels should be displayed for X axis and by default all should be checked', () => {
|
279
|
+
utilities.verifyElementVisibilityState(graphingPage.xDisplayAxisLabel(), 'visible');
|
280
|
+
utilities.verifyElementVisibilityState(graphingPage.xRemoveTicksLabel(), 'visible');
|
281
|
+
utilities.verifyElementVisibilityState(graphingPage.xShowTicksLabelsLabel(), 'visible');
|
282
|
+
utilities.verifyElementVisibilityState(graphingPage.xMinArrowLabel(), 'visible');
|
283
|
+
utilities.verifyElementVisibilityState(graphingPage.xMaxArrowLabel(), 'visible');
|
284
|
+
utilities.verifyElementVisibilityState(graphingPage.xDisplayCommaForThousandSeparatorLabel(), 'visible');
|
285
|
+
graphingPage.steps.verifyXDisplayAxisCheckboxChecked();
|
286
|
+
graphingPage.steps.verifyXRemoveTicksCheckboxChecked();
|
287
|
+
graphingPage.steps.verifyXShowTicksLabelCheckboxChecked();
|
288
|
+
graphingPage.steps.verifyXMinArrowCheckboxChecked();
|
289
|
+
graphingPage.steps.verifyXMaxArrowCheckboxChecked();
|
290
|
+
graphingPage.steps.verifyXDisplayCommaForThousandSeparatorCheckboxChecked();
|
291
|
+
});
|
292
|
+
|
293
|
+
it('\'Display axis label, Remove ticks, Show tick labels, Min arrow, Max arrow, Display comma for thousand separator\' checkbox with labels should be displayed for Y axis and by default all should be checked', () => {
|
294
|
+
utilities.verifyElementVisibilityState(graphingPage.yDisplayAxisLabel(), 'visible');
|
295
|
+
utilities.verifyElementVisibilityState(graphingPage.yRemoveTicksLabel(), 'visible');
|
296
|
+
utilities.verifyElementVisibilityState(graphingPage.yShowTicksLabelsLabel(), 'visible');
|
297
|
+
utilities.verifyElementVisibilityState(graphingPage.yMinArrowLabel(), 'visible');
|
298
|
+
utilities.verifyElementVisibilityState(graphingPage.yMaxArrowLabel(), 'visible');
|
299
|
+
utilities.verifyElementVisibilityState(graphingPage.yDisplayCommaForThousandSeparatorLabel(), 'visible');
|
300
|
+
graphingPage.steps.verifyYDisplayAxisCheckboxChecked();
|
301
|
+
graphingPage.steps.verifyYRemoveTicksCheckboxChecked();
|
302
|
+
graphingPage.steps.verifyYShowTicksLabelCheckboxChecked();
|
303
|
+
graphingPage.steps.verifyYMinArrowCheckboxChecked();
|
304
|
+
graphingPage.steps.verifyYMaxArrowCheckboxChecked();
|
305
|
+
graphingPage.steps.verifyYDisplayCommaForThousandSeparatorCheckboxChecked();
|
306
|
+
});
|
307
|
+
|
308
|
+
it('CSS of grid options section', { tags: 'css' }, () => {
|
309
|
+
utilities.verifyCSS(graphingPage.xAxisLabel(), {
|
310
|
+
'color': css.color.labels,
|
311
|
+
'font-size': css.fontSize.default,
|
312
|
+
'font-weight': css.fontWeight.semibold
|
313
|
+
});
|
314
|
+
utilities.verifyCSS(graphingPage.yAxisLabel(), {
|
315
|
+
'color': css.color.labels,
|
316
|
+
'font-size': css.fontSize.default,
|
317
|
+
'font-weight': css.fontWeight.semibold
|
318
|
+
});
|
319
|
+
utilities.verifyCSS(graphingPage.xGridSpacingLabel(), {
|
320
|
+
'color': css.color.labels,
|
321
|
+
'font-size': css.fontSize.normal,
|
322
|
+
'font-weight': css.fontWeight.semibold
|
323
|
+
});
|
324
|
+
utilities.verifyCSS(graphingPage.xTickIntervalLabel(), {
|
325
|
+
'color': css.color.labels,
|
326
|
+
'font-size': css.fontSize.normal,
|
327
|
+
'font-weight': css.fontWeight.semibold
|
328
|
+
});
|
329
|
+
utilities.verifyCSS(graphingPage.yGridSpacingLabel(), {
|
330
|
+
'color': css.color.labels,
|
331
|
+
'font-size': css.fontSize.normal,
|
332
|
+
'font-weight': css.fontWeight.semibold
|
333
|
+
});
|
334
|
+
utilities.verifyCSS(graphingPage.yTickIntervalLabel(), {
|
335
|
+
'color': css.color.labels,
|
336
|
+
'font-size': css.fontSize.normal,
|
337
|
+
'font-weight': css.fontWeight.semibold
|
338
|
+
});
|
339
|
+
utilities.verifyCSS(graphingPage.xDisplayAxisLabel(), {
|
340
|
+
'color': css.color.labelText,
|
341
|
+
'font-size': css.fontSize.normal,
|
342
|
+
'font-weight': css.fontWeight.regular
|
343
|
+
});
|
344
|
+
utilities.verifyCSS(graphingPage.yDisplayAxisLabel(), {
|
345
|
+
'color': css.color.labelText,
|
346
|
+
'font-size': css.fontSize.normal,
|
347
|
+
'font-weight': css.fontWeight.regular
|
348
|
+
});
|
349
|
+
});
|
350
|
+
});
|
351
|
+
|
352
|
+
describe('Grid options: Edit tab functionality', () => {
|
353
|
+
abortEarlySetup();
|
354
|
+
before(() => {
|
355
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
356
|
+
cy.barsPreLoaderWait();
|
357
|
+
});
|
358
|
+
|
359
|
+
//Snap to grid
|
360
|
+
it('When snap to grid is unchecked user should be able to plot decimal points on the graph in \'Specify correct answer\' section and background section graph', () => {
|
361
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2.5, xRange: 20, y: 1, yRange: 20 }]);
|
362
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 2.5, xRange: 20, y: 1, yRange: 20 }]);
|
363
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 3.5, xRange: 20, y: 1, yRange: 20 }]);
|
364
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3.5, xRange: 20, y: 1, yRange: 20 }]);
|
365
|
+
});
|
366
|
+
|
367
|
+
it('When the user checks snap to grid checkbox then the X and Y tolerance should become disabled and the user should not be able to plot decimal points', () => {
|
368
|
+
graphingPage.steps.checkSnapToGridCheckbox();
|
369
|
+
utilities.verifyElementDisabledClass(graphingPage.xToleranceInputField());
|
370
|
+
utilities.verifyElementDisabledClass(graphingPage.yToleranceInputField());
|
371
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2.25, xRange: 20, y: 1, yRange: 20 }]);
|
372
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 2, xRange: 20, y: 1, yRange: 20 }]);
|
373
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 3.15, xRange: 20, y: 1, yRange: 20 }]);
|
374
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
375
|
+
});
|
376
|
+
|
377
|
+
//Origin option
|
378
|
+
it('When blank origin option is selected nothing should be displayed on the origin on the graph in \'Specify correct answer\' section and background section graph', () => {
|
379
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('0,0'), 'notExist');
|
380
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('O'), 'notExist');
|
381
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('0,0'), 'notExist');
|
382
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('Symbol(O)'), 'notExist');
|
383
|
+
});
|
384
|
+
|
385
|
+
it('When the user selects 0,0 then 0,0 should be displayed on the origin on the graph in \'Specify correct answer\' section and background section graph', () => {
|
386
|
+
graphingPage.steps.selectOriginOption('0,0');
|
387
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('0,0'), 'visible');
|
388
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('O'), 'notExist');
|
389
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('0,0'), 'visible');
|
390
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('O'), 'notExist');
|
391
|
+
});
|
392
|
+
|
393
|
+
it('When the user selects Symbol(O) then O should be displayed on the origin on the graph in \'Specify correct answer\' section and background section graph', () => {
|
394
|
+
graphingPage.steps.selectOriginOption('Symbol(O)');
|
395
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('0,0'), 'notExist');
|
396
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('O'), 'visible');
|
397
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('0,0'), 'notExist');
|
398
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('O'), 'visible');
|
399
|
+
});
|
400
|
+
|
401
|
+
it('When the user selects \'Blank\' then nothing should be displayed on the origin on the graph in \'Specify correct answer\' section and background section graph', () => {
|
402
|
+
graphingPage.steps.selectOriginOption('Blank');
|
403
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('0,0'), 'notExist');
|
404
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('O'), 'notExist');
|
405
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('0,0'), 'notExist');
|
406
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('O'), 'notExist');
|
407
|
+
});
|
408
|
+
|
409
|
+
//X axis
|
410
|
+
it('When X grid spacing is 1 then on the x axis user should be able to plot only on the grid lines', () => {
|
411
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 1, xRange: 20, y: 1, yRange: 20 }]);
|
412
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 1, xRange: 20, y: 1, yRange: 20 }]);
|
413
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: -1, xRange: 20, y: 1, yRange: 20 }]);
|
414
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: -1, xRange: 20, y: 1, yRange: 20 }]);
|
415
|
+
});
|
416
|
+
|
417
|
+
it('When user updates X grid spacing then on the x axis user should be able to plot only on the grid lines after a those many intervals', () => {
|
418
|
+
graphingPage.steps.enterTextInXGridSpacingInputFieldValue(3)
|
419
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }]);
|
420
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
421
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: -2, xRange: 20, y: 1, yRange: 20 }]);
|
422
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: -3, xRange: 20, y: 1, yRange: 20 }]);
|
423
|
+
});
|
424
|
+
|
425
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
426
|
+
it('When \'Tick interval\' for the x axis is 1 then the ticks should be displayed after a single interval on the x axis', () => {
|
427
|
+
|
428
|
+
});
|
429
|
+
|
430
|
+
it('When the user updates the \'Tick interval\' value then the ticks should be displayed after a those many intervals', () => {
|
431
|
+
|
432
|
+
});
|
433
|
+
|
434
|
+
it('When the user has checked the \'Display axis label\' checkbox then the X axis label should be displayed', () => {
|
435
|
+
graphingPage.steps.verifyXDisplayAxisCheckboxChecked();
|
436
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabelGraphEditTab(), 'visible');
|
437
|
+
utilities.verifyInnerText(graphingPage.xAxisLabelGraphEditTab(), 'X axis label');
|
438
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabelGraphSpecifyCorrectAnswerSection(), 'visible');
|
439
|
+
utilities.verifyInnerText(graphingPage.xAxisLabelGraphSpecifyCorrectAnswerSection(), 'X axis label');
|
440
|
+
});
|
441
|
+
|
442
|
+
it('When the user unchecks the \'Display axis label\' checkbox then the X axis label should not be displayed', () => {
|
443
|
+
graphingPage.steps.uncheckXDisplayAxisCheckbox();
|
444
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabelGraphEditTab(), 'notExist');
|
445
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabelGraphSpecifyCorrectAnswerSection(), 'hidden');
|
446
|
+
});
|
447
|
+
|
448
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
449
|
+
it('When the user has checked the \'Remove ticks\' checkbox then the X axis ticks should not be displayed', () => {
|
450
|
+
graphingPage.steps.verifyXRemoveTicksCheckboxChecked();
|
451
|
+
});
|
452
|
+
|
453
|
+
it('When the user unchecks the \'Remove ticks\' checkbox then the X axis ticks should be displayed', () => {
|
454
|
+
graphingPage.steps.uncheckXRemoveTicksCheckbox();
|
455
|
+
});
|
456
|
+
|
457
|
+
it('When the user has checked the \'Show tick labels\' checkbox then the X axis ticks label should be displayed', () => {
|
458
|
+
graphingPage.steps.verifyXShowTicksLabelCheckboxChecked();
|
459
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('2'), 'visible');
|
460
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('4'), 'visible');
|
461
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('2'), 'visible');
|
462
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('4'), 'visible');
|
463
|
+
});
|
464
|
+
|
465
|
+
it('When the user unchecks the \'Show tick labels\' checkbox then the X axis ticks label should not be displayed', () => {
|
466
|
+
graphingPage.steps.uncheckXShowTicksLabelCheckbox();
|
467
|
+
utilities.verifyElementCount(graphingPage.textOnGraphEditTab('2'), 1);
|
468
|
+
utilities.verifyElementCount(graphingPage.textOnGraphEditTab('4'), 1);
|
469
|
+
utilities.verifyElementCount(graphingPage.textOnGraphSpecifyCorrectAnswerSection('2'), 1);
|
470
|
+
utilities.verifyElementCount(graphingPage.textOnGraphSpecifyCorrectAnswerSection('4'), 1);
|
471
|
+
});
|
472
|
+
|
473
|
+
it('When the user has checked the \'Min arrow\' checkbox then the negative X axis arrow should be displayed', () => {
|
474
|
+
graphingPage.steps.verifyXMinArrowCheckboxChecked();
|
475
|
+
graphingPage.steps.verifyXAxisMinArrowExistGraphEditTab();
|
476
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphEditTab();
|
477
|
+
graphingPage.steps.verifyXAxisMinArrowExistGraphSpecifyCorrectAnswerSection();
|
478
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphSpecifyCorrectAnswerSection();
|
479
|
+
});
|
480
|
+
|
481
|
+
it('When the user unchecks the \'Min arrow\' checkbox then the negative X axis arrow should not be displayed', () => {
|
482
|
+
graphingPage.steps.uncheckXMinArrowCheckbox();
|
483
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphEditTab();
|
484
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphEditTab();
|
485
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphSpecifyCorrectAnswerSection();
|
486
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphSpecifyCorrectAnswerSection();
|
487
|
+
});
|
488
|
+
|
489
|
+
it('When the user has checked the \'Max arrow\' checkbox then the positive X axis arrow should be displayed', () => {
|
490
|
+
graphingPage.steps.verifyXMaxArrowCheckboxChecked();
|
491
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphEditTab();
|
492
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphEditTab();
|
493
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphSpecifyCorrectAnswerSection();
|
494
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphSpecifyCorrectAnswerSection();
|
495
|
+
});
|
496
|
+
|
497
|
+
it('When the user unchecks the \'Max arrow\' checkbox then the positive X axis arrow should not be displayed', () => {
|
498
|
+
graphingPage.steps.uncheckXMaxArrowCheckbox();
|
499
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphEditTab();
|
500
|
+
graphingPage.steps.verifyXAxisMaxArrowNotExistGraphEditTab();
|
501
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphSpecifyCorrectAnswerSection();
|
502
|
+
graphingPage.steps.verifyXAxisMaxArrowNotExistGraphSpecifyCorrectAnswerSection();
|
503
|
+
});
|
504
|
+
|
505
|
+
//Failing due to https://redmine.zeuslearning.com/issues/563533
|
506
|
+
it('When the user has checked the \'Display comma for thousand separator\' checkbox comma separators should be displayed', () => {
|
507
|
+
graphingPage.steps.verifyXDisplayCommaForThousandSeparatorCheckboxChecked();
|
508
|
+
graphingPage.steps.enterTextInXMaxInputField(10000);
|
509
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9,999'), 'visible');
|
510
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9998'), 'notExist');
|
511
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9,999'), 'visible');
|
512
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9998'), 'notExist');
|
513
|
+
});
|
514
|
+
|
515
|
+
it('When the user unchecks the \'Display comma for thousand separator\' checkbox comma separators should not be displayed', () => {
|
516
|
+
graphingPage.steps.uncheckXDisplayCommaForThousandSeparatorCheckbox();
|
517
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9,999'), 'notExist');
|
518
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9998'), 'visible');
|
519
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9,999'), 'notExist');
|
520
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9998'), 'visible');
|
521
|
+
});
|
522
|
+
|
523
|
+
//Y axis
|
524
|
+
it('When Y grid spacing is 1 then the user should be able to plot y axis grid lines after a single interval', () => {
|
525
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
526
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
527
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 3, xRange: 20, y: -1, yRange: 20 }]);
|
528
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3, xRange: 20, y: -1, yRange: 20 }]);
|
529
|
+
});
|
530
|
+
|
531
|
+
it('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
|
532
|
+
graphingPage.steps.enterTextInYGridSpacingInputFieldValue(4)
|
533
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 3, xRange: 20, y: 7, yRange: 20 }]);
|
534
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 3, xRange: 20, y: 8, yRange: 20 }]);
|
535
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 3, xRange: 20, y: 3, yRange: 20 }]);
|
536
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3, xRange: 20, y: 4, yRange: 20 }]);
|
537
|
+
});
|
538
|
+
|
539
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
540
|
+
it('When \'Tick interval\' for the y axis is 1 then the ticks should be displayed after a single interval on the y axis', () => {
|
541
|
+
|
542
|
+
});
|
543
|
+
|
544
|
+
it('When the user updates the \'Tick interval\' value then the ticks should be displayed after a those many intervals', () => {
|
545
|
+
|
546
|
+
});
|
547
|
+
|
548
|
+
it('When the user has checked the \'Display axis label\' checkbox then the Y axis label should be displayed', () => {
|
549
|
+
graphingPage.steps.verifyYDisplayAxisCheckboxChecked();
|
550
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabelGraphEditTab(), 'visible');
|
551
|
+
utilities.verifyInnerText(graphingPage.yAxisLabelGraphEditTab(), 'Y axis label');
|
552
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabelGraphSpecifyCorrectAnswerSection(), 'visible');
|
553
|
+
utilities.verifyInnerText(graphingPage.yAxisLabelGraphSpecifyCorrectAnswerSection(), 'Y axis label');
|
554
|
+
});
|
555
|
+
|
556
|
+
it('When the user unchecks the \'Display axis label\' checkbox then the Y axis label should not be displayed', () => {
|
557
|
+
graphingPage.steps.uncheckYDisplayAxisCheckbox();
|
558
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabelGraphEditTab(), 'notExist');
|
559
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabelGraphSpecifyCorrectAnswerSection(), 'hidden');
|
560
|
+
});
|
561
|
+
|
562
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
563
|
+
it('When the user has checked the \'Remove ticks\' checkbox then the Y axis ticks should not be displayed', () => {
|
564
|
+
graphingPage.steps.verifyYRemoveTicksCheckboxChecked();
|
565
|
+
});
|
566
|
+
|
567
|
+
it('When the user unchecks the \'Remove ticks\' checkbox then the Y axis ticks should be displayed', () => {
|
568
|
+
graphingPage.steps.uncheckYRemoveTicksCheckbox();
|
569
|
+
});
|
570
|
+
|
571
|
+
it('When the user has checked the \'Show tick labels\' checkbox then the Y axis ticks label should be displayed', () => {
|
572
|
+
graphingPage.steps.verifyYShowTicksLabelCheckboxChecked();
|
573
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('2'), 'visible');
|
574
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('4'), 'visible');
|
575
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('2'), 'visible');
|
576
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('4'), 'visible');
|
577
|
+
});
|
578
|
+
|
579
|
+
it('When the user unchecks the \'Show tick labels\' checkbox then the Y axis ticks label should not be displayed', () => {
|
580
|
+
graphingPage.steps.uncheckYShowTicksLabelCheckbox();
|
581
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab(), 'notExist');
|
582
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection(), 'hidden');
|
583
|
+
graphingPage.steps.checkXShowTicksLabelCheckbox();
|
584
|
+
});
|
585
|
+
|
586
|
+
it('When the user has checked the \'Min arrow\' checkbox then the negative Y axis arrow should be displayed', () => {
|
587
|
+
graphingPage.steps.verifyYMinArrowCheckboxChecked();
|
588
|
+
graphingPage.steps.verifyYAxisMinArrowExistGraphEditTab();
|
589
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphEditTab();
|
590
|
+
graphingPage.steps.verifyYAxisMinArrowExistGraphSpecifyCorrectAnswerSection();
|
591
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphSpecifyCorrectAnswerSection();
|
592
|
+
});
|
593
|
+
|
594
|
+
it('When the user unchecks the \'Min arrow\' checkbox then the negative Y axis arrow should not be displayed', () => {
|
595
|
+
graphingPage.steps.uncheckYMinArrowCheckbox();
|
596
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphEditTab();
|
597
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphEditTab();
|
598
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphSpecifyCorrectAnswerSection();
|
599
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphSpecifyCorrectAnswerSection();
|
600
|
+
});
|
601
|
+
|
602
|
+
it('When the user has checked the \'Max arrow\' checkbox then the positive Y axis arrow should be displayed', () => {
|
603
|
+
graphingPage.steps.verifyYMaxArrowCheckboxChecked();
|
604
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphEditTab();
|
605
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphEditTab();
|
606
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphSpecifyCorrectAnswerSection();
|
607
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphSpecifyCorrectAnswerSection();
|
608
|
+
});
|
609
|
+
|
610
|
+
it('When the user unchecks the \'Max arrow\' checkbox then the positive Y axis arrow should not be displayed', () => {
|
611
|
+
graphingPage.steps.uncheckYMaxArrowCheckbox();
|
612
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphEditTab();
|
613
|
+
graphingPage.steps.verifyYAxisMaxArrowNotExistGraphEditTab();
|
614
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphSpecifyCorrectAnswerSection();
|
615
|
+
graphingPage.steps.verifyYAxisMaxArrowNotExistGraphSpecifyCorrectAnswerSection();
|
616
|
+
});
|
617
|
+
|
618
|
+
//Failing due to https://redmine.zeuslearning.com/issues/563533
|
619
|
+
it('When the user has checked the \'Display comma for thousand separator\' checkbox comma separators should be displayed', () => {
|
620
|
+
graphingPage.steps.verifyYDisplayCommaForThousandSeparatorCheckboxChecked();
|
621
|
+
graphingPage.steps.enterTextInYMaxInputField(10000);
|
622
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9,999'), 'visible');
|
623
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9998'), 'notExist');
|
624
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9,999'), 'visible');
|
625
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9998'), 'notExist');
|
626
|
+
});
|
627
|
+
|
628
|
+
it('When the user unchecks the \'Display comma for thousand separator\' checkbox comma separators should not be displayed', () => {
|
629
|
+
graphingPage.steps.uncheckYDisplayCommaForThousandSeparatorCheckbox();
|
630
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9,999'), 'notExist');
|
631
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('9998'), 'visible');
|
632
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9,999'), 'notExist');
|
633
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('9998'), 'visible');
|
634
|
+
});
|
635
|
+
});
|
636
|
+
|
637
|
+
describe('Grid options: Preview tab functionality', () => {
|
638
|
+
abortEarlySetup();
|
639
|
+
before(() => {
|
640
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
641
|
+
cy.barsPreLoaderWait();
|
642
|
+
graphingPage.steps.switchToPreviewTab();
|
643
|
+
});
|
644
|
+
|
645
|
+
//Snap to grid
|
646
|
+
it('When snap to grid is unchecked user should be able to plot decimal points on the graph in preview tab', () => {
|
647
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2.5, xRange: 20, y: 1, yRange: 20 }]);
|
648
|
+
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2.5, xRange: 20, y: 1, yRange: 20 }]);
|
649
|
+
});
|
650
|
+
|
651
|
+
it('When the user checks snap to grid checkbox then the X and Y tolerance should become disabled and the user should not be able to plot decimal points', () => {
|
652
|
+
graphingPage.steps.switchToEditTab();
|
653
|
+
graphingPage.steps.checkSnapToGridCheckbox();
|
654
|
+
graphingPage.steps.switchToPreviewTab();
|
655
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2.25, xRange: 20, y: 1, yRange: 20 }]);
|
656
|
+
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }]);
|
657
|
+
});
|
658
|
+
|
659
|
+
//Origin option
|
660
|
+
it('When blank origin option is selected nothing should be displayed on the origin on the graph in preview tab', () => {
|
661
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('0,0'), 'notExist');
|
662
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('O'), 'notExist');
|
663
|
+
});
|
664
|
+
|
665
|
+
it('When the user selects 0,0 then 0,0 should be displayed on the origin on the graph in preview tab', () => {
|
666
|
+
graphingPage.steps.switchToEditTab();
|
667
|
+
graphingPage.steps.selectOriginOption('0,0');
|
668
|
+
graphingPage.steps.switchToPreviewTab();
|
669
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('0,0'), 'visible');
|
670
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('O'), 'notExist');
|
671
|
+
});
|
672
|
+
|
673
|
+
it('When the user selects Symbol(O) then O should be displayed on the origin on the graph in preview tab', () => {
|
674
|
+
graphingPage.steps.switchToEditTab();
|
675
|
+
graphingPage.steps.selectOriginOption('Symbol(O)');
|
676
|
+
graphingPage.steps.switchToPreviewTab();
|
677
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('0,0'), 'notExist');
|
678
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('O'), 'visible');
|
679
|
+
});
|
680
|
+
|
681
|
+
it('When the user selects \'Blank\' then nothing should be displayed on the origin on the graph in preview tab', () => {
|
682
|
+
graphingPage.steps.switchToEditTab();
|
683
|
+
graphingPage.steps.selectOriginOption('Blank');
|
684
|
+
graphingPage.steps.switchToPreviewTab();
|
685
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('0,0'), 'notExist');
|
686
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('O'), 'notExist');
|
687
|
+
});
|
688
|
+
|
689
|
+
//X axis
|
690
|
+
it('When X grid spacing is 1 then on the x axis user should be able to plot only on the grid lines', () => {
|
691
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 1, xRange: 20, y: 1, yRange: 20 }]);
|
692
|
+
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 1, xRange: 20, y: 1, yRange: 20 }]);
|
693
|
+
});
|
694
|
+
|
695
|
+
it('When user updates X grid spacing then on the x axis user should be able to plot only on the grid lines after a those many intervals', () => {
|
696
|
+
graphingPage.steps.switchToEditTab();
|
697
|
+
graphingPage.steps.enterTextInXGridSpacingInputFieldValue(3);
|
698
|
+
graphingPage.steps.switchToPreviewTab();
|
699
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }]);
|
700
|
+
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
701
|
+
});
|
702
|
+
|
703
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
704
|
+
it('When \'Tick interval\' for the x axis is 1 then the ticks should be displayed after a single interval on the x axis', () => {
|
705
|
+
|
706
|
+
});
|
707
|
+
|
708
|
+
it('When the user updates the \'Tick interval\' value then the ticks should be displayed after a those many intervals', () => {
|
709
|
+
|
710
|
+
});
|
711
|
+
|
712
|
+
it('When the user has checked the \'Display axis label\' checkbox then the X axis label should be displayed', () => {
|
713
|
+
graphingPage.steps.switchToEditTab();
|
714
|
+
graphingPage.steps.verifyXDisplayAxisCheckboxChecked();
|
715
|
+
graphingPage.steps.switchToPreviewTab();
|
716
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabelGraphPreviewTab(), 'visible');
|
717
|
+
utilities.verifyInnerText(graphingPage.xAxisLabelGraphPreviewTab(), 'X axis label');
|
718
|
+
});
|
719
|
+
|
720
|
+
it('When the user unchecks the \'Display axis label\' checkbox then the X axis label should not be displayed', () => {
|
721
|
+
graphingPage.steps.switchToEditTab();
|
722
|
+
graphingPage.steps.uncheckXDisplayAxisCheckbox();
|
723
|
+
graphingPage.steps.switchToPreviewTab();
|
724
|
+
utilities.verifyElementVisibilityState(graphingPage.xAxisLabelGraphPreviewTab(), 'hidden');
|
725
|
+
});
|
726
|
+
|
727
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
728
|
+
it('When the user has checked the \'Remove ticks\' checkbox then the X axis ticks should not be displayed', () => {
|
729
|
+
|
730
|
+
});
|
731
|
+
|
732
|
+
it('When the user unchecks the \'Remove ticks\' checkbox then the X axis ticks should be displayed', () => {
|
733
|
+
|
734
|
+
});
|
735
|
+
|
736
|
+
it('When the user has checked the \'Show tick labels\' checkbox then the X axis ticks label should be displayed', () => {
|
737
|
+
graphingPage.steps.switchToEditTab();
|
738
|
+
graphingPage.steps.verifyXShowTicksLabelCheckboxChecked();
|
739
|
+
graphingPage.steps.switchToPreviewTab();
|
740
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('2'), 'visible');
|
741
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('4'), 'visible');
|
742
|
+
});
|
743
|
+
|
744
|
+
it('When the user unchecks the \'Show tick labels\' checkbox then the X axis ticks label should not be displayed', () => {
|
745
|
+
graphingPage.steps.switchToEditTab();
|
746
|
+
graphingPage.steps.uncheckXShowTicksLabelCheckbox();
|
747
|
+
graphingPage.steps.switchToPreviewTab();
|
748
|
+
utilities.verifyElementCount(graphingPage.textOnGraphPreviewTab('2'), 1);
|
749
|
+
utilities.verifyElementCount(graphingPage.textOnGraphPreviewTab('4'), 1);
|
750
|
+
});
|
751
|
+
|
752
|
+
it('When the user has checked the \'Min arrow\' checkbox then the negative X axis arrow should be displayed', () => {
|
753
|
+
graphingPage.steps.switchToEditTab();
|
754
|
+
graphingPage.steps.verifyXMinArrowCheckboxChecked();
|
755
|
+
graphingPage.steps.switchToPreviewTab();
|
756
|
+
graphingPage.steps.verifyXAxisMinArrowExistGraphPreviewTab();
|
757
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphPreviewTab();
|
758
|
+
});
|
759
|
+
|
760
|
+
it('When the user unchecks the \'Min arrow\' checkbox then the negative X axis arrow should not be displayed', () => {
|
761
|
+
graphingPage.steps.switchToEditTab();
|
762
|
+
graphingPage.steps.uncheckXMinArrowCheckbox();
|
763
|
+
graphingPage.steps.switchToPreviewTab();
|
764
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphPreviewTab();
|
765
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphPreviewTab();
|
766
|
+
});
|
767
|
+
|
768
|
+
it('When the user has checked the \'Max arrow\' checkbox then the positive X axis arrow should be displayed', () => {
|
769
|
+
graphingPage.steps.switchToEditTab();
|
770
|
+
graphingPage.steps.verifyXMaxArrowCheckboxChecked();
|
771
|
+
graphingPage.steps.switchToPreviewTab();
|
772
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphPreviewTab();
|
773
|
+
graphingPage.steps.verifyXAxisMaxArrowExistGraphPreviewTab();
|
774
|
+
});
|
775
|
+
|
776
|
+
it('When the user unchecks the \'Max arrow\' checkbox then the positive X axis arrow should not be displayed', () => {
|
777
|
+
graphingPage.steps.switchToEditTab();
|
778
|
+
graphingPage.steps.uncheckXMaxArrowCheckbox();
|
779
|
+
graphingPage.steps.switchToPreviewTab();
|
780
|
+
graphingPage.steps.verifyXAxisMinArrowNotExistGraphPreviewTab();
|
781
|
+
graphingPage.steps.verifyXAxisMaxArrowNotExistGraphPreviewTab();
|
782
|
+
});
|
783
|
+
|
784
|
+
//Failing due to https://redmine.zeuslearning.com/issues/563533
|
785
|
+
it('When the user has checked the \'Display comma for thousand separator\' checkbox comma separators should be displayed', () => {
|
786
|
+
graphingPage.steps.switchToEditTab();
|
787
|
+
graphingPage.steps.verifyXDisplayCommaForThousandSeparatorCheckboxChecked();
|
788
|
+
graphingPage.steps.enterTextInXMaxInputField(10000);
|
789
|
+
graphingPage.steps.switchToPreviewTab();
|
790
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9,999'), 'visible');
|
791
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9998'), 'notExist');
|
792
|
+
});
|
793
|
+
|
794
|
+
it('When the user unchecks the \'Display comma for thousand separator\' checkbox comma separators should not be displayed', () => {
|
795
|
+
graphingPage.steps.switchToEditTab();
|
796
|
+
graphingPage.steps.uncheckXDisplayCommaForThousandSeparatorCheckbox();
|
797
|
+
graphingPage.steps.switchToPreviewTab();
|
798
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9,999'), 'notExist');
|
799
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9998'), 'visible');
|
800
|
+
});
|
801
|
+
|
802
|
+
//Y axis
|
803
|
+
it('When Y grid spacing is 1 then the user should be able to plot y axis grid lines after a single interval', () => {
|
804
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
805
|
+
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
806
|
+
});
|
807
|
+
|
808
|
+
it('When the user updates the Y grid spacing value then the user should be able to plot on y axis grid lines after those many intervals', () => {
|
809
|
+
graphingPage.steps.switchToEditTab();
|
810
|
+
graphingPage.steps.enterTextInYGridSpacingInputFieldValue(4);
|
811
|
+
graphingPage.steps.switchToPreviewTab();
|
812
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 3, xRange: 20, y: 3, yRange: 20 }]);
|
813
|
+
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 3, xRange: 20, y: 4, yRange: 20 }]);
|
814
|
+
});
|
815
|
+
|
816
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
817
|
+
it('When \'Tick interval\' for the y axis is 1 then the ticks should be displayed after a single interval on the y axis', () => {
|
818
|
+
|
819
|
+
});
|
820
|
+
|
821
|
+
it('When the user updates the \'Tick interval\' value then the ticks should be displayed after a those many intervals', () => {
|
822
|
+
|
823
|
+
});
|
824
|
+
|
825
|
+
it('When the user has checked the \'Display axis label\' checkbox then the Y axis label should be displayed', () => {
|
826
|
+
graphingPage.steps.switchToEditTab();
|
827
|
+
graphingPage.steps.verifyYDisplayAxisCheckboxChecked();
|
828
|
+
graphingPage.steps.switchToPreviewTab();
|
829
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabelGraphPreviewTab(), 'visible');
|
830
|
+
utilities.verifyInnerText(graphingPage.yAxisLabelGraphPreviewTab(), 'Y axis label');
|
831
|
+
});
|
832
|
+
|
833
|
+
it('When the user unchecks the \'Display axis label\' checkbox then the Y axis label should not be displayed', () => {
|
834
|
+
graphingPage.steps.switchToEditTab();
|
835
|
+
graphingPage.steps.uncheckYDisplayAxisCheckbox();
|
836
|
+
graphingPage.steps.switchToPreviewTab();
|
837
|
+
utilities.verifyElementVisibilityState(graphingPage.yAxisLabelGraphPreviewTab(), 'hidden');
|
838
|
+
});
|
839
|
+
|
840
|
+
//Note: Update once https://redmine.zeuslearning.com/issues/564975 is resolved
|
841
|
+
it('When the user has checked the \'Remove ticks\' checkbox then the Y axis ticks should not be displayed', () => {
|
842
|
+
|
843
|
+
});
|
844
|
+
|
845
|
+
it('When the user unchecks the \'Remove ticks\' checkbox then the Y axis ticks should be displayed', () => {
|
846
|
+
|
847
|
+
});
|
848
|
+
|
849
|
+
it('When the user has checked the \'Show tick labels\' checkbox then the Y axis ticks label should be displayed', () => {
|
850
|
+
graphingPage.steps.switchToEditTab();
|
851
|
+
graphingPage.steps.verifyYShowTicksLabelCheckboxChecked();
|
852
|
+
graphingPage.steps.switchToPreviewTab();
|
853
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('2'), 'visible');
|
854
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('4'), 'visible');
|
855
|
+
});
|
856
|
+
|
857
|
+
it('When the user unchecks the \'Show tick labels\' checkbox then the Y axis ticks label should not be displayed', () => {
|
858
|
+
graphingPage.steps.switchToEditTab();
|
859
|
+
graphingPage.steps.uncheckYShowTicksLabelCheckbox();
|
860
|
+
graphingPage.steps.switchToPreviewTab();
|
861
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab(), 'notExist');
|
862
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab(), 'notExist');
|
863
|
+
});
|
864
|
+
|
865
|
+
it('When the user has checked the \'Min arrow\' checkbox then the negative Y axis arrow should be displayed', () => {
|
866
|
+
graphingPage.steps.switchToEditTab();
|
867
|
+
graphingPage.steps.checkYShowTicksLabelCheckbox();
|
868
|
+
graphingPage.steps.verifyYMinArrowCheckboxChecked();
|
869
|
+
graphingPage.steps.switchToPreviewTab();
|
870
|
+
graphingPage.steps.verifyYAxisMinArrowExistGraphPreviewTab();
|
871
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphPreviewTab();
|
872
|
+
});
|
873
|
+
|
874
|
+
it('When the user unchecks the \'Min arrow\' checkbox then the negative Y axis arrow should not be displayed', () => {
|
875
|
+
graphingPage.steps.switchToEditTab();
|
876
|
+
graphingPage.steps.uncheckYMinArrowCheckbox();
|
877
|
+
graphingPage.steps.switchToPreviewTab();
|
878
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphPreviewTab();
|
879
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphPreviewTab();
|
880
|
+
});
|
881
|
+
|
882
|
+
it('When the user has checked the \'Max arrow\' checkbox then the positive Y axis arrow should be displayed', () => {
|
883
|
+
graphingPage.steps.switchToEditTab();
|
884
|
+
graphingPage.steps.verifyYMaxArrowCheckboxChecked();
|
885
|
+
graphingPage.steps.switchToPreviewTab();
|
886
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphPreviewTab();
|
887
|
+
graphingPage.steps.verifyYAxisMaxArrowExistGraphPreviewTab();
|
888
|
+
});
|
889
|
+
|
890
|
+
it('When the user unchecks the \'Max arrow\' checkbox then the positive Y axis arrow should not be displayed', () => {
|
891
|
+
graphingPage.steps.switchToEditTab();
|
892
|
+
graphingPage.steps.uncheckYMaxArrowCheckbox();
|
893
|
+
graphingPage.steps.switchToPreviewTab();
|
894
|
+
graphingPage.steps.verifyYAxisMinArrowNotExistGraphPreviewTab();
|
895
|
+
graphingPage.steps.verifyYAxisMaxArrowNotExistGraphPreviewTab();
|
896
|
+
});
|
897
|
+
|
898
|
+
//Failing due to https://redmine.zeuslearning.com/issues/563533
|
899
|
+
it('When the user has checked the \'Display comma for thousand separator\' checkbox comma separators should be displayed', () => {
|
900
|
+
graphingPage.steps.switchToEditTab();
|
901
|
+
graphingPage.steps.verifyYDisplayCommaForThousandSeparatorCheckboxChecked();
|
902
|
+
graphingPage.steps.enterTextInYMaxInputField(10000);
|
903
|
+
graphingPage.steps.switchToPreviewTab();
|
904
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9,999'), 'visible');
|
905
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9998'), 'notExist');
|
906
|
+
});
|
907
|
+
|
908
|
+
it('When the user unchecks the \'Display comma for thousand separator\' checkbox comma separators should not be displayed', () => {
|
909
|
+
graphingPage.steps.switchToEditTab();
|
910
|
+
graphingPage.steps.uncheckYDisplayCommaForThousandSeparatorCheckbox();
|
911
|
+
graphingPage.steps.switchToPreviewTab();
|
912
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9,999'), 'notExist');
|
913
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('9998'), 'visible');
|
914
|
+
});
|
915
|
+
});
|
916
|
+
});
|