itemengine-cypress-automation 1.0.129 → 1.0.131-updateILCrepo6March-02c78d1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +210 -0
  2. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +91 -0
  3. package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +392 -0
  4. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -1
  5. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +1 -1
  6. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
  7. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -1
  8. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +1 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +152 -0
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +196 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +195 -0
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +288 -0
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +141 -0
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +245 -0
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +413 -0
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +218 -0
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +245 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +163 -0
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +83 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +653 -0
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +180 -0
  25. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabScoringSection.js +229 -0
  26. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +90 -0
  27. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/switchingCasesBetweenOptionsLayout.js +50 -0
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +204 -0
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +204 -0
  30. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +298 -0
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingPenaltyScoring.js +63 -0
  32. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +111 -0
  33. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +231 -0
  34. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsBasic.js +90 -0
  35. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
  36. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +232 -0
  37. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +231 -0
  38. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsBasic.js +138 -0
  39. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +213 -0
  40. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +186 -0
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +214 -0
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +161 -0
  43. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +328 -0
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +144 -0
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabScoringSection.js +250 -0
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +75 -0
  47. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  48. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +74 -0
  49. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +188 -0
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +8 -8
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +4 -2
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +1 -52
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +3 -211
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +39 -3
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -8
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -50
  59. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/conditionalCheckboxScoring.js +325 -0
  60. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +1 -146
  61. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
  62. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +78 -0
  63. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +265 -0
  64. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +75 -0
  65. package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  66. package/cypress/e2e/ILC/FillInTheGapsTextNew/responseAnswersAndAcceptedStudentInput.js +56 -0
  67. package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +40 -2
  68. package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +249 -0
  69. package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +64 -0
  70. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +128 -0
  71. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +889 -0
  72. package/cypress/e2e/ILC/Graphing/checkAnswerFunctionalityForAllViews.smoke.js +168 -0
  73. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +203 -0
  74. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +222 -0
  75. package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +349 -0
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +132 -0
  77. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +35 -7
  78. package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +213 -0
  79. package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +41 -0
  80. package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +377 -0
  81. package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +161 -0
  82. package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +250 -0
  83. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  84. package/cypress/fixtures/theme/ilc.json +6 -1
  85. package/cypress/fixtures/uploadResponseFileType.js +5 -0
  86. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +13 -13
  87. package/cypress/pages/components/customizeSpecialCharacterComponent.js +24 -6
  88. package/cypress/pages/components/draggableOptionContainer.js +1 -0
  89. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +42 -4
  90. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +149 -5
  91. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +954 -77
  92. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  93. package/cypress/pages/components/questionInstructionsComponent.js +2 -1
  94. package/cypress/pages/contentBlocksPage.js +515 -0
  95. package/cypress/pages/drawingResponsePage.js +2 -2
  96. package/cypress/pages/fillInTheGapsDragAndDropPage.js +359 -3
  97. package/cypress/pages/fillInTheGapsDropdownPage.js +21 -1
  98. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +5 -57
  99. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +3 -24
  100. package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -435
  101. package/cypress/pages/fillInTheGapsTextPage.js +9 -2
  102. package/cypress/pages/graphingPage.js +484 -0
  103. package/cypress/pages/index.js +4 -1
  104. package/cypress/pages/simpleCalculatorPage.js +310 -0
  105. package/cypress/pages/uploadResponsePage.js +260 -92
  106. package/package.json +2 -2
  107. package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +0 -242
  108. package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +0 -99
  109. package/cypress/e2e/ILC/Passage/passageEditTab.js +0 -241
  110. package/cypress/e2e/ILC/Passage/passageHeaderSection.js +0 -73
  111. package/cypress/e2e/ILC/Passage/passagePreviewTab.js +0 -246
@@ -1,246 +0,0 @@
1
- import { passagePage } from "../../../pages";
2
- import { commonComponents, createQuestionBasePage } from "../../../pages/components";
3
- import abortEarlySetup from "../../../support/helpers/abortEarly";
4
- import utilities from "../../../support/helpers/utilities";
5
- const css = Cypress.env('css');
6
-
7
- describe('Create Item page - Passage - Preview tab', () => {
8
- before(() => {
9
- cy.loginAs('admin');
10
- });
11
-
12
- describe('Passage content - Preview tab', () => {
13
- abortEarlySetup();
14
- before(() => {
15
- cy.log('Navigating to passage resource type');
16
- passagePage.steps.navigateToCreateResource('passage');
17
- passagePage.steps.addHeadingText();
18
- passagePage.steps.addInputTextToBodyInputField(['It simply means the act of being globalized']);
19
- cy.log('Switching to Preview Tab')
20
- createQuestionBasePage.steps.switchToPreviewTab();
21
- });
22
-
23
- it('When user adds text to the Heading and Body input field then the added text should be displayed in the \'Preview tab\' section', () => {
24
- utilities.verifyInnerText(passagePage.previewHeadingText(), 'Globalization');
25
- utilities.verifyInnerText(passagePage.previewTabBody(), 'It simply means the act of being globalized');
26
- });
27
-
28
- // Failing due to https://redmine.zeuslearning.com/issues/540708
29
- it('CSS of Heading and Body text in \'Preview\' tab', { tags: 'css' }, () => {
30
- utilities.verifyCSS(passagePage.previewHeadingText(), {
31
- 'color': css.color.questionHeading,
32
- 'font-size': css.fontSize.huge,
33
- 'font-weight': css.fontWeight.regular
34
- });
35
- utilities.verifyCSS(passagePage.previewTabBody(), {
36
- 'color': css.color.text,
37
- 'font-size': css.fontSize.default,
38
- 'font-weight': css.fontWeight.regular
39
- });
40
- });
41
-
42
- it('Accessbility of default passage Preview Tab', { tags: 'a11y' }, () => {
43
- cy.checkAccessibility(passagePage.previewWrapper());
44
- });
45
- });
46
-
47
- describe('Multi-page content with single page - Preview tab', () => {
48
- abortEarlySetup();
49
- before(() => {
50
- cy.log('Navigating to passage resource type');
51
- passagePage.steps.navigateToCreateResource('passage');
52
- passagePage.steps.addHeadingText();
53
- cy.log('Checking Multipage content checkbox')
54
- passagePage.steps.checkMultipageContentCheckbox();
55
- utilities.verifyElementVisibilityState(passagePage.bodyInputField(), 'exist');
56
- passagePage.steps.addInputTextToBodyInputField(['It simply means the act of being globalized']);
57
- cy.log('Switching to Preview Tab')
58
- createQuestionBasePage.steps.switchToPreviewTab();
59
- });
60
-
61
- it('When user adds text to the Heading and Body input field then the added text should be displayed in the \'Preview tab\' section', () => {
62
- utilities.verifyInnerText(passagePage.previewHeadingText(), 'Globalization');
63
- utilities.verifyInnerText(passagePage.previewTabBody(), 'It simply means the act of being globalized');
64
- });
65
-
66
- it('Two chevron icons \'Previous\' and \'Next\' should be displayed in disabled state', () => {
67
- passagePage.steps.verifyPreviousPageButtonDisabled();
68
- passagePage.steps.verifyNextPageButtonDisabled();
69
- });
70
-
71
- it('\'Pagination\' text should be displayed', () => {
72
- passagePage.steps.verifyPaginationText(1, 1);
73
- });
74
-
75
- it('CSS of disabled Previous and Next button', { tags: 'css' }, () => {
76
- utilities.verifyCSS(passagePage.previousPageButton(), {
77
- 'opacity': '0.5'
78
- });
79
- utilities.verifyCSS(passagePage.previousPageButton().find('svg path'), {
80
- 'fill': css.color.secondaryBtnDisabled
81
- });
82
- utilities.verifyCSS(passagePage.nextPageButton(), {
83
- 'opacity': '0.5'
84
- });
85
- utilities.verifyCSS(passagePage.nextPageButton().find('svg path'), {
86
- 'fill': css.color.secondaryBtnDisabled
87
- });
88
- });
89
-
90
- it('Accessbility of disabled \'Previous\' and \'Next\' button', { tags: 'a11y' }, () => {
91
- cy.checkAccessibility(passagePage.previousPageButton());
92
- cy.checkAccessibility(passagePage.nextPageButton());
93
- });
94
- });
95
-
96
- describe('Multi-page content with multiple pages - Preview tab', () => {
97
- abortEarlySetup();
98
- before(() => {
99
- cy.log('Navigating to passage resource type');
100
- passagePage.steps.navigateToCreateResource('passage');
101
- passagePage.steps.addHeadingText();
102
- cy.log('Checking Multipage content checkbox')
103
- passagePage.steps.checkMultipageContentCheckbox();
104
- utilities.verifyElementVisibilityState(passagePage.bodyInputField(), 'exist');
105
- cy.log('Add Image to Body input field')
106
- passagePage.steps.focusInBodyInputField(0);
107
- passagePage.steps.selectImageOptionFromCKEditorToolbar();
108
- passagePage.steps.addImageToInputField();
109
- cy.log('Add Equation to Body input field')
110
- passagePage.steps.addPage();
111
- passagePage.steps.focusInBodyInputField(1);
112
- passagePage.steps.selectEquationEditorOptionFromCKEditorToolbar();
113
- passagePage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
114
- cy.log('Add Link to Body input field')
115
- passagePage.steps.addPage();
116
- passagePage.steps.focusInBodyInputField(2);
117
- passagePage.steps.selectLinkOptionFromCKEditorToolbar();
118
- passagePage.steps.addLinkToInputField();
119
- cy.log('Add Bold text to Body input field')
120
- passagePage.steps.addPage();
121
- passagePage.steps.focusInBodyInputField(3);
122
- passagePage.steps.selectBoldOptionFromCKEditorToolbar();
123
- passagePage.steps.addBoldTextInputToBodyInputField(3);
124
- createQuestionBasePage.steps.switchToPreviewTab();
125
- });
126
-
127
- it('When the user is on the first page, the next button should be enabled and the previous button should be disabled', () => {
128
- passagePage.steps.verifyNextPageButtonEnabled();
129
- passagePage.steps.verifyPreviousPageButtonDisabled();
130
- });
131
-
132
- it('When user adds an image, equation, text and link to the Body input they should be displayed in the \'Preview tab\' and when user navigates through the pages the Pagination text should change accordingly', () => {
133
- passagePage.steps.verifyImageAddedToBodyInPreviewTab();
134
- passagePage.steps.verifyPaginationText(1, 4);
135
- cy.log('Switching to second page')
136
- passagePage.steps.navigateToNextPage();
137
- passagePage.steps.verifyEquationAddedToBodyInPreviewTab();
138
- passagePage.steps.verifyPaginationText(2, 4);
139
- cy.log('Switching to third page')
140
- passagePage.steps.navigateToNextPage();
141
- passagePage.steps.verifyLinkAddedToBodyInPreviewTab();
142
- passagePage.steps.verifyPaginationText(3, 4);
143
- cy.log('Switching to fourth page')
144
- passagePage.steps.navigateToNextPage();
145
- passagePage.steps.verifyBoldTextAddedToBodyInPreviewTab();
146
- passagePage.steps.verifyPaginationText(4, 4);
147
- });
148
-
149
- it('When the user is on the last page, the previous button should be enabled and the next button should be disabled', () => {
150
- passagePage.steps.verifyPreviousPageButtonEnabled();
151
- passagePage.steps.verifyNextPageButtonDisabled();
152
- });
153
-
154
- it('When the user is on the intermediate page then the \'Previous\' and \'Next\' button should be in enabled state', () => {
155
- cy.log('Switching to third page')
156
- passagePage.steps.navigateToPreviousPage();
157
- passagePage.steps.verifyPreviousPageButtonEnabled();
158
- passagePage.steps.verifyNextPageButtonEnabled();
159
- });
160
-
161
- it('When the user hovers over the enabled \'Previous\' icon button then, \'Previous page\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Previous\' icon button', () => {
162
- passagePage.previousPageButton()
163
- .verifyTooltip('Previous Page');
164
- });
165
-
166
- it('When the user hovers over the enabled \'Next\' icon button then, \'Next page\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Next\' icon button', () => {
167
- passagePage.nextPageButton()
168
- .verifyTooltip('Next Page');
169
- });
170
-
171
- it('CSS of default and active state of next and previous buttons in Preview tab', { tags: 'css' }, () => {
172
- passagePage.steps.hoverOnNextPageButton()
173
- utilities.verifyCSS(passagePage.nextPageButton(), {
174
- 'border': `1px solid ${css.color.activeButtons}`,
175
- });
176
- utilities.verifyCSS(passagePage.nextPageButton().find('svg path'), {
177
- 'fill': css.color.nextPreviousButtonFill,
178
- });
179
- passagePage.steps.hoverAwayFromNextPageButton()
180
- utilities.verifyCSS(passagePage.nextPageButton(), {
181
- 'border': `1px solid ${css.color.secondaryBtnBorder}`,
182
- });
183
- passagePage.steps.hoverOnPreviousPageButton()
184
- utilities.verifyCSS(passagePage.previousPageButton(), {
185
- 'border': `1px solid ${css.color.activeButtons}`,
186
- });
187
- utilities.verifyCSS(passagePage.previousPageButton().find('svg path'), {
188
- 'fill': css.color.nextPreviousButtonFill,
189
- });
190
- passagePage.steps.hoverAwayFromPreviousPageButton();
191
- utilities.verifyCSS(passagePage.previousPageButton(), {
192
- 'border': `1px solid ${css.color.secondaryBtnBorder}`,
193
- });
194
- });
195
-
196
- //Failing due to https://redmine.zeuslearning.com/issues/537907
197
- it('CSS of \'Preview Tab\' when image, equation, text and link are added', { tags: 'css' }, () => {
198
- cy.log('Switching to first page')
199
- passagePage.steps.navigateToPreviousPage();
200
- passagePage.steps.navigateToPreviousPage();
201
- utilities.verifyCSS(passagePage.previewTabBody().find('img'), {
202
- 'color': css.color.text,
203
- 'font-size': css.fontSize.default,
204
- 'font-weight': css.fontWeight.regular
205
- });
206
- cy.log('Switching to second page')
207
- passagePage.steps.navigateToNextPage();
208
- utilities.verifyCSS(passagePage.previewTabBody(), {
209
- 'color': css.color.text,
210
- 'font-size': css.fontSize.default,
211
- 'font-weight': css.fontWeight.regular
212
- });
213
- cy.log('Switching to third page')
214
- passagePage.steps.navigateToNextPage();
215
- utilities.verifyCSS(passagePage.previewTabBody().find('a'), {
216
- 'color': css.color.linkText,
217
- 'font-size': css.fontSize.default,
218
- 'font-weight': css.fontWeight.regular
219
- });
220
- cy.log('Switching to fourth page')
221
- passagePage.steps.navigateToNextPage();
222
- utilities.verifyCSS(passagePage.previewTabBody(), {
223
- 'color': css.color.text,
224
- 'font-size': css.fontSize.default,
225
- 'font-weight': css.fontWeight.regular
226
- });
227
- cy.log('Switching back to third page')
228
- passagePage.steps.navigateToPreviousPage();
229
- });
230
-
231
- it('Accessibility of \'Preview tab\' when image, equation and link are added', { tags: 'a11y' }, () => {
232
- cy.log('Switching to fourth page')
233
- passagePage.steps.navigateToNextPage();
234
- cy.checkAccessibility(passagePage.previewWrapper());
235
- cy.log('Switching to third page')
236
- passagePage.steps.navigateToPreviousPage();
237
- cy.checkAccessibility(passagePage.previewWrapper());
238
- cy.log('Switching to second page')
239
- passagePage.steps.navigateToPreviousPage();
240
- cy.checkAccessibility(passagePage.previewWrapper());
241
- cy.log('Switching to first page')
242
- passagePage.steps.navigateToPreviousPage();
243
- cy.checkAccessibility(passagePage.previewWrapper());
244
- });
245
- });
246
- });