itemengine-cypress-automation 1.0.475-IEI-3170-new-e6c5311.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/Scoring/toleranceThresholdScoring.js +1 -1
- 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 +26 -10
- package/package.json +1 -1
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
const unselectedToolOption = ['Left ray', 'Right ray', 'Open left ray', 'Open right ray'];
|
4
4
|
const range = 22.18;
|
5
5
|
|
6
|
-
//
|
6
|
+
//Remove this skip once this ticket is deployed on prod https://weldnorthed.atlassian.net/browse/IEI-3170
|
7
7
|
describe.skip('Create item page - Number line: All or nothing with Tolerance/Threshold', () => {
|
8
8
|
before(() => {
|
9
9
|
cy.loginAs('admin');
|
@@ -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 = {
|
@@ -360,22 +361,37 @@ const steps = {
|
|
360
361
|
* @param {number} points - The points to be allotted.
|
361
362
|
* @description - Allots points in the scoring section.
|
362
363
|
*/
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
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
|
+
},
|
372
373
|
|
374
|
+
//Uncomment these lines once this ticket is deployed on prod https://weldnorthed.atlassian.net/browse/IEI-3170
|
373
375
|
// focusInOutOfToleranceThresholdInputField: () => {
|
374
376
|
// numberLineCommonComponent.toleranceThresholdInputField()
|
375
377
|
// .focus()
|
376
378
|
// .blur();
|
377
379
|
// },
|
378
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
|
+
|
379
395
|
}
|
380
396
|
|
381
397
|
const tests = {
|