itemengine-cypress-automation 1.0.312-addedDeployFiles-90a1897.0 → 1.0.312-fixes14thFeb-5d62c62.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 (29) hide show
  1. package/Dockerfile +0 -10
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -0
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +95 -75
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +8 -0
  6. package/cypress/e2e/applitools.config.js +1 -1
  7. package/cypress/pages/components/optionsWrapperComponent.js +4 -0
  8. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  9. package/package.json +2 -12
  10. package/deploy/essayResponseBasicQuestion/deploy.yaml +0 -30
  11. package/deploy/essayResponseBasicQuestion/run.sh +0 -7
  12. package/deploy/essayResponseMathQuestion/deploy.yaml +0 -30
  13. package/deploy/essayResponseMathQuestion/run.sh +0 -7
  14. package/deploy/listOrderingDropdownQuestion/deploy.yaml +0 -30
  15. package/deploy/listOrderingDropdownQuestion/run.sh +0 -7
  16. package/deploy/listOrderingQuestion/deploy.yaml +0 -30
  17. package/deploy/listOrderingQuestion/run.sh +0 -7
  18. package/deploy/listOrderingReorderQuestion/deploy.yaml +0 -30
  19. package/deploy/listOrderingReorderQuestion/run.sh +0 -7
  20. package/deploy/matchingDropdownQuestion/deploy.yaml +0 -30
  21. package/deploy/matchingDropdownQuestion/run.sh +0 -7
  22. package/deploy/matchingQuestion/deploy.yaml +0 -30
  23. package/deploy/matchingQuestion/run.sh +0 -7
  24. package/deploy/numberLineLabelQuestion/deploy.yaml +0 -30
  25. package/deploy/numberLineLabelQuestion/run.sh +0 -7
  26. package/deploy/numberLineQuestion/deploy.yaml +0 -30
  27. package/deploy/numberLineQuestion/run.sh +0 -7
  28. package/deploy/textSelectionQuestion/deploy.yaml +0 -30
  29. package/deploy/textSelectionQuestion/run.sh +0 -7
package/Dockerfile CHANGED
@@ -25,16 +25,6 @@ RUN chmod +x ./deploy/multipleSelectionQuestion/run.sh
25
25
  RUN chmod +x ./deploy/multipleSelectionGridQuestion/run.sh
26
26
  RUN chmod +x ./deploy/singleSelectionQuestion/run.sh
27
27
  RUN chmod +x ./deploy/singleSelectionGridQuestion/run.sh
28
- RUN chmod +x ./deploy/textSelectionQuestion/run.sh
29
- RUN chmod +x ./deploy/numberLineLabelQuestion/run.sh
30
- RUN chmod +x ./deploy/numberLineQuestion/run.sh
31
- RUN chmod +x ./deploy/matchingQuestion/run.sh
32
- RUN chmod +x ./deploy/matchingDropdownQuestion/run.sh
33
- RUN chmod +x ./deploy/listOrderingDropdownQuestion/run.sh
34
- RUN chmod +x ./deploy/listOrderingQuestion/run.sh
35
- RUN chmod +x ./deploy/listOrderingReorderQuestion/run.sh
36
- RUN chmod +x ./deploy/essayResponseBasicQuestion/run.sh
37
- RUN chmod +x ./deploy/essayResponseMathQuestion/run.sh
38
28
 
39
29
  RUN npm ci
40
30
 
@@ -291,7 +291,9 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
291
291
  };
292
292
  });
293
293
  });
294
+ });
294
295
 
296
+ views.forEach((view) => {
295
297
  //https://weldnorthed.atlassian.net/browse/IEI-4998
296
298
  describe(`${view}: Drag and drop into categories - Per dropzone`, { tags: 'smoke' }, () => {
297
299
  abortEarlySetup();
@@ -38,6 +38,7 @@ describe('Create Item page - Drag and drop into categories: Pagination cases - E
38
38
  cy.log('Pre-step: Setting number of columns to 15');
39
39
  dragAndDropIntoCategoriesPage.steps.addInputToColumnInputStepper(15);
40
40
  dragAndDropIntoCategoriesPage.steps.clickOnRightArrowNavigationButtonSpecifyCorrectAnswerSection();
41
+ dragAndDropIntoCategoriesPage.steps.clickOnRightArrowNavigationButtonSpecifyCorrectAnswerSection();
41
42
  dragAndDropIntoCategoriesPage.steps.verifyColumnIsVisibleInTableSpecifyCorrectAnswer(7);
42
43
  utilities.verifyElementNotDisabled(dragAndDropIntoCategoriesPage.leftArrowNavigationButtonSpecifyCorrectAnswerSection());
43
44
  utilities.verifyElementNotDisabled(dragAndDropIntoCategoriesPage.rightArrowNavigationButtonSpecifyCorrectAnswerSection());
@@ -2,6 +2,7 @@ import { dragAndDropIntoCategoriesPage, itemPreviewPage, studentViewPage } from
2
2
  import { equationEditorFlyout } from "../../../pages/components";
3
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../support/helpers/utilities";
5
+ import * as applitoolsConfig from "../../applitools.config";
5
6
  const css = Cypress.env('css');
6
7
  let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
7
8
  const views = utilities.getViews(previewContentViews);
@@ -92,20 +93,37 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
92
93
  cy.eyesCheckWindow(`DND into categories: ${view} Default question state`);
93
94
  });
94
95
 
95
- it(`The category table as set by the user should be displayed in the ${view}`, () => {
96
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(0, 'None');
97
- utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 0), '');
98
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(1, 'Heading');
99
- dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(1, 'Mammal');
100
- dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(2, 'Not mammal');
101
- dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(3, 'Can fly');
102
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(4, 'Dropzone');
103
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(6, 'Subheading');
104
- dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(6, 'Can walk');
105
- utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 6), 'Can walk');
106
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Text');
107
- dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(9, 'Can swim');
108
- });
96
+ if (view !== 'Student view') {
97
+ it(`The category table as set by the user should be displayed in the ${view}`, () => {
98
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(0, 'None');
99
+ utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 0), '');
100
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(1, 'Heading');
101
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(1, 'Mammal');
102
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(2, 'Not mammal');
103
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(3, 'Can fly');
104
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(4, 'Dropzone');
105
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(6, 'Subheading');
106
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(6, 'Can walk');
107
+ utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 6), 'Can walk');
108
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Text');
109
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(9, 'Can swim');
110
+ });
111
+ } else {
112
+ it(`The category table as set by the user should be displayed in the ${view}`, () => {
113
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyStudentView(0, 'None');
114
+ utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 0), '');
115
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyStudentView(1, 'Heading');
116
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(1, 'Mammal');
117
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(2, 'Not mammal');
118
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(3, 'Can fly');
119
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyStudentView(4, 'Dropzone');
120
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyStudentView(6, 'Subheading');
121
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(6, 'Can walk');
122
+ utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 6), 'Can walk');
123
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyStudentView(9, 'Text');
124
+ dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(9, 'Can swim');
125
+ });
126
+ }
109
127
 
110
128
  if (view !== 'Grading view' && view !== 'Correct answer view') {
111
129
  it(`When the user has added image, equation, bold text and link to the options input fields, then they should be displayed in the options container in ${view}`, () => {
@@ -207,69 +225,71 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
207
225
  });
208
226
 
209
227
  //https://weldnorthed.atlassian.net/browse/IEI-4579
210
- views.forEach((view) => {
211
- describe('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
- });
228
+ if (!applitoolsConfig.APPLITOOLS_IS_DISABLED) {
229
+ views.forEach((view) => {
230
+ describe('Equations in table layout', () => {
231
+ before(() => {
232
+ switch (view) {
233
+ case 'Question preview':
234
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
235
+ cy.barsPreLoaderWait();
236
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options in correct categories');
237
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(0, 'Bat');
238
+ dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(1, 'Eagle');
239
+ dragAndDropIntoCategoriesPage.steps.modifyTableCellProperty(3, 'Text');
240
+ dragAndDropIntoCategoriesPage.steps.modifyTableCellProperty(6, 'Text');
241
+ dragAndDropIntoCategoriesPage.steps.modifyTableCellProperty(9, 'Text');
242
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
243
+ dragAndDropIntoCategoriesPage.steps.focusWithinCellText(3);
244
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
245
+ dragAndDropIntoCategoriesPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
246
+ dragAndDropIntoCategoriesPage.steps.focusWithinCellText(6);
247
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
248
+ equationEditorFlyout.steps.enterTextInPreviewInputField('This is a equation');
249
+ equationEditorFlyout.steps.clickOnOkButton();
250
+ dragAndDropIntoCategoriesPage.steps.focusWithinCellText(9);
251
+ dragAndDropIntoCategoriesPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
252
+ equationEditorFlyout.steps.enterTextInPreviewInputField('This is a very long text to test the equation editor');
253
+ equationEditorFlyout.steps.clickOnOkButton();
254
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
255
+ break;
256
+ case 'Item view':
257
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
258
+ break;
259
+ case 'Item preview':
260
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
261
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
262
+ break;
263
+ case 'Student view':
264
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
265
+ break;
266
+ case 'Grading view':
267
+ cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
268
+ break;
269
+ case 'Correct answer view':
270
+ cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
271
+ break;
272
+ default:
273
+ throw new Error('Invalid view');
274
+ }
275
+ });
257
276
 
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
- });
277
+ after(() => {
278
+ if (view === 'Question preview') {
279
+ dragAndDropIntoCategoriesPage.steps.clickOnSaveQuestionButton();
280
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
281
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
282
+ }
283
+ if (view === 'Student view') {
284
+ studentViewPage.steps.submitResponse();
285
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
286
+ }
287
+ });
269
288
 
270
- it(`DND into categories ${view}: The equations should be correctly displayed in all views`, () => {
271
- cy.eyesCheckWindow(`Equations in table layout: ${view}`);
289
+ it(`DND into categories ${view}: The equations should be correctly displayed in all views`, () => {
290
+ cy.eyesCheckWindow(`Equations in table layout: ${view}`);
291
+ });
272
292
  });
273
293
  });
274
- });
294
+ }
275
295
  });
@@ -15,6 +15,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
15
15
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
16
16
  cy.barsPreLoaderWait();
17
17
  dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
18
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
18
19
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
19
20
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
20
21
  dragAndDropIntoCategoriesPage.steps.allotPoints(5);
@@ -52,6 +53,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
52
53
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
53
54
  cy.barsPreLoaderWait();
54
55
  dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
56
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
55
57
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
56
58
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
57
59
  dragAndDropIntoCategoriesPage.steps.allotPoints(5);
@@ -108,6 +110,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
108
110
  before(() => {
109
111
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
110
112
  cy.barsPreLoaderWait();
113
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
111
114
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
112
115
  });
113
116
 
@@ -145,6 +148,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
145
148
  before(() => {
146
149
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
147
150
  cy.barsPreLoaderWait();
151
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
148
152
  dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
149
153
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
150
154
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
@@ -194,6 +198,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
194
198
  before(() => {
195
199
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
196
200
  cy.barsPreLoaderWait();
201
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
197
202
  dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
198
203
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
199
204
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
@@ -233,6 +238,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
233
238
  before(() => {
234
239
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
235
240
  cy.barsPreLoaderWait();
241
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
236
242
  dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
237
243
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
238
244
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale',]);
@@ -327,6 +333,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
327
333
  before(() => {
328
334
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
329
335
  cy.barsPreLoaderWait();
336
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
330
337
  dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
331
338
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle']);
332
339
  dragAndDropIntoCategoriesPage.steps.allotPoints(5);
@@ -427,6 +434,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
427
434
  before(() => {
428
435
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
429
436
  cy.barsPreLoaderWait();
437
+ dragAndDropIntoCategoriesPage.steps.verifyOptionCount(2);
430
438
  dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(3);
431
439
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Ostrich', 'Whale']);
432
440
  dragAndDropIntoCategoriesPage.steps.allotPoints(5);
@@ -8,5 +8,5 @@ module.exports = {
8
8
  // { width: 1024, height: 1366, name: 'safari' }
9
9
  ],
10
10
  //Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
11
- APPLITOOLS_IS_DISABLED: false
11
+ APPLITOOLS_IS_DISABLED: true
12
12
  };
@@ -298,6 +298,10 @@ const steps = {
298
298
  utilities.verifyTextContent(utilities.getNthElement(optionsWrapperComponent.optionsInputField(), optionIndex), option);
299
299
  });
300
300
  });
301
+ },
302
+
303
+ verifyOptionCount: (count) => {
304
+ utilities.verifyElementCount(optionsWrapperComponent.optionsInputField(), count);
301
305
  }
302
306
  }
303
307
 
@@ -2003,7 +2003,7 @@ const steps = {
2003
2003
  dragAndDropIntoCategoriesPage.previewTabQuestionWrapper()
2004
2004
  .within(() => {
2005
2005
  dragAndDropIntoCategoriesPage.dragHandle()
2006
- .should('not.exist');
2006
+ .should('not.be.visible');
2007
2007
  });
2008
2008
  break;
2009
2009
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.312-addedDeployFiles-90a1897.0",
3
+ "version": "1.0.312-fixes14thFeb-5d62c62.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,17 +27,7 @@
27
27
  "spinnaker:graphing": "node scripts/questions.mjs --env theme=ilc,questionType=Graphing,grepTags=-css+-a11y",
28
28
  "spinnaker:imageHighlight": "node scripts/questions.mjs --env theme=ilc,questionType=ImageHighlight,grepTags=-css+-a11y",
29
29
  "spinnaker:multipleSelectionGrid": "node scripts/questions.mjs --env theme=ilc,questionType=MultipleSelectionGridNew,grepTags=-css+-a11y",
30
- "spinnaker:singleSelectionGrid": "node scripts/questions.mjs --env theme=ilc,questionType=SingleSelectionGridNew,grepTags=-css+-a11y",
31
- "spinnaker:textSelection": "node scripts/questions.mjs --env theme=ilc,questionType=TextSelection,grepTags=-css+-a11y",
32
- "spinnaker:numberLineLabel": "node scripts/questions.mjs --env theme=ilc,questionType=NumberLineLabel,grepTags=-css+-a11y",
33
- "spinnaker:numberLine": "node scripts/questions.mjs --env theme=ilc,questionType=NumberLine,grepTags=-css+-a11y",
34
- "spinnaker:matching": "node scripts/questions.mjs --env theme=ilc,questionType=Matching,grepTags=-css+-a11y",
35
- "spinnaker:matchingDropdown": "node scripts/questions.mjs --env theme=ilc,questionType=MatchingDropdown,grepTags=-css+-a11y",
36
- "spinnaker:listOrderingDropdown": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingDropdown,grepTags=-css+-a11y",
37
- "spinnaker:listOrdering": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingNew,grepTags=-css+-a11y",
38
- "spinnaker:listOrderingReorder": "node scripts/questions.mjs --env theme=ilc,questionType=ListOrderingReorderAsASeperateList,grepTags=-css+-a11y",
39
- "spinnaker:essayResponseBasic": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponseBasic,grepTags=-css+-a11y",
40
- "spinnaker:essayResponseMath": "node scripts/questions.mjs --env theme=ilc,questionType=EssayResponseMath,grepTags=-css+-a11y"
30
+ "spinnaker:singleSelectionGrid": "node scripts/questions.mjs --env theme=ilc,questionType=SingleSelectionGridNew,grepTags=-css+-a11y"
41
31
  },
42
32
  "repository": {
43
33
  "type": "git",
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-essay-response-basic
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/essayResponseBasicQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Essay Response basic question test"
6
-
7
- npm run spinnaker:essayResponseBasic
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-essay-response-math
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 2
14
- completions: 2
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/essayResponseMathQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Essay Response math question test"
6
-
7
- npm run spinnaker:essayResponseMath
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-list-ordering-dropdown
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/listOrderingDropdownQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running List ordering dropdown question test"
6
-
7
- npm run spinnaker:listOrderingDropdown
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-list-ordering
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/listOrderingQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running List Ordering question test"
6
-
7
- npm run spinnaker:listOrdering
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-list-ordering-reorder
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/listOrderingReorderQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running List ordering reorder question test"
6
-
7
- npm run spinnaker:listOrderingReorder
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-matching-dropdown
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/matchingDropdownQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Matching dropdown question test"
6
-
7
- npm run spinnaker:matchingDropdown
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-matching
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/matchingQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Matching question test"
6
-
7
- npm run spinnaker:matching
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-number-line-label
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/numberLineLabelQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Number line label question test"
6
-
7
- npm run spinnaker:numberLineLabel
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-number-line
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/numberLineQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Number line question test"
6
-
7
- npm run spinnaker:numberLine
@@ -1,30 +0,0 @@
1
- global:
2
- team: itemengine
3
- name: item-engine-ui-text-selection
4
- type: integration_test
5
-
6
- variables:
7
- START_TIME: "$(date +%s)"
8
-
9
- deployment:
10
- job:
11
- backoffLimit: 25
12
- activeDeadlineSeconds: 7200
13
- parallelism: 7
14
- completions: 7
15
-
16
- image:
17
- cmd: /ie-e2e/deploy/textSelectionQuestion/run.sh
18
-
19
- resources:
20
- limits:
21
- memory: 8446Mi
22
- cpu: 5000m
23
- requests:
24
- memory: 4096Mi
25
- cpu: 2000m
26
-
27
- env:
28
- instance:
29
- - name: START_TIME
30
- value: "${{ variables.START_TIME }}"
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
- env=$STAGE
3
- echo Environment to test: $env
4
- echo START_TIME: $START_TIME
5
- echo "Running Text selection question test"
6
-
7
- npm run spinnaker:textSelection