itemengine-cypress-automation 1.0.220 → 1.0.221

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +3 -3
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +5 -5
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +5 -5
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +22 -22
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +13 -13
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +13 -13
  9. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +10 -5
  10. package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +10 -6
  11. package/cypress/e2e/ILC/ChartsBar/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  12. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -1
  13. package/cypress/e2e/ILC/ChartsLine/editTabScoringSection.js +5 -5
  14. package/cypress/e2e/ILC/ChartsLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  15. package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +1 -1
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -2
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +0 -2
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -2
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +0 -2
  20. package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
  21. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
  22. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  23. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +3 -1
  24. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -0
  25. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -0
  26. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +3 -1
  27. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
  28. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +3 -1
  29. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +3 -3
  30. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +3 -3
  31. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  32. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  33. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +1 -1
  34. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +3 -3
  35. package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  36. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +0 -2
  37. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +1 -2
  38. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -1
  39. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +0 -2
  40. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +3 -3
  41. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +2 -1
  42. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +17 -17
  43. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  44. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +4 -7
  45. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +25 -7
  46. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -1
  47. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  48. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -1
  49. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -1
  50. package/cypress/e2e/ILC/TextSelection/Scoring/manuallyAndNonScored.js +1 -1
  51. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  52. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  53. package/cypress/pages/chartsBarPage.js +6 -6
  54. package/cypress/pages/chartsLinePage.js +3 -2
  55. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +4 -2
  56. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  57. package/cypress/pages/components/gridQuestionCommonComponent.js +9 -0
  58. package/cypress/pages/components/opacityComponent.js +1 -0
  59. package/cypress/pages/components/scoringSectionBaseEditTab.js +5 -3
  60. package/cypress/pages/components/setPointsPopupBase.js +7 -0
  61. package/cypress/pages/gridFillPage.js +13 -0
  62. package/cypress/pages/textEntryMathPage.js +2 -2
  63. package/package.json +1 -1
@@ -29,7 +29,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
29
29
  chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 6, range: 10 });
30
30
  //chartsBarPage.steps.checkAllowStudentToCheckAnswerCheckbox();
31
31
  chartsBarPage.steps.switchToPreviewTab();
32
- });s
32
+ });
33
33
 
34
34
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icon should not be displayed for bar, the correct accordion answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
35
35
  chartsBarPage.steps.switchToGradingView();
@@ -30,10 +30,10 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
30
30
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
31
31
  chartsBarPage.steps.switchToGradingView();
32
32
  chartsBarPage.steps.verifyPreviewScore(0, 20);
33
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
33
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
34
34
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
35
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
36
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
35
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
36
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
37
37
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
38
38
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
39
39
  chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
@@ -9,7 +9,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
9
9
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are equal to alternative answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
- chartsBarPage.steps.navigateToCreateQuestion('charts');
12
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
13
13
  cy.barsPreLoaderWait();
14
14
  chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
15
15
  chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
@@ -35,11 +35,11 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
35
35
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the correct accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
36
36
  chartsBarPage.steps.switchToGradingView();
37
37
  chartsBarPage.steps.verifyPreviewScore(0, 23);
38
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
38
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
39
39
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
40
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
41
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
42
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
40
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
41
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
42
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
43
43
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
44
44
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
45
45
  chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
@@ -9,7 +9,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
9
9
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are more than alternative answer points', () => {
10
10
  abortEarlySetup();
11
11
  before(() => {
12
- chartsBarPage.steps.navigateToCreateQuestion('charts');
12
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
13
13
  cy.barsPreLoaderWait();
14
14
  chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
15
15
  chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
@@ -35,11 +35,11 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
35
35
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the correct accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
36
36
  chartsBarPage.steps.switchToGradingView();
37
37
  chartsBarPage.steps.verifyPreviewScore(0, 28);
38
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
38
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
39
39
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
40
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
41
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
42
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
40
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
41
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
42
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
43
43
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
44
44
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
45
45
  chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
@@ -274,7 +274,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
274
274
  chartsBarPage.steps.resetQuestionPreview();
275
275
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
276
276
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 1, value: 1, range: 10 });
277
- chartsBarPage.steps.verifyPreviewScore(5, 20);
277
+ chartsBarPage.steps.verifyPreviewScore(-3, 20);
278
278
  });
279
279
 
280
280
  it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
@@ -282,7 +282,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
282
282
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
283
283
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 1, value: 1, range: 10 });
284
284
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 1, range: 10 });
285
- chartsBarPage.steps.verifyPreviewScore(1, 20);
285
+ chartsBarPage.steps.verifyPreviewScore(-3, 20);
286
286
  });
287
287
 
288
288
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -35,11 +35,11 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
35
35
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the alternate accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
36
36
  chartsBarPage.steps.switchToGradingView();
37
37
  chartsBarPage.steps.verifyPreviewScore(0, 20);
38
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
38
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
39
39
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
40
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
41
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
42
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'incorrect');
40
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
41
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
42
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
43
43
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
44
44
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
45
45
  chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
@@ -216,15 +216,15 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
216
216
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
217
217
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
218
218
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
- /* cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
220
- chartsBarPage.steps.checkAnswer();
221
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
222
- chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
223
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
224
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
225
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
226
- chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
227
- chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
219
+ /* cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
220
+ chartsBarPage.steps.checkAnswer();
221
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
222
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
223
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
224
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
225
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
226
+ chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
227
+ chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
228
228
  });
229
229
 
230
230
  it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
@@ -343,15 +343,15 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
343
343
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 6, range: 10 });
344
344
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
345
345
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
346
- /* cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the alternate accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message and correct answer section should not be displayed')
347
- chartsBarPage.steps.checkAnswer();
348
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
349
- chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
350
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
351
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
352
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
353
- chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
354
- chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
346
+ /* cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the alternate accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message and correct answer section should not be displayed')
347
+ chartsBarPage.steps.checkAnswer();
348
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
349
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
350
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
351
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
352
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
353
+ chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
354
+ chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
355
355
  });
356
356
  });
357
357
  });
@@ -36,11 +36,11 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
36
36
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the correct accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
37
37
  chartsBarPage.steps.switchToGradingView();
38
38
  chartsBarPage.steps.verifyPreviewScore(0, 20);
39
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
39
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
40
40
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
41
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
42
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
43
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
41
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
42
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
43
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
44
44
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
45
45
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
46
46
  chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
@@ -129,15 +129,15 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
129
129
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
130
130
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
131
131
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
132
- /* cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
133
- chartsBarPage.steps.checkAnswer();
134
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
135
- chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
136
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
137
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
138
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
139
- chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
140
- chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
132
+ /* cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
133
+ chartsBarPage.steps.checkAnswer();
134
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
135
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
136
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
137
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
138
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
139
+ chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
140
+ chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
141
141
  });
142
142
 
143
143
 
@@ -35,11 +35,11 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
35
35
  it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the correct accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
36
36
  chartsBarPage.steps.switchToGradingView();
37
37
  chartsBarPage.steps.verifyPreviewScore(0, 20);
38
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
38
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
39
39
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
40
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'incorrect');
41
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
42
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
40
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
41
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
42
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
43
43
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
44
44
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
45
45
  chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
@@ -157,15 +157,15 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
157
157
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 4, range: 10 });
158
158
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
159
159
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
160
- /* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
161
- chartsBarPage.steps.checkAnswer();
162
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
163
- chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
164
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
165
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
166
- chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
167
- chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
168
- chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
160
+ /* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
161
+ chartsBarPage.steps.checkAnswer();
162
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
163
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
164
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
165
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'incorrect');
166
+ chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
167
+ chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
168
+ chartsBarPage.steps.verifyCorrectAnswerSectionNotExist(); */
169
169
  });
170
170
 
171
171
  it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
@@ -254,6 +254,8 @@ describe('Create item: Charts- Bar : Select chart type', () => {
254
254
  it('When user updates value in Grid snapping input field and sets bar on charts then the bar\'s placement should align with the specified grid snapping value in select chart type and the specify correct answer section', () => {
255
255
  chartsBarPage.steps.enterValueInGridSnappingInputField(2);
256
256
  chartsBarPage.steps.verifyValueInGridSnappingInputField(2);
257
+ cy.log('Adding a wait as it takes time to reflect changes in the graph')
258
+ cy.wait(1000);
257
259
  chartsBarPage.steps.incrementBarValueUsingUpArrowSelectChartType(0);
258
260
  chartsBarPage.steps.verifyBarHeightInSelectChartType({ barIndex: 0, barValue: 2, range: 10 });
259
261
  chartsBarPage.steps.increaseBarValueUsingUpArrowInSpecifyCorrectAnswer(0);
@@ -329,6 +331,9 @@ describe('Create item: Charts- Bar : Select chart type', () => {
329
331
  chartsBarPage.steps.navigateToCreateQuestion('charts');
330
332
  chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
331
333
  cy.barsPreLoaderWait();
334
+ chartsBarPage.steps.setGraphTitle('Bar chart');
335
+ chartsBarPage.steps.setXAxisLabel('Days');
336
+ chartsBarPage.steps.setYAxisLabel('Profit');
332
337
  chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 2, range: 10 });
333
338
  chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 10 });
334
339
  });
@@ -349,7 +354,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
349
354
  utilities.verifyInnerText(chartsBarPage.selectChartTypeGraphTitleButton(), 'Bar chart');
350
355
  utilities.verifyInnerText(chartsBarPage.selectChartTypeXAxisLabelButton(), 'Days');
351
356
  utilities.verifyInnerText(chartsBarPage.selectChartTypeYAxisLabelButton(), 'Profit');
352
- utilities.verifyInnerText(chartsBarPage.specifyCorrectAnswerGraphTitleButton(), 'Bar chart');
357
+ utilities.verifyInnerText(chartsBarPage.graphTitleSpecifyCorrectAnswer(), 'Bar chart');
353
358
  utilities.verifyInnerText(chartsBarPage.xAxisLabelSpecifyCorrectAnswer(), 'Days');
354
359
  utilities.verifyInnerText(chartsBarPage.yAxisLabelSpecifyCorrectAnswer(), 'Profit');
355
360
  });
@@ -358,8 +363,8 @@ describe('Create item: Charts- Bar : Select chart type', () => {
358
363
  utilities.verifyInnerText(chartsBarPage.selectChartTypeMaxXAndYLabel(), 'Max X');
359
364
  utilities.verifyElementVisibilityState(chartsBarPage.selectChartTypeMaxXAndYLabel(), 'visible');
360
365
  chartsBarPage.steps.verifyMaxXAndYValue(10);
361
- chartsBarPage.steps.verifyBarLabelHorizontalSelectChartType([0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3']);
362
- chartsBarPage.steps.verifyBarLabelHorizontalSpecifyCorrectAnswer([0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3']);
366
+ chartsBarPage.steps.verifyBarLabelHorizontalSelectChartType(['Bar 1', 'Bar 2', 'Bar 3']);
367
+ chartsBarPage.steps.verifyBarLabelHorizontalSpecifyCorrectAnswer(['Bar 1', 'Bar 2', 'Bar 3']);
363
368
  chartsBarPage.steps.verifyLabelsInHorizontalSelectChartType(0, 1);
364
369
  chartsBarPage.steps.verifyLabelsInHorizontalSpecifyCorrectAnswer(0, 1);
365
370
  });
@@ -411,7 +416,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
411
416
  utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Bar chart');
412
417
  utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Days');
413
418
  utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Profit');
414
- chartsBarPage.steps.verifyBarLabelHorizontalPreviewTab([0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3']);
419
+ chartsBarPage.steps.verifyBarLabelHorizontalPreviewTab(['Bar 1', 'Bar 2', 'Bar 3']);
415
420
  chartsBarPage.steps.verifyLabelsInHorizontalPreviewTab(0, 1);
416
421
  });
417
422
 
@@ -431,7 +436,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
431
436
 
432
437
  it('When user unchecks Add gap between bars checkbox then space should not be present between the bars in preview tab', () => {
433
438
  chartsBarPage.steps.switchToEditTab();
434
- chartsBarPage.steps.uncheckAddGapBetweenBarsCheckboxCheckbox();
439
+ chartsBarPage.steps.uncheckAddGapBetweenBarsCheckbox();
435
440
  chartsBarPage.steps.switchToPreviewTab();
436
441
  chartsBarPage.steps.verifyNoSpaceBetweenBarsPreviewTab();
437
442
  });
@@ -45,7 +45,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
45
45
  });
46
46
 
47
47
  it('Tick/Interval position label should be displayed', () => {
48
- utilities.verifyInnerText(chartsBarPage.tickIntervalPositionLabel(), 'Tick/Interval position');
48
+ utilities.verifyInnerText(chartsBarPage.tickIntervalPositionLabel(), 'Tick / Interval position');
49
49
  utilities.verifyElementVisibilityState(chartsBarPage.tickIntervalPositionLabel(), 'visible');
50
50
  });
51
51
 
@@ -205,9 +205,9 @@ describe('Create item: Charts- Bar : Select chart type', () => {
205
205
  });
206
206
 
207
207
  it('When user updates the text in New bar label input field and adds a bar then added bar should have newly updated label and previously added bars should not be affected in select chart type and specify correct answer section', () => {
208
- chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day')
209
- chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
208
+ chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day');
210
209
  chartsBarPage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
210
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
211
211
  chartsBarPage.steps.verifyBarLabelSpecifyCorrectAnswer(0, 'Bar 1');
212
212
  chartsBarPage.steps.verifyBarLabelSelectChartType(0, 'Bar 1');
213
213
  chartsBarPage.steps.verifyBarLabelSpecifyCorrectAnswer(1, 'Bar 2');
@@ -228,7 +228,8 @@ describe('Create item: Charts- Bar : Select chart type', () => {
228
228
  });
229
229
 
230
230
  it('When Y Axis checkbox is checked in edit tab and user clicks on Y axis label in preview tab then popup should be displayed with title \'Y axis label\' and \'Add label\' label with input field should be displayed along with \'Save\' and \'Cancel\' button', () => {
231
- chartsBarPage.steps.clickOnXAxisLabelButtonInPreviewTab();
231
+ chartsBarPage.steps.switchToPreviewTab();
232
+ chartsBarPage.steps.clickOnYAxisLabelButtonInPreviewTab();
232
233
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
233
234
  utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Y axis label');
234
235
  utilities.verifyInnerText(chartsBarPage.titlePopupAddLabelLabel(), 'Add label');
@@ -248,7 +249,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
248
249
  });
249
250
 
250
251
  it('When the user clicks on the \'Y axis label\' then the original text should be displayed in the popup', () => {
251
- chartsBarPage.steps.clickOnXAxisLabelButtonInPreviewTab();
252
+ chartsBarPage.steps.clickOnYAxisLabelButtonInPreviewTab();
252
253
  chartsBarPage.steps.verifyTextInTitlePopupAddLabelInputField('Label');
253
254
  });
254
255
 
@@ -329,6 +330,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
329
330
 
330
331
  it('When Bar labels checkbox is checked and user selects a bar and clicks on bar label button then popup should be displayed with title \'Bar label\' and \'Add label\' label with input field should be displayed along with \'Save\' and \'Cancel\' button', () => {
331
332
  chartsBarPage.steps.switchToPreviewTab();
333
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 2, range: 10 });
332
334
  utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), 0));
333
335
  chartsBarPage.steps.clickOnBarTooltipBarLabelButton();
334
336
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
@@ -377,6 +379,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
377
379
  chartsBarPage.steps.switchToEditTab();
378
380
  chartsBarPage.steps.uncheckBarLabelsCheckbox();
379
381
  chartsBarPage.steps.switchToPreviewTab();
382
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 2, range: 10 });
380
383
  utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), 0));
381
384
  utilities.verifyElementVisibilityState(chartsBarPage.barAndPointTooltipLabelButton(), 'notExist');
382
385
  });
@@ -388,6 +391,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
388
391
  it('When user updates the text in New bar label input field and adds a bar then added bar should have newly updated label in preview tab', () => {
389
392
  chartsBarPage.steps.switchToEditTab();
390
393
  chartsBarPage.steps.updateNewBarLabelInputFieldValue('Day');
394
+ chartsBarPage.steps.selectAddBarOrPointToolbarOption();
391
395
  chartsBarPage.steps.switchToPreviewTab();
392
396
  chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
393
397
  utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 3), 'Day 1');
@@ -439,7 +443,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
439
443
  chartsBarPage.steps.switchToEditTab();
440
444
  chartsBarPage.steps.selectAtIntervalRadioButton();
441
445
  chartsBarPage.steps.switchToPreviewTab();
442
- chartsBarPage.steps.verifyBarLabelCenteredPreviewTab();
446
+ chartsBarPage.steps.verifyBarLabelAtIntervalPreviewTab();
443
447
  });
444
448
 
445
449
  it('When user selects Centered radio button again, then label location should change to center in preview tab', () => {
@@ -65,7 +65,7 @@ describe('Create item page - Charts - Bar: Minimum scoring, Penalty scoring, Rou
65
65
  it('When the user removes a bar, then \'points for each incorrect option\' should get updated accordingly', () => {
66
66
  chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 2, range: 10 }); //Not able to hover and then delete due to bar not visible
67
67
  chartsBarPage.steps.deleteBarInSelectChartType(0);
68
- chartsBarPage.steps.verifyPenaltyPointsForEachIncorrectBar(1.33);
68
+ chartsBarPage.steps.verifyPenaltyPointsForEachIncorrectBar(1.3333);
69
69
  });
70
70
 
71
71
  it('When the user adds a bar, then \'points for each incorrect option\' should get updated accordingly', () => {
@@ -85,7 +85,7 @@ describe('Create Item page - Charts - Bar chart: Specify correct answer, Alterna
85
85
 
86
86
  it('When user deletes a bar in correct accordion then it should be deleted and bars in alternate accordion should remain the same', () => {
87
87
  chartsBarPage.steps.deleteBarInSpecifyCorrectAnswer(0);
88
- chartsBarPage.steps.expandAlternativeAnswerAccordion(0);
88
+ chartsBarPage.steps.expandAlternativeAnswerAccordion(-1);
89
89
  utilities.verifyElementCount(chartsBarPage.specifyCorrectAnswerBar(), 3);
90
90
  });
91
91
  });
@@ -103,7 +103,7 @@ describe('Create item page - Charts - Line: Scoring section', () => {
103
103
  });
104
104
 
105
105
  it('When the user sets a point value then the points per response should not be updated', () => {
106
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 1, range: 10});
106
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 1, range: 10 });
107
107
  chartsLinePage.steps.verifyPartialEqualWeightsPointsPerResponseScore('3');
108
108
  });
109
109
 
@@ -164,16 +164,16 @@ describe('Create item page - Charts - Line: Scoring section', () => {
164
164
  chartsLinePage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
165
165
 
166
166
  it('When the user has switched to \'Partial - different weights\' scoring, then dot columns numeration labels should be displayed and input field should be displayed below each label', () => {
167
- utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 0), 'Bar 1');
168
- utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 1), 'Bar 2');
169
- utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 2), 'Bar 3');
167
+ utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 0), 'Point 1');
168
+ utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 1), 'Point 2');
169
+ utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 2), 'Point 3');
170
170
  utilities.verifyElementCount(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 3);
171
171
  utilities.verifyElementCount(chartsLinePage.pointsInputField(), 3);
172
172
  });
173
173
 
174
174
  it('When user adds one more point, then points input field should be added with the respective label', () => {
175
175
  chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
176
- utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 3), 'Bar 4');
176
+ utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.partialDifferentWeightsPointsInputFieldLabel(), 3), 'Point 4');
177
177
  utilities.verifyElementVisibilityState(utilities.getNthElement(chartsLinePage.pointsInputField(), 3), 'visible');
178
178
  chartsLinePage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEmpty();
179
179
  });
@@ -66,7 +66,7 @@ describe('Create item page - Charts - Line: Minimum scoring, Penalty scoring, Ro
66
66
 
67
67
  it('When the user removes a point, then \'points for each incorrect option\' should get updated accordingly', () => {
68
68
  chartsLinePage.steps.deletePointInSelectChartType(0);
69
- chartsLinePage.steps.verifyPenaltyPointsForEachIncorrectPoint(1.33);
69
+ chartsLinePage.steps.verifyPenaltyPointsForEachIncorrectPoint(1.3333);
70
70
  });
71
71
 
72
72
  it('When the user adds a point, then \'points for each incorrect option\' should get updated accordingly', () => {
@@ -86,7 +86,7 @@ describe('Create Item page - Charts - Line chart: Specify correct answer, Altern
86
86
 
87
87
  it('When user deletes a point in correct accordion then it should be deleted and points in alternate accordion should remain the same', () => {
88
88
  chartsLinePage.steps.deletePointInSpecifyCorrectAnswer(0);
89
- chartsLinePage.steps.expandAlternativeAnswerAccordion(0);
89
+ chartsLinePage.steps.expandAlternativeAnswerAccordion(-1);
90
90
  utilities.verifyElementCount(chartsLinePage.specifyCorrectAnswerPoint(), 3);
91
91
  });
92
92
  });
@@ -225,8 +225,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
225
225
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
226
226
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
227
227
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
228
- //Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
229
- // dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
228
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
230
229
  dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
231
230
  });
232
231
  });
@@ -89,8 +89,6 @@ describe('Create Item page - Fill in the gaps with dropdown: Student view settin
89
89
  it('When the user switches to Edit tab and modifies any of question properties, then the order of the options should change in the preview tab dropdown', () => {
90
90
  fillInTheGapsDropdownPage.steps.switchToEditTab();
91
91
  fillInTheGapsDropdownPage.steps.allotPoints(5);
92
- cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
93
- cy.wait(1000);
94
92
  fillInTheGapsDropdownPage.steps.switchToPreviewTab();
95
93
  fillInTheGapsDropdownPage.steps.expandDropdownInPreviewTab(0);
96
94
  fillInTheGapsDropdownPage.steps.verifyRandomizeOptionOrder(optionsForDropdown);
@@ -202,8 +202,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
202
202
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
203
203
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
204
204
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
205
- //Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
206
- //fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
205
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
207
206
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
208
207
  });
209
208
  });
@@ -95,8 +95,6 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Student vie
95
95
  it('When the user switches to Edit tab and modifies any of question properties, then the order of the options should change in the preview tab dropdown', () => {
96
96
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
97
97
  fillInTheGapsOverImageDropdownPage.steps.allotPoints(5);
98
- cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
99
- cy.wait(1000);
100
98
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
101
99
  fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
102
100
  fillInTheGapsOverImageDropdownPage.steps.verifyRandomizeOptionOrder(optionsForDropdown);
@@ -61,17 +61,17 @@ describe('Create item page - Grid fill: Minimum scoring, Penalty scoring, Roundi
61
61
  //Failed due to https://redmine.zeuslearning.com/issues/565332
62
62
  it('When the user allots total penalty points, then \'Points for each incorrect cell\' should get updated as per the count of incorrect cells available', () => {
63
63
  gridFillPage.steps.allotTotalPenaltyPoints(5);
64
- gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.38);
64
+ gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.3846);
65
65
  });
66
66
 
67
67
  it('When the user adds a new cell, then \'Points for each incorrect cell\' should get updated accordingly', () => {
68
68
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 4)
69
- gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.42);
69
+ gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.4167);
70
70
  });
71
71
 
72
72
  it('When the user deletes an cell, then \'Points for each incorrect cell\' should get updated accordingly', () => {
73
73
  gridFillPage.steps.deselectCellSpecifyCorrectAnswerSection(0, 4);
74
- gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.38);
74
+ gridFillPage.steps.verifyPenaltyPointsForEachIncorrectCell(0.3846);
75
75
  });
76
76
 
77
77
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -180,7 +180,7 @@ describe('Create item page - Grid fill: Minimum scoring, Penalty scoring, Roundi
180
180
  gridFillPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
181
181
  gridFillPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
182
182
  gridFillPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
183
- utilities.verifyInnerText(utilities.getNthElement(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect cell: 0.77');
183
+ utilities.verifyInnerText(utilities.getNthElement(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect cell: 0.7692');
184
184
  utilities.verifyInnerText(utilities.getNthElement(gridFillPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
185
185
  });
186
186
  });
@@ -33,7 +33,7 @@ describe('Create item page - Grid fill: All or nothing with alternative answers'
33
33
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
34
34
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
35
35
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
36
- gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
36
+ gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
37
37
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
38
38
  });
39
39
 
@@ -34,7 +34,7 @@ describe('Create item page - grid fill: All or nothing with alternative answers'
34
34
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
35
35
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
36
36
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
37
- gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
37
+ gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
38
38
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
39
39
  });
40
40
 
@@ -18,6 +18,8 @@ describe('Create item page - Grid fill : All or nothing with alternate accordion
18
18
  gridFillPage.steps.allotPoints(15);
19
19
  gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
20
20
  gridFillPage.steps.addInputToCellShadeCountInputField(3);
21
+ gridFillPage.steps.expandCorrectAnswerAccordion();
22
+ gridFillPage.steps.allotPoints(27);
21
23
  //gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();
22
24
  });
23
25
 
@@ -29,7 +31,7 @@ describe('Create item page - Grid fill : All or nothing with alternate accordion
29
31
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
30
32
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
31
33
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
32
- gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
34
+ gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
33
35
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
34
36
  });
35
37
 
@@ -19,6 +19,8 @@ describe('Create item page - Grid fill : Partial equal weights with alternate',
19
19
  gridFillPage.steps.allotPoints(15);
20
20
  gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
21
21
  gridFillPage.steps.addInputToCellShadeCountInputField(3);
22
+ gridFillPage.steps.expandCorrectAnswerAccordion();
23
+ gridFillPage.steps.allotPoints(15);
22
24
  //gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();
23
25
  });
24
26
 
@@ -19,6 +19,8 @@ describe('Create item page - Grid fill : Partial equal weights with alternate',
19
19
  gridFillPage.steps.allotPoints(15);
20
20
  gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
21
21
  gridFillPage.steps.addInputToCellShadeCountInputField(3);
22
+ gridFillPage.steps.expandCorrectAnswerAccordion();
23
+ gridFillPage.steps.allotPoints(30);
22
24
  //gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();
23
25
  });
24
26