itemengine-cypress-automation 1.0.86 → 1.0.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +30 -30
  2. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
  3. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +568 -0
  4. package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +86 -0
  5. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +389 -0
  6. package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +112 -0
  7. package/cypress/e2e/ILC/EssayResponse/headerSection.js +68 -0
  8. package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +290 -0
  9. package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +79 -0
  10. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +379 -0
  11. package/cypress/e2e/ILC/EssayResponseBasic/essayResponseBasicCustomizeFormattingOptions.js +207 -0
  12. package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +115 -0
  13. package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +79 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsBasic.js +159 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +507 -29
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +6 -0
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +272 -0
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +300 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -3
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +204 -0
  21. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +4 -4
  22. package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +1 -1
  23. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +4 -4
  24. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -1
  25. package/cypress/e2e/ILC/SingleSelection/editTabScoringSection.js +1 -3
  26. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +205 -0
  27. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +259 -0
  28. package/cypress/e2e/ILC/TextEntryMath/evaluationMethods2.js +217 -0
  29. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +202 -0
  30. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +613 -0
  31. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +71 -0
  32. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +318 -318
  33. package/cypress/fixtures/theme/ilc.json +3 -0
  34. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -2
  35. package/cypress/pages/components/colorPopupComponent.js +26 -3
  36. package/cypress/pages/components/createCustomCategoryFlyout.js +351 -46
  37. package/cypress/pages/components/customizeSpecialCharacterComponent.js +165 -0
  38. package/cypress/pages/components/equationEditorFlyout.js +124 -0
  39. package/cypress/pages/components/essayResponseCommonComponents.js +3 -0
  40. package/cypress/pages/components/figOverImageCanvasComponent.js +316 -7
  41. package/cypress/pages/components/index.js +3 -1
  42. package/cypress/pages/components/opacityComponent.js +31 -4
  43. package/cypress/pages/components/specialAndCustomSpecialCharactersComponent.js +1 -0
  44. package/cypress/pages/components/specialCharactersFlyoutComponent.js +1 -0
  45. package/cypress/pages/drawingResponsePage.js +33 -138
  46. package/cypress/pages/essayResponsePage.js +612 -26
  47. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +48 -7
  48. package/cypress/pages/fillInTheGapsOverImageTextPage.js +267 -13
  49. package/package.json +1 -1
@@ -43,8 +43,8 @@ describe('Create item page - Drawing response: Customize special characters, Cus
43
43
  });
44
44
 
45
45
  it(`A total of ${specialCharactersCategories.length} options should be displayed - ${specialCharactersCategories.join('')}. By default all language options should be in selected state`, () => {
46
- drawingResponsePage.steps.verifyCustomizeSpecialOrMathCharactersCategoryTiles(specialCharactersCategories);
47
- drawingResponsePage.steps.verifySelectedCustomizeSpecialOrMathCharactersCategoryTiles(specialCharactersCategories);
46
+ drawingResponsePage.steps.verifyCustomizeSpecialCharactersCategoryTiles(specialCharactersCategories);
47
+ drawingResponsePage.steps.verifySelectedCustomizeSpecialCharactersCategoryTiles(specialCharactersCategories);
48
48
  });
49
49
 
50
50
  it('When the user clicks on the \'Preview\' hyperlink, a special characters popup should be displayed with all the special characters segregated according to all the language options. The user should be able to close the popup by clicking on the \'Close[X]\' button', () => {
@@ -58,8 +58,8 @@ describe('Create item page - Drawing response: Customize special characters, Cus
58
58
 
59
59
  it('When the user deselects any language option and opens the special characters popup by clicking on the \'Preview\' hyperlink, then the popup contents should get updated accordingly', () => {
60
60
  let newSelectedCategoryList = specialCharacters.slice(1);
61
- drawingResponsePage.steps.clickOnSpecialOrMathCharactersCategoryTile(specialCharacters[0].categoryName);
62
- drawingResponsePage.steps.verifySpecialOrMathCharacterCategoryTileIsNotSelected(specialCharacters[0].categoryName);
61
+ drawingResponsePage.steps.clickOnSpecialCharactersCategoryTile(specialCharacters[0].categoryName);
62
+ drawingResponsePage.steps.verifySpecialCharacterCategoryTileIsNotSelected(specialCharacters[0].categoryName);
63
63
  drawingResponsePage.steps.clickOnCustomizeSpecialCharactersPreviewButton();
64
64
  //drawingResponsePage.steps.verifySpecialCharactersPreviewPopupInEditTab(specialCharacters);
65
65
  //Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
@@ -149,7 +149,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
149
149
  'font-weight': css.fontWeight.semibold
150
150
  });
151
151
  //Category tiles in selected state
152
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileIcon().eq(1).find('svg'), {
152
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileIcon().eq(1).find('svg'), {
153
153
  'fill': css.color.defaultBackground
154
154
  });
155
155
  utilities.verifyCSS(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon().last().find('path[data-name*="Rectangle"]'), {
@@ -158,36 +158,36 @@ describe('Create item page - Drawing response: Customize special characters, Cus
158
158
  utilities.verifyCSS(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon().last().find('path[data-name*="feather-check"]'), {
159
159
  'fill': css.color.activeButtons
160
160
  });
161
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(1).find('path'), {
161
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileSectionCategoriesDragIcon().eq(1).find('path'), {
162
162
  'fill': css.color.activeButtons
163
163
  });
164
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(1).parent(), {
164
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileSectionCategoriesDragIcon().eq(1).parent(), {
165
165
  'background-color': css.color.defaultBackground
166
166
  });
167
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileCategoryName().eq(1), {
167
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileCategoryName().eq(1), {
168
168
  'color': css.color.whiteText,
169
169
  'font-size': css.fontSize.small,
170
170
  'font-weight': css.fontWeight.regular
171
171
  });
172
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTiles().eq(1), {
172
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTiles().eq(1), {
173
173
  'background-color': css.color.primaryBtnBg
174
174
  });
175
175
  //Category tiles in de-selected state
176
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileIcon().eq(0).find('svg'), {
176
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileIcon().eq(0).find('svg'), {
177
177
  'fill': css.color.secondaryBtn
178
178
  });
179
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
179
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
180
180
  'fill': css.color.secondaryBtn
181
181
  });
182
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
182
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
183
183
  'fill': css.color.defaultBackground
184
184
  });
185
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileCategoryName().eq(0), {
185
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTileCategoryName().eq(0), {
186
186
  'color': css.color.secondaryBtn,
187
187
  'font-size': css.fontSize.small,
188
188
  'font-weight': css.fontWeight.regular
189
189
  });
190
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTiles().eq(0), {
190
+ utilities.verifyCSS(drawingResponsePage.specialCharacterTiles().eq(0), {
191
191
  'background-color': css.color.defaultBackground
192
192
  });
193
193
  cy.log('Opening preview popup and expanding one category accordion');
@@ -206,7 +206,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
206
206
  utilities.verifyCSS(drawingResponsePage.specialCharactersPreviewPopupCategoryAccordionExpandIcon().last().find('svg'), {
207
207
  'fill': css.color.activeButtons
208
208
  });
209
- utilities.verifyCSS(drawingResponsePage.charactersPreviewPopupSymbol().eq(0).find('svg'), {
209
+ utilities.verifyCSS(drawingResponsePage.specialCharactersPreviewPopupSymbol().eq(0).find('svg'), {
210
210
  'fill': css.color.defaultBackground
211
211
  });
212
212
  });
@@ -241,8 +241,8 @@ describe('Create item page - Drawing response: Customize special characters, Cus
241
241
  });
242
242
 
243
243
  it(`A total of ${mathCharacterCategories.length} options should be displayed - ${mathCharacterCategories.join('')}. By default all language options should be in selected state`, () => {
244
- drawingResponsePage.steps.verifyCustomizeSpecialOrMathCharactersCategoryTiles(mathCharacterCategories);
245
- drawingResponsePage.steps.verifySelectedCustomizeSpecialOrMathCharactersCategoryTiles(mathCharacterCategories);
244
+ drawingResponsePage.steps.verifyCustomizeMathCharactersCategoryTiles(mathCharacterCategories);
245
+ drawingResponsePage.steps.verifySelectedCustomizeMathCharactersCategoryTiles(mathCharacterCategories);
246
246
  });
247
247
 
248
248
  it('When the user clicks on the \'Preview\' hyperlink, a math characters popup should be displayed with all the math characters segregated according to all the language options. The user should be able to close the popup by clicking on the \'Close[X]\' button', () => {
@@ -255,8 +255,8 @@ describe('Create item page - Drawing response: Customize special characters, Cus
255
255
 
256
256
  it('When the user deselects any language option and opens the math characters popup by clicking on the \'Preview\' hyperlink, then the popup contents should get updated accordingly', () => {
257
257
  let newSelectedCategoryList = mathCharacters.slice(1);
258
- drawingResponsePage.steps.clickOnSpecialOrMathCharactersCategoryTile(mathCharacters[0].categoryName);
259
- drawingResponsePage.steps.verifySpecialOrMathCharacterCategoryTileIsNotSelected(mathCharacters[0].categoryName);
258
+ drawingResponsePage.steps.clickOnMathCharactersCategoryTile(mathCharacters[0].categoryName);
259
+ drawingResponsePage.steps.verifyMathCharacterCategoryTileIsNotSelected(mathCharacters[0].categoryName);
260
260
  drawingResponsePage.steps.clickOnCustomizeMathCharactersPreviewButton();
261
261
  //Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
262
262
  // drawingResponsePage.steps.verifyMathCharactersPreviewPopupInEditTab(newSelectedCategoryList);
@@ -290,7 +290,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
290
290
  'font-weight': css.fontWeight.semibold
291
291
  });
292
292
  //Category tiles in selected state
293
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileIcon().eq(1).find('svg'), {
293
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileIcon().eq(1).find('svg'), {
294
294
  'fill': css.color.defaultBackground
295
295
  });
296
296
  utilities.verifyCSS(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon().last().find('path[data-name*="Rectangle"]'), {
@@ -299,36 +299,36 @@ describe('Create item page - Drawing response: Customize special characters, Cus
299
299
  utilities.verifyCSS(drawingResponsePage.customizeToolbarOptionsAndControlsSectionTickIcon().last().find('path[data-name*="feather-check"]'), {
300
300
  'fill': css.color.activeButtons
301
301
  });
302
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(1).find('path'), {
302
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileSectionCategoriesDragIcon().eq(1).find('path'), {
303
303
  'fill': css.color.activeButtons
304
304
  });
305
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(1).parent(), {
305
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileSectionCategoriesDragIcon().eq(1).parent(), {
306
306
  'background-color': css.color.defaultBackground
307
307
  });
308
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileCategoryName().eq(1), {
308
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileCategoryName().eq(1), {
309
309
  'color': css.color.whiteText,
310
310
  'font-size': css.fontSize.small,
311
311
  'font-weight': css.fontWeight.regular
312
312
  });
313
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTiles().eq(1), {
313
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTiles().eq(1), {
314
314
  'background-color': css.color.primaryBtnBg
315
315
  });
316
316
  //Category tiles in de-selected state
317
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileIcon().eq(0).find('svg'), {
317
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileIcon().eq(0).find('svg'), {
318
318
  'fill': css.color.secondaryBtn
319
319
  });
320
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
320
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
321
321
  'fill': css.color.secondaryBtn
322
322
  });
323
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
323
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileSectionCategoriesDragIcon().eq(0).parent(), {
324
324
  'fill': css.color.defaultBackground
325
325
  });
326
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTileCategoryName().eq(0), {
326
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTileCategoryName().eq(0), {
327
327
  'color': css.color.secondaryBtn,
328
328
  'font-size': css.fontSize.small,
329
329
  'font-weight': css.fontWeight.regular
330
330
  });
331
- utilities.verifyCSS(drawingResponsePage.specialAndMathCharacterTiles().eq(0), {
331
+ utilities.verifyCSS(drawingResponsePage.mathCharacterTiles().eq(0), {
332
332
  'background-color': css.color.defaultBackground
333
333
  });
334
334
  cy.log('Opening preview popup');
@@ -343,7 +343,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
343
343
  'font-size': css.fontSize.normal,
344
344
  'font-weight': css.fontWeight.semibold
345
345
  });
346
- utilities.verifyCSS(drawingResponsePage.charactersPreviewPopupSymbol().eq(0).find('svg'), {
346
+ utilities.verifyCSS(drawingResponsePage.mathCharactersPreviewPopupSymbol().eq(0).find('svg'), {
347
347
  'fill': css.color.defaultBackground
348
348
  });
349
349
  });
@@ -6,7 +6,7 @@ let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
6
6
  const views = utilities.getViews(gradingAndCorrectAnsView);
7
7
  var itemReferenceID = "";
8
8
 
9
- const defaultToolbarAndControlOptions = ['Select', 'Pencil', 'Line', 'Curved line', 'Take a photo', 'Upload an image', 'Text', 'Point eraser', 'Bring forward', 'Bring backward', 'Duplicate', 'Undo', 'Redo', 'Full screen', 'Clear all'];
9
+ const defaultToolbarAndControlOptions = ['Select', 'Scribble', 'Line', 'Curved line', 'Capture image', 'Insert image', 'Text', 'Point eraser', 'Bring to front', 'Sent to back', 'Duplicate', 'Undo', 'Redo', 'Full screen', 'Clear all'];
10
10
 
11
11
  describe('Create item page - Drawing response: Grading view, Correct answer view contents', () => {
12
12
  before(() => {