itemengine-cypress-automation 1.0.48 → 1.0.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
  2. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
  3. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
  4. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoring.js → Scoring/groupedOptionsAllOrNothingScoring.js} +2 -2
  5. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsManualAndNonScoredScoring.js → Scoring/groupedOptionsManualAndNonScoredScoring.js} +2 -2
  6. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScorings.js → Scoring/groupedOptionsPartialDifferentWeightsScoring.js} +2 -2
  7. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  8. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScoringWithAlternateTab.js → Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  9. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  10. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  11. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoringWithAlternateTab.js → Scoring/groupedOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  12. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  13. package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoring.js → Scoring/groupedOptionsPartialEqualWeightsScorings.js} +2 -2
  14. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
  15. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
  16. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/standardOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
  17. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoring.js → Scoring/standardOptionsAllOrNothingScoring.js} +2 -2
  18. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsManualAndNonScoredScoring.js → Scoring/standardOptionsManualAndNonScoredScoring.js} +2 -2
  19. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
  20. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDifferentScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  21. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
  22. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDIfferentScoring.js → Scoring/standardOptionsPartialDifferentWeightsScoring.js} +2 -2
  23. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +29 -0
  24. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
  25. package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +29 -0
  26. package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoring.js → Scoring/standardOptionsPartialEqualWeightsScoring.js} +2 -2
  27. package/cypress/e2e/ILC/ListOrdering/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +246 -0
  28. package/cypress/e2e/ILC/ListOrdering/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +246 -0
  29. package/cypress/e2e/ILC/ListOrdering/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +246 -0
  30. package/cypress/e2e/ILC/ListOrdering/{listOrderingAllOrNothingScoring.js → Scoring/allOrNothingScoring.js} +3 -3
  31. package/cypress/e2e/ILC/ListOrdering/{listOrderingManuallyAndNonScoredScoring.js → Scoring/manuallyAndNonScoredScoring.js} +3 -3
  32. package/cypress/e2e/ILC/ListOrdering/Scoring/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +316 -0
  33. package/cypress/e2e/ILC/ListOrdering/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +287 -0
  34. package/cypress/e2e/ILC/ListOrdering/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
  35. package/cypress/e2e/ILC/ListOrdering/{listOrderingPartialDifferentWeightsScoring.js → Scoring/partialDifferentWeightsScoring.js} +3 -3
  36. package/cypress/e2e/ILC/ListOrdering/Scoring/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +286 -0
  37. package/cypress/e2e/ILC/ListOrdering/Scoring/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +258 -0
  38. package/cypress/e2e/ILC/ListOrdering/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +287 -0
  39. package/cypress/e2e/ILC/ListOrdering/{listOrderingPartialEqualWeightsScoring.js → Scoring/partialEqualWeightsScoring.js} +3 -3
  40. package/cypress/e2e/ILC/ListSorting/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +261 -0
  41. package/cypress/e2e/ILC/ListSorting/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +261 -0
  42. package/cypress/e2e/ILC/ListSorting/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
  43. package/cypress/e2e/ILC/ListSorting/{listSortingAllOrNothingScoring.js → Scoring/allOrNothingScoring.js} +3 -3
  44. package/cypress/e2e/ILC/ListSorting/{listSortingManuallyAndNonScoredScoring.js → Scoring/manuallyAndNonScoredScoring.js} +3 -3
  45. package/cypress/e2e/ILC/ListSorting/Scoring/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +338 -0
  46. package/cypress/e2e/ILC/ListSorting/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +303 -0
  47. package/cypress/e2e/ILC/ListSorting/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +337 -0
  48. package/cypress/e2e/ILC/ListSorting/{listSortingPartialDifferentWeightsScoring.js → Scoring/partialDifferentWeightsScoring.js} +3 -3
  49. package/cypress/e2e/ILC/ListSorting/Scoring/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +307 -0
  50. package/cypress/e2e/ILC/ListSorting/Scoring/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +272 -0
  51. package/cypress/e2e/ILC/ListSorting/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +307 -0
  52. package/cypress/e2e/ILC/ListSorting/{listSortingPartialEqualWeightsScoring.js → Scoring/partialEqualWeightsScoring.js} +3 -3
  53. package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +242 -0
  54. package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +99 -0
  55. package/cypress/e2e/ILC/Passage/passageEditTab.js +241 -0
  56. package/cypress/e2e/ILC/Passage/passageHeaderSection.js +73 -0
  57. package/cypress/e2e/ILC/Passage/passagePreviewTab.js +246 -0
  58. package/cypress/pages/listMatchingScoring.js +16 -105
  59. package/package.json +1 -1
  60. package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoringWithAlternateAnswer.js +0 -712
  61. package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoringWithAlternateAnswer.js +0 -895
  62. package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoringWithAlternateAnswer.js +0 -807
  63. package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoringWithAlternateAnswer.js +0 -759
  64. package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoringWithAlternateTab.js +0 -952
  65. package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoringWithAlternateAnswer.js +0 -860
@@ -187,7 +187,7 @@ const tests = {
187
187
  autoScoredScoringSection.tests.verifyCSSAndA11yOfFullScoreTextAndCorrectAnswerLabel('list matching');
188
188
  },
189
189
 
190
- verifyAutoScoredAllOrNothingScoringWithAlternateAnswer: () => {
190
+ verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints: () => {
191
191
  it('Alternate answer case: When Correct answer points are more than alternate answer points', () => {
192
192
  cy.log('The points displayed should be equal to correct answer points')
193
193
  listMatchingPage.previewScoreText()
@@ -351,14 +351,10 @@ const tests = {
351
351
  listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(3);
352
352
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
353
353
  });
354
+ },
354
355
 
356
+ verifyAllOrNothingScoringWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints: () => {
355
357
  it('Alternate answer case: When Alternate answer points are more than correct answer points', () => {
356
- cy.log('Pre step: Switching to Edit tab and adding Alternate answer points more than correct answer points')
357
- listMatchingPage.steps.switchToEditTab();
358
- listMatchingPage.steps.clearPointsField();
359
- listMatchingPage.steps.allotPoints(10);
360
- listMatchingPage.steps.switchToPreviewTab();
361
-
362
358
  cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer')
363
359
  listMatchingPage.previewScoreText()
364
360
  .verifyInnerText('0/10');
@@ -520,7 +516,9 @@ const tests = {
520
516
  listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(3);
521
517
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
522
518
  });
519
+ },
523
520
 
521
+ verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints: () => {
524
522
  it('Alternate answer case: When Alternate answer points and correct answer points both are equal', () => {
525
523
  cy.log('Pre step: Switching to Edit tab and allotting points of Alternate answer equal to correct answer')
526
524
  listMatchingPage.steps.switchToEditTab();
@@ -891,7 +889,7 @@ const tests = {
891
889
  });
892
890
  },
893
891
 
894
- verifyAutoScoredPartialEqualWeightsScoringWithAlternateAnswer: (optionLayout) => {
892
+ verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints: (optionLayout) => {
895
893
  it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
896
894
  cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
897
895
  listMatchingPage.previewScoreText()
@@ -1108,34 +1106,11 @@ const tests = {
1108
1106
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
1109
1107
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
1110
1108
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
1111
-
1112
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for alternate tab, setting proper option responses for the same');
1113
- listMatchingPage.steps.switchToEditTab();
1114
- switch (optionLayout) {
1115
- case 'standard':
1116
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1117
- listMatchingPage.steps.deleteResponseOptionInputField(8);
1118
- break;
1119
- case 'grouped':
1120
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1121
- listMatchingPage.steps.deleteResponseOptionInputField(4);
1122
- break;
1123
- default:
1124
- throw new Error('Invalid option layout');
1125
- }
1126
- listMatchingPage.steps.navigateToAlternateTab(1);
1127
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
1128
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
1129
1109
  });
1110
+ },
1130
1111
 
1112
+ verifyPartialEqualWeightsWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints: (optionLayout) => {
1131
1113
  it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
1132
- cy.log('Pre step: Adding Alternate answer points more than correct answer points')
1133
- listMatchingPage.steps.navigateToCorrectTab();
1134
- listMatchingPage.steps.allotPoints(20);
1135
- listMatchingPage.steps.navigateToAlternateTab(1);
1136
- listMatchingPage.steps.allotPoints(24);
1137
- listMatchingPage.steps.switchToPreviewTab();
1138
-
1139
1114
  cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer')
1140
1115
  listMatchingPage.previewScoreText()
1141
1116
  .verifyInnerText('0/24');
@@ -1350,32 +1325,12 @@ const tests = {
1350
1325
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
1351
1326
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
1352
1327
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
1353
-
1354
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for correct tab, setting proper option responses for the same');
1355
- listMatchingPage.steps.switchToEditTab();
1356
- switch (optionLayout) {
1357
- case 'standard':
1358
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1359
- listMatchingPage.steps.deleteResponseOptionInputField(8);
1360
- break;
1361
- case 'grouped':
1362
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1363
- listMatchingPage.steps.deleteResponseOptionInputField(4);
1364
- break;
1365
- default:
1366
- throw new Error('Invalid option layout');
1367
- }
1368
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
1369
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
1370
1328
  });
1329
+ },
1371
1330
 
1331
+ verifyPartialEqualWeightsWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints: () => {
1372
1332
  it('Alternate answer case: When Alternate answer points and correct answer points both are equal', () => {
1373
1333
  cy.log('Pre step: Switching to Edit tab and allotting points of Alternate answer equal to correct answer')
1374
- listMatchingPage.steps.allotPoints(20);
1375
- listMatchingPage.steps.navigateToAlternateTab(1);
1376
- listMatchingPage.steps.allotPoints(20);
1377
- listMatchingPage.steps.switchToPreviewTab();
1378
-
1379
1334
  cy.log('Checking total points displayed')
1380
1335
  listMatchingPage.previewScoreText()
1381
1336
  .verifyInnerText('0/20');
@@ -1691,7 +1646,8 @@ const tests = {
1691
1646
  });
1692
1647
  },
1693
1648
 
1694
- verifyAutoScoredPartialDifferentWeightsScoringWithAlternateAnswer: (optionLayout) => {
1649
+ verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsMoreThanAlternatePoints
1650
+ : (optionLayout) => {
1695
1651
  it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
1696
1652
  cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
1697
1653
  listMatchingPage.previewScoreText()
@@ -1933,34 +1889,11 @@ const tests = {
1933
1889
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
1934
1890
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
1935
1891
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
1936
-
1937
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for correct tab, setting proper option responses for the same');
1938
- listMatchingPage.steps.switchToEditTab();
1939
- switch (optionLayout) {
1940
- case 'standard':
1941
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1942
- listMatchingPage.steps.deleteResponseOptionInputField(8);
1943
- break;
1944
- case 'grouped':
1945
- listMatchingPage.steps.deleteResponseOptionInputField(9);
1946
- listMatchingPage.steps.deleteResponseOptionInputField(4);
1947
- break;
1948
- default:
1949
- throw new Error('Invalid option layout');
1950
- }
1951
- listMatchingPage.steps.navigateToAlternateTab(1);
1952
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
1953
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
1954
1892
  });
1893
+ },
1955
1894
 
1895
+ verifyPartialDifferentWeightWithAlternateAnswerWhenAlternatePointsMoreThanCorrectPoints:(optionLayout) => {
1956
1896
  it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
1957
- cy.log('Pre step: Switching to Edit tab and adding Alternate answer points more than correct answer points')
1958
- listMatchingPage.steps.switchToCorrectTab();
1959
- listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
1960
- listMatchingPage.steps.navigateToAlternateTab(1);
1961
- listMatchingPage.steps.addPartialDifferentWeightsPoints([4, 9, 6, 10]);
1962
- listMatchingPage.steps.switchToPreviewTab();
1963
-
1964
1897
  cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer points')
1965
1898
  listMatchingPage.previewScoreText()
1966
1899
  .verifyInnerText('0/29');
@@ -2201,33 +2134,11 @@ const tests = {
2201
2134
  listMatchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
2202
2135
  listMatchingPage.steps.verifyCorrectIncorrectBorderNotExists();
2203
2136
  listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
2204
-
2205
- cy.log('(Overachiever case) Post-step: Switching to Edit tab and removing unique option responses given for correct tab, setting proper option responses for the same');
2206
- listMatchingPage.steps.switchToEditTab();
2207
- switch (optionLayout) {
2208
- case 'standard':
2209
- listMatchingPage.steps.deleteResponseOptionInputField(9);
2210
- listMatchingPage.steps.deleteResponseOptionInputField(8);
2211
- break;
2212
- case 'grouped':
2213
- listMatchingPage.steps.deleteResponseOptionInputField(9);
2214
- listMatchingPage.steps.deleteResponseOptionInputField(4);
2215
- break;
2216
- default:
2217
- throw new Error('Invalid option layout');
2218
- }
2219
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 1', 0);
2220
- listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Common answer for stem 4', 3);
2221
2137
  });
2138
+ },
2222
2139
 
2140
+ verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsEqualToAlternatePoints:(optionLayout) => {
2223
2141
  it('Alternate answer case: When Alternate answer points and correct answer points both are equal', () => {
2224
- cy.log('Pre step: Switching to Edit tab and allotting points of Alternate answer equal to correct answer')
2225
- listMatchingPage.steps.switchToEditTab();
2226
- listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
2227
- listMatchingPage.steps.navigateToAlternateTab(1);
2228
- listMatchingPage.steps.addPartialDifferentWeightsPoints([6, 9, 4, 5]);
2229
- listMatchingPage.steps.switchToPreviewTab();
2230
-
2231
2142
  cy.log('Checking total points displayed')
2232
2143
  listMatchingPage.previewScoreText()
2233
2144
  .verifyInnerText('0/24');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.48",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {