itemengine-cypress-automation 1.0.576-IEI-7071-main-98ffd41.0 → 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.
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +248 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +175 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +191 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +164 -14
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +26 -16
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +25 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +24 -13
- package/cypress/pages/chartsBarPage.js +44 -1
- package/cypress/pages/chartsDotPlotPage.js +99 -1
- package/cypress/pages/chartsLinePage.js +48 -1
- 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
|