itemengine-cypress-automation 1.0.406 → 1.0.407

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.
@@ -56,6 +56,7 @@ describe('Edit item - Charts - Bar', () => {
56
56
  chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day');
57
57
  cy.wait(500);
58
58
  chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
59
+ utilities.scrollIntoView(chartsBarPage.specifyCorrectAnswerSectionWrapper());
59
60
  chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 6, range: 20, gridSnapping: 2 }, 'horizontal');
60
61
  chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
61
62
  utilities.verifyElementCount(chartsBarPage.bar(), 4);
@@ -41,7 +41,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
41
41
  chartsBarPage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
42
42
  chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 8, range: 20 }, 'horizontal');
43
43
  chartsBarPage.steps.switchToPreviewTab();
44
- break;
44
+ break;
45
45
  case 'Item view':
46
46
  cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
47
47
  break;
@@ -255,7 +255,11 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
255
255
 
256
256
  it('When user hovers on the enabled add bar button, then tooltip \'Add bar\' should be displayed', () => {
257
257
  chartsBarPage.previewTabToolsAddBarOrPointButton()
258
- .verifyTooltip('Add bar');
258
+ .should('be.visible')
259
+ .realHover();
260
+ chartsBarPage.tooltipText()
261
+ .should('be.visible')
262
+ .and('have.text', 'Add bar');
259
263
  });
260
264
 
261
265
  it('CSS of the tooltip text', { tags: 'css' }, () => {
@@ -373,8 +377,15 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
373
377
  });
374
378
 
375
379
  it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
380
+ chartsBarPage.previewTabToolsUndoButton()
381
+ .should('be.visible')
382
+ .realHover();
376
383
  chartsBarPage.previewTabToolsUndoButton()
377
384
  .verifyTooltip('Undo');
385
+
386
+ chartsBarPage.previewTabToolsResetButton()
387
+ .should('be.visible')
388
+ .realHover();
378
389
  chartsBarPage.previewTabToolsResetButton()
379
390
  .verifyTooltip('Reset');
380
391
  });
@@ -421,6 +432,9 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
421
432
  });
422
433
 
423
434
  it('When user hovers on the enabled redo button, then tooltip \'Redo\' should be displayed', () => {
435
+ chartsBarPage.previewTabToolsRedoButton()
436
+ .should('be.visible')
437
+ .realHover();
424
438
  chartsBarPage.previewTabToolsRedoButton()
425
439
  .verifyTooltip('Redo');
426
440
  });
@@ -55,6 +55,7 @@ describe('Edit item - Charts - Bar', () => {
55
55
  chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day');
56
56
  cy.wait(500);
57
57
  chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
58
+ utilities.scrollIntoView(chartsBarPage.specifyCorrectAnswerSectionWrapper());
58
59
  chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 6, range: 20, gridSnapping: 2 });
59
60
  chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
60
61
  utilities.verifyElementCount(chartsBarPage.bar(), 4);
@@ -265,6 +265,9 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
265
265
  });
266
266
 
267
267
  it('When user hovers on the enabled add bar button, then tooltip \'Add bar\' should be displayed', () => {
268
+ chartsBarPage.previewTabToolsAddBarOrPointButton()
269
+ .should('be.visible')
270
+ .realHover();
268
271
  chartsBarPage.previewTabToolsAddBarOrPointButton()
269
272
  .verifyTooltip('Add bar');
270
273
  });
@@ -384,9 +387,17 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
384
387
 
385
388
  it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
386
389
  chartsBarPage.previewTabToolsUndoButton()
387
- .verifyTooltip('Undo');
390
+ .should('be.visible')
391
+ .realHover();
392
+ chartsBarPage.tooltipText()
393
+ .should('be.visible')
394
+ .and('have.text', 'Undo');
388
395
  chartsBarPage.previewTabToolsResetButton()
389
- .verifyTooltip('Reset');
396
+ .should('be.visible')
397
+ .realHover();
398
+ chartsBarPage.tooltipText()
399
+ .should('be.visible')
400
+ .and('have.text', 'Reset');
390
401
  });
391
402
 
392
403
  it('CSS of the tooltip text', { tags: 'css' }, () => {
@@ -432,7 +443,11 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
432
443
 
433
444
  it('When user hovers on the enabled redo button, then tooltip \'Redo\' should be displayed', () => {
434
445
  chartsBarPage.previewTabToolsRedoButton()
435
- .verifyTooltip('Redo');
446
+ .should('be.visible')
447
+ .realHover();
448
+ chartsBarPage.tooltipText()
449
+ .should('be.visible')
450
+ .and('have.text', 'Redo');
436
451
  });
437
452
 
438
453
  it('CSS of the tooltip text', { tags: 'css' }, () => {
@@ -54,6 +54,7 @@ describe('Edit item - Charts -Line', () => {
54
54
  chartsLinePage.steps.editItem();
55
55
  chartsLinePage.steps.updateNewPointLabelInputFieldValue('Day');
56
56
  cy.wait(500);
57
+ chartsLinePage.steps.selectAddBarOrPointToolbarOption();
57
58
  chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
58
59
  chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 3, value: 6, range: 20, gridSnapping: 2 });
59
60
  chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
@@ -240,7 +240,11 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
240
240
 
241
241
  it('When user hovers on the enabled add point button, then tooltip \'Add point\' should be displayed', () => {
242
242
  chartsLinePage.previewTabToolsAddBarOrPointButton()
243
- .verifyTooltip('Add point');
243
+ .should('be.visible')
244
+ .realHover();
245
+ chartsLinePage.tooltipText()
246
+ .should('be.visible')
247
+ .and('have.text', 'Add point');
244
248
  });
245
249
 
246
250
  it('CSS of the tooltip text', { tags: 'css' }, () => {
@@ -30,9 +30,10 @@ describe('Preview tab contents for all views', () => {
30
30
  fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
31
31
  fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
32
32
  fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
33
+ fillInTheGapsOverImageDragAndDropPage.steps.checkFillImageToCanvasCheckbox();
33
34
  fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(1);
34
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
35
- fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
35
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(5);
36
+ fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(30);
36
37
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
37
38
  fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
38
39
  fillInTheGapsOverImageDragAndDropPage.steps.insertTextArea(20, 'This is a text area');
@@ -139,7 +139,8 @@ describe('Create item page - List ordering - Preview contents in all views', ()
139
139
  });
140
140
 
141
141
  } else {
142
- it(`The order of the options should be as per the correct answer order`, () => {
142
+ //Remove skip after https://weldnorthed.atlassian.net/browse/IEI-6170 is resolved.
143
+ it.skip(`The order of the options should be as per the correct answer order`, () => {
143
144
  listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
144
145
  listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
145
146
  listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
@@ -125,7 +125,8 @@ describe('Create item page - List ordering - Preview contents in all views', ()
125
125
  listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
126
126
  });
127
127
  } else {
128
- it('The order of the options should be as per the correct answer order', () => {
128
+ //Remove skip after https://weldnorthed.atlassian.net/browse/IEI-6170 is resolved.
129
+ it.skip('The order of the options should be as per the correct answer order', () => {
129
130
  listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
130
131
  listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
131
132
  listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
@@ -9,7 +9,6 @@ describe('Create item page - Text entry math: Symbols are equivalent evaluation
9
9
  cy.loginAs('admin');
10
10
  });
11
11
 
12
- //Failing due to https://redmine.zeuslearning.com/issues/562013
13
12
  describe('Evaluation methods: Symbols are equivalent', { tags: 'smoke' }, () => {
14
13
  abortEarlySetup();
15
14
  before(() => {
@@ -38,8 +37,7 @@ describe('Create item page - Text entry math: Symbols are equivalent evaluation
38
37
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
39
38
  });
40
39
 
41
- //Failing due to https://weldnorthed.atlassian.net/browse/IEI-4727
42
- it.skip('When the user enters a equation using decimals in \'Specify correct answer\' section and answers the question which yields the same result but using appropriate symbols then it should be treated as correct', () => {
40
+ it('When the user enters a equation using decimals in \'Specify correct answer\' section and answers the question which yields the same result but using appropriate symbols then it should be treated as correct', () => {
43
41
  textEntryMathPage.steps.resetQuestionPreview();
44
42
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
45
43
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'seven', 'multiply'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
@@ -1058,7 +1056,8 @@ describe('Create item page - Text entry math: Symbols are equivalent evaluation
1058
1056
 
1059
1057
  it('When the user enters a set of fractional and normal numbers separated by commas in \'Specify correct answer\' response field and then enters the same numbers in the same exact order then the answer should be treated as correct', () => {
1060
1058
  textEntryMathPage.steps.switchToEditTab();
1061
- textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1059
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1060
+ equationEditorFlyout.steps.clearAll();
1062
1061
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1063
1062
  equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '2']);
1064
1063
  equationEditorFlyout.steps.enterTextInPreviewInputField(',2,');
@@ -1137,8 +1136,7 @@ describe('Create item page - Text entry math: Symbols are equivalent evaluation
1137
1136
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1138
1137
  });
1139
1138
 
1140
- //Remove skip when https://weldnorthed.atlassian.net/browse/IEI-6351 is fixed
1141
- it.skip("When the user enters an equation in 'Specify correct answer' response field and then enters the same equation with terms in a different order, then the answer should be treated as correct when the 'Accept expressions in any order' is checked", () => {
1139
+ it("When the user enters an equation in 'Specify correct answer' response field and then enters the same equation with terms in a different order, then the answer should be treated as correct when the 'Accept expressions in any order' is checked", () => {
1142
1140
  textEntryMathPage.steps.switchToEditTab();
1143
1141
  textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1144
1142
  equationEditorFlyout.steps.clearAll();
@@ -72,6 +72,7 @@ const selectors = {
72
72
  transcriptFileUploadProgressBar: () => cy.get('.audio-player-form-progressbar'),
73
73
  transcriptInputFieldLabel: () => cy.get('.additional-settings-label').eq(1),
74
74
  deleteTranscriptButton: () => cy.get('[aria-label*="Delete"]'),
75
+ transcriptCKeditorInputField: () => cy.get('div[contenteditable="true"][aria-label="Transcript"][title="Transcript"]'),
75
76
  //Preview tab
76
77
  volumeControlButton: () => cy.get('.audio-player-volume-wrapper .audio-player-icon'),
77
78
  playbackPlayButton: () => cy.get('.audio-resource-preview-wrapper-without-print button[aria-label="Play"]'),
@@ -164,7 +165,7 @@ const steps = {
164
165
  },
165
166
 
166
167
  enterTextInTranscriptInputField: (text) => {
167
- audioPlayerPage.transcriptInputField()
168
+ audioPlayerPage.transcriptCKeditorInputField()
168
169
  .type(text)
169
170
  .blur();
170
171
  },
@@ -116,7 +116,8 @@ const steps = {
116
116
  .within(() => {
117
117
  utilities.verifyElementVisibilityState(chartsLinePage.pointLockIcon(), 'visible');
118
118
  });
119
- utilities.triggerMouseout(utilities.getNthElement(chartsLinePage.selectChartTypePoint().parent(), pointIndex));
119
+ utilities.hoverAwayFromElement();
120
+ cy.wait(300);
120
121
  },
121
122
 
122
123
  /**
@@ -293,7 +293,7 @@ const steps = {
293
293
  clickAndDropLabelInContainerSpecifyCorrectAnswer: (label) => {
294
294
  numberLineLabelPage.draggableLabelsSpecifyCorrectAnswer()
295
295
  .contains(label)
296
- .click();
296
+ .click({ force: true });
297
297
  numberLineLabelPage.labelContainerSpecifyCorrectAnswer()
298
298
  .click({ force: true });
299
299
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.406",
3
+ "version": "1.0.407",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {