itemengine-cypress-automation 1.0.476-IEI-3170-new-4a2f82a.0 → 1.0.476
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/NumberLine/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/pages/components/numberLineCommonComponent.js +25 -11
- package/package.json +1 -1
@@ -704,7 +704,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
704
704
|
numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
|
705
705
|
numberLinePage.steps.expandScoringTypeDropdown();
|
706
706
|
numberLinePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
707
|
-
numberLinePage.steps.
|
707
|
+
numberLinePage.steps.allotPointsForManualScoring(20);
|
708
708
|
numberLinePage.steps.switchToPreviewTab();
|
709
709
|
break;
|
710
710
|
case 'Item preview':
|
package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js
CHANGED
@@ -709,7 +709,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
709
709
|
numberLinePage.steps.selectOrientationToggleButton('Upright');
|
710
710
|
numberLinePage.steps.expandScoringTypeDropdown();
|
711
711
|
numberLinePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
712
|
-
numberLinePage.steps.
|
712
|
+
numberLinePage.steps.allotPointsForManualScoring(20);
|
713
713
|
numberLinePage.steps.switchToPreviewTab();
|
714
714
|
break;
|
715
715
|
case 'Item preview':
|
@@ -247,7 +247,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
247
247
|
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3', 'Label 4']);
|
248
248
|
numberLineLabelPage.steps.expandScoringTypeDropdown();
|
249
249
|
numberLineLabelPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
250
|
-
numberLineLabelPage.steps.
|
250
|
+
numberLineLabelPage.steps.allotPointsForManualScoring(20);
|
251
251
|
numberLineLabelPage.steps.switchToPreviewTab();
|
252
252
|
break;
|
253
253
|
case 'Item preview':
|
@@ -249,7 +249,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
249
249
|
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3', 'Label 4']);
|
250
250
|
numberLineLabelPage.steps.expandScoringTypeDropdown();
|
251
251
|
numberLineLabelPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
252
|
-
numberLineLabelPage.steps.
|
252
|
+
numberLineLabelPage.steps.allotPointsForManualScoring(20);
|
253
253
|
numberLineLabelPage.steps.switchToPreviewTab();
|
254
254
|
break;
|
255
255
|
case 'Item preview':
|
@@ -28,7 +28,8 @@ const selectors = {
|
|
28
28
|
//Uncomment these lines once this ticket is deployed on prod https://weldnorthed.atlassian.net/browse/IEI-3170
|
29
29
|
// toleranceThresholdLabel: () => cy.get('[class*="AllocatedPointsstyles__PointsWrapper"] .points-label'),
|
30
30
|
// toleranceThresholdInputField: () => cy.get('[class*="AllocatedPointsstyles__PointsWrapper"] input'),
|
31
|
-
|
31
|
+
pointsInputField: () => cy.get('.ngie-accordion-detail .points-input-field input[type="text"]'),
|
32
|
+
pointsInputFieldForManualScoring: () => cy.get('.points-input-field input[type="text"]'),
|
32
33
|
}
|
33
34
|
|
34
35
|
const steps = {
|
@@ -356,20 +357,19 @@ const steps = {
|
|
356
357
|
// .should('have.value', value)
|
357
358
|
// },
|
358
359
|
|
359
|
-
//Uncomment these lines once this ticket is deployed on prod https://weldnorthed.atlassian.net/browse/IEI-3170
|
360
360
|
/**
|
361
361
|
* @param {number} points - The points to be allotted.
|
362
362
|
* @description - Allots points in the scoring section.
|
363
363
|
*/
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
364
|
+
allotPoints: (points) => {
|
365
|
+
numberLineCommonComponent.pointsInputField()
|
366
|
+
.clear()
|
367
|
+
.type(`${points}`)
|
368
|
+
.wait(1000);
|
369
|
+
numberLineCommonComponent.pointsInputField()
|
370
|
+
.should('have.value', points)
|
371
|
+
.blur();
|
372
|
+
},
|
373
373
|
|
374
374
|
//Uncomment these lines once this ticket is deployed on prod https://weldnorthed.atlassian.net/browse/IEI-3170
|
375
375
|
// focusInOutOfToleranceThresholdInputField: () => {
|
@@ -378,6 +378,20 @@ const steps = {
|
|
378
378
|
// .blur();
|
379
379
|
// },
|
380
380
|
|
381
|
+
/**
|
382
|
+
* @description - Allots points in the scoring section for manual scoring.
|
383
|
+
* \@param {number} points - The points to be allotted.
|
384
|
+
*/
|
385
|
+
allotPointsForManualScoring: (points) => {
|
386
|
+
numberLineCommonComponent.pointsInputFieldForManualScoring()
|
387
|
+
.clear()
|
388
|
+
.type(`${points}`)
|
389
|
+
.wait(1000);
|
390
|
+
numberLineCommonComponent.pointsInputFieldForManualScoring()
|
391
|
+
.should('have.value', points)
|
392
|
+
.blur();
|
393
|
+
},
|
394
|
+
|
381
395
|
}
|
382
396
|
|
383
397
|
const tests = {
|