itemengine-cypress-automation 1.0.503-dependabot-npm-and-yarn-multi-92087b3b2d-adb5c74.0 → 1.0.504-IEI-3170-task-5158cdd.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/NumberLine/Scoring/toleranceThresholdScoring.js +1 -2
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +3 -6
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/toleranceThresholdScoring.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +3 -6
- package/cypress/pages/components/numberLineCommonComponent.js +33 -37
- package/package.json +2 -2
@@ -3,8 +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
|
-
|
7
|
-
describe.skip('Create item page - Number line: All or nothing with Tolerance/Threshold', () => {
|
6
|
+
describe('Create item page - Number line: All or nothing with Tolerance/Threshold', () => {
|
8
7
|
before(() => {
|
9
8
|
cy.loginAs('admin');
|
10
9
|
});
|
@@ -33,8 +33,7 @@ describe('Create item page - Number line: Scoring section', () => {
|
|
33
33
|
numberLinePage.steps.verifyMinimumScoringLabelAndDropdownDefaultState();
|
34
34
|
});
|
35
35
|
|
36
|
-
|
37
|
-
// numberLinePage.tests.verifyToleranceThresholdLabelAndInputField();
|
36
|
+
numberLinePage.tests.verifyToleranceThresholdLabelAndInputField();
|
38
37
|
});
|
39
38
|
|
40
39
|
describe('Auto scored: All or nothing scoring - Specify correct answer section', () => {
|
@@ -84,8 +83,7 @@ describe('Create item page - Number line: Scoring section', () => {
|
|
84
83
|
utilities.verifyElementVisibilityState(numberLinePage.roundNegativeScoresToZeroCheckbox(), 'notExist');
|
85
84
|
});
|
86
85
|
|
87
|
-
|
88
|
-
// numberLinePage.tests.verifyToleranceThresholdLabelAndInputField();
|
86
|
+
numberLinePage.tests.verifyToleranceThresholdLabelAndInputField();
|
89
87
|
});
|
90
88
|
|
91
89
|
describe('Auto scored: Partial equal weights scoring - Specify correct answer section', () => {
|
@@ -174,8 +172,7 @@ describe('Create item page - Number line: Scoring section', () => {
|
|
174
172
|
utilities.verifyElementVisibilityState(numberLinePage.roundNegativeScoresToZeroCheckbox(), 'notExist');
|
175
173
|
});
|
176
174
|
|
177
|
-
|
178
|
-
// numberLinePage.tests.verifyToleranceThresholdLabelAndInputField();
|
175
|
+
numberLinePage.tests.verifyToleranceThresholdLabelAndInputField();
|
179
176
|
});
|
180
177
|
|
181
178
|
describe('Auto scored: Partial - different weights scoring - Specify correct answer section', () => {
|
@@ -2,8 +2,7 @@ import { numberLineLabelPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
const range = 22.2;
|
4
4
|
|
5
|
-
|
6
|
-
describe.skip('Create item page - Number line: All or nothing with Tolerance/Threshold', () => {
|
5
|
+
describe('Create item page - Number line: All or nothing with Tolerance/Threshold', () => {
|
7
6
|
before(() => {
|
8
7
|
cy.loginAs('admin');
|
9
8
|
});
|
@@ -35,8 +35,7 @@ describe('Create item page - Number line: Scoring section', () => {
|
|
35
35
|
numberLineLabelPage.steps.verifyMinimumScoringLabelAndDropdownDefaultState();
|
36
36
|
});
|
37
37
|
|
38
|
-
|
39
|
-
// numberLineLabelPage.tests.verifyToleranceThresholdLabelAndInputField();
|
38
|
+
numberLineLabelPage.tests.verifyToleranceThresholdLabelAndInputField();
|
40
39
|
});
|
41
40
|
|
42
41
|
describe('Auto scored: All or nothing scoring - Specify correct answer section', () => {
|
@@ -84,8 +83,7 @@ describe('Create item page - Number line: Scoring section', () => {
|
|
84
83
|
utilities.verifyElementVisibilityState(numberLineLabelPage.roundNegativeScoresToZeroCheckbox(), 'notExist');
|
85
84
|
});
|
86
85
|
|
87
|
-
|
88
|
-
// numberLineLabelPage.tests.verifyToleranceThresholdLabelAndInputField();
|
86
|
+
numberLineLabelPage.tests.verifyToleranceThresholdLabelAndInputField();
|
89
87
|
});
|
90
88
|
|
91
89
|
describe('Auto scored: Partial equal weights scoring - Specify correct answer section', () => {
|
@@ -170,8 +168,7 @@ describe('Create item page - Number line: Scoring section', () => {
|
|
170
168
|
utilities.verifyElementVisibilityState(numberLineLabelPage.roundNegativeScoresToZeroCheckbox(), 'notExist');
|
171
169
|
});
|
172
170
|
|
173
|
-
|
174
|
-
// numberLineLabelPage.tests.verifyToleranceThresholdLabelAndInputField();
|
171
|
+
numberLineLabelPage.tests.verifyToleranceThresholdLabelAndInputField();
|
175
172
|
});
|
176
173
|
|
177
174
|
describe('Auto scored: Partial - different weights scoring - Specify correct answer section', () => {
|
@@ -30,9 +30,8 @@ const selectors = {
|
|
30
30
|
nodesOnNumberLineOfSpecifyCorrectAnswerSection: () => cy.get('[class*="AnswerAccordionstyles__AnswerPanel"] .ngie-jxgbox [id*="ticks"][stroke-linecap="round"]'),
|
31
31
|
nodesOnNumberLineInPreviewTab: () => cy.get('[class*="TabsComponentstyles__PreviewWrapper"] .ngie-jxgbox [id*="ticks"][stroke-linecap="round"]'),
|
32
32
|
//scoring section
|
33
|
-
|
34
|
-
|
35
|
-
// toleranceThresholdInputField: () => cy.get('[class*="AllocatedPointsstyles__PointsWrapper"] input'),
|
33
|
+
toleranceThresholdLabel: () => cy.get('[class*="AllocatedPointsstyles__PointsWrapper"] .points-label'),
|
34
|
+
toleranceThresholdInputField: () => cy.get('[class*="AllocatedPointsstyles__PointsWrapper"] input'),
|
36
35
|
pointsInputField: () => cy.get('.ngie-accordion-detail .points-input-field input[type="text"]'),
|
37
36
|
pointsInputFieldForManualScoring: () => cy.get('.points-input-field input[type="text"]'),
|
38
37
|
|
@@ -355,19 +354,18 @@ const steps = {
|
|
355
354
|
});
|
356
355
|
},
|
357
356
|
|
358
|
-
//Uncomment these lines once this ticket is deployed on prod https://weldnorthed.atlassian.net/browse/IEI-3170
|
359
357
|
/**
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
358
|
+
* Sets the tolerance threshold value for the numberline plot.
|
359
|
+
* @param {number} value - The value for the tolerance threshold.
|
360
|
+
*/
|
361
|
+
setToleranceThresholdValue: (value) => {
|
362
|
+
numberLineCommonComponent.toleranceThresholdInputField()
|
363
|
+
.clear()
|
364
|
+
.type(value)
|
365
|
+
.blur();
|
366
|
+
numberLineCommonComponent.toleranceThresholdInputField()
|
367
|
+
.should('have.value', value)
|
368
|
+
},
|
371
369
|
|
372
370
|
/**
|
373
371
|
* @param {number} points - The points to be allotted.
|
@@ -383,12 +381,11 @@ const steps = {
|
|
383
381
|
.blur();
|
384
382
|
},
|
385
383
|
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
// },
|
384
|
+
focusInOutOfToleranceThresholdInputField: () => {
|
385
|
+
numberLineCommonComponent.toleranceThresholdInputField()
|
386
|
+
.focus()
|
387
|
+
.blur();
|
388
|
+
},
|
392
389
|
|
393
390
|
/**
|
394
391
|
* @description - Allots points in the scoring section for manual scoring.
|
@@ -930,24 +927,23 @@ const tests = {
|
|
930
927
|
});
|
931
928
|
},
|
932
929
|
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
// });
|
930
|
+
verifyToleranceThresholdLabelAndInputField: () => {
|
931
|
+
it('Tolerance/Threshold label and input field should be displayed and by default input field should be empty', () => {
|
932
|
+
utilities.verifyElementVisibilityState(numberLineCommonComponent.toleranceThresholdLabel(), 'visible');
|
933
|
+
utilities.verifyInnerText(numberLineCommonComponent.toleranceThresholdLabel(), 'Tolerance');
|
934
|
+
utilities.verifyElementVisibilityState(numberLineCommonComponent.toleranceThresholdInputField(), 'visible');
|
935
|
+
numberLineCommonComponent.toleranceThresholdInputField().should('have.value', '');
|
936
|
+
});
|
941
937
|
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
938
|
+
it('When user focuses in and out of the Tolerance/Threshold input field then error message should not be displayed', () => {
|
939
|
+
numberLineCommonComponent.steps.focusInOutOfToleranceThresholdInputField();
|
940
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
941
|
+
});
|
946
942
|
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
943
|
+
it('User should be able to enter text in Tolerance/Threshold input field', () => {
|
944
|
+
numberLineCommonComponent.steps.setToleranceThresholdValue(2);
|
945
|
+
});
|
946
|
+
},
|
951
947
|
|
952
948
|
verifyThousandSeparatorContent: () => {
|
953
949
|
it(`Thousand separator label and 3 options ${thousandsSeparatorOptions} should be displayed and by default ${thousandsSeparatorOptions[0]} should be selected`, () => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.504-IEI-3170-task-5158cdd.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"axe-core": "^4.7.1",
|
42
42
|
"cy-verify-downloads": "^0.1.11",
|
43
43
|
"cy2": "^4.0.9",
|
44
|
-
"cypress": "^
|
44
|
+
"cypress": "^12.17.2",
|
45
45
|
"cypress-axe": "^1.4.0",
|
46
46
|
"cypress-file-upload": "^5.0.8",
|
47
47
|
"cypress-real-events": "^1.7.6",
|