itemengine-cypress-automation 1.0.602-IEI-7053-d31077b.0 → 1.0.602-IEI-7053-f14f91b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/pages/textEntryMathPage.js +7 -1
- package/package.json +1 -1
|
@@ -301,7 +301,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
|
301
301
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
302
302
|
});
|
|
303
303
|
|
|
304
|
-
it
|
|
304
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers then on switching to the \'Grading view\', then points awarded should be of the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with response area numeration should be displayed', () => {
|
|
305
305
|
cy.log('Pre-step: Switching to Edit tab and allotting points to alternative accordion such that the difference between the points is substantial and the points per response are in decimal')
|
|
306
306
|
textEntryMathPage.steps.switchToEditTab();
|
|
307
307
|
textEntryMathPage.steps.deleteAlternativeAnswerAccordion(0);
|
|
@@ -343,8 +343,8 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
|
343
343
|
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
344
344
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSection([
|
|
345
345
|
{
|
|
346
|
-
correctAnswers: ['Correct', '2x2y2+4xy+4', '9000%'],
|
|
347
|
-
points: ['(23 points)', '(11.4 points)', '(1.2 points)', '(10.
|
|
346
|
+
correctAnswers: ['CorrectAnswer', '2x2y2+4xy+4', '9000%'],
|
|
347
|
+
points: ['(23 points)', '(11.4 points)', '(1.2 points)', '(10.4 points)']
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
correctAnswers: ['Correct', '6×π', '7.07e'],
|
|
@@ -796,6 +796,12 @@ const steps = {
|
|
|
796
796
|
});
|
|
797
797
|
},
|
|
798
798
|
|
|
799
|
+
/**
|
|
800
|
+
* Verifies the correct answer responses and points in the correct answer section
|
|
801
|
+
* @param {Array} correctAnswersArray - Array of objects containing correctAnswers and points arrays
|
|
802
|
+
* @param {Array} correctAnswersArray[].correctAnswers - Array of correct answer strings to verify
|
|
803
|
+
* @param {Array} correctAnswersArray[].points - Array of point values to verify
|
|
804
|
+
*/
|
|
799
805
|
verifyCorrectAnswerResponsesInCorrectAnswerSection: (correctAnswersArray) => {
|
|
800
806
|
let responseIndex = 0;
|
|
801
807
|
let pointsIndex = 0;
|
|
@@ -811,7 +817,7 @@ const steps = {
|
|
|
811
817
|
utilities.verifyTextContent(utilities.getNthElement(textEntryMathPage.correctAnswerSectionPointsLabel(), pointsIndex), pointsText);
|
|
812
818
|
pointsIndex += 1;
|
|
813
819
|
})
|
|
814
|
-
})
|
|
820
|
+
});
|
|
815
821
|
},
|
|
816
822
|
|
|
817
823
|
/**
|