itemengine-cypress-automation 1.0.418-fixesForFlakySmokeFiles22July-f48fab5.0 → 1.0.418

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.
@@ -1,17 +1,19 @@
1
1
  import { thinkSpherePage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
- import uuid from 'react-uuid';
5
4
 
6
5
  const allowedQuestions = [
7
6
  'multiple selection',
8
7
  'single selection',
9
8
  'fill in the gaps with text',
10
9
  'fill in the gaps with drag and drop',
10
+ 'fill in the gaps over image with text',
11
11
  'drag and drop into categories',
12
12
  'matching',
13
13
  'short text response',
14
14
  'Text Entry Math',
15
+ 'Graphing',
16
+ 'charts'
15
17
  ]
16
18
 
17
19
  const dropDownArray = [
@@ -22,19 +24,19 @@ const dropDownArray = [
22
24
  'List',
23
25
  'Constructed response',
24
26
  'Math response',
27
+ 'Graph and chart'
25
28
  ]
26
29
  describe("Create Review Item", () => {
27
30
  abortEarlySetup();
28
- let randomItemName;
29
31
  before(() => {
30
- randomItemName = `~zzz thinksphere item name ${uuid()}`;
31
32
  cy.loginAs('admin');
32
- cy.createThinkSphereItem(randomItemName);
33
+ cy.deleteThinkSphereItem('~zzz item name');
34
+ cy.createThinkSphereItem('~zzz item name');
33
35
  thinkSpherePage.steps.navigateToReviewItemsPage();
34
36
  });
35
37
 
36
38
  after(() => {
37
- cy.deleteThinkSphereItem(randomItemName);
39
+ cy.deleteThinkSphereItem('~zzz item name');
38
40
  });
39
41
 
40
42
  it('When the user clicks on the \'Create Question\' button then the user should be navigated to create review question page',() => {
@@ -2,7 +2,6 @@ import { thinkSpherePage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
- import uuid from 'react-uuid';
6
5
 
7
6
  const fileTypes = ['GIF', 'JPG', 'SVG', 'PNG'];
8
7
  const fileTypesString = fileTypes.toString().replaceAll(',', ', ')
@@ -163,7 +162,7 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
163
162
  thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
164
163
  cy.barsPreLoaderWait();
165
164
  });
166
-
165
+
167
166
  it('\'Phases\' Section should be present', () => {
168
167
  utilities.verifyInnerText(thinkSpherePage.phasesSectionTitle(), 'Phases');
169
168
  });
@@ -204,17 +203,17 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
204
203
  utilities.verifyInnerText(thinkSpherePage.pageImageTitle(), 'Page 1 image');
205
204
  utilities.verifyElementVisibilityState(thinkSpherePage.radioGroupWrapper(), 'exist');
206
205
  });
207
-
206
+
208
207
  it('By default Blank whiteboard radio button should be checked and Image radio button should not be checked', () => {
209
208
  utilities.verifyElementCheckedNotCheckedState(thinkSpherePage.blankCanvasRadioInput(), 'checked');
210
209
  utilities.verifyElementCheckedNotCheckedState(thinkSpherePage.imageRadioInput(), 'notChecked');
211
210
  });
212
-
211
+
213
212
  it('Before image upload by default Image upload and Image properties sections should not be visible', () => {
214
213
  utilities.verifyElementVisibilityState(thinkSpherePage.imageUploadSectionWrapper(), 'notExist');
215
214
  utilities.verifyElementVisibilityState(thinkSpherePage.pageImagePropertiesTitle(), 'notExist');
216
215
  });
217
-
216
+
218
217
  it('Before image upload clicking on image radio button should make Image upload and Image properties sections visible', () => {
219
218
  thinkSpherePage.steps.clickOnImageRadioButton();
220
219
  utilities.verifyElementVisibilityState(thinkSpherePage.imageUploadSectionWrapper(), 'exist');
@@ -337,7 +336,7 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
337
336
  it('Accessibility of white board canvas contents', { tags: 'a11y' }, () => {
338
337
  cy.checkAccessibility(thinkSpherePage.whiteBoardCanvasAndControls());
339
338
  });
340
-
339
+
341
340
  it('Verify image upload section', () => {
342
341
  thinkSpherePage.tests.verifyUploadImageSectionContentWithCSSAndA11y();
343
342
  thinkSpherePage.tests.verifyDeleteImagePopupContentAndFunctionality();
@@ -386,8 +385,8 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
386
385
  });
387
386
 
388
387
  it('When the user changes value in the opacity input field, the image opacity should change', () => {
389
- thinkSpherePage.steps.addInputToOpacityInputField(60);
390
- thinkSpherePage.whiteBoardImage()
388
+ thinkSpherePage.steps.addInputToOpacityInputField(60);
389
+ thinkSpherePage.whiteBoardImage()
391
390
  .should('have.css', 'opacity', '0.6');
392
391
  });
393
392
 
@@ -451,24 +450,16 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
451
450
  it('Accessibility of whiteboard image upload and properties', { tags: 'a11y' }, () => {
452
451
  cy.checkAccessibility(thinkSpherePage.whiteBoardImageProperties());
453
452
  });
454
-
453
+
455
454
  });
456
455
 
457
456
  describe('Verify css, accessibility and functionality of edit question action buttons', () => {
458
- abortEarlySetup();
459
- let randomItemName;
460
457
  before(() => {
461
- randomItemName = `~zzz thinksphere item name ${uuid()}`;
462
458
  cy.loginAs('admin');
463
- cy.createThinkSphereItem(randomItemName);
464
459
  cy.visit('/item-engine/thinksphere/browse-items');
465
460
  cy.interceptGraphql('getItems');
466
461
  });
467
462
 
468
- after(() => {
469
- cy.deleteThinkSphereItem(randomItemName);
470
- });
471
-
472
463
  it('The pencil icon should be visible, and the drag icon and more icon should not be visible in the thinkSphere Question header', () => {
473
464
  thinkSpherePage.steps.clickOnEditThinkSphereItem();
474
465
  thinkSpherePage.steps.clearQuestionInstructionsInputField();
@@ -478,7 +469,7 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
478
469
  utilities.verifyElementVisibilityState(thinkSpherePage.ThinkSphereQuestionHeaderPencilIcon(), 'exist');
479
470
  });
480
471
 
481
- it('When the user has saved think sphere question, \'Add \'Check your math\' question\' button should be visible', () => {
472
+ it('When the user has saved think sphere question, \'Add \'Check your math\' question\' button should be visible',() => {
482
473
  utilities.verifyInnerText(thinkSpherePage.addCheckMathQuestionButton(), 'Add \'Check your math\' question');
483
474
  });
484
475
 
@@ -493,13 +484,13 @@ describe('Create item : ThinkSphere - Edit tab basics', () => {
493
484
  });
494
485
  });
495
486
 
496
- it('When the user clicks on \'Add \'Check your math\' question button\' and click on cancel button, the user should be redirected back to the item preview page where the \'Add \'Check your math\' question\' button is available', () => {
487
+ it('When the user clicks on \'Add \'Check your math\' question button\' and click on cancel button, the user should be redirected back to the item preview page where the \'Add \'Check your math\' question\' button is available',() => {
497
488
  thinkSpherePage.steps.clickOnAddCheckMathQuestionButton();
498
489
  thinkSpherePage.steps.clickOnCancelButton();
499
490
  utilities.verifyInnerText(thinkSpherePage.addCheckMathQuestionButton(), 'Add \'Check your math\' question');
500
491
  });
501
492
 
502
- it('When the user selects an item from the review item bank and saves it, the item should be displayed in the thinkSphere item page', () => {
493
+ it('When the user selects an item from the review item bank and saves it, the item should be displayed in the thinkSphere item page',() => {
503
494
  thinkSpherePage.steps.clickOnAddCheckMathQuestionButton();
504
495
  thinkSpherePage.steps.clickOnFirstAvailableItemLink();
505
496
  thinkSpherePage.steps.clickOnSaveButton();
@@ -3,9 +3,6 @@ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
3
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../support/helpers/utilities";
5
5
  const css = Cypress.env('css');
6
- import uuid from 'react-uuid';
7
- let randomItemName;
8
- randomItemName = `~zzz thinksphere item name ${uuid()}`;
9
6
 
10
7
  const editedStrategies = [
11
8
  'Edited strategy 1',
@@ -65,24 +62,19 @@ const editedFontSize = 'Normal';
65
62
  describe('Edit Question and edit item', () => {
66
63
  before(() => {
67
64
  cy.loginAs('admin');
68
- cy.createThinkSphereItem(randomItemName);
65
+ cy.deleteThinkSphereItem('~zzz item name test test test');
66
+ cy.createThinkSphereItem('~zzz item name test test test', true);
69
67
  thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
70
68
  });
71
69
 
72
70
  after(() => {
73
- cy.deleteThinkSphereItem(randomItemName);
71
+ cy.deleteThinkSphereItem('~zzz item name test test test');
74
72
  });
75
73
 
76
74
  describe('Edit question', () => {
77
75
  abortEarlySetup();
78
- before(() => {
79
- thinkSpherePage.steps.searchInSearchBar(randomItemName);
80
- thinkSpherePage.steps.clickOnItemReferenceId();
81
- });
82
-
83
76
  it('When user edits the question instructions, then the changes should be saved successfully and edited question instruction should get displayed in preview side', () => {
84
- thinkSpherePage.steps.editItem();
85
- thinkSpherePage.steps.switchToEditTab();
77
+ thinkSpherePage.steps.clickOnEditThinkSphereItem();
86
78
  thinkSpherePage.steps.clearQuestionInstructionsInputField();
87
79
  thinkSpherePage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
88
80
  thinkSpherePage.steps.saveAQuestionAndVerifySnackbar();
@@ -99,7 +91,7 @@ describe('Edit Question and edit item', () => {
99
91
  thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
100
92
  });
101
93
 
102
- thinkSpherePage.tests.verifyStrategiesAndSentenceStartersSection({ editedStrategies, editedSentenceStarters, selectStrategies, selectSentenceStarters });
94
+ thinkSpherePage.tests.verifyStrategiesAndSentenceStartersSection({editedStrategies, editedSentenceStarters, selectStrategies, selectSentenceStarters});
103
95
 
104
96
  it('When user updates the solve phase toolbar options and controls, then it should get updated successfully', () => {
105
97
  thinkSpherePage.steps.switchToEditTab();
@@ -158,8 +150,6 @@ describe('Edit Question and edit item', () => {
158
150
  describe('Edit review question', () => {
159
151
  abortEarlySetup();
160
152
  before(() => {
161
- thinkSpherePage.steps.editItem();
162
- thinkSpherePage.steps.switchToPreviewTab();
163
153
  browseItemsPage.steps.clickOnAddReviewItem();
164
154
  thinkSpherePage.steps.createReviewQuestion();
165
155
  thinkSpherePage.steps.switchToPreviewTab();
@@ -218,7 +208,7 @@ describe('Edit Question and edit item', () => {
218
208
  'font-size': css.fontSize.normal,
219
209
  'font-weight': css.fontWeight.semibold,
220
210
  'border': `1px solid ${css.color.secondaryBtnBorder}`,
221
- 'color': css.color.primaryBtnBorder,
211
+ 'color': css.color.primaryBtnBorder,
222
212
  });
223
213
  });
224
214
 
@@ -239,7 +229,7 @@ describe('Edit Question and edit item', () => {
239
229
  'font-weight': css.fontWeight.semibold,
240
230
  });
241
231
  });
242
-
232
+
243
233
  it('\'The problem is asking me to\' section header should be present', () => {
244
234
  utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingToMeTextWrapper(), 'visible');
245
235
  utilities.verifyInnerText(thinkSpherePage.problemAskingToMeTextWrapper(), 'The problem is asking me to...');
@@ -266,7 +256,7 @@ describe('Edit Question and edit item', () => {
266
256
  thinkSpherePage.steps.verifyProblemAskingTextAreaFunctionality('This is a test text for the problem.');
267
257
  thinkSpherePage.steps.clickOnReviewTab();
268
258
  utilities.verifyElementVisibilityState(thinkSpherePage.problemStatementWrapper(), 'visible');
269
- utilities.verifyInnerText(thinkSpherePage.problemStatementWrapper(), 'This is a test text for the problem.');
259
+ utilities.verifyInputFieldValue(thinkSpherePage.problemStatementWrapper(), 'This is a test text for the problem.');
270
260
  });
271
261
 
272
262
  it('CSS of \'The problem is asking me to\' section statement', { tags: 'css' }, () => {
@@ -153,7 +153,7 @@ describe('Create question page - Think Sphere: Create custom category', () => {
153
153
  it('\'Cancel\' button should be displayed. When user clicks on the \'Cancel\' button the flyout should close', () => {
154
154
  utilities.verifyInnerText(thinkSpherePage.buttonCancel(), 'Cancel');
155
155
  utilities.verifyElementVisibilityState(thinkSpherePage.buttonCancel(), 'visible');
156
- thinkSpherePage.steps.cancelCustomCategory();
156
+ thinkSpherePage.steps.clickOnCancelButton();
157
157
  utilities.verifyElementVisibilityState(createCustomCategoryFlyout.dialogBox(), 'notExist');
158
158
  });
159
159
 
@@ -190,13 +190,13 @@ describe('Create question page - Think Sphere: Create custom category', () => {
190
190
  'font-size': css.fontSize.default,
191
191
  'font-weight': css.fontWeight.bold
192
192
  });
193
- utilities.verifyCSS(createCustomCategoryFlyout.buttonSave(), {
193
+ utilities.verifyCSS(createCustomCategoryFlyout.buttonCancel(), {
194
194
  'color': css.color.secondaryBtn,
195
195
  'font-size': css.fontSize.default,
196
196
  'font-weight': css.fontWeight.semibold,
197
197
  'background-color': css.color.transparent
198
198
  });
199
- utilities.verifyCSS(createCustomCategoryFlyout.buttonCancel(), {
199
+ utilities.verifyCSS(createCustomCategoryFlyout.buttonSave(), {
200
200
  'color': css.color.successBtn,
201
201
  'font-size': css.fontSize.default,
202
202
  'font-weight': css.fontWeight.semibold,
@@ -294,7 +294,7 @@ describe('Create question page - Think Sphere: Create custom category', () => {
294
294
  it('If all symbols are deselected from a category then the checkbox for that category should get unchecked', () => {
295
295
  const otherSymbolsArray = Object.values(Object.values(equationEditorCategoriesAndSymbols['otherSymbols'].symbols).map((icon) => icon.ariaLabel));
296
296
  cy.log('Pre step: Reopen the create custom category and select one category')
297
- thinkSpherePage.steps.cancelCustomCategory();
297
+ thinkSpherePage.steps.clickOnCancelButton();
298
298
  createCustomCategoryFlyout.steps.openCreateCustomCategoryFlyout();
299
299
  createCustomCategoryFlyout.steps.checkCategoryAccordionCheckbox('Other Symbols');
300
300
  createCustomCategoryFlyout.steps.expandCategoryAccordion('Other Symbols');
@@ -45,8 +45,8 @@ describe('Create question page - Essay Response: Edit category', () => {
45
45
  if (key === 'numPad') {
46
46
  it(`All the ${equationEditorCategoriesAndSymbols['numPad'].displayName} characters should be displayed and should be in selected state except the last three ones also each one should have necessary tooltips`, () => {
47
47
  const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['numPad'].symbols);
48
- const selectedSymbolsArray = symbolsArray.slice(0, 10);
49
- const unselectedSymbolsArray = symbolsArray.slice(10, 13);
48
+ const selectedSymbolsArray = symbolsArray.slice(10);
49
+ const unselectedSymbolsArray = symbolsArray.slice(-3);
50
50
  editCategoryFlyout.steps.openEditCategoryFlyout(key);
51
51
  thinkSpherePage.steps.verifyCategoryCharactersAndSelectedState(selectedSymbolsArray);
52
52
  thinkSpherePage.steps.verifyCategoryCharactersAndUnSelectedState(unselectedSymbolsArray);
@@ -63,15 +63,6 @@ describe('Create question page - Essay Response: Edit category', () => {
63
63
  }
64
64
  })
65
65
 
66
- it(`All the ${equationEditorCategoriesAndSymbols['numPad'].displayName} characters should be displayed and should be in selected state except the last three ones`, () => {
67
- const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['numPad'].symbols);
68
- const selectedSymbolsArray = symbolsArray.slice(0, -3);
69
- const unselectedSymbolsArray = symbolsArray.slice(-3);
70
- editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedState(selectedSymbolsArray);
71
- editCategoryFlyout.steps.verifyCategoryCharactersDragIcon();
72
- thinkSpherePage.steps.verifyCategoryCharactersAndUnSelectedState(unselectedSymbolsArray);
73
- });
74
-
75
66
  it('Reset button should be displayed in the flyout', () => {
76
67
  utilities.verifyElementVisibilityState(editCategoryFlyout.buttonReset(), 'exist');
77
68
  utilities.verifyInnerText(editCategoryFlyout.buttonReset(), 'Reset');
@@ -169,7 +160,7 @@ describe('Create question page - Essay Response: Edit category', () => {
169
160
  });
170
161
 
171
162
  it('CSS of de-selected character', { tags: 'css' }, () => {
172
- utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0), {
163
+ utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0).find('text'), {
173
164
  'color': css.color.liText,
174
165
  'font-size': css.fontSize.normal,
175
166
  'font-weight': css.fontWeight.bold,
@@ -286,6 +277,6 @@ describe('Create question page - Essay Response: Edit category', () => {
286
277
  editCategoryFlyout.steps.openEditCategoryFlyout()
287
278
  editCategoryFlyout.steps.verifyAllCategoryCharactersSelected();
288
279
  });
289
-
280
+
290
281
  });
291
282
  });
@@ -143,6 +143,10 @@ describe('Grading view : ThinkSphere Question - Plan Section', () => {
143
143
  thinkSpherePage.steps.verifyAddStrategiesButtonDisabled()
144
144
  });
145
145
 
146
+ it('Verify newly added strategy edit and delete button should be in a disabled state', () => {
147
+ thinkSpherePage.steps.verifyNewlyAddedStrategyEditDeleteButtonDisableState();
148
+ });
149
+
146
150
  it('Strategies list buttons should be in disabled state', () => {
147
151
  thinkSpherePage.steps.verifyStrategiesListButtonDisabled()
148
152
  });
@@ -9,27 +9,26 @@ describe('Grading view : ThinkSphere Question - Review Section', () => {
9
9
  const uuidString = uuid();
10
10
  before(() => {
11
11
  cy.loginAs('admin');
12
+ cy.createThinkSphereItem(uuidString, true);
13
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
14
+ browseItemsPage.steps.clickOnItemReferenceId(uuidString);
15
+ browseItemsPage.steps.clickOnAddReviewItem();
16
+ thinkSpherePage.steps.createReviewQuestion();
17
+ thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
18
+ browseItemsPage.steps.clickOnActionButton();
19
+ browseItemsPage.steps.clickOnActionMenuItem(0);
20
+ thinkSpherePage.steps.submitResponseAndGotoGradingView();
21
+ thinkSpherePage.steps.clickOnReviewTab();
22
+
12
23
  });
13
24
 
14
- describe('\'Question instruction\' section', () => {
15
- abortEarlySetup();
16
- before(() => {
17
- cy.createThinkSphereItem(uuidString, true);
18
- thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
19
- browseItemsPage.steps.clickOnItemReferenceId(uuidString);
20
- browseItemsPage.steps.clickOnAddReviewItem();
21
- thinkSpherePage.steps.createReviewQuestion();
22
- thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
23
- browseItemsPage.steps.clickOnActionButton();
24
- browseItemsPage.steps.clickOnActionMenuItem(0);
25
- thinkSpherePage.steps.submitResponseAndGotoGradingView();
26
- thinkSpherePage.steps.clickOnReviewTab();
27
- });
25
+ after(() => {
26
+ cy.deleteThinkSphereItem(uuidString);
27
+ });
28
28
 
29
- after(() => {
30
- cy.deleteThinkSphereItem(uuidString);
31
- });
32
29
 
30
+ describe('\'Question instruction\' section', () => {
31
+ abortEarlySetup();
33
32
  it('\'Question instruction\' section should be present', () => {
34
33
  thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
35
34
  });
@@ -82,7 +81,7 @@ describe('Grading view : ThinkSphere Question - Review Section', () => {
82
81
  'font-size': css.fontSize.normal,
83
82
  'font-weight': css.fontWeight.semibold,
84
83
  'border': `1px solid ${css.color.secondaryBtnBorder}`,
85
- 'color': css.color.primaryBtnBorder,
84
+ 'color': css.color.primaryBtnBorder,
86
85
  });
87
86
  });
88
87
 
@@ -92,58 +91,8 @@ describe('Grading view : ThinkSphere Question - Review Section', () => {
92
91
  });
93
92
  });
94
93
 
95
- describe('Verify the Your plan Button', () => {
96
- let randomItemName;
97
- abortEarlySetup();
98
- before(() => {
99
- randomItemName = `~zzz thinksphere item name ${uuid()}`;
100
- cy.createThinkSphereItem(randomItemName);
101
- thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
102
- browseItemsPage.steps.clickOnItemReferenceId(randomItemName);
103
- browseItemsPage.steps.clickOnAddReviewItem();
104
- thinkSpherePage.steps.createReviewQuestion();
105
- thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
106
- browseItemsPage.steps.clickOnActionButton();
107
- browseItemsPage.steps.clickOnActionMenuItem(0);
108
- thinkSpherePage.steps.submitResponseAndGotoGradingView();
109
- thinkSpherePage.steps.clickOnReviewTab();
110
- });
111
-
112
- after(() => {
113
- cy.deleteThinkSphereItem(randomItemName);
114
- });
115
-
116
- it('Your Plan button should be visible and display the correct disabled styles', () => {
117
- utilities.verifyElementVisibilityState(thinkSpherePage.yourPlanButton(), 'visible');
118
- utilities.verifyCSS(thinkSpherePage.yourPlanButton(), {
119
- 'background-color': css.color.boxShadow,
120
- 'color': css.color.primaryBtnDisabled,
121
- });
122
- });
123
-
124
- it('Your Plan button should have disabled attribute', () => {
125
- thinkSpherePage.steps.verifyYourPlanButtonInDisableState();
126
- });
127
- });
128
-
129
94
  describe('\'Check your math\' section', () => {
130
- let randomItemName;
131
95
  abortEarlySetup();
132
- before(() => {
133
- randomItemName = `~zzz thinksphere item name ${uuid()}`;
134
- cy.createThinkSphereItem(randomItemName);
135
- thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
136
- browseItemsPage.steps.clickOnItemReferenceId(randomItemName);
137
- thinkSpherePage.steps.clickOnAddCheckMathQuestionButton();
138
- thinkSpherePage.steps.createReviewQuestion();
139
- thinkSpherePage.steps.switchToPreviewTab();
140
- thinkSpherePage.steps.clickOnReviewTab();
141
- });
142
-
143
- after(() => {
144
- cy.deleteThinkSphereItem(randomItemName);
145
- });
146
-
147
96
  it('\'Check your math\' section header should be present', () => {
148
97
  utilities.verifyElementVisibilityState(thinkSpherePage.checkYourMathHeading(), 'visible');
149
98
  utilities.verifyInnerText(thinkSpherePage.checkYourMathHeading(), 'Check your math');
@@ -156,7 +105,7 @@ describe('Grading view : ThinkSphere Question - Review Section', () => {
156
105
  'font-weight': css.fontWeight.semibold,
157
106
  });
158
107
  });
159
-
108
+
160
109
  it('\'The problem is asking me to\' section should be present', () => {
161
110
  utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingToMeTextWrapper(), 'visible');
162
111
  utilities.verifyInnerText(thinkSpherePage.problemAskingToMeTextWrapper(), 'The problem is asking me to...');
@@ -21,23 +21,23 @@ const sentenceStartersTextDefault = [
21
21
  const preAuthoredStrategyVideos = [
22
22
  {
23
23
  displayName: 'Create_a_model',
24
- duration: '00:24',
24
+ duration: '0:24',
25
25
  },
26
26
  {
27
27
  displayName: 'Look_for_a_pattern',
28
- duration: '00:18',
28
+ duration: '0:18',
29
29
  },
30
30
  {
31
31
  displayName: 'Guess_check_and_revise',
32
- duration: '00:17',
32
+ duration: '0:17',
33
33
  },
34
34
  {
35
35
  displayName: 'Try_with_friendlier_numbers',
36
- duration: '00:26',
36
+ duration: '0:26',
37
37
  },
38
38
  {
39
39
  displayName: 'Show_with_an_equation',
40
- duration: '00:22',
40
+ duration: '0:22',
41
41
  }
42
42
  ];
43
43
  describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
@@ -128,7 +128,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
128
128
  it('When the user clicks on \'Play\' button, then user should be able to playback the video. Timer should display the amount of video that has been played and the total video length in (mm:ss)/(mm:ss) format.', () => {
129
129
  thinkSpherePage.steps.startPlayback();
130
130
  thinkSpherePage.steps.waitForPlaybackToBegin();
131
- thinkSpherePage.steps.verifyVideoPlaybackTimer('0:03', '00:05');
131
+ thinkSpherePage.steps.verifyVideoPlaybackTimer('0:03', '0:05');
132
132
  });
133
133
 
134
134
  it('When the user hovers over the \'Pause\' button, a tooltip \'Pause\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
@@ -169,9 +169,9 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
169
169
  it('When the video player is in playback state and the user clicks on \'Pause\' button, then playback should get paused. Progress bar and timer should not update further and the \'Pause\' button should get replaced with \'Play\' button', () => {
170
170
  thinkSpherePage.steps.startPlayback();
171
171
  thinkSpherePage.steps.waitForPlaybackToBegin();
172
- thinkSpherePage.steps.verifyVideoPlaybackTimer('0:03', '00:05');
172
+ thinkSpherePage.steps.verifyVideoPlaybackTimer('0:03', '0:05');
173
173
  thinkSpherePage.steps.pausePlayback();
174
- thinkSpherePage.steps.verifyVideoPlaybackTimer('0:03', '00:05');
174
+ thinkSpherePage.steps.verifyVideoPlaybackTimer('0:03', '0:05');
175
175
  utilities.verifyElementVisibilityState(thinkSpherePage.playbackPlayButton(), 'visible');
176
176
  utilities.verifyElementVisibilityState(thinkSpherePage.playbackPauseButton(), 'notExist');
177
177
  });
@@ -217,7 +217,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
217
217
  });
218
218
 
219
219
  it('When the video playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
220
- thinkSpherePage.steps.verifyVideoPlaybackTimer('0:05', '00:05');
220
+ thinkSpherePage.steps.verifyVideoPlaybackTimer('0:05', '0:05');
221
221
  utilities.verifyElementVisibilityState(thinkSpherePage.playbackPlayButton(), 'visible');
222
222
  utilities.verifyElementVisibilityState(thinkSpherePage.playbackPauseButton(), 'notExist');
223
223
  thinkSpherePage.steps.verifyProgressBarSliderPosition(99);
@@ -602,6 +602,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
602
602
  });
603
603
  thinkSpherePage.steps.verifyTypeCheckBoxSentenceStarter();
604
604
  thinkSpherePage.steps.verifySentenceStrategyCheckBoxNotChecked();
605
+ thinkSpherePage.steps.verifyDisabledAddSentenceStarterButtonTooltip();
605
606
  });
606
607
 
607
608
  it('When 5 sentence starters are checked, further checkboxes should have tool tip \'Only 5 sentence starters can be selected\'', () => {