itemengine-cypress-automation 1.0.357-IEI-5712-TEM-Validation-d745575.0 → 1.0.360-thinksphere-q2-ccd97ed.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
5
 
6
- const fileTypes = ['GIF', 'HEIC', 'HEIF', 'JPG', 'SVG', 'PNG' ];
6
+ const fileTypes = ['GIF', 'JPG', 'SVG', 'PNG'];
7
7
  const fileTypesString = fileTypes.toString().replaceAll(',', ', ')
8
8
  const infoIconTooltipText = 'Supported file formats: ' + fileTypesString + '.';
9
9
 
@@ -57,7 +57,7 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
57
57
  'border-style': 'solid',
58
58
  'border-color': 'rgb(107, 139, 255)',
59
59
  'border-radius': '8px',
60
- 'padding': '30px 12px 0px'
60
+ 'padding': '30px 12px 12px'
61
61
  });
62
62
  });
63
63
 
@@ -98,8 +98,6 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
98
98
 
99
99
  it('User is able to upload supported image types other than jpg', () => {
100
100
  thinkSpherePage.steps.uploadFile('uploads/image.png');
101
- thinkSpherePage.steps.uploadFile('uploads/sample.heic', { timeout: 1500 });
102
- thinkSpherePage.steps.uploadFile('uploads/sample.heif', { timeout: 1500 });
103
101
  thinkSpherePage.steps.uploadFile('uploads/sample.svg', { timeout: 1500 });
104
102
  thinkSpherePage.steps.uploadFile('uploads/sample.gif', { timeout: 1500 });
105
103
  });
@@ -130,7 +128,7 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
130
128
  });
131
129
  });
132
130
 
133
- it('Accessibility of Image Upload Section After upload', { tags: 'a11y' }, () => {
131
+ it.skip('Accessibility of Image Upload Section After upload', { tags: 'a11y' }, () => {
134
132
  cy.checkAccessibility(thinkSpherePage.imageUploadSection(), { timeout: 15000 });
135
133
  });
136
134
  });
@@ -163,6 +161,21 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
163
161
  cy.barsPreLoaderWait();
164
162
  });
165
163
 
164
+ it('Verify whiteboard management panel labels and buttons', () => {
165
+ utilities.verifyInnerText(thinkSpherePage.manageWhiteBoardTitle(), 'Manage whiteboard pages');
166
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPreviousButton(), 'Prev');
167
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageLabel(), 'Page');
168
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageCounter(), '1 / 1');
169
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardNextButton(), 'Next');
170
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardDeleteButton(), 'Delete page');
171
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardAddNewPageButton(), 'New page');
172
+ utilities.verifyElementVisibilityState(thinkSpherePage.manageWhiteBoardTitle(), 'visible');
173
+ utilities.verifyElementVisibilityState(thinkSpherePage.whiteBoardPreviousButton(), 'visible');
174
+ utilities.verifyElementVisibilityState(thinkSpherePage.whiteBoardNextButton(), 'visible');
175
+ utilities.verifyElementVisibilityState(thinkSpherePage.whiteBoardDeleteButton(), 'visible');
176
+ utilities.verifyElementVisibilityState(thinkSpherePage.whiteBoardAddNewPageButton(), 'visible');
177
+ });
178
+
166
179
  it('Before image upload by default the Page 1 image label and radio button component should be rendered', () => {
167
180
  utilities.verifyInnerText(thinkSpherePage.pageImageTitle(), 'Page 1 image');
168
181
  utilities.verifyElementVisibilityState(thinkSpherePage.radioGroupWrapper(), 'exist');
@@ -183,6 +196,123 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
183
196
  utilities.verifyElementVisibilityState(thinkSpherePage.imageUploadSectionWrapper(), 'exist');
184
197
  utilities.verifyElementVisibilityState(thinkSpherePage.pageImagePropertiesTitle(), 'exist');
185
198
  });
199
+
200
+ it('When new page button is clicked, it should create new white board page', () => {
201
+ thinkSpherePage.whiteBoardAddNewPageButton().click();
202
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageCounter(), '2 / 2');
203
+ });
204
+
205
+ it('When previous page button is clicked, the previous page should be rendered', () => {
206
+ thinkSpherePage.whiteBoardPreviousButton().click();
207
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageCounter(), '1 / 2');
208
+ });
209
+
210
+ it('When next page button is clicked, the next page should be rendered', () => {
211
+ thinkSpherePage.whiteBoardNextButton().click();
212
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageCounter(), '2 / 2');
213
+ });
214
+
215
+ it('When there is only 1 page, clicking delete page button should delete current page', () => {
216
+ thinkSpherePage.whiteBoardDeleteButton().click();
217
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageCounter(), '1 / 1');
218
+ });
219
+
220
+ it('When there is only 1 page, previous page button, next page button, and delete page button should be disabled', () => {
221
+ thinkSpherePage.whiteBoardPreviousButton().should('be.disabled');
222
+ thinkSpherePage.whiteBoardNextButton().should('be.disabled');
223
+ thinkSpherePage.whiteBoardDeleteButton().should('be.disabled');
224
+ });
225
+
226
+ it('When delete page button is clicked, current page should be deleted, and the previous page should be rendered', () => {
227
+ thinkSpherePage.whiteBoardAddNewPageButton().click();
228
+ thinkSpherePage.whiteBoardAddNewPageButton().click();
229
+ thinkSpherePage.whiteBoardPreviousButton().click();
230
+ thinkSpherePage.whiteBoardDeleteButton().click();
231
+ utilities.verifyInnerText(thinkSpherePage.whiteBoardPageCounter(), '1 / 2');
232
+ thinkSpherePage.whiteBoardDeleteButton().click();
233
+ });
234
+
235
+ it('CSS of whiteBoard and its buttons', { tags: 'css' }, () => {
236
+ utilities.verifyCSS(thinkSpherePage.whiteBoardPreviousButton(), {
237
+ 'background-color': css.color.boxShadow,
238
+ 'border-color': css.color.transparent,
239
+ 'box-shadow': `${css.color.transparent} 0px 0px 0px 0px`,
240
+ 'color': css.color.primaryBtnDisabled,
241
+ 'opacity': '1',
242
+ });
243
+ utilities.verifyCSS(thinkSpherePage.whiteBoardNextButton(), {
244
+ 'background-color': css.color.boxShadow,
245
+ 'border-color': css.color.transparent,
246
+ 'box-shadow': `${css.color.transparent} 0px 0px 0px 0px`,
247
+ 'color': css.color.primaryBtnDisabled,
248
+ 'opacity': '1',
249
+ });
250
+ thinkSpherePage.whiteBoardAddNewPageButton().click();
251
+ utilities.verifyCSS(thinkSpherePage.whiteBoardPreviousButton(), {
252
+ 'padding': '12px 16px',
253
+ 'font-weight': '600',
254
+ 'font-size': '16px',
255
+ 'line-height': '22px',
256
+ 'letter-spacing': '0',
257
+ 'border-radius': '8px',
258
+ 'text-transform': 'none',
259
+ 'border': `1px solid ${css.color.primaryBtnBorder}`,
260
+ 'background-color': css.color.primaryBtnBg,
261
+ 'border-color': css.color.primaryBtnBorder,
262
+ 'box-shadow': `${css.color.primaryBtnBorder} 0px 5px 0px 0px`,
263
+ 'color': css.color.whiteText,
264
+ });
265
+ thinkSpherePage.whiteBoardPreviousButton().click();
266
+ utilities.verifyCSS(thinkSpherePage.whiteBoardNextButton(), {
267
+ 'padding': '12px 16px',
268
+ 'font-weight': '600',
269
+ 'font-size': '16px',
270
+ 'line-height': '22px',
271
+ 'letter-spacing': '0',
272
+ 'border-radius': '8px',
273
+ 'text-transform': 'none',
274
+ 'border': `1px solid ${css.color.primaryBtnBorder}`,
275
+ 'background-color': css.color.primaryBtnBg,
276
+ 'border-color': css.color.primaryBtnBorder,
277
+ 'box-shadow': `${css.color.primaryBtnBorder} 0px 5px 0px 0px`,
278
+ 'color': css.color.whiteText,
279
+ });
280
+ utilities.verifyCSS(thinkSpherePage.whiteBoardAddNewPageButton(), {
281
+ 'padding': '12px 16px',
282
+ 'font-weight': '600',
283
+ 'font-size': '16px',
284
+ 'line-height': '22px',
285
+ 'letter-spacing': '0',
286
+ 'border-radius': '8px',
287
+ 'text-transform': 'none',
288
+ 'border': `1px solid ${css.color.primaryBtnBorder}`,
289
+ 'background-color': css.color.primaryBtnBg,
290
+ 'border-color': css.color.primaryBtnBorder,
291
+ 'box-shadow': `${css.color.primaryBtnBorder} 0px 5px 0px 0px`,
292
+ 'color': css.color.whiteText,
293
+ });
294
+ utilities.verifyCSS(thinkSpherePage.whiteBoardDeleteButton(), {
295
+ 'border-radius': '8px',
296
+ 'font-size': '16px',
297
+ 'line-height': '22px',
298
+ 'font-weight': '400',
299
+ 'color': css.color.deletePageColor
300
+ });
301
+ thinkSpherePage.whiteBoardDeleteButton().click();
302
+ utilities.verifyCSS(thinkSpherePage.whiteBoardDeleteButton(), {
303
+ 'border-radius': '8px',
304
+ 'font-size': '16px',
305
+ 'line-height': '22px',
306
+ 'font-weight': '400',
307
+ 'color': css.color.secondaryBtnDisabled,
308
+ 'opacity': '1',
309
+ });
310
+
311
+ });
312
+
313
+ it('Accessibility of white board canvas contents', { tags: 'a11y' }, () => {
314
+ cy.checkAccessibility(thinkSpherePage.whiteBoardCanvasAndControls());
315
+ });
186
316
 
187
317
  it('Verify image upload section', () => {
188
318
  thinkSpherePage.tests.verifyUploadImageSectionContentWithCSSAndA11y();
@@ -190,7 +320,12 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
190
320
  });
191
321
 
192
322
  it('Verify that the uploaded image is visible', () => {
193
- // Fill tests when whiteboard component is ready
323
+ thinkSpherePage.steps.clickOnImageRadioButton();
324
+ thinkSpherePage.steps.uploadWhiteBoardImage('uploads/highlightImage.jpg');
325
+ cy.get('[class*="WhiteboardPagesstyles__BackgroundImage"]')
326
+ .should('exist')
327
+ .and('have.attr', 'src')
328
+ .and('not.be.empty');
194
329
  });
195
330
 
196
331
  it('\'Image alignment\' label and 3 alignment options: Top left, Center and Top right should be displayed. By default, \'Center\' should be selected', () => {
@@ -205,10 +340,6 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
205
340
  thinkSpherePage.steps.verifyCenterOptionAlignmentIsSelected();
206
341
  });
207
342
 
208
- it('When a new alignment option is selected, the image alignment should change', () => {
209
- /**@TODO Add check for when a new alignment option is selected */
210
- });
211
-
212
343
  it('\'Opacity\' label, a slider and opacity input field should be displayed. By default, the slider and the input field value should be 100%', () => {
213
344
  utilities.verifyInnerText(thinkSpherePage.opacityLabel(), 'Opacity');
214
345
  utilities.verifyElementVisibilityState(thinkSpherePage.opacityLabel(), 'exist');
@@ -231,7 +362,9 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
231
362
  });
232
363
 
233
364
  it('When the user changes value in the opacity input field, the image opacity should change', () => {
234
- /**@TODO Add check for when the user changes value in the opacity input field */
365
+ thinkSpherePage.steps.addInputToOpacityInputField(60);
366
+ thinkSpherePage.whiteBoardImage()
367
+ .should('have.css', 'opacity', '0.6');
235
368
  });
236
369
 
237
370
  it('\'Image alternative text\' label and input field should be displayed. By default, the input field should be blank', () => {
@@ -241,8 +374,9 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
241
374
  utilities.verifyElementVisibilityState(thinkSpherePage.imageAlternativeTextInputField(), 'exist');
242
375
  });
243
376
 
244
- it('When the user adds the alt value, it should be availabl in the image attribute', () => {
245
- /**@TODO Add check for when the user adds the alt value */
377
+ it('When the user adds the alt value, it should be available in the image attribute', () => {
378
+ thinkSpherePage.imageAlternativeTextInputField().type('Alternative text for image');
379
+ utilities.verifyElementAttribute(thinkSpherePage.whiteBoardImage(), 'alt', 'Alternative text for image');
246
380
  });
247
381
 
248
382
  it('CSS of whiteBoard Image and Image Properties Section', { tags: 'css' }, () => {
@@ -281,7 +415,16 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
281
415
  });
282
416
  });
283
417
 
284
- it('Accessibility of image canvas contents', { tags: 'a11y' }, () => {
418
+ it('When a new alignment option is selected, the image alignment should change', () => {
419
+ thinkSpherePage.topLeftButton().click();
420
+ thinkSpherePage.steps.verifyOptionAlignmentIsSelected('topLeft');
421
+ thinkSpherePage.centerButton().click();
422
+ thinkSpherePage.steps.verifyOptionAlignmentIsSelected('center');
423
+ thinkSpherePage.topRightButton().click();
424
+ thinkSpherePage.steps.verifyOptionAlignmentIsSelected('flex-end');
425
+ });
426
+
427
+ it('Accessibility of whiteboard image upload and properties', { tags: 'a11y' }, () => {
285
428
  cy.checkAccessibility(thinkSpherePage.whiteBoardImageProperties());
286
429
  });
287
430
 
@@ -364,3 +507,4 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
364
507
  });
365
508
  });
366
509
  });
510
+
@@ -1,26 +1,185 @@
1
1
  import { thinkSpherePage } from '../../../pages/thinkSpherePage';
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ const editedStrategies = [
6
+ 'Edited strategy 1',
7
+ 'Edited strategy 2',
8
+ 'Edited strategy 3',
9
+ 'Edited strategy 4',
10
+ 'Edited strategy 5'
11
+ ];
12
+ const editedSentenceStarters = [
13
+ 'Edited sentence starter 1',
14
+ 'Edited sentence starter 2',
15
+ 'Edited sentence starter 3',
16
+ 'Edited sentence starter 4',
17
+ 'Edited sentence starter 5'
18
+ ];
19
+
20
+ const selectStrategies = [
21
+ 'Edited strategy 1',
22
+ 'Edited strategy 3',
23
+ 'Edited strategy 5'
24
+ ];
25
+ const selectSentenceStarters = [
26
+ 'Edited sentence starter 1',
27
+ 'Edited sentence starter 3',
28
+ 'Edited sentence starter 5'
29
+ ];
30
+
31
+ const newSelectedToolbarOptions = [
32
+ 'Text',
33
+ 'Highlighter',
34
+ 'Shapes',
35
+ 'Stamps',
36
+ 'Number bond',
37
+ 'Diagrams',
38
+ 'Number line',
39
+ 'Protractor',
40
+ 'Grids',
41
+ 'Equation editor',
42
+ 'Algebra tiles'
43
+ ];
44
+
45
+ const newSelectedControls = [
46
+ 'Move',
47
+ 'Undo',
48
+ 'Redo',
49
+ 'Clear all'
50
+ ];
51
+
52
+ const newDefaultSelectedToolDropdownValue = 'Text';
53
+
54
+ const whiteBoardImageOpacity = 50;
55
+
56
+ const alternateTextForImage = 'Alternative text for image';
57
+
58
+ const editedFontSize = 'Normal';
2
59
 
3
60
  describe('Edit Question and edit item', () => {
4
61
  before(() => {
5
62
  cy.loginAs('admin');
6
63
  cy.deleteThinkSphereItem('~zzz item name');
7
64
  cy.createThinkSphereItem('~zzz item name');
8
- cy.visit('/item-engine/thinksphere/browse-items');
9
- cy.interceptGraphql('getItems');
65
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
10
66
  });
11
67
 
12
68
  describe('Edit question', () => {
13
- it('When user edits the question instructions, then the changes should be saved correctly', () => {
69
+ abortEarlySetup();
70
+ it('When user edits the question instructions, then the changes should be saved successfully and edited question instruction should get displayed in preview side', () => {
14
71
  thinkSpherePage.steps.clickOnEditThinkSphereItem();
15
72
  thinkSpherePage.steps.clearQuestionInstructionsInputField();
16
73
  thinkSpherePage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
17
- thinkSpherePage.steps.clickOnSaveQuestionButton();
74
+ thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
75
+ utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'visible');
76
+ utilities.verifyInnerText(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'Edit question instructions');
77
+ });
78
+
79
+ it('When user edits the question instructions image, then the changes should be saved successfully and edited question instruction image should get displayed in preview side', () => {
80
+ thinkSpherePage.steps.clickOnEditQuestionIcon();
81
+ cy.wait(1000);
82
+ thinkSpherePage.steps.uploadFile('uploads/image.png');
83
+ thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
84
+ utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageWrapper(), 'visible');
85
+ utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageExpandButton(), 'visible');
86
+ });
87
+
88
+ it('When user edits the strategies and sentence starers, then the changes should be saved successfully and edited strategies and sentence starers should get displayed in preview side', () => {
89
+ thinkSpherePage.steps.clickOnEditQuestionIcon();
90
+ editedStrategies.forEach((strategy, index) => {
91
+ thinkSpherePage.steps.addOptionText('strategy', index, strategy);
92
+ });
93
+ cy.wait(2000);
94
+ editedSentenceStarters.forEach((sentenceStarter, index) => {
95
+ thinkSpherePage.steps.addOptionText('sentenceStarter', index, sentenceStarter);
96
+ });
97
+ cy.wait(2000);
98
+ thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
99
+ editedStrategies.forEach((label, index) => {
100
+ utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), index), label);
101
+ });
102
+ thinkSpherePage.steps.expandChooseStarterDropdown();
103
+ editedSentenceStarters.forEach((label, index) => {
104
+ utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.chooseStartersListOptionLabels(), index), label);
105
+ });
106
+ utilities.clickOnBody();
107
+ });
108
+
109
+ it('When user select unselect the strategies and sentence starers, then the changes should be saved successfully and selected strategies and sentence starers should get displayed in preview side', () => {
110
+ thinkSpherePage.steps.clickOnEditQuestionIcon();
111
+ editedStrategies.forEach((strategy, index) => {
112
+ if(!selectStrategies.includes(strategy)){
113
+ thinkSpherePage.steps.selectOption('strategy', index);
114
+ }
115
+ });
116
+ cy.wait(2000);
117
+ editedSentenceStarters.forEach((sentenceStarter, index) => {
118
+ if(!selectSentenceStarters.includes(sentenceStarter)){
119
+ thinkSpherePage.steps.selectOption('sentenceStarter', index);
120
+ }
121
+ });
122
+ cy.wait(2000);
123
+ thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
124
+ selectStrategies.forEach((label, index) => {
125
+ utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), index), label);
126
+ });
127
+ thinkSpherePage.steps.expandChooseStarterDropdown();
128
+ selectSentenceStarters.forEach((label, index) => {
129
+ utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.chooseStartersListOptionLabels(), index), label);
130
+ });
131
+ utilities.clickOnBody();
132
+ });
133
+
134
+ it('When user updates the solve phase toolbar options and controls, then it should get updated successfully', () => {
135
+ thinkSpherePage.steps.clickOnEditQuestionIcon();
136
+ thinkSpherePage.steps.expandCustomizeToolsAndControls();
137
+ thinkSpherePage.steps.selectTools(newSelectedToolbarOptions, 0);
138
+ thinkSpherePage.steps.selectTools(newSelectedControls, 1);
139
+ });
140
+
141
+ it('When user updates the solve phase default tool dropdown value, then it should get updated successfully', () => {
142
+ thinkSpherePage.steps.expandDefaultToolDropdown();
143
+ thinkSpherePage.steps.selectOptionFromDefaultToolDropdown(newDefaultSelectedToolDropdownValue);
144
+ });
145
+
146
+ it('When user updates the solve phase customize stamps, then it should get updated successfully', () => {
147
+ thinkSpherePage.steps.clickOnCustomizeStamp(1);
148
+ });
149
+
150
+ it('When user updates the solve phase whiteboard image and properties, then it should get updated and saved successfully', () => {
151
+ thinkSpherePage.steps.clickOnImageRadioButton();
152
+ thinkSpherePage.steps.uploadWhiteBoardImage('uploads/highlightImage.jpg');
153
+ thinkSpherePage.steps.addInputToOpacityInputField(whiteBoardImageOpacity);
154
+ thinkSpherePage.imageAlternativeTextInputField().type(alternateTextForImage);
155
+ cy.wait(2000);
156
+ thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
18
157
  });
19
158
 
20
- /** @TODO Modify other fields and test the save functionality */
159
+ it('When user updates solve phase data, then updated solve phase data should reflect to user when revisit to edit the question', () => {
160
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
161
+ thinkSpherePage.steps.clickOnEditThinkSphereItem();
162
+ thinkSpherePage.steps.expandCustomizeToolsAndControls();
163
+ thinkSpherePage.steps.verifySelectTools(newSelectedToolbarOptions, 0);
164
+ thinkSpherePage.steps.verifySelectTools(newSelectedControls, 1);
165
+ utilities.verifyInnerText(thinkSpherePage.defaultToolDropdown(), newDefaultSelectedToolDropdownValue);
166
+ thinkSpherePage.steps.verifyCustomizeStampSelectedUnselected(false, 1);
167
+ utilities.verifyElementCheckedNotCheckedState(thinkSpherePage.imageRadioInput(), 'checked');
168
+ thinkSpherePage.steps.verifyUploadedImage();
169
+ thinkSpherePage.steps.verifyCenterOptionAlignmentIsSelected();
170
+ thinkSpherePage.steps.verifyOpacitySliderValue(whiteBoardImageOpacity);
171
+ thinkSpherePage.steps.verifyOpacityInputFieldValue(whiteBoardImageOpacity);
172
+ utilities.verifyElementAttribute(thinkSpherePage.whiteBoardImage(), 'alt', alternateTextForImage);
173
+ });
21
174
 
22
- it('The saved questions should be displayed in the list of questions', () => {
23
- thinkSpherePage.steps.verifyQuestionTitle('Thinksphere question');
175
+ it('When user edit the font size from additional settings, then edited font size should save successfully and edited data should reflect when user revisit to edit the question', () => {
176
+ thinkSpherePage.steps.expandAdditionalSettings();
177
+ thinkSpherePage.steps.selectFontSizeOptionFromFontSizeDropdown(editedFontSize);
178
+ thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
179
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
180
+ thinkSpherePage.steps.clickOnEditThinkSphereItem();
181
+ thinkSpherePage.steps.expandAdditionalSettings();
182
+ utilities.verifyInnerText(thinkSpherePage.fontSizeDropdown(), editedFontSize);
24
183
  });
25
184
  });
26
185
  });