itemengine-cypress-automation 1.0.295-applitools-78e9d04.0 → 1.0.295-applitools-1a2329c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -0
  2. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +3 -3
  3. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +3 -3
  4. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +5 -5
  5. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
  6. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +4 -4
  7. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -1
  8. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -5
  9. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
  10. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -2
  11. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -3
  12. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +3 -3
  13. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
  14. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
  15. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -4
  16. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -4
  17. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +4 -4
  18. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
  19. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +3 -3
  20. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +4 -4
  21. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +3 -3
  22. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  23. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +3 -3
  24. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  25. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  26. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  27. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
  28. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  29. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  30. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  31. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
  32. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
  33. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -2
  34. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  35. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +2 -2
  36. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +4 -4
  37. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
  38. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -5
  39. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -3
  40. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +5 -5
  41. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +7 -7
  42. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +4 -4
  43. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
  44. package/package.json +1 -1
@@ -254,6 +254,8 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
254
254
  dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
255
255
  dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
256
256
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.scoringTypeDropdown(), 'Manually scored');
257
+ cy.log('Adding wait to ensure Manually scored is selected');
258
+ cy.wait(2000);
257
259
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
258
260
  break;
259
261
  case 'Grading view':
@@ -103,7 +103,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
103
103
  });
104
104
  };
105
105
 
106
- it(`${view}: FIG over image Text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, and correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
106
+ it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
107
107
  if (view === 'Grading view') {
108
108
  studentViewPage.steps.submitResponse();
109
109
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -121,7 +121,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
121
121
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
122
122
  });
123
123
 
124
- it(`${view}: FIG over image Text - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
124
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
125
125
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
126
126
  if (view === 'Grading view') {
127
127
  studentViewPage.steps.submitResponse();
@@ -140,7 +140,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
140
140
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
141
141
  });
142
142
 
143
- it(`${view}: FIG over image Text - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
143
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
144
144
  if (view === 'Grading view') {
145
145
  studentViewPage.steps.clearResponses();
146
146
  };
@@ -95,7 +95,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
95
95
  });
96
96
  };
97
97
 
98
- it(`${view}: FIG text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration and correct/incorrect status message should not be displayed`, () => {
98
+ it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
99
99
  if (view === 'Grading view') {
100
100
  studentViewPage.steps.submitResponse();
101
101
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -113,7 +113,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
113
113
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
114
114
  });
115
115
 
116
- it(`${view}: FIG text - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
116
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
117
117
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
118
118
  if (view === 'Grading view') {
119
119
  studentViewPage.steps.submitResponse();
@@ -132,7 +132,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
132
132
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
133
133
  });
134
134
 
135
- it(`${view}: FIG text - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
135
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
136
136
  if (view === 'Grading view') {
137
137
  studentViewPage.steps.clearResponses();
138
138
  };
@@ -81,12 +81,12 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
81
81
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
82
82
  });
83
83
 
84
- it(`Fill in the gaps text - ${view} User should be able to enter text in the answer input fields`, () => {
84
+ it('User should be able to enter text in the answer input fields', () => {
85
85
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
86
86
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
87
87
  });
88
88
  } else if (view === 'Grading view') {
89
- it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with answers`, () => {
89
+ it('The answer input fields should be displayed filled with answers', () => {
90
90
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
91
91
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
92
92
  });
@@ -97,7 +97,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
97
97
  fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
98
98
  });
99
99
  } else {
100
- it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with correct answers`, () => {
100
+ it('The answer input fields should be displayed filled with correct answers', () => {
101
101
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
102
102
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
103
103
  });
@@ -122,7 +122,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
122
122
  'border': `0px none ${css.color.text}`,
123
123
  });
124
124
  utilities.verifyCSS(fillInTheGapsTextPage.answerInputFieldPreviewTab(), {
125
- 'color': css.color.text,
125
+ 'color': css.color.text,
126
126
  'font-size': css.fontSize.default,
127
127
  'font-weight': css.fontWeight.regular
128
128
  });
@@ -143,7 +143,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
143
143
  'border': `0px none ${css.color.text}`,
144
144
  });
145
145
  utilities.verifyCSS(fillInTheGapsTextPage.answerInputFieldPreviewTab(), {
146
- 'color': css.color.text,
146
+ 'color': css.color.text,
147
147
  'font-size': css.fontSize.default,
148
148
  'font-weight': css.fontWeight.regular
149
149
  });
@@ -116,7 +116,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
116
116
  });
117
117
  };
118
118
 
119
- it(`Graphing: ${view} - When the user selects 'Grading' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed`, () => {
119
+ it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
120
120
  if (view === 'Grading view') {
121
121
  studentViewPage.steps.submitResponse();
122
122
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -148,7 +148,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
148
148
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
149
149
  });
150
150
 
151
- it(`Graphing: ${view} - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
151
+ it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
152
152
  graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
153
153
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
154
154
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
@@ -184,7 +184,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
184
184
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
185
185
  });
186
186
 
187
- it(`Graphing: ${view} - When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
187
+ it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
188
188
  if (view === 'Grading view') {
189
189
  studentViewPage.steps.clearResponses();
190
190
  }
@@ -223,7 +223,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
223
223
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
224
224
  });
225
225
 
226
- it(`Graphing: ${view} - When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
226
+ it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
227
227
  if (view === 'Grading view') {
228
228
  studentViewPage.steps.clearResponses();
229
229
  }
@@ -266,7 +266,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
266
266
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
267
267
  });
268
268
 
269
- it(`Graphing: ${view} - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view 'Your answer is correct' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
269
+ it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
270
270
  if (view === 'Grading view') {
271
271
  studentViewPage.steps.clearResponses();
272
272
  }
@@ -118,7 +118,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
118
118
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
119
119
  });
120
120
 
121
- it(`${view}: Grid fill - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview`, () => {
121
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
122
122
  gridFillPage.steps.selectCellPreviewTab(0, 3);
123
123
  if (view === 'Grading view') {
124
124
  studentViewPage.steps.submitResponse();
@@ -137,7 +137,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
137
137
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
138
138
  });
139
139
 
140
- it(`${view}: Grid fill - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
140
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
141
141
  if (view === 'Grading view') {
142
142
  studentViewPage.steps.clearResponses();
143
143
  };
@@ -159,7 +159,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
159
159
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
160
160
  });
161
161
 
162
- it(`${view}: Grid fill - When the user attempts the question partially correct with one correct and one incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
162
+ it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
163
163
  if (view === 'Grading view') {
164
164
  studentViewPage.steps.clearResponses();
165
165
  };
@@ -182,7 +182,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
182
182
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
183
183
  });
184
184
 
185
- it(`${view}: Grid fill - When the user attempts the question partially correct by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
185
+ it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
186
186
  if (view === 'Grading view') {
187
187
  studentViewPage.steps.clearResponses();
188
188
  };
@@ -77,7 +77,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
77
77
  utilities.verifyElementVisibilityState(gridFillPage.questionInstructionsText(), 'visible');
78
78
  });
79
79
 
80
- it('Grid matrix should be displayed with 4 rows and 6 columns and 24 cells should be present', () => {
80
+ it(`Grid fill - ${view} Grid matrix should be displayed with 4 rows and 6 columns and 24 cells should be present`, () => {
81
81
  utilities.verifyElementVisibilityState(gridFillPage.gridWrapperPreviewTab(), 'visible');
82
82
  gridFillPage.steps.verifyRowsCountPreviewTab(4);
83
83
  gridFillPage.steps.verifyColumnsCountPreviewTab(6);
@@ -114,7 +114,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
114
114
  });
115
115
  };
116
116
 
117
- it(`${view}: Image highlight - When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
117
+ it('When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
118
118
  if (view === 'Grading view') {
119
119
  studentViewPage.steps.submitResponse();
120
120
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -132,10 +132,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
132
132
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
133
133
  utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
134
134
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
135
-
135
+
136
136
  });
137
137
 
138
- it(`${view}: Image highlight - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
138
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
139
139
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
140
140
  if (view === 'Grading view') {
141
141
  studentViewPage.steps.submitResponse();
@@ -155,7 +155,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
155
155
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
156
156
  });
157
157
 
158
- it(`${view}: Image highlight - When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
158
+ it('When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
159
159
  if (view === 'Grading view') {
160
160
  studentViewPage.steps.clearResponses();
161
161
  };
@@ -178,7 +178,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
178
178
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
179
179
  });
180
180
 
181
- it(`${view}: Image highlight - When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
181
+ it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
182
182
  if (view === 'Grading view') {
183
183
  studentViewPage.steps.clearResponses();
184
184
  };
@@ -92,7 +92,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
92
92
  });
93
93
  };
94
94
 
95
- it(`${view}: List ordering dropdown - When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
95
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
96
96
  if (view === 'Grading view') {
97
97
  utilities.verifyElementDisabledClass(studentViewPage.submitButton());
98
98
  };
@@ -110,7 +110,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
110
110
  };
111
111
  });
112
112
 
113
- it(`${view}: List ordering dropdown - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
113
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
114
114
  listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
115
115
  if (view === 'Grading view') {
116
116
  studentViewPage.steps.submitResponse();
@@ -130,7 +130,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
130
130
  listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
131
131
  });
132
132
 
133
- it(`${view}: List ordering dropdown - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
133
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
134
134
  if (view === 'Grading view') {
135
135
  studentViewPage.steps.clearResponses();
136
136
  };
@@ -153,7 +153,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
153
153
  listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
154
154
  });
155
155
 
156
- it(`${view}: List ordering dropdown - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
156
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
157
157
  if (view === 'Grading view') {
158
158
  studentViewPage.steps.clearResponses();
159
159
  };
@@ -82,14 +82,14 @@ describe('Create item page - List ordering - Preview contents in all views', ()
82
82
  }
83
83
  });
84
84
 
85
- it('Question instructions should be visible', () => {
85
+ it(`List ordering: dropdown - ${view} - Question instructions should be visible`, () => {
86
86
  utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
87
87
  utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
88
88
  cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Options with image, bold text, and equation`);
89
89
  });
90
90
 
91
91
  if (view !== 'Grading view' && view !== 'Correct answer view') {
92
- it(`List ordering: dropdown When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
92
+ it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
93
93
  listOrderingPage.steps.verifyOptionWithImageInPreviewTab(0);
94
94
  listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(1);
95
95
  listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(2);
@@ -85,7 +85,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
85
85
  }
86
86
  });
87
87
 
88
- it('Question instructions should be visible', () => {
88
+ it(`${view} - List ordering: Horizontal Question instructions should be visible`, () => {
89
89
  utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
90
90
  utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
91
91
  cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Default question view`);
@@ -98,7 +98,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
98
98
  listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(2);
99
99
  });
100
100
 
101
- it(`${view} - List ordering: Horizontal orientationUser should be able to reorder options containing image, bold text and equation options in the list`, () => {
101
+ it('User should be able to reorder options containing image, bold text and equation options in the list', () => {
102
102
  listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('This is a bold option', 0);
103
103
  listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('Solve the following', 1);
104
104
  listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('This is a bold option', 0);
@@ -108,7 +108,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
108
108
  listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('alpha', 3);
109
109
  });
110
110
  } else if (view === 'Grading view') {
111
- it(`${view} - List ordering: Horizontal orientation The order of the responses should be as per the submitted response`, () => {
111
+ it(`The order of the responses should be as per the submitted response`, () => {
112
112
  listOrderingPage.steps.verifyHorizontalOptionWithBoldTextInPreviewTab(0);
113
113
  listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(1);
114
114
  listOrderingPage.steps.verifyHorizontalOptionWithImageInPreviewTab(2);
@@ -104,7 +104,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
104
104
  });
105
105
  };
106
106
 
107
- it(`${view}: List ordering - When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed`, () => {
107
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
108
108
  if (view === 'Grading view') {
109
109
  studentViewPage.steps.submitResponse();
110
110
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -122,7 +122,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
122
122
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
123
123
  });
124
124
 
125
- it(`${view}: List ordering - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
125
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
126
126
  listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
127
127
  listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
128
128
  if (view === 'Grading view') {
@@ -143,7 +143,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
143
143
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
144
144
  });
145
145
 
146
- it(`${view}: List ordering - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
146
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
147
147
  if (view === 'Grading view') {
148
148
  studentViewPage.steps.clearResponses();
149
149
  };
@@ -15,7 +15,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
15
15
  });
16
16
 
17
17
  views.forEach((view) => {
18
- describe(`${view}: List ordering: Horizontal orientation - Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
18
+ describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
19
19
  abortEarlySetup();
20
20
  before(() => {
21
21
  switch (view) {
@@ -66,7 +66,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
66
66
  });
67
67
  };
68
68
 
69
- it(`${view}: List ordering: Horizontal orientation - When the user selects 'Grading' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed`, () => {
69
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
70
70
  if (view === 'Grading view') {
71
71
  utilities.verifyElementVisibilityState(studentViewPage.submitButton(), 'visible');
72
72
  studentViewPage.steps.submitResponse();
@@ -85,7 +85,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
85
85
  listOrderingPage.steps.verifyCorrectOptionIconsCorrectAnswerSection();
86
86
  });
87
87
 
88
- it(`${view}: List ordering: Horizontal orientation - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides all incorrect responses, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
88
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
89
89
  listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('sprout', 3);
90
90
  listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 0);
91
91
  if (view === 'Grading view') {
@@ -106,7 +106,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
106
106
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
107
107
  });
108
108
 
109
- it(`${view}: List ordering: Horizontal orientation - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
109
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
110
110
  if (view === 'Grading view') {
111
111
  studentViewPage.steps.clearResponses();
112
112
  };
@@ -132,7 +132,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
132
132
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
133
133
  });
134
134
 
135
- it(`${view}: List ordering: Horizontal orientation - When user attempts the question correctly, the user should be awarded full points and on switching to 'Grading' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text 'Your answer is correct' and correct answer section should not be displayed`, () => {
135
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
136
136
  if (view === 'Grading view') {
137
137
  studentViewPage.steps.clearResponses();
138
138
  };
@@ -9,7 +9,7 @@ var itemReferenceID = "";
9
9
  const options = ['sprout', 'plant', 'flower', 'seed'];
10
10
  const correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
11
11
 
12
- describe('Create item page - List ordering - Reorder as a separate list: All or nothing for "Horizontal" option orientation', () => {
12
+ describe('Create item page - List ordering: All or nothing for "Horizontal" option orientation', () => {
13
13
  before(() => {
14
14
  cy.loginAs('admin');
15
15
  });
@@ -69,7 +69,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
69
69
  });
70
70
  };
71
71
  if (view === 'Question preview' || view === 'Item preview') {
72
- it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed`, () => {
72
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
73
73
  listOrderingPage.steps.verifyPreviewScore(0, 20);
74
74
  listOrderingPage.steps.switchToGradingView();
75
75
  listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
@@ -78,8 +78,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
78
78
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
79
79
  });
80
80
  }
81
-
82
- it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
81
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
83
82
  listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
84
83
  listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
85
84
  listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
@@ -102,7 +101,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
102
101
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
103
102
  });
104
103
 
105
- it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
104
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
106
105
  if (view === 'Grading view') {
107
106
  studentViewPage.steps.clearResponses();
108
107
  };
@@ -128,7 +127,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
128
127
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
129
128
  });
130
129
 
131
- it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
130
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
132
131
  if (view === 'Grading view') {
133
132
  studentViewPage.steps.clearResponses();
134
133
  };
@@ -119,7 +119,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
119
119
  };
120
120
 
121
121
  if (view === 'Question preview' || view === 'Item preview') {
122
- it(`${view}: List ordering:Reorder as a separate list - When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed`, () => {
122
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
123
123
  listOrderingPage.steps.verifyPreviewScore(0, 20);
124
124
  listOrderingPage.steps.switchToGradingView();
125
125
  listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
@@ -129,7 +129,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
129
129
  });
130
130
  };
131
131
 
132
- it(`${view}: List ordering:Reorder as a separate list - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
132
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
133
133
  listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
134
134
  listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
135
135
  listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
@@ -152,7 +152,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
152
152
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
153
153
  });
154
154
 
155
- it(`${view}: List ordering:Reorder as a separate list - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
155
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
156
156
  if (view === 'Grading view') {
157
157
  studentViewPage.steps.clearResponses();
158
158
  };
@@ -178,7 +178,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
178
178
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
179
179
  });
180
180
 
181
- it(`${view}: List ordering:Reorder as a separate list - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
181
+ it(`${view}: List ordering:Reorder as a separate list - When the user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
182
182
  if (view === 'Grading view') {
183
183
  studentViewPage.steps.clearResponses();
184
184
  };
@@ -81,7 +81,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
81
81
  }
82
82
  });
83
83
 
84
- it(`List ordering: Reorder as a separate list - ${view} - Question instructions should be visible`, () => {
84
+ it('Question instructions should be visible', () => {
85
85
  utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
86
86
  utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
87
87
  });
@@ -93,7 +93,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
93
93
  listOrderingPage.steps.verifyOptionWithEquationTextInOptionsContainerPreviewTabSeperateList(2);
94
94
  });
95
95
 
96
- it(`User should be able to drop the options in the dropzone containing image, bold text and equation options in the list`, () => {
96
+ it('User should be able to drop the options in the dropzone containing image, bold text and equation options in the list', () => {
97
97
  listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
98
98
  listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
99
99
  listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
@@ -104,7 +104,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
104
104
  listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
105
105
  });
106
106
  } else if (view === 'Grading view') {
107
- it(`The order of the responses should be as per the submitted response`, () => {
107
+ it('The order of the responses should be as per the submitted response', () => {
108
108
  listOrderingPage.steps.verifyOptionWithBoldTextInDropzonePreviewTabSeperateList(0);
109
109
  listOrderingPage.steps.verifyOptionWithImageInDropzonePreviewTabSeperateList(1);
110
110
  listOrderingPage.steps.verifyOptionWithEquationTextInDropzonePreviewTabSeperateList(2);
@@ -125,7 +125,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
125
125
  listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
126
126
  });
127
127
  } else {
128
- it(`The order of the options should be as per the correct answer order`, () => {
128
+ it('The order of the options should be as per the correct answer order', () => {
129
129
  listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
130
130
  listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
131
131
  listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
@@ -105,7 +105,7 @@ describe('Create item page - Matching: All or nothing ', () => {
105
105
  });
106
106
  };
107
107
 
108
- it(`${view}: Matching - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, then correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
108
+ it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, then correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
109
109
  if (view === 'Grading view') {
110
110
  studentViewPage.steps.submitResponse();
111
111
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -124,7 +124,7 @@ describe('Create item page - Matching: All or nothing ', () => {
124
124
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
125
125
  });
126
126
 
127
- it(`${view}:Matching - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
127
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
128
128
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
129
129
  if (view === 'Grading view') {
130
130
  studentViewPage.steps.submitResponse();
@@ -143,7 +143,7 @@ describe('Create item page - Matching: All or nothing ', () => {
143
143
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
144
144
  });
145
145
 
146
- it(`${view}: Matching - When the user attempts the question partially correct with some correct, some incomplete, some incorrect options then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
146
+ it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
147
147
  if (view === 'Grading view') {
148
148
  studentViewPage.steps.clearResponses();
149
149
  };
@@ -165,7 +165,7 @@ describe('Create item page - Matching: All or nothing ', () => {
165
165
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
166
166
  });
167
167
 
168
- it(`${view}: Matching - When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
168
+ it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
169
169
  if (view === 'Grading view') {
170
170
  studentViewPage.steps.clearResponses();
171
171
  };