itemengine-cypress-automation 1.0.144 → 1.0.145

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +2 -2
  2. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingForAllViews.smoke.js +1 -1
  3. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingPenaltyScoring.js +0 -1
  4. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -1
  5. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToCorrectPoints.js +0 -1
  6. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
  7. package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +0 -2
  8. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +0 -12
  9. package/cypress/e2e/ILC/Graphing/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
  10. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +0 -2
  11. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +1 -0
  12. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +0 -1
  13. package/cypress/e2e/ILC/Graphing/specifyCorrectAnswerSection.js +0 -1
  14. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +0 -1
  15. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +8 -8
  16. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  17. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +256 -0
  18. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +252 -0
  19. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +335 -0
  20. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingPenaltyScoring.js +60 -0
  21. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +157 -0
  22. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +2 -2
  23. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +497 -0
  24. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
  25. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +200 -0
  26. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +280 -0
  27. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +281 -0
  28. package/cypress/e2e/ILC/Matching/checkAnswerFunctionalityForAllViews.smoke.js +142 -0
  29. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +146 -0
  30. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingPenaltyScoring.js +55 -0
  31. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsBasic.js +116 -0
  32. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +307 -0
  33. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +163 -0
  34. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +2 -3
  35. package/cypress/e2e/ILC/MultipleSelectionGridNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  36. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -0
  37. package/cypress/e2e/ILC/SingleSelectionGridNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  38. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -5
  39. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +11 -10
  40. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +6 -9
  41. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +12 -5
  42. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -2
  43. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -0
  44. package/cypress/pages/components/desmosToolComponent.js +1 -1
  45. package/cypress/pages/components/gridQuestionCommonComponent.js +28 -4
  46. package/cypress/pages/components/index.js +1 -0
  47. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +132 -0
  48. package/cypress/pages/dragAndDropIntoCategoriesPage.js +3 -113
  49. package/cypress/pages/geoGebraToolsPage.js +1 -1
  50. package/cypress/pages/graphingPage.js +6 -0
  51. package/cypress/pages/gridFillPage.js +67 -12
  52. package/cypress/pages/index.js +2 -1
  53. package/cypress/pages/matchingPage.js +433 -0
  54. package/cypress/pages/multipleSelectionGridPage.js +11 -3
  55. package/cypress/pages/singleSelectionGridPage.js +2 -1
  56. package/cypress/pages/textEntryMathPage.js +5 -0
  57. package/cypress/pages/textEntryMathWithImagePage.js +6 -1
  58. package/package.json +1 -1
@@ -0,0 +1,60 @@
1
+ import { gridFillPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Grid fill : All or nothing with alternative answers', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question preview: Auto scored - All or nothing: Penalty scoring with \'Round negative score to zero\' unchecked', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ gridFillPage.steps.navigateToCreateQuestion('grid fill');
13
+ cy.barsPreLoaderWait();
14
+ gridFillPage.steps.allotPoints(20);
15
+ gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0,0);
16
+ gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0,1);
17
+ gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0,2);
18
+ });
19
+
20
+ //Penalty points for the entire question
21
+ it('When the user sets penalty scoring to \'Penalty points for the entire question\', allots penalty points and attempts the question incorrectly, then the user should be awarded with negative points', () => {
22
+ gridFillPage.steps.expandPenaltyScoringDropdown();
23
+ gridFillPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for the entire question');
24
+ gridFillPage.steps.uncheckRoundNegativeScoresToZeroCheckbox();
25
+ gridFillPage.steps.allotPenaltyPoints(2);
26
+ gridFillPage.steps.switchToPreviewTab();
27
+ gridFillPage.steps.selectCellPreviewTab(1, 1);
28
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
29
+ gridFillPage.steps.verifyPreviewScore(-2, 20);
30
+ });
31
+
32
+ it('When the user attempts the question partially correct along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
33
+ gridFillPage.steps.resetQuestionPreview();
34
+ gridFillPage.steps.selectCellPreviewTab(0, 0);
35
+ gridFillPage.steps.selectCellPreviewTab(0, 1);
36
+ gridFillPage.steps.selectCellPreviewTab(1, 1);
37
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
38
+ gridFillPage.steps.verifyPreviewScore(-2, 20);
39
+ });
40
+
41
+ it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points should get deducted from the awarded points only once, the deducted penalty points should not increase as per number of selected incorrect responses', () => {
42
+ gridFillPage.steps.resetQuestionPreview();
43
+ gridFillPage.steps.selectCellPreviewTab(0, 0);
44
+ gridFillPage.steps.selectCellPreviewTab(1, 0);
45
+ gridFillPage.steps.selectCellPreviewTab(1, 2);
46
+ gridFillPage.steps.verifyPreviewScore(-2, 20);
47
+ });
48
+
49
+ 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', () => {
50
+ gridFillPage.steps.switchToEditTab();
51
+ gridFillPage.steps.expandMinimumScoringDropdown();
52
+ gridFillPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
53
+ gridFillPage.steps.allotMinimumPoints(3);
54
+ gridFillPage.steps.switchToPreviewTab();
55
+ gridFillPage.steps.selectCellPreviewTab(1, 2);
56
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 2);
57
+ gridFillPage.steps.verifyPreviewScore(3, 20);
58
+ });
59
+ });
60
+ });
@@ -0,0 +1,157 @@
1
+ import { gridFillPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Grid fill : Partial equal weights', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Cell shade count - scoring', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ gridFillPage.steps.navigateToCreateQuestion('grid fill');
13
+ cy.barsPreLoaderWait();
14
+ gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
15
+ gridFillPage.steps.addInputToCellShadeCountInputField(3);
16
+ gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();
17
+ gridFillPage.steps.allotPoints(27);
18
+ });
19
+
20
+ it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in exact number of cells specified in specify correct answer section', () => {
21
+ gridFillPage.steps.switchToPreviewTab();
22
+ gridFillPage.steps.switchToGradingView();
23
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
24
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
25
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
26
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
27
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
28
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
29
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
30
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
31
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
32
+ gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
33
+ });
34
+
35
+ it('When user attempt questions by selecting the less number of cells specified in specify correct answer section, then user should be 0 points in preview tab and switching to grading view, correct icon, border and background should be displayed in selected responses and correct icon should be displayed in unselected responses', () => {
36
+ gridFillPage.steps.resetQuestionPreview();
37
+ gridFillPage.steps.selectCellPreviewTab(1, 1);
38
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
39
+ gridFillPage.steps.selectCellPreviewTab(1, 3);
40
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 3);
41
+ gridFillPage.steps.verifyPreviewScore(0, 27);
42
+ gridFillPage.steps.switchToGradingView();
43
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
44
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
45
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
46
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 1);
47
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 1);
48
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
49
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
50
+ gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
51
+ cy.log('When user attempt questions by selecting the less number of cells specified in specify correct answer section and clicks on \'Check answer\' button, then correct icon, border and background should be displayed in selected responses and status message \'Your answer is incorrect\' should be displayed');
52
+ gridFillPage.steps.checkAnswer();
53
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
54
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
55
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 1);
56
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 1);
57
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
58
+ });
59
+
60
+ it('When user attempt questions by selecting the more number of cells specified in specify correct answer section, then user should be awarded 0 points in preview tab and switching to grading view, correct icon, border and background should be displayed in correct responses and incorrect icon should be displayed in extra selected response', () => {
61
+ gridFillPage.steps.resetQuestionPreview();
62
+ gridFillPage.steps.selectCellPreviewTab(1, 1);
63
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
64
+ gridFillPage.steps.selectCellPreviewTab(1, 3);
65
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 3);
66
+ gridFillPage.steps.selectCellPreviewTab(0, 1);
67
+ gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
68
+ gridFillPage.steps.selectCellPreviewTab(0, 3);
69
+ gridFillPage.steps.verifyCellSelectedPreviewTab(0, 3);
70
+ gridFillPage.steps.verifyPreviewScore(0, 27);
71
+ gridFillPage.steps.switchToGradingView();
72
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
73
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
74
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
75
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
76
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
77
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
78
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
79
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
80
+ gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
81
+ cy.log('When user attempt questions by selecting the more number of cells specified in specify correct answer section and clicks on \'Check answer\' button, then correct icon, border and background should be displayed in selected responses and incorrect icon should be displayed in extra selected response and status message \'Your answer is incorrect\' should be displayed');
82
+ gridFillPage.steps.checkAnswer();
83
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
84
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
85
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
86
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
87
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
88
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
89
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
90
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
91
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
92
+ });
93
+
94
+ it('When user attempt questions by selecting the exact number of cells specified in specify correct answer section, then user should be awarded full points and switching to grading view, correct icons should be displayed in selected responses', () => {
95
+ gridFillPage.steps.resetQuestionPreview();
96
+ gridFillPage.steps.selectCellPreviewTab(1, 1);
97
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
98
+ gridFillPage.steps.selectCellPreviewTab(1, 3);
99
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 3);
100
+ gridFillPage.steps.selectCellPreviewTab(0, 1);
101
+ gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
102
+ gridFillPage.steps.verifyPreviewScore(27, 27);
103
+ gridFillPage.steps.switchToGradingView();
104
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 1);
105
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 1);
106
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
107
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
108
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
109
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
110
+ gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
111
+ cy.log('When user attempt questions by selecting the exact number of cells specified in specify correct answer section and clicks on \'Check answer\' button, then correct icon, border and background should be displayed in selected responses and status message \'Your answer is incorrect\' should be displayed');
112
+ gridFillPage.steps.checkAnswer();
113
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 1);
114
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 1);
115
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
116
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
117
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
118
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
119
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
120
+ });
121
+
122
+ it('When user attempt questions by selecting the exact number of cells specified in specify correct answer section and one incorrect response, then user should be awarded 0 points and when user unselects the extra response then user should be awarded full points', () => {
123
+ gridFillPage.steps.resetQuestionPreview();
124
+ gridFillPage.steps.selectCellPreviewTab(1, 1);
125
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
126
+ gridFillPage.steps.selectCellPreviewTab(1, 3);
127
+ gridFillPage.steps.verifyCellSelectedPreviewTab(1, 3);
128
+ gridFillPage.steps.selectCellPreviewTab(0, 1);
129
+ gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
130
+ gridFillPage.steps.selectCellPreviewTab(0, 0);
131
+ gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
132
+ gridFillPage.steps.verifyPreviewScore(0, 27);
133
+ gridFillPage.steps.switchToGradingView();
134
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
135
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
136
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
137
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
138
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
139
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
140
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
141
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
142
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
143
+ cy.log('User unselects extra response in student view and switches to grading view');
144
+ gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
145
+ gridFillPage.steps.unselectCellPreviewTab(0,0);
146
+ gridFillPage.steps.verifyPreviewScore(27, 27);
147
+ gridFillPage.steps.switchToGradingView();
148
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 1);
149
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 1);
150
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
151
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
152
+ gridFillPage.steps.verifyCorrectResponseIcon(1, 3);
153
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(1, 3);
154
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
155
+ });
156
+ });
157
+ });
@@ -32,8 +32,8 @@ describe('Create Item page - Grid fill: Manually and non scored', () => {
32
32
  gridFillPage.steps.navigateToCreateQuestion('grid fill');
33
33
  cy.barsPreLoaderWait();
34
34
  gridFillPage.steps.addTextInQuestionInstructionsInputField('grid fill');
35
- gridFillPage.steps.selectCell(0, 4);
36
- gridFillPage.steps.selectCell(0, 3);
35
+ gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 4);
36
+ gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 3);
37
37
  gridFillPage.steps.expandScoringTypeDropdown();
38
38
  gridFillPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
39
39
  gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();