itemengine-cypress-automation 1.0.575 → 1.0.576-IEI-7079-7fbe573.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 (34) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +205 -0
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +205 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +248 -1
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +247 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +223 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +175 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +191 -0
  11. package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -24
  12. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
  21. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
  22. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
  23. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
  24. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
  25. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +164 -14
  26. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
  27. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +26 -16
  28. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +25 -15
  29. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
  30. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +24 -13
  31. package/cypress/pages/chartsBarPage.js +44 -1
  32. package/cypress/pages/chartsDotPlotPage.js +99 -1
  33. package/cypress/pages/chartsLinePage.js +48 -1
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import utilities from "../support/helpers/utilities";
2
- import { additionalSettingsAccessibilitySectionComponent, additionalSettingsPanel, autoScoredScoringPreviewTab, autoScoredScoringSectionMultiResponseType, autoScoredSpecifyCorrectAnswerSection, autoScoredStudentViewSettings, barAndLineChartComponent, chartsCommonComponent, commonComponents, correctIncorrectAnswerLabelComponent, createQuestionBasePage, questionInstructionsComponent, resetPopupComponent, scoringSectionBaseEditTab, layoutSectionComponent } from "./components";
2
+ import { additionalSettingsAccessibilitySectionComponent, additionalSettingsPanel, autoScoredScoringPreviewTab, autoScoredScoringSectionMultiResponseType, autoScoredSpecifyCorrectAnswerSection, autoScoredStudentViewSettings, barAndLineChartComponent, chartsCommonComponent, commonComponents, correctIncorrectAnswerLabelComponent, createQuestionBasePage, questionInstructionsComponent, resetPopupComponent, scoringSectionBaseEditTab, layoutSectionComponent, showAlternativeAnswersComponent } from "./components";
3
3
  import { dialogBoxBase } from "./dialogBoxBase";
4
4
  import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
5
5
  import { createItemPage } from "./createItemPage";
@@ -17,6 +17,7 @@ const selectors = {
17
17
  ...chartsCommonComponent,
18
18
  ...layoutSectionComponent,
19
19
  ...autoScoredSpecifyCorrectAnswerSection,
20
+ ...showAlternativeAnswersComponent,
20
21
  point: () => cy.get('.ngie-chart-point'),
21
22
  selectChartTypePoint: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] .ngie-chart-point'),
22
23
  pointLockIcon: () => cy.get('[class*="ChartGridstyle__LineLockIconWrapper"]'),
@@ -54,6 +55,7 @@ const steps = {
54
55
  ...commonComponents.steps,
55
56
  ...createItemPage.steps,
56
57
  ...layoutSectionComponent.steps,
58
+ ...showAlternativeAnswersComponent.steps,
57
59
 
58
60
  /**
59
61
  * @description set the point height/value in the select chart type section chart
@@ -345,6 +347,23 @@ const steps = {
345
347
  });
346
348
  },
347
349
 
350
+ /**
351
+ * Verify the point value in correct answer section tab
352
+ * @param {Object} pointProperties - The properties of the point
353
+ * @param {number} pointProperties.pointIndex index of the point
354
+ * @param {number} pointProperties.value Height of the point as per the axis
355
+ * @param {number} pointProperties.range Maximum value of the axis on which point value is determined
356
+ */
357
+ verifyPointValueInAlternativeAnswerSection: ({ pointIndex, value, range }) => {
358
+ let pointValue = value / range
359
+ chartsLinePage.previewTabChartWrapper()
360
+ .eq(2)
361
+ .within(() => {
362
+ utilities.getNthElement(chartsLinePage.point(), pointIndex)
363
+ .should('have.attr', 'height', pointValue);
364
+ });
365
+ },
366
+
348
367
  /**
349
368
  * Verify the correct/incorrect icon of point in correct answer section
350
369
  * @param {number} pointIndex index of the point
@@ -379,6 +398,17 @@ const steps = {
379
398
  });
380
399
  },
381
400
 
401
+ verifyPointCorrectIncorrectIconNotExistsInAlternativeAnswerSection: (pointIndex) => {
402
+ chartsLinePage.previewTabChartWrapper()
403
+ .eq(2)
404
+ .within(() => {
405
+ utilities.getNthElement(chartsLinePage.point(), pointIndex)
406
+ .within(() => {
407
+ utilities.verifyElementVisibilityState(chartsLinePage.tickIconWrapper(), 'notExist');
408
+ });
409
+ });
410
+ },
411
+
382
412
  /**
383
413
  * Verify the correct/incorrect icon of point in preview tab
384
414
  * @param {number} pointIndex index of the point
@@ -431,6 +461,12 @@ const steps = {
431
461
  chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInCorrectAnswerSection(pointIndex);
432
462
  },
433
463
 
464
+ verifyLockedPointInAlternativeAnswerSection: ({ pointIndex, value, range }) => {
465
+ chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: pointIndex, value: value, range: range });
466
+ chartsLinePage.steps.verifyPointIsLockedInAlternativeAnswerSection(pointIndex);
467
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInAlternativeAnswerSection(pointIndex);
468
+ },
469
+
434
470
  /**
435
471
  * Verify the point is locked in correct answer section
436
472
  * @param {number} pointIndex index of the point
@@ -446,6 +482,17 @@ const steps = {
446
482
  });
447
483
  },
448
484
 
485
+ verifyPointIsLockedInAlternativeAnswerSection: (pointIndex) => {
486
+ chartsLinePage.previewTabChartWrapper()
487
+ .eq(2)
488
+ .within(() => {
489
+ utilities.getNthElement(chartsLinePage.point(), pointIndex)
490
+ .within(() => {
491
+ utilities.verifyElementVisibilityState(chartsLinePage.pointLockIcon(), 'visible');
492
+ });
493
+ });
494
+ },
495
+
449
496
 
450
497
  /**
451
498
  * verify the displayed penalty points for each incorrect point
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.575",
3
+ "version": "1.0.576-IEI-7079-7fbe573.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {