itemengine-cypress-automation 1.0.166-migrationScripts-b8c79a0.0 → 1.0.166

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +83 -0
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +200 -0
  3. package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +56 -0
  4. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +95 -0
  5. package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +71 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +72 -0
  7. package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +71 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +22 -11
  10. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
  11. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
  12. package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +161 -0
  13. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +308 -0
  14. package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +216 -0
  15. package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +336 -0
  16. package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +570 -0
  17. package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +214 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +356 -0
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +18 -7
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +11 -6
  22. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +355 -0
  23. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +0 -1
  24. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +2 -36
  25. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +22 -34
  26. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +8 -24
  27. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +5 -25
  28. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +68 -114
  29. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +67 -111
  30. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +71 -123
  31. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +41 -63
  32. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +21 -25
  33. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +50 -85
  34. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +68 -115
  35. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +54 -98
  36. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +72 -120
  37. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
  38. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +309 -0
  39. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
  40. package/cypress/e2e/ILC/Matching/toolSettings.js +72 -0
  41. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +1033 -0
  42. package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +28 -0
  43. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +236 -0
  44. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +239 -0
  45. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +278 -0
  46. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +178 -0
  47. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +407 -0
  48. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +273 -0
  49. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +278 -0
  50. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +228 -0
  51. package/cypress/e2e/ILC/NumberLine/additionalSettings.js +120 -0
  52. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +659 -0
  53. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +149 -0
  54. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +151 -0
  55. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +171 -0
  56. package/cypress/e2e/ILC/NumberLine/headerSection.js +76 -0
  57. package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +54 -0
  58. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +200 -0
  59. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +67 -0
  60. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +135 -0
  61. package/cypress/e2e/ILC/NumberLine/toolSettings.js +73 -0
  62. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +372 -0
  63. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1014 -0
  64. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +235 -0
  65. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +235 -0
  66. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +235 -0
  67. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +457 -0
  68. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +342 -0
  69. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +342 -0
  70. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +342 -0
  71. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +155 -0
  72. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +314 -0
  73. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +275 -0
  74. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +314 -0
  75. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +290 -0
  76. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +142 -0
  77. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +137 -0
  78. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
  79. package/cypress/fixtures/theme/ilc.json +14 -26
  80. package/cypress/pages/brainingCampManipulativePage.js +122 -0
  81. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
  82. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
  83. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  84. package/cypress/pages/components/colorPopupComponent.js +2 -2
  85. package/cypress/pages/components/defaultToolDropdown.js +77 -0
  86. package/cypress/pages/components/gridQuestionCommonComponent.js +629 -2
  87. package/cypress/pages/components/index.js +3 -0
  88. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  89. package/cypress/pages/components/measuringToolComponent.js +2 -2
  90. package/cypress/pages/components/resetPopupComponent.js +74 -0
  91. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  92. package/cypress/pages/components/setPointsPopupBase.js +6 -4
  93. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +60 -3
  94. package/cypress/pages/components/toolSettingsComponent.js +80 -12
  95. package/cypress/pages/components/toolsAndControlsComponent.js +69 -0
  96. package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -8
  97. package/cypress/pages/feedbackScalePage copy.js +716 -0
  98. package/cypress/pages/feedbackScalePage.js +591 -449
  99. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
  100. package/cypress/pages/graphingPage.js +9 -145
  101. package/cypress/pages/gridFillPage.js +135 -120
  102. package/cypress/pages/highlightPage.js +0 -394
  103. package/cypress/pages/index.js +5 -2
  104. package/cypress/pages/matchingPage.js +78 -20
  105. package/cypress/pages/multipleSelectionGridPage.js +88 -1
  106. package/cypress/pages/numberLinePage.js +723 -0
  107. package/cypress/pages/singleSelectionGridPage.js +86 -0
  108. package/cypress/pages/textSelectionPage.js +582 -0
  109. package/cypress/support/migrationHelpers/extractLrnQuestionData.js +3 -12
  110. package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +0 -1
  111. package/cypress/support/migrationHelpers/migrationScript.js +0 -10
  112. package/cypress/support/migrationHelpers/verifyIeQuestionData.js +0 -8
  113. package/package.json +2 -2
@@ -24,7 +24,6 @@ const selectors = {
24
24
  ...autoScoredAdditionalSettings,
25
25
 
26
26
  questionLabel: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] .title-casing'),
27
- questionInputField: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] [title="Question"]'),
28
27
  optionSpan: () => cy.get('span'),
29
28
  option: () => cy.get('.highlighted'),
30
29
  //text selection dropdown
@@ -35,10 +34,8 @@ const selectors = {
35
34
  //highlight options section
36
35
  highlightOptionsLabel: () => cy.get('.highlightOptions-label-wrapper'),
37
36
  highlightOptionsHighlightCounter: () => cy.get('[class*="Highlightstyles__CountWrapper"]'),
38
- highlightOptionsTextFieldWrapper: () => cy.get('[class*="Highlightstyles__HighLightWrapper"]'),
39
37
  highlightOptionsSectionTextWrapper: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'),
40
38
  highlightOptionsParagraphs: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] p'),
41
- highlightOptionsSpans: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] span'),
42
39
  colorLibraryButton: () => cy.get('.color-library-wrapper button').eq(0),
43
40
  colorLibraryColorOptionButton: () => cy.get('.color-library-content'),
44
41
  colorLibrarySelectedColorIcon: () => cy.get('[class*="ColorLibrarystyle__BtnSelectionWrapper"]'),
@@ -85,40 +82,6 @@ const steps = {
85
82
  ...autoScoredScoringSection.steps,
86
83
  ...commonComponents.steps,
87
84
 
88
- addInputToQuestionInputField: (text) => {
89
- highlightPage.questionInputField()
90
- .type(text);
91
- },
92
-
93
- clearQuestionInputField: () => {
94
- highlightPage.questionInputField()
95
- .clear();
96
- },
97
-
98
- focusInQuestionInputField: () => {
99
- highlightPage.questionInputField()
100
- .focus();
101
- },
102
-
103
- focusOutOfQuestionInputField: () => {
104
- highlightPage.questionInputField()
105
- .blur();
106
- },
107
-
108
- verifyErroredStateOfQuestionInputField: () => {
109
- utilities.verifyCSS(highlightPage.questionInputField(), {
110
- 'border-color': css.color.errorFieldBorder,
111
- 'background-color': css.color.errorFieldBg
112
- });
113
- },
114
-
115
- verifyErroredStateOfHighlightOptionsSection: () => {
116
- utilities.verifyCSS(highlightPage.highlightOptionsTextFieldWrapper(), {
117
- 'border-color': css.color.errorFieldBorder,
118
- 'background-color': css.color.errorFieldBg
119
- });
120
- },
121
-
122
85
  /**
123
86
  * @param {number} highlightCounterValue Value of highlight counter
124
87
  * @description Verify highlight counter text and value
@@ -259,133 +222,11 @@ const steps = {
259
222
  utilities.verifyInnerText(highlightPage.buttonAccept(), 'Confirm');
260
223
  },
261
224
 
262
- /**
263
- * @param {string} textSelectionType Type of text selection for which reset confirmation popup is displayed
264
- * @description Switch text selection type in text selection dropdown
265
- */
266
- switchTextSelectionTypeInTextSelectionDropdown: (textSelectionType) => {
267
- highlightPage.steps.expandTextSelectionDropdown();
268
- highlightPage.steps.selectDropdownOptionInTextSelectionDropdown(textSelectionType);
269
- utilities.verifyInnerText(highlightPage.dialogBoxContent(), `Applying ${textSelectionType} text selection will reset any existing highlight options, including valid responses and alternate response values.`);
270
- highlightPage.steps.clickOnAcceptButtonInDialogBox();
271
- utilities.verifyInnerText(highlightPage.textSelectionDropdown(), textSelectionType);
272
- },
273
-
274
225
  clearSelectedOptionsInHighlightOptionsSection: () => {
275
226
  highlightPage.steps.clickOnClearHighlightButtonInHighlightOptionsSection();
276
227
  highlightPage.steps.clickOnAcceptButtonInDialogBox();
277
228
  },
278
229
 
279
- /**
280
- * @param {string} optionText Text of the option in highlight options section
281
- * @description Verify that option is in selected state in highlight options section
282
- */
283
- verifyOptionIsSelectedInHighlightOptionsSection: (optionText) => {
284
- highlightPage.highlightOptionsSpans()
285
- .contains(optionText)
286
- .should('have.class', 'highlighted')
287
- .and('have.attr', 'aria-checked', 'true');
288
- },
289
-
290
- /**
291
- * @param {string} optionText Text of the option in set correct answer section
292
- * @description Verify that option is not in selected state in set correct answer section
293
- */
294
- verifyOptionIsNotSelectedInSetCorrectAnswerSection: (optionText) => {
295
- highlightPage.setCorrectAnswerOption()
296
- .contains(optionText)
297
- .should('not.have.class', 'correct_answer')
298
- .and('have.attr', 'aria-checked', 'false');
299
- },
300
-
301
- /**
302
- * @param {string} optionText Text of the option in set correct answer section
303
- * @description Verify that option is in selected state in set correct answer section
304
- */
305
- verifyOptionIsSelectedInSetCorrectAnswerSection: (optionText) => {
306
- highlightPage.setCorrectAnswerOption()
307
- .contains(optionText)
308
- .should('have.class', 'correct_answer')
309
- .and('have.attr', 'aria-checked', 'true');
310
- },
311
-
312
- /**
313
- * @param {string} optionText Text of the option in highlight options section
314
- * @description Verify that option is not in selected state in highlight options section
315
- */
316
- verifyOptionIsNotSelectedInHighlightOptionsSection: (optionText) => {
317
- highlightPage.highlightOptionsSpans()
318
- .contains(optionText)
319
- .should('not.have.class', 'highlighted')
320
- .and('have.attr', 'aria-checked', 'false');
321
- },
322
-
323
- /**
324
- * @param {string} optionText Text of the option in preview tab
325
- * @description Verify that option is in selected state in preview tab
326
- */
327
- verifyOptionIsSelectedInPreviewTab: (optionText) => {
328
- highlightPage.previewTabOption()
329
- .contains(optionText)
330
- .should('have.class', 'correct_answer')
331
- .and('have.attr', 'aria-checked', 'true');
332
- },
333
-
334
- /**
335
- * @param {string} optionText Text of the option in preview tab
336
- * @description Verify that option is not in selected state in preview tab
337
- */
338
- verifyOptionIsNotSelectedInPreviewTab: (optionText) => {
339
- highlightPage.previewTabOption()
340
- .contains(optionText)
341
- .should('not.have.class', 'correct_answer')
342
- .and('have.attr', 'aria-checked', 'false');
343
- },
344
-
345
- verifyNoOptionIsSelectedInPreviewTab: () => {
346
- highlightPage.previewTabOption()
347
- .should('not.have.class', 'correct_answer')
348
- .and('have.attr', 'aria-checked', 'false');
349
- },
350
-
351
- /**
352
- * @param {string} optionText Text of the option in highlight options section
353
- * @description Verify that option does not exist in highlight options section
354
- */
355
- verifyOptionDoesNotExistInHighlightOptionsSection: (optionText) => {
356
- utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans().contains(optionText), 'notExist');
357
- },
358
-
359
- /**
360
- * @param {string} optionText Text of the option in highlight options section
361
- * @description Click on option in highlight options section
362
- */
363
- clickOnOptionInHighlightOptionsSection: (optionText) => {
364
- highlightPage.highlightOptionsSpans()
365
- .contains(optionText)
366
- .click();
367
- },
368
-
369
- /**
370
- * @param {string} optionText Text of the option in set correct answer section
371
- * @description Click on option in set correct answer section
372
- */
373
- clickOnOptionInSetCorrectAnswerSection: (optionText) => {
374
- highlightPage.setCorrectAnswerOption()
375
- .contains(optionText)
376
- .click();
377
- },
378
-
379
- /**
380
- * @param {string} optionText Text of the option in preview tab
381
- * @description Click on option in preview tab
382
- */
383
- clickOnOptionInPreviewTab: (optionText) => {
384
- highlightPage.previewTabOption()
385
- .contains(optionText)
386
- .click();
387
- },
388
-
389
230
  /**
390
231
  * @param {string} textSelectionType Type of text selection
391
232
  * @param {*} optionText Text of the option in highlight options section
@@ -417,179 +258,6 @@ const steps = {
417
258
  }
418
259
  },
419
260
 
420
- /**
421
- * @param {*} optionText Text of the option in set correct answer section
422
- * @description Select an option in set correct answer section
423
- */
424
- selectOptionInSetCorrectAnswerSection: (optionText) => {
425
- highlightPage.steps.clickOnOptionInSetCorrectAnswerSection(optionText);
426
- highlightPage.steps.verifyOptionIsSelectedInSetCorrectAnswerSection(optionText);
427
- },
428
-
429
- /**
430
- * @param {*} optionText Text of the option in set correct answer section
431
- * @description Deselect an option in set correct answer section
432
- */
433
- deselectOptionInSetCorrectAnswerSection: (optionText) => {
434
- highlightPage.steps.clickOnOptionInSetCorrectAnswerSection(optionText);
435
- highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(optionText);
436
- },
437
-
438
- /**
439
- * @param {*} optionText Text of the option in preview tab
440
- * @description Select an option in preview tab
441
- */
442
- selectOptionInPreviewTab: (optionText) => {
443
- highlightPage.steps.clickOnOptionInPreviewTab(optionText);
444
- highlightPage.steps.verifyOptionIsSelectedInPreviewTab(optionText);
445
- },
446
-
447
- /**
448
- * @param {*} optionText Text of the option in preview tab
449
- * @description Deselect an option in preview tab
450
- */
451
- deselectOptionInPreviewTab: (optionText) => {
452
- highlightPage.steps.clickOnOptionInPreviewTab(optionText);
453
- highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(optionText);
454
- },
455
-
456
- /**
457
- * @param {string[]} optionArray Array of text of options in highlight options section
458
- * @description Verify the options displayed in highlight options section
459
- */
460
- verifyOptionsInHighlightOptionsSection: (optionArray) => {
461
- optionArray.forEach((optionText, optionIndex) => {
462
- utilities.verifyInnerText(highlightPage.highlightOptionsSpans().eq(optionIndex), optionText)
463
- });
464
- utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), optionArray.length);
465
- },
466
-
467
- /**
468
- * @param {string[]} optionArray Array of text of options in highlight options section
469
- * @description Verify the options displayed in highlight options section
470
- */
471
- verifyOptionsInSetCorrectAnswerSection: (optionArray) => {
472
- optionArray.forEach((optionText, optionIndex) => {
473
- utilities.verifyInnerText(highlightPage.setCorrectAnswerOption().eq(optionIndex), optionText)
474
- });
475
- utilities.verifyElementCount(highlightPage.setCorrectAnswerOption(), optionArray.length);
476
- },
477
-
478
- /**
479
- * @param {string[]} optionArray Array of text of options in preview tab
480
- * @description Verify the options displayed in preview tab
481
- */
482
- verifyOptionInPreviewTab: (optionArray) => {
483
- optionArray.forEach((optionText, optionIndex) => {
484
- utilities.verifyInnerText(highlightPage.previewTabOption().eq(optionIndex), optionText)
485
- });
486
- utilities.verifyElementCount(highlightPage.previewTabOption(), optionArray.length);
487
- },
488
-
489
-
490
- /**
491
- * @param {string} optionText Text of the option in highlight options section
492
- * @description Hover on deselected option in highlight options section
493
- */
494
- hoverOnDeselectedOptionInHighlightOptionsSection: (optionText) => {
495
- highlightPage.highlightOptionsSpans()
496
- .contains(optionText)
497
- .realHover();
498
- },
499
-
500
- /**
501
- * @param {string} optionText Text of the option in highlight options section
502
- * @description Verify hover state of the deselected option in highlight options section
503
- */
504
- verifyHoverStateOfDeselectedOptionInHighlightOptionsSection: (optionText) => {
505
- highlightPage.steps.hoverOnDeselectedOptionInHighlightOptionsSection(optionText);
506
- utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(optionText), {
507
- 'color': css.color.text,
508
- 'font-size': css.fontSize.default,
509
- 'font-weight': css.fontWeight.regular,
510
- 'background-color': colorLibrary[0].hoverBackground,
511
- 'border': `1px solid ${colorLibrary[0].hoverBorder}`
512
- });
513
- },
514
-
515
- /**
516
- * @param {string} optionText Text of the option in set correct answer section
517
- * @description Hover on deselected option in set correct answer section
518
- */
519
- hoverOnDeselectedOptionInSetCorrectAnswerSection: (optionText) => {
520
- highlightPage.setCorrectAnswerOption()
521
- .contains(optionText)
522
- .realHover();
523
- },
524
-
525
- /**
526
- * @param {string} optionText Text of the option in preview tab
527
- * @description Hover on deselected option in preview tab
528
- */
529
- hoverOnDeselectedOptionInPreviewTab: (optionText) => {
530
- highlightPage.previewTabOption()
531
- .contains(optionText)
532
- .realHover();
533
- },
534
-
535
- /**
536
- * @param {string} optionText Text of the option in set correct answer section
537
- * @description Verify hover state of the deselected option in set correct answer section
538
- */
539
- verifyHoverStateOfDeselectedOptionInSetCorrectAnswerSection: (optionText) => {
540
- highlightPage.steps.hoverOnDeselectedOptionInSetCorrectAnswerSection(optionText);
541
- utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(optionText), {
542
- 'color': css.color.text,
543
- 'font-size': css.fontSize.default,
544
- 'font-weight': css.fontWeight.regular,
545
- 'background-color': colorLibrary[0].hoverBackground,
546
- 'border': `1px solid ${colorLibrary[0].hoverBorder}`
547
- });
548
- },
549
-
550
- /**
551
- * @param {string} optionText Text of the option in preview tab
552
- * @description Verify hover state of the deselected option in preview tab
553
- */
554
- verifyHoverStateOfOptionInPreviewTab: (optionText) => {
555
- highlightPage.steps.hoverOnDeselectedOptionInPreviewTab(optionText);
556
- utilities.verifyCSS(highlightPage.previewTabOption().contains(optionText), {
557
- 'color': css.color.text,
558
- 'font-size': css.fontSize.default,
559
- 'font-weight': css.fontWeight.regular,
560
- 'background-color': colorLibrary[0].hoverBackground,
561
- 'border': `1px solid ${colorLibrary[0].hoverBorder}`
562
- });
563
- },
564
-
565
- /**
566
- * @param {string} optionText Text of the option in preview tab
567
- * @description Verify check-mark icon is displayed for option
568
- */
569
- verifyCorrectAnswerCheckmarkIconForOption: (optionText) => {
570
- highlightPage.previewTabOption()
571
- .contains(optionText)
572
- .should('have.class', 'correct_answer')
573
- .within(() => {
574
- autoScoredPreviewBase.correctIcon()
575
- .should('be.visible');
576
- });
577
- },
578
-
579
- /**
580
- * @param {string} optionText Text of the option in preview tab
581
- * @description Verify cross-mark icon is displayed for option
582
- */
583
- verifyIncorrectAnswerCrossmarkIconForOption: (optionText) => {
584
- highlightPage.previewTabOption()
585
- .contains(optionText)
586
- .should('have.class', 'correct_answer')
587
- .within(() => {
588
- autoScoredPreviewBase.incorrectIcon()
589
- .should('be.visible');
590
- });
591
- },
592
-
593
261
  /**
594
262
  * @param {number[]} pointsArray Array of partial different points for options
595
263
  * @description Add points to options in set points popup
@@ -706,62 +374,6 @@ const steps = {
706
374
  });
707
375
  },
708
376
 
709
- verifyImageAndAltTextInQuestionInputField: () => {
710
- highlightPage.questionInputField()
711
- .find('img')
712
- .should('have.attr', 'src', constants.foxImageLink)
713
- .and('have.attr', 'alt', constants.foxImageAltText);
714
- },
715
-
716
- verifyEquationInQuestionInputField: () => {
717
- highlightPage.questionInputField()
718
- .find('[data-widget="ngie_equation"]')
719
- .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
720
- .contains(constants.CKEditorInputFieldEnteredEquationText);
721
- },
722
-
723
- verifyLinkInQuestionInputField: () => {
724
- highlightPage.questionInputField()
725
- .find('a')
726
- .should('have.text', 'lorem')
727
- .and('have.attr', 'href', `${Cypress.config().baseUrl}`);
728
- },
729
-
730
- verifyBoldTextInQuestionInputField: () => {
731
- highlightPage.questionInputField()
732
- .find('strong')
733
- .should('exist')
734
- .should('have.text', '​​​​​​​This is Bold text input.');
735
- },
736
-
737
- verifyImageAndAltTextInHighlightOptionsSection: () => {
738
- highlightPage.highlightOptionsTextFieldWrapper()
739
- .find('img')
740
- .should('have.attr', 'src', constants.foxImageLink)
741
- .and('have.attr', 'alt', constants.foxImageAltText);
742
- },
743
-
744
- verifyEquationInHighlightOptionsSection: () => {
745
- highlightPage.highlightOptionsTextFieldWrapper()
746
- .find('span[role="math"]')
747
- .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
748
- .contains(constants.CKEditorInputFieldEnteredEquationText);
749
- },
750
-
751
- verifyLinkInHighlightOptionsSection: () => {
752
- highlightPage.highlightOptionsTextFieldWrapper()
753
- .find('a')
754
- .should('have.text', 'lorem')
755
- .and('have.attr', 'href', `${Cypress.config().baseUrl}`);
756
- },
757
-
758
- verifyBoldTextInHighlightOptionsSection: () => {
759
- highlightPage.highlightOptionsTextFieldWrapper()
760
- .find('strong')
761
- .should('exist')
762
- .should('have.text', 'This is Bold text input.lorem');
763
- },
764
-
765
377
  verifyImageAndAltTextInSetCorrectAnswerSection: () => {
766
378
  highlightPage.setCorrectAnswerTextWrapper()
767
379
  .find('img')
@@ -818,12 +430,6 @@ const steps = {
818
430
  .should('have.text', 'This is Bold text input.lorem');
819
431
  },
820
432
 
821
- verifyHighlightOptionsFieldErrorMessage: () => {
822
- highlightPage.highlightOptionsTextFieldWrapper()
823
- .next()
824
- .should('have.text', 'Error: Minimum one highlight option is required.');
825
- },
826
-
827
433
  //TODO- Update after https://redmine.zeuslearning.com/issues/548968 is resolved
828
434
  verifySetCorrectAnswerErrorMessage: () => {
829
435
  highlightPage.setCorrectAnswerLabel()
@@ -39,9 +39,12 @@ export * from './textEntryMathPage';
39
39
  export * from './fillInTheGapsOverImageDragAndDropPage';
40
40
  export * from './textEntryMathWithImagePage';
41
41
  export * from './graphingPage';
42
- export * from './simpleCalculatorPage'
42
+ export * from './simpleCalculatorPage';
43
43
  export * from './contentBlocksPage';
44
44
  export * from './geoGebraActivityPage';
45
45
  export * from './gridFillPage';
46
46
  export * from './geoGebraToolsPage';
47
- export * from './matchingPage';
47
+ export * from './matchingPage';
48
+ export * from './brainingCampManipulativePage';
49
+ export * from './numberLinePage';
50
+ export * from './textSelectionPage';