itemengine-cypress-automation 1.0.295-applitools-2c3260f.0 → 1.0.295-applitools-4ef415b.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 (17) hide show
  1. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
  2. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
  3. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +0 -10
  4. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  5. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -10
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +69 -1
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
  8. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
  9. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -10
  12. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +1 -10
  13. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +1 -10
  14. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +1 -10
  15. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +3 -12
  16. package/cypress/pages/dragAndDropIntoCategoriesPage.js +13 -0
  17. package/package.json +1 -1
@@ -11,14 +11,6 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
- beforeEach(() => {
15
- cy.startApplitools();
16
- });
17
-
18
- afterEach(() => {
19
- cy.eyesClose();
20
- });
21
-
22
14
  if (!grepTags || !grepTags.includes('smoke')) {
23
15
  describe('Question preview modes: Student view and Grading view', () => {
24
16
  abortEarlySetup();
@@ -300,7 +292,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
300
292
  });
301
293
 
302
294
  //Fully correct
303
- it(`${view} - Charts bar: Horizontal - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view 'Your answer is correct' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed`, () => {
295
+ it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
304
296
  if (view === 'Grading view') {
305
297
  studentViewPage.steps.clearResponses();
306
298
  }
@@ -322,7 +314,6 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
322
314
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
323
315
  chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
324
316
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
325
- cy.eyesCheckWindow(`${view} - Fully correct case`);
326
317
  });
327
318
  });
328
319
  });
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
- beforeEach(() => {
17
- cy.startApplitools();
18
- });
19
-
20
- afterEach(() => {
21
- cy.eyesClose();
22
- });
23
-
24
16
  views.forEach((view) => {
25
17
  describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
26
18
  abortEarlySetup();
@@ -150,10 +142,9 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
150
142
 
151
143
  chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
152
144
 
153
- it(`${view} - Charts bar: Horizontal: User should be able to edit the label a bar`, () => {
145
+ it('Horizontal: User should be able to edit the label a bar', () => {
154
146
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, '2000');
155
147
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(3, '2004');
156
- cy.eyesCheckWindow(`${view} - Charts bar after editing the bar height and labels`);
157
148
  });
158
149
 
159
150
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -14,14 +14,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
- beforeEach(() => {
18
- cy.startApplitools();
19
- });
20
-
21
- afterEach(() => {
22
- cy.eyesClose();
23
- });
24
-
25
17
  if (views.includes('Grading view')) {
26
18
  describe('Grading view contents', { tags: 'smoke' }, () => {
27
19
  abortEarlySetup();
@@ -129,7 +121,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
129
121
  chartsBarPage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
130
122
  chartsBarPage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
131
123
  chartsBarPage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
132
- cy.eyesCheckWindow('Charts bar: Vertical - Grading view contents');
133
124
  });
134
125
 
135
126
  it('Points and the total score should be displayed', () => {
@@ -241,7 +232,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
241
232
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
242
233
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
243
234
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
244
- cy.eyesCheckWindow('Charts bar: Verical - Correct answer view contents')
245
235
  });
246
236
 
247
237
  it('The points alloted to the question should be displayed', () => {
@@ -13,14 +13,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
- beforeEach(() => {
17
- cy.startApplitools();
18
- });
19
-
20
- afterEach(() => {
21
- cy.eyesClose();
22
- });
23
-
24
16
  if (views.includes('Grading view')) {
25
17
  describe('Grading view contents', { tags: 'smoke' }, () => {
26
18
  abortEarlySetup();
@@ -114,7 +106,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
114
106
  utilities.verifyElementVisibilityState(chartsLinePage.correctAnswersLabel(), 'visible');
115
107
  });
116
108
 
117
- it('Charts Line - Correct answer should be displayed in the correct answer section', () => {
109
+ it('Correct answer should be displayed in the correct answer section', () => {
118
110
  chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 0, value: 2, range: 20 });
119
111
  chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 20 });
120
112
  chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 20 });
@@ -128,7 +120,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
128
120
  chartsLinePage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
129
121
  chartsLinePage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
130
122
  chartsLinePage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
131
- cy.eyesCheckWindow('Charts Line - Grading view contents');
132
123
  });
133
124
 
134
125
  it('Points and the total score should be displayed', () => {
@@ -229,7 +220,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
229
220
  utilities.verifyElementVisibilityState(chartsLinePage.previewTabToolBarWrapper(), 'notExist');
230
221
  });
231
222
 
232
- it('Charts Line - The correct answer set by user should be displayed in the correct answer view', () => {
223
+ it('The correct answer set by user should be displayed in the correct answer view', () => {
233
224
  chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 20 });
234
225
  chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 20 });
235
226
  chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 20 });
@@ -241,7 +232,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
241
232
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
242
233
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
243
234
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
244
- cy.eyesCheckWindow('Charts Line - Correct answer view contents');
245
235
  });
246
236
 
247
237
  it('The points alloted to the question should be displayed', () => {
@@ -12,14 +12,6 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
- beforeEach(() => {
16
- cy.startApplitools();
17
- });
18
-
19
- afterEach(() => {
20
- cy.eyesClose();
21
- });
22
-
23
15
  views.forEach((view) => {
24
16
  describe(`Preview tab contents - Edit line graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
25
17
  abortEarlySetup();
@@ -285,11 +277,10 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
285
277
  cy.checkAccessibility(chartsLinePage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
286
278
  });
287
279
 
288
- it(`${view}: Charts line - When user deletes a point, then that point should be deleted and the add point button should be enabled again`, () => {
280
+ it('When user deletes a point, then that point should be deleted and the add point button should be enabled again', () => {
289
281
  chartsLinePage.steps.deletePointInPreviewTab(3);
290
282
  utilities.verifyElementCount(chartsLinePage.previewTabPoint(), 3);
291
283
  utilities.verifyElementVisibilityState(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 4), 'notExist');
292
- cy.eyesCheckWindow(`${view} - Charts Line: Charts bar after adding and deleting points`);
293
284
  });
294
285
  });
295
286
  });
@@ -1,4 +1,5 @@
1
1
  import { dragAndDropIntoCategoriesPage, itemPreviewPage, studentViewPage } from "../../../pages";
2
+ import { equationEditorFlyout } from "../../../pages/components";
2
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
  const css = Cypress.env('css');
@@ -204,4 +205,71 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
204
205
  });
205
206
  });
206
207
  });
207
- });
208
+
209
+ //https://weldnorthed.atlassian.net/browse/IEI-4579
210
+ views.forEach((view) => {
211
+ describe.only('Equations in table layout', () => {
212
+ before(() => {
213
+ switch (view) {
214
+ case 'Question preview':
215
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
216
+ cy.barsPreLoaderWait();
217
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options in correct categories');
218
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(0, 'Bat');
219
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(1, 'Eagle');
220
+ dragAndDropIntoCategoriesPage.steps.modifyTableCellProperty(3, 'Text');
221
+ dragAndDropIntoCategoriesPage.steps.modifyTableCellProperty(6, 'Text');
222
+ dragAndDropIntoCategoriesPage.steps.modifyTableCellProperty(9, 'Text');
223
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
224
+ dragAndDropIntoCategoriesPage.steps.focusWithinCellText(3);
225
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
226
+ dragAndDropIntoCategoriesPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
227
+ dragAndDropIntoCategoriesPage.steps.focusWithinCellText(6);
228
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
229
+ equationEditorFlyout.steps.enterTextInPreviewInputField('This is a equation');
230
+ equationEditorFlyout.steps.clickOnOkButton();
231
+ dragAndDropIntoCategoriesPage.steps.focusWithinCellText(9);
232
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
233
+ equationEditorFlyout.steps.enterTextInPreviewInputField('This is a very long text to test the equation editor');
234
+ equationEditorFlyout.steps.clickOnOkButton();
235
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
236
+ break;
237
+ case 'Item view':
238
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
239
+ break;
240
+ case 'Item preview':
241
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
242
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
243
+ break;
244
+ case 'Student view':
245
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
246
+ break;
247
+ case 'Grading view':
248
+ cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
249
+ break;
250
+ case 'Correct answer view':
251
+ cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
252
+ break;
253
+ default:
254
+ throw new Error('Invalid view');
255
+ }
256
+ });
257
+
258
+ after(() => {
259
+ if (view === 'Question preview') {
260
+ dragAndDropIntoCategoriesPage.steps.clickOnSaveQuestionButton();
261
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
262
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
263
+ }
264
+ if (view === 'Student view') {
265
+ studentViewPage.steps.submitResponse();
266
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
267
+ }
268
+ });
269
+
270
+ it(`DND into categories ${view}: The equations should be correctly displayed in all views`, () => {
271
+ cy.eyesCheckWindow(`Equations in table layout: ${view}`);
272
+ });
273
+ });
274
+ });
275
+ });
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
- beforeEach(() => {
15
- cy.startApplitools();
16
- });
17
-
18
- afterEach(() => {
19
- cy.eyesClose();
20
- });
21
-
22
14
  if (!grepTags || !grepTags.includes('smoke')) {
23
15
  describe('Question preview modes: Student view and Grading view', () => {
24
16
  abortEarlySetup();
@@ -205,7 +197,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
205
197
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
206
198
  });
207
199
 
208
- it(`${view}: - FIG drag and drop - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
200
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
209
201
  if (view === 'Grading view') {
210
202
  studentViewPage.steps.clearResponses();
211
203
  };
@@ -226,7 +218,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
226
218
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
227
219
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
228
220
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
229
- cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question correctly`);
230
221
  });
231
222
  });
232
223
  });
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
16
16
  cy.loginAs('admin');
17
17
  });
18
18
 
19
- beforeEach(() => {
20
- cy.startApplitools();
21
- });
22
-
23
- afterEach(() => {
24
- cy.eyesClose();
25
- });
26
-
27
19
  if (!grepTags || !grepTags.includes('smoke')) {
28
20
  describe('Question preview modes: Student view and Grading view', () => {
29
21
  abortEarlySetup();
@@ -159,7 +151,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
159
151
  fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
160
152
  });
161
153
 
162
- it(`${view}: FIG Dropdown - When the user attempts the question correctly, then the user should be awarded with full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed`, () => {
154
+ it('When the user attempts the question correctly, then the user should be awarded with full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
163
155
  if (view === 'Grading view') {
164
156
  studentViewPage.steps.clearResponses();
165
157
  };
@@ -178,7 +170,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
178
170
  fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
179
171
  fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
180
172
  fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
181
- cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting the question correctly`);
182
173
  });
183
174
  });
184
175
  });
@@ -12,14 +12,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
- beforeEach(() => {
16
- cy.startApplitools();
17
- });
18
-
19
- afterEach(() => {
20
- cy.eyesClose();
21
- });
22
-
23
15
  if (!grepTags || !grepTags.includes('smoke')) {
24
16
  describe('Question preview modes: Student view and Grading view', () => {
25
17
  abortEarlySetup();
@@ -191,7 +183,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
191
183
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
192
184
  });
193
185
 
194
- it(`${view}: FIG over image Drag and drop - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
186
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
195
187
  if (view === 'Grading view') {
196
188
  studentViewPage.steps.clearResponses();
197
189
  };
@@ -213,7 +205,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
213
205
  //Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
214
206
  //fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
215
207
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
216
- cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
217
208
  });
218
209
  });
219
210
  });
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
16
16
  cy.loginAs('admin');
17
17
  });
18
18
 
19
- beforeEach(() => {
20
- cy.startApplitools();
21
- });
22
-
23
- afterEach(() => {
24
- cy.eyesClose();
25
- });
26
-
27
19
  if (!grepTags || !grepTags.includes('smoke')) {
28
20
  describe('Question preview modes: Student view and Grading view', () => {
29
21
  abortEarlySetup();
@@ -168,7 +160,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
168
160
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
169
161
  });
170
162
 
171
- it(`${view}: FIG over image Dropdown - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
163
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
172
164
  if (view === 'Grading view') {
173
165
  studentViewPage.steps.clearResponses();
174
166
  };
@@ -188,7 +180,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
188
180
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
189
181
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
190
182
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
191
- cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
192
183
  });
193
184
  });
194
185
  });
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
- beforeEach(() => {
15
- cy.startApplitools();
16
- });
17
-
18
- afterEach(() => {
19
- cy.eyesClose();
20
- });
21
-
22
14
  if (!grepTags || !grepTags.includes('smoke')) {
23
15
  describe('Question preview modes: Student view and Grading view', () => {
24
16
  abortEarlySetup();
@@ -162,7 +154,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
162
154
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
163
155
  });
164
156
 
165
- it(`${view}: FIG over image Text - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
157
+ it('FIG over image Text - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
166
158
  if (view === 'Grading view') {
167
159
  studentViewPage.steps.clearResponses();
168
160
  };
@@ -184,7 +176,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
184
176
  fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
185
177
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
186
178
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
187
- cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
188
179
  });
189
180
  });
190
181
  });
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
- beforeEach(() => {
15
- cy.startApplitools();
16
- });
17
-
18
- afterEach(() => {
19
- cy.eyesClose();
20
- });
21
-
22
14
  if (!grepTags || !grepTags.includes('smoke')) {
23
15
  describe('Question preview modes: Student view and Grading view', () => {
24
16
  abortEarlySetup();
@@ -154,7 +146,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
154
146
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
155
147
  });
156
148
 
157
- it(`${view}: FIG text - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
149
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
158
150
  if (view === 'Grading view') {
159
151
  studentViewPage.steps.clearResponses();
160
152
  };
@@ -175,7 +167,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
175
167
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
176
168
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
177
169
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
178
- cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Attempting the question correctly`);
179
170
  });
180
171
  });
181
172
  });
@@ -14,14 +14,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
- beforeEach(() => {
18
- cy.startApplitools();
19
- });
20
-
21
- afterEach(() => {
22
- cy.eyesClose();
23
- });
24
-
25
17
  views.forEach((view) => {
26
18
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
27
19
  abortEarlySetup();
@@ -85,10 +77,9 @@ describe('Create item page - List ordering - Preview contents in all views', ()
85
77
  }
86
78
  });
87
79
 
88
- it(`${view} - List ordering: Horizontal Question instructions should be visible`, () => {
80
+ it('Horizontal Question instructions should be visible', () => {
89
81
  utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
90
82
  utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
91
- cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Default question view`);
92
83
  });
93
84
 
94
85
  if (view !== 'Grading view' && view !== 'Correct answer view') {
@@ -14,14 +14,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
- beforeEach(() => {
18
- cy.startApplitools();
19
- });
20
-
21
- afterEach(() => {
22
- cy.eyesClose();
23
- });
24
-
25
17
  if (!grepTags || !grepTags.includes('smoke')) {
26
18
  describe('Question preview modes: Student view and Grading view', () => {
27
19
  abortEarlySetup();
@@ -178,7 +170,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
178
170
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
179
171
  });
180
172
 
181
- it(`${view}: List ordering:Reorder as a separate list - When the user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
173
+ it('When the user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
182
174
  if (view === 'Grading view') {
183
175
  studentViewPage.steps.clearResponses();
184
176
  };
@@ -203,7 +195,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
203
195
  listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
204
196
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
205
197
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
206
- cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question correctly`);
207
198
  });
208
199
  });
209
200
  });
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
- beforeEach(() => {
17
- cy.startApplitools();
18
- });
19
-
20
- afterEach(() => {
21
- cy.eyesClose();
22
- });
23
-
24
16
  views.forEach((view) => {
25
17
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
26
18
  abortEarlySetup();
@@ -79,13 +71,13 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
79
71
  utilities.verifyElementVisibilityState(chartsDotPlotPage.previewTabXAxisLabelButton(), 'visible');
80
72
  });
81
73
 
82
- it(`${view} - Charts Dot - The number line axis should be displayed with labels from 1 to 6 with 20 divisions`, () => {
74
+ it('The number line axis should be displayed with labels from 1 to 6 with 20 divisions', () => {
83
75
  utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisPreviewTab(), 'exist');
84
76
  chartsDotPlotPage.steps.verifyDivisionsOnNumberLineAxisPreviewTab({ min: 1, max: 6, interval: 0.25 });
85
77
  chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisPreviewTab(1, 6, 4);
86
78
  });
87
79
 
88
- it(`${view} - Charts Dot - User should be able to edit the X axis labels in preview tab`, () => {
80
+ it('User should be able to edit the X axis labels in preview tab', () => {
89
81
  chartsDotPlotPage.steps.editXAxisLabelInPreviewTab('Numbers of days');
90
82
  utilities.verifyInnerText(chartsDotPlotPage.previewTabXAxisLabelButton(), 'Numbers of days');
91
83
  });
@@ -172,7 +164,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
172
164
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
173
165
  });
174
166
 
175
- it(`${view} - Charts Dot - When user removes dots from dot column having 10 dots then \'Add dot\' button should be in enabled state`, () => {
167
+ it('When user removes dots from dot column having 10 dots then \'Add dot\' button should be in enabled state', () => {
176
168
  //using minus button
177
169
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(9, { point: 5, min: 1, interval: 0.25 });
178
170
  chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 5, min: 1, interval: 0.25 });
@@ -182,7 +174,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
182
174
  chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
183
175
  utilities.verifyElementNotDisabled(chartsDotPlotPage.addButtonPreviewTab());
184
176
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
185
- cy.eyesCheckWindow(`${view} - Charts Dot - Charts Dot: After Adding/Removing dots`);
186
177
  });
187
178
 
188
179
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -409,6 +409,19 @@ const steps = {
409
409
  });
410
410
  },
411
411
 
412
+ /**
413
+ * focus in the drag-and-drop into categories table.
414
+ * @param {number} cellIndex - The index of the cell to edit.
415
+ */
416
+ focusWithinCellText: (cellIndex) => {
417
+ dragAndDropIntoCategoriesPage.tableCellContainer()
418
+ .eq(cellIndex)
419
+ .within(() => {
420
+ dragAndDropIntoCategoriesPage.cellTextTextArea()
421
+ .focus();
422
+ });
423
+ },
424
+
412
425
  /**
413
426
  * Verifies the empty state of a dropzone cell in the Specify Correct Answer section.
414
427
  * @param {number} cellIndex - The index of the dropzone cell to verify.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.295-applitools-2c3260f.0",
3
+ "version": "1.0.295-applitools-4ef415b.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {