itemengine-cypress-automation 1.0.342-save-as-you-go-updates-184015f.0 → 1.0.343-IEI-5600-IEI-5708-9440b5e.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.
Files changed (138) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +16 -4
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  3. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  4. package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
  5. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
  6. package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
  9. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
  10. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
  11. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
  12. package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
  13. package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
  14. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
  15. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
  16. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
  17. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
  18. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
  19. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
  20. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
  21. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
  22. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
  23. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
  24. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  25. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  26. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
  27. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
  28. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
  29. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
  30. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
  31. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
  32. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
  33. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
  34. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
  35. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
  36. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
  37. package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
  38. package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
  39. package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
  40. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
  41. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
  42. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
  43. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
  44. package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
  45. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
  46. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
  47. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
  48. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
  49. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
  50. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  51. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
  52. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
  53. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
  54. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
  55. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
  56. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  57. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  58. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
  59. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
  60. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
  61. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  62. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
  63. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
  64. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
  65. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
  66. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
  67. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
  68. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
  69. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  70. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  71. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
  72. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
  73. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  74. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  75. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
  76. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
  77. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
  78. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
  79. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
  80. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
  81. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
  82. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
  83. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
  84. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
  85. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
  86. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
  87. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  88. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
  90. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
  91. package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
  92. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
  93. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
  94. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  95. package/cypress/pages/chartsBarPage.js +0 -20
  96. package/cypress/pages/components/createQuestionBasePage.js +0 -7
  97. package/cypress/pages/components/defaultToolDropdown.js +1 -1
  98. package/cypress/pages/components/desmosToolComponent.js +1 -1
  99. package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
  100. package/cypress/pages/desmos3DGraphingPage.js +4 -149
  101. package/cypress/pages/desmosGeometryPage.js +4 -184
  102. package/cypress/pages/graphingPage.js +4 -26
  103. package/cypress/pages/gridFillPage.js +6 -16
  104. package/cypress/pages/listOrderingPage.js +1 -32
  105. package/cypress/pages/matchingPage.js +7 -26
  106. package/cypress/pages/numberLineLabelPage.js +0 -26
  107. package/cypress/pages/numberLinePage.js +0 -15
  108. package/cypress/pages/textEntryMathPage.js +0 -21
  109. package/cypress/pages/thinkSpherePage.js +316 -5
  110. package/cypress/pages/uploadResponsePage.js +1 -2
  111. package/cypress/pages/videoResponsePage.js +0 -3
  112. package/cypress/support/helpers/createItem.js +22 -3
  113. package/cypress/support/helpers/utilities.js +13 -0
  114. package/package.json +1 -1
  115. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
  116. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
  117. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
  118. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
  119. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
  120. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
  121. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
  122. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
  123. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
  124. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
  125. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
  126. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
  127. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
  128. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
  129. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
  130. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
  131. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
  132. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
  133. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
  134. package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
  135. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
  136. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
  137. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
  138. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
@@ -18,6 +18,28 @@ const sentenceStartersTextDefault = [
18
18
  'I will check my work by',
19
19
  'If my strategy is not working, I will'
20
20
  ];
21
+ const preAuthoredStrategyVideos = [
22
+ {
23
+ displayName: 'Create_a_model',
24
+ duration: '00:24',
25
+ },
26
+ {
27
+ displayName: 'Look_for_a_pattern',
28
+ duration: '00:18',
29
+ },
30
+ {
31
+ displayName: 'Guess_check_and_revise',
32
+ duration: '00:17',
33
+ },
34
+ {
35
+ displayName: 'Try_with_friendlier_numbers',
36
+ duration: '00:26',
37
+ },
38
+ {
39
+ displayName: 'Show_with_an_equation',
40
+ duration: '00:22',
41
+ }
42
+ ];
21
43
  describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
22
44
  before(() => {
23
45
  cy.loginAs('admin');
@@ -55,19 +77,37 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
55
77
  });
56
78
  });
57
79
 
80
+ describe('\'Plan Phase\' Section Strategies list component - Pre-authored Videos', () => {
81
+ abortEarlySetup();
82
+ it('Strategies list options should have Pre-authored Videos', () => {
83
+ thinkSpherePage.steps.verifyPreAuthoredVideoTitles(preAuthoredStrategyVideos.map(video => video.displayName));
84
+ })
85
+ it('When the user clicks on the video, the respective video should play', () => {
86
+ thinkSpherePage.steps.verifyPreAuthoredVideos(preAuthoredStrategyVideos);
87
+ });
88
+ });
89
+
58
90
  describe('\'Plan Phase\' Video Preview Component', () => {
59
91
  const playbackSpeedOptions = ['1x', '1.25x', '1.5x', '2x'];
60
92
  const playbackSpeedMultiplier = [1, 1.25, 1.5, 2];
93
+ before(()=>{
94
+ thinkSpherePage.steps.addOption('strategy');
95
+ thinkSpherePage.steps.addOptionText('strategy', 5, "Custom strategy");
96
+ })
97
+
98
+ after(() => {
99
+ thinkSpherePage.steps.deleteOption(5);
100
+ })
61
101
 
62
102
  it('When the video is uploaded it should display the video and its buttons correctly', () => {
63
- thinkSpherePage.videoLinkComponent()
103
+ thinkSpherePage.videoLinkComponent(5)
64
104
  .within(() => {
65
105
  thinkSpherePage.uploadVideoLinkButton()
66
106
  .click();
67
107
  });
68
108
  thinkSpherePage.steps.uploadVideoFile('uploads/sample.mp4');
69
109
  cy.wait(10000);
70
- thinkSpherePage.videoLinkComponent()
110
+ thinkSpherePage.videoLinkComponent(5)
71
111
  .within(() => {
72
112
  thinkSpherePage.uploadVideoLinkButton()
73
113
  .click();
@@ -151,7 +191,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
151
191
 
152
192
  it('When video player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
153
193
  thinkSpherePage.videoPopupCloseButton().click();
154
- thinkSpherePage.videoLinkComponent()
194
+ thinkSpherePage.videoLinkComponent(5)
155
195
  .within(() => {
156
196
  thinkSpherePage.uploadVideoLinkButton()
157
197
  .click();
@@ -296,7 +336,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
296
336
 
297
337
  it('When the user hovers over the playback speed button, a tooltip \'Playback speed\' should be displayed and on hovering away from the button, the tooltip should disappear', () => {
298
338
  thinkSpherePage.videoPopupCloseButton().click();
299
- thinkSpherePage.videoLinkComponent()
339
+ thinkSpherePage.videoLinkComponent(5)
300
340
  .within(() => {
301
341
  thinkSpherePage.uploadVideoLinkButton()
302
342
  .click();
@@ -496,7 +536,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
496
536
 
497
537
  thinkSpherePage.tests.verifyResetToDefaultFunctionality(strategiesTextDefault, 'strategy');
498
538
 
499
- thinkSpherePage.tests.verifyVideoLinkComponent();
539
+ thinkSpherePage.tests.verifyVideoLinkComponent(5);
500
540
 
501
541
  it('Accessibility of \'Plan Phase\' Section Strategies list component', { tags: 'a11y' }, () => {
502
542
  cy.checkAccessibility(thinkSpherePage.planStrategySection());
@@ -24,11 +24,14 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
24
24
  thinkSpherePage.steps.switchToPreviewTab();
25
25
  });
26
26
 
27
+ after(() => {
28
+ cy.deleteThinkSphereItem('~zzz item name');
29
+ });
30
+
27
31
  describe('\'Question instruction\' section', () => {
28
32
  abortEarlySetup();
29
33
  it('\'Question instruction\' section should be present', () => {
30
- utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'visible');
31
- utilities.verifyInnerText(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'question instruction text');
34
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
32
35
  });
33
36
 
34
37
  it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
@@ -46,8 +49,7 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
46
49
  cy.wait(1000);
47
50
  thinkSpherePage.steps.uploadFile('uploads/image.png');
48
51
  thinkSpherePage.steps.switchToPreviewTab();
49
- utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageWrapper(), 'visible');
50
- utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageExpandButton(), 'visible');
52
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
51
53
  });
52
54
 
53
55
  it('CSS of question instruction image section', { tags: 'css' }, () => {
@@ -279,7 +281,7 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
279
281
 
280
282
  it('\'Planning journal\' section heading should be present', () => {
281
283
  utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
282
- utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planing journal');
284
+ utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
283
285
  });
284
286
 
285
287
  it('\'Sentence starters\' label and dropdown should be displayed', () => {
@@ -473,14 +475,12 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
473
475
  });
474
476
  });
475
477
 
476
- it('CSS of strategy chip when it is selected', { tags: 'css' }, () => {
478
+ it('CSS of strategy chip when it is selected and CSS of planning journal section', { tags: 'css' }, () => {
477
479
  utilities.verifyCSS(thinkSpherePage.strategyChip(), {
478
480
  'background-color': css.color.secondaryBtnBorder,
479
481
  'border': `1px solid ${css.color.primaryBtnBg}`,
480
482
  });
481
- });
482
483
 
483
- it('CSS of planning journal section', { tags: 'css' }, () => {
484
484
  utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
485
485
  'color': css.color.primaryBtnBorder,
486
486
  'font-size': css.fontSize.heading,
@@ -0,0 +1,97 @@
1
+ import { thinkSpherePage } from "../../../pages";
2
+ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
3
+ import { commonComponents } from "../../../pages/components/commonComponents";
4
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
5
+ import utilities from "../../../support/helpers/utilities";
6
+ const css = Cypress.env('css');
7
+
8
+ const sentenceStartersTextDefault = [
9
+ 'The strategy I’m going to use is',
10
+ 'First, I will',
11
+ 'Secondly, I will',
12
+ 'I will check my work by',
13
+ 'If my strategy is not working, I will'
14
+ ];
15
+
16
+ describe('Preview question : ThinkSphere Question - Plan Section - preview tab', () => {
17
+ before(() => {
18
+ cy.loginAs('admin');
19
+ cy.deleteThinkSphereItem('~zzz item name review test');
20
+ cy.createThinkSphereItem('~zzz item name review test', true);
21
+ cy.visit('/item-engine/thinksphere/browse-items');
22
+ browseItemsPage.steps.clickOnItemReferenceId('~zzz item name review test');
23
+ browseItemsPage.steps.clickOnAddReviewItem();
24
+ thinkSpherePage.steps.createReviewQuestion();
25
+ thinkSpherePage.steps.clickOnEditQuestionIcon();
26
+ thinkSpherePage.steps.switchToPreviewTab();
27
+ thinkSpherePage.steps.clickOnReviewTab();
28
+ });
29
+
30
+ after(() => {
31
+ cy.deleteThinkSphereItem('~zzz item name review test');
32
+ });
33
+
34
+ describe('\'Question instruction\' section', () => {
35
+ abortEarlySetup();
36
+ it('\'Question instruction\' section should be present', () => {
37
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
38
+ });
39
+
40
+ it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
41
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
42
+ 'border-radius': '12px',
43
+ 'background-color': css.color.questionInstructionBG,
44
+ 'padding': '10px 170px 10px 27px',
45
+ 'font-size': css.fontSize.default,
46
+ 'font-weight': css.fontWeight.regular,
47
+ });
48
+ });
49
+
50
+ it('Question instruction image should visibile in the preview', () => {
51
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
52
+ });
53
+
54
+ it('CSS of question instruction image section', { tags: 'css' }, () => {
55
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
56
+ 'width': '143px',
57
+ 'height': '110px',
58
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
59
+ 'background-color': css.color.primaryBtn,
60
+ });
61
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
62
+ 'width': '24px',
63
+ 'height': '24px',
64
+ 'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
65
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
66
+ 'border-radius': '4px',
67
+ 'background-color': css.color.primaryBtn,
68
+ });
69
+ });
70
+
71
+ it('When user clicks on expand question instruction image then it should open in the popup', () => {
72
+ thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
73
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
74
+ thinkSpherePage.steps.verifyQuestionImagePopup();
75
+ });
76
+
77
+ it('CSS of question instruction image popup', { tags: 'css' }, () => {
78
+ utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
79
+ 'border-radius': '8px',
80
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
81
+ 'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
82
+ });
83
+ utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
84
+ 'background-color': css.color.primaryBtn,
85
+ 'font-size': css.fontSize.normal,
86
+ 'font-weight': css.fontWeight.semibold,
87
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
88
+ 'color': css.color.primaryBtnBorder,
89
+ });
90
+ });
91
+
92
+ it('When user clicks on close expand image popup button then it should remove the popup', () => {
93
+ thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
94
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
95
+ });
96
+ });
97
+ });
@@ -7,7 +7,7 @@ const canvasTools = [
7
7
  'Text', 'Pen', 'Highlighter', 'Image', 'Shapes',
8
8
  'Stamps', 'Unifix Cube', 'Diagrams', 'Array',
9
9
  'Number line', 'Fraction bars', 'Protractor', 'Table', 'Grids',
10
- 'Equation editor', 'Algebra tiles'
10
+ 'Equation editor', 'Algebra tiles', 'Point eraser', 'Item eraser'
11
11
  ];
12
12
  const defaultSelectedCanvasTools = ['Text', 'Pen', 'Highlighter', 'Image', 'Shapes', 'Stamps'];
13
13
  const canvasControls = ['Move', 'Delete', 'Undo', 'Redo', 'Clear all'];
@@ -264,8 +264,8 @@ describe('ThinkSphere Question - Solve Phases Section', () => {
264
264
  });
265
265
 
266
266
  it('The edit button should not be displayed for the keypad category button.', () => {
267
- utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['keyPad'].displayName}`).find(thinkSpherePage.equationEditorSectionCategoriesEditIcon()), 'visible');
268
- })
267
+ utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['keyPad'].displayName}`).find(thinkSpherePage.equationEditorSectionCategoriesEditIcon()), 'notExist');
268
+ });
269
269
 
270
270
  it('User should be able to unselect default selected category and should be able to select default unselected category.', () => {
271
271
  thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['keyPad'].displayName}`).click();
@@ -0,0 +1,393 @@
1
+ import uuid from 'react-uuid';
2
+ import { thinkSpherePage } from "../../../pages";
3
+ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
4
+ import { commonComponents } from "../../../pages/components/commonComponents";
5
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
6
+ import utilities from "../../../support/helpers/utilities";
7
+ const css = Cypress.env('css');
8
+
9
+ const sentenceStartersTextDefault = [
10
+ 'The strategy I’m going to use is',
11
+ 'First, I will',
12
+ 'Secondly, I will',
13
+ 'I will check my work by',
14
+ 'If my strategy is not working, I will'
15
+ ];
16
+
17
+ describe('Student view : ThinkSphere Question - Plan Section', () => {
18
+ const uuidString = uuid();
19
+
20
+ before(() => {
21
+ cy.loginAs('admin');
22
+ cy.createThinkSphereItem(uuidString, true);
23
+ cy.visit('/item-engine/thinksphere/browse-items');
24
+ browseItemsPage.steps.clickOnActionButton();
25
+ browseItemsPage.steps.clickOnActionMenuItem(0);
26
+ });
27
+
28
+ describe('\'Question instruction\' section', () => {
29
+ abortEarlySetup();
30
+ it('\'Question instruction\' section should be present', () => {
31
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
32
+ });
33
+
34
+ it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
35
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
36
+ 'border-radius': '12px',
37
+ 'background-color': css.color.questionInstructionBG,
38
+ 'padding': '10px 170px 10px 27px',
39
+ 'font-size': css.fontSize.default,
40
+ 'font-weight': css.fontWeight.regular,
41
+ });
42
+ });
43
+
44
+ it('Question instruction image should visibile in the preview', () => {
45
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
46
+ });
47
+
48
+ it('CSS of question instruction image section', { tags: 'css' }, () => {
49
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
50
+ 'width': '143px',
51
+ 'height': '110px',
52
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
53
+ 'background-color': css.color.primaryBtn,
54
+ });
55
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
56
+ 'width': '24px',
57
+ 'height': '24px',
58
+ 'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
59
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
60
+ 'border-radius': '4px',
61
+ 'background-color': css.color.primaryBtn,
62
+ });
63
+ });
64
+
65
+ it('When user clicks on expand question instruction image then it should open in the popup', () => {
66
+ thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
67
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
68
+ thinkSpherePage.steps.verifyQuestionImagePopup();
69
+ });
70
+
71
+ it('CSS of question instruction image popup', { tags: 'css' }, () => {
72
+ utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
73
+ 'border-radius': '8px',
74
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
75
+ 'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
76
+ });
77
+ utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
78
+ 'background-color': css.color.primaryBtn,
79
+ 'font-size': css.fontSize.normal,
80
+ 'font-weight': css.fontWeight.semibold,
81
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
82
+ 'color': css.color.primaryBtnBorder,
83
+ });
84
+ });
85
+
86
+ it('When user clicks on close expand image popup button then it should remove the popup', () => {
87
+ thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
88
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
89
+ });
90
+ });
91
+
92
+ describe('\'Choose your strategies\' section', () => {
93
+ abortEarlySetup();
94
+ it('\'Choose your strategies\' section and title should be present', () => {
95
+ utilities.verifyInnerText(thinkSpherePage.strategiesPreviewHeader(), 'Choose your strategies');
96
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategiesPreviewHeader(), 'visible');
97
+ });
98
+
99
+ it('\'Add new strategy\' button should be present', () => {
100
+ utilities.verifyInnerText(thinkSpherePage.addNewStrategyButton(), 'Add new strategy');
101
+ utilities.verifyElementVisibilityState(thinkSpherePage.addNewStrategyButton(), 'visible');
102
+ });
103
+
104
+ it('CSS of strategies header and add new strategy button', { tags: 'css' }, () => {
105
+ utilities.verifyCSS(thinkSpherePage.strategiesPreviewHeader(), {
106
+ 'font-size': css.fontSize.heading,
107
+ 'font-weight': css.fontWeight.semibold,
108
+ 'color': css.color.primaryBtnBorder,
109
+ });
110
+ utilities.verifyCSS(thinkSpherePage.addNewStrategyButton(), {
111
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
112
+ 'padding': '12px 16px',
113
+ 'border-radius': '8px',
114
+ 'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
115
+ });
116
+ utilities.verifyCSS(thinkSpherePage.addNewStrategyTextWrapper(), {
117
+ 'color': css.color.primaryBtnBorder,
118
+ 'font-size': css.fontSize.default,
119
+ 'font-weight': css.fontWeight.regular,
120
+ });
121
+ });
122
+
123
+ it('CSS of strategies list', { tags: 'css' }, () => {
124
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 0), {
125
+ 'padding': '8px 16px 8px 24px',
126
+ 'border': `2px solid ${css.color.transparent}`,
127
+ 'background-color': css.color.progressBarRemainingFill,
128
+ 'border-radius': '12px',
129
+ });
130
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
131
+ 'color': css.color.primaryBtnBorder,
132
+ 'margin-right': '40px',
133
+ 'font-size': '18px',
134
+ 'font-weight': '600',
135
+ });
136
+
137
+ // css of strategies list on hover
138
+ utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0)
139
+ .realHover();
140
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0), {
141
+ 'outline-color': css.color.toggleButtonSelectedBg,
142
+ 'outline-offset': '-1px',
143
+ 'outline-style': 'solid',
144
+ });
145
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
146
+ 'color': css.color.primaryBtnBg,
147
+ });
148
+ utilities.triggerMouseout(utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0));
149
+ });
150
+
151
+ it('When we click add new strategy button a popup should be opened with header \'Add new strategy\', a text input field with label \'Strategy name\', a cancel and a save button', () => {
152
+ thinkSpherePage.addNewStrategyButton().click();
153
+ utilities.verifyInnerText(thinkSpherePage.popupTitle(), 'Add new strategy');
154
+ utilities.verifyElementVisibilityState(thinkSpherePage.popupTitle(), 'visible');
155
+ utilities.verifyInnerText(thinkSpherePage.strategyNameLabel(), 'Strategy name');
156
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyNameLabel(), 'visible');
157
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyNameInputField(), 'visible');
158
+ utilities.verifyElementVisibilityState(thinkSpherePage.addStrategyPopupCancelButton(), 'visible');
159
+ utilities.verifyElementVisibilityState(thinkSpherePage.addStrategyPopupSaveButton(), 'visible');
160
+ thinkSpherePage.addStrategyPopupCancelButton().click();
161
+ });
162
+
163
+ it('Add new strategy popup should close when cancel button is clicked and the number of strategies should be same before opening the popup', () => {
164
+ thinkSpherePage.steps.verifyAddNewStrategyPopupCloseFunctionality();
165
+ });
166
+
167
+ it('When user adds a new strategy, the popup should close when save button is clicked and the number of strategies should increase by 1 compared to that before opening the popup', () => {
168
+ thinkSpherePage.steps.verifyAddNewStrategyPopupSaveFunctionality();
169
+ });
170
+
171
+ it('CSS of strategies list in selected state', { tags: 'css' }, () => {
172
+ thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
173
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 1), {
174
+ 'border': `2px solid ${css.color.toggleButtonSelectedBg}`,
175
+ 'background-color': css.color.transparent,
176
+ });
177
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 1), {
178
+ 'color': css.color.primaryBtnBg,
179
+ });
180
+ thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
181
+ });
182
+
183
+ it('Video icon for should present by default besides the strategy name', () => {
184
+ utilities.verifyElementVisibilityState(utilities.getNthElement(thinkSpherePage.videoIconWrapper(), 0), 'visible');
185
+ });
186
+
187
+ it('When user clicks on video icon then video should be played in the popup', () => {
188
+ thinkSpherePage.steps.clickOnVideoIcon();
189
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
190
+ thinkSpherePage.steps.verifyVideoPopupDialogBox();
191
+ thinkSpherePage.steps.closeVideoPopup();
192
+ });
193
+ });
194
+
195
+ describe('\'Planning journal\' Section', () => {
196
+ abortEarlySetup();
197
+ it('\'Planning journal\' section should be present', () => {
198
+ utilities.verifyElementVisibilityState(thinkSpherePage.PlanningPreviewWrapper(), 'visible');
199
+ });
200
+
201
+ it('\'Planning journal\' section heading should be present', () => {
202
+ utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
203
+ utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
204
+ });
205
+
206
+ it('\'Sentence starters\' label and dropdown should be displayed', () => {
207
+ utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterLabel(), 'visible');
208
+ utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterDropdown(), 'visible');
209
+ utilities.verifyInnerText(thinkSpherePage.chooseStarterLabel(), 'Sentence starter');
210
+ thinkSpherePage.steps.verifySentenceStartersDropdown();
211
+ });
212
+
213
+ it('CSS of \'Sentence starter\' dropdown - default state', { tags: 'css' }, () => {
214
+ utilities.verifyCSS(thinkSpherePage.chooseStarterLabel(), {
215
+ 'color': css.color.sectionHeading,
216
+ 'font-size': css.fontSize.normal,
217
+ 'font-weight': css.fontWeight.semibold,
218
+ });
219
+ utilities.verifyCSS(thinkSpherePage.chooseStarterDropdown(), {
220
+ 'color': css.color.liText,
221
+ 'font-size': css.fontSize.default,
222
+ 'font-weight': css.fontWeight.regular
223
+ });
224
+ });
225
+
226
+ it('Clicking on \'Sentence starters\' dropdown should open a list', () => {
227
+ commonComponents.steps.verifyDropdownIsCollapsed();
228
+ thinkSpherePage.steps.expandChooseStarterDropdown();
229
+ utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
230
+ thinkSpherePage.steps.verifySentenceStartersDropdownOptions(sentenceStartersTextDefault);
231
+ utilities.pressEscapeKey();
232
+ });
233
+
234
+ it('CSS of Sentence starters dropdown - active state', { tags: 'css' }, () => {
235
+ thinkSpherePage.steps.expandChooseStarterDropdown();
236
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 0), {
237
+ 'color': css.color.liText,
238
+ 'font-size': css.fontSize.default,
239
+ 'font-weight': css.fontWeight.regular,
240
+ 'background-color': css.color.optionsBg
241
+ });
242
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 1), {
243
+ 'background-color': css.color.transparent
244
+ });
245
+ cy.log('Post step: Closing the Sentence starters dropdown');
246
+ utilities.pressEscapeKey();
247
+ });
248
+
249
+ it('When user clicks on any starter then it should get written in the \'Write your plan\' text input field', () => {
250
+ thinkSpherePage.steps.verifySentenceStartersDropdownFunctionality();
251
+ });
252
+
253
+ it('\'Planning journal\' write wrapper should be present', () => {
254
+ utilities.verifyElementVisibilityState(thinkSpherePage.planningWriteWrapper(), 'visible');
255
+ });
256
+
257
+ it('\'The problem is asking me to\' section should be present', () => {
258
+ utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingWrapper(), 'visible');
259
+ });
260
+
261
+ it('\'The problem is asking me to\' subheading should be present', () => {
262
+ thinkSpherePage.steps.verifyProblemAskingHeading();
263
+ });
264
+
265
+ it('Text area with placeholder \'Enter your text here\' should be present under \'The problem is asking me to\' section', () => {
266
+ thinkSpherePage.steps.verifyProblemAskingTextArea();
267
+ });
268
+
269
+ it('Mic button should be present under \'The problem is asking me to\' section', () => {
270
+ thinkSpherePage.steps.verifyProblemAskingMicSection();
271
+ });
272
+
273
+ it('User should be able to write in the \'Enter your text here\' textarea under \'The problem is asking me to\' section', () => {
274
+ thinkSpherePage.steps.verifyProblemAskingTextAreaFunctionality('This is a test text for the problem.');
275
+ });
276
+
277
+ it('\'Add strategies to plan\' section should be present', () => {
278
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategiesToPlanWrapper(), 'visible');
279
+ });
280
+
281
+ it('\'Add strategies to plan\' subheading should be present', () => {
282
+ thinkSpherePage.steps.verifyStrategiesToPlanHeading();
283
+ });
284
+
285
+ it('By default the strategy chips should not present under \'Add strategies to plan\' section', () => {
286
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'notExist');
287
+ });
288
+
289
+ it('\'Write your plan\' section should be present', () => {
290
+ utilities.verifyElementVisibilityState(thinkSpherePage.writePlanWrapper(), 'visible');
291
+ });
292
+
293
+ it('\'Write your plan\' subheading should be present', () => {
294
+ thinkSpherePage.steps.verifyWritePlanHeading();
295
+ });
296
+
297
+ it('Text area with placeholder \'Enter your plan here\' should be present under \'Write your plan\' section', () => {
298
+ thinkSpherePage.steps.verifyWritePlanTextArea();
299
+ });
300
+
301
+ it('Mic button should be present under \'Write your plan\' section', () => {
302
+ thinkSpherePage.steps.verifyWritePlanMicSection();
303
+ });
304
+
305
+ it('User should be able to write in the \'Enter your plan here\' textarea under \'Write your plan\' section', () => {
306
+ thinkSpherePage.steps.verifyWritePlanTextAreaFunctionality('This is a test plan.');
307
+ });
308
+
309
+ it('When user click on strategy list it should display inside \'Add strategies to plan\' wrapper in the form of chip', () => {
310
+ thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
311
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyChipWrapper(), 'visible');
312
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'visible');
313
+ utilities.verifyInnerText(thinkSpherePage.strategyChip(), 'Look for a pattern');
314
+ });
315
+
316
+ it('CSS of strategy chip when it is not selected', { tags: 'css' }, () => {
317
+ utilities.verifyCSS(thinkSpherePage.strategyChip(), {
318
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
319
+ 'color': css.color.sectionHeading,
320
+ 'border-radius': '20px',
321
+ 'font-size': css.fontSize.normal,
322
+ 'font-weight': css.fontWeight.regular,
323
+ });
324
+ });
325
+
326
+ it('When user click on strategy chip it should get written in the \'Write your plan\' text input field', () => {
327
+ thinkSpherePage.steps.verifyStrategyChipClickFunctionality();
328
+ });
329
+
330
+ it('CSS of strategy chip when it is selected and CSS of planning journal section', { tags: 'css' }, () => {
331
+ utilities.verifyCSS(thinkSpherePage.strategyChip(), {
332
+ 'background-color': css.color.secondaryBtnBorder,
333
+ 'border': `1px solid ${css.color.primaryBtnBg}`,
334
+ });
335
+
336
+ utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
337
+ 'color': css.color.primaryBtnBorder,
338
+ 'font-size': css.fontSize.heading,
339
+ 'font-weight': css.fontWeight.semibold,
340
+ });
341
+
342
+ utilities.verifyCSS(thinkSpherePage.planningWriteWrapper(), {
343
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
344
+ 'border-radius': '12px'
345
+ });
346
+
347
+ utilities.verifyCSS(thinkSpherePage.problemAskingWrapper(), {
348
+ 'padding': '16px 16px 14px',
349
+ 'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`
350
+ });
351
+
352
+ utilities.verifyCSS(thinkSpherePage.strategiesToPlanWrapper(), {
353
+ 'padding': '16px',
354
+ 'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`
355
+ });
356
+
357
+ utilities.verifyCSS(thinkSpherePage.writePlanWrapper(), {
358
+ 'padding': '16px'
359
+ });
360
+
361
+ thinkSpherePage.problemAskingWrapper()
362
+ .within(() => {
363
+ utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
364
+ 'color': css.color.primaryBtnBorder,
365
+ 'font-size': css.fontSize.normal,
366
+ 'font-weight': css.fontWeight.bold,
367
+ });
368
+ });
369
+
370
+ thinkSpherePage.strategiesToPlanWrapper()
371
+ .within(() => {
372
+ utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
373
+ 'color': css.color.primaryBtnBorder,
374
+ 'font-size': css.fontSize.normal,
375
+ 'font-weight': css.fontWeight.bold,
376
+ });
377
+ });
378
+
379
+ thinkSpherePage.writePlanWrapper()
380
+ .within(() => {
381
+ utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
382
+ 'color': css.color.primaryBtnBorder,
383
+ 'font-size': css.fontSize.normal,
384
+ 'font-weight': css.fontWeight.bold,
385
+ });
386
+ });
387
+ });
388
+
389
+ it('Accessibility of planning journal', { tags: 'a11y' }, () => {
390
+ cy.checkAccessibility(thinkSpherePage.PlanningPreviewWrapper());
391
+ });
392
+ });
393
+ });