itemengine-cypress-automation 1.0.196-drawingResponseMigration-0f99062.0 → 1.0.197-15thMayFixes-958decd.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +54 -33
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +22 -22
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabScoringSection.js +10 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +8 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +6 -6
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +3 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +7 -6
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -3
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -3
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +6 -12
- package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +12 -12
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +2 -5
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +5 -0
- package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +4 -3
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +10 -28
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +10 -10
- package/cypress/pages/chartsDotPlotPage.js +7 -1
- package/cypress/pages/components/additionalSettingsPanel.js +1 -0
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -0
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -1
- package/cypress/pages/listOrderingPage.js +21 -0
- package/cypress/pages/multipleSelectionPage.js +14 -0
- package/cypress/pages/numberLineLabelPage.js +28 -27
- package/cypress/pages/textEntryMathPage.js +0 -7
- package/package.json +1 -1
@@ -59,8 +59,7 @@ describe('Question Preview: Non Scored', () => {
|
|
59
59
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
60
60
|
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
|
61
61
|
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
|
62
|
-
multipleSelectionPage.steps.
|
63
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
62
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
64
63
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
65
64
|
cy.log('When the user has attempted the question incorrectly clicks on \'Check answer\' button, then correct icons should be displayed besides correct response and incorrect icon should be displayed beside incorrect option, incorrect answer border and a label should not be displayed below the question preview')
|
66
65
|
multipleSelectionPage.steps.checkAnswer();
|
@@ -68,8 +67,7 @@ describe('Question Preview: Non Scored', () => {
|
|
68
67
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
69
68
|
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
70
69
|
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
|
71
|
-
multipleSelectionPage.steps.
|
72
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
70
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
73
71
|
});
|
74
72
|
|
75
73
|
it('When the user attempts the question partially correct, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, incorrect icons should be displayed beside the incorrect responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
|
@@ -80,8 +78,7 @@ describe('Question Preview: Non Scored', () => {
|
|
80
78
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
81
79
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
82
80
|
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
|
83
|
-
multipleSelectionPage.steps.
|
84
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
81
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
85
82
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
86
83
|
cy.log('When the user has attempted the question incorrectly clicks on \'Check answer\' button, then correct icons should be displayed besides correct response and incorrect icon should be displayed beside incorrect option, incorrect answer border and a label should not be displayed below the question preview')
|
87
84
|
multipleSelectionPage.steps.checkAnswer();
|
@@ -89,8 +86,7 @@ describe('Question Preview: Non Scored', () => {
|
|
89
86
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
90
87
|
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
91
88
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
92
|
-
multipleSelectionPage.steps.
|
93
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
89
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
94
90
|
});
|
95
91
|
|
96
92
|
it('When the user attempts the question correctly, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should not be displayed, correct answer border and an \'Correct answer\' label should be displayed below the question preview', () => {
|
@@ -100,8 +96,7 @@ describe('Question Preview: Non Scored', () => {
|
|
100
96
|
multipleSelectionPage.steps.switchToGradingView();
|
101
97
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
102
98
|
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
103
|
-
multipleSelectionPage.steps.
|
104
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
99
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
105
100
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
106
101
|
cy.log('When the user has attempted the question with correct responses and clicks on \'Check answer\' button, then correct icon should be displayed besides correct response, correct answer border and a label should not be displayed below the question preview')
|
107
102
|
multipleSelectionPage.steps.checkAnswer();
|
@@ -109,7 +104,6 @@ describe('Question Preview: Non Scored', () => {
|
|
109
104
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
110
105
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
111
106
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
112
|
-
multipleSelectionPage.steps.
|
113
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
107
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
114
108
|
});
|
115
109
|
});
|
@@ -47,8 +47,8 @@ describe('Create item page - Multiple selection grid: Header section and Saving
|
|
47
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
48
48
|
multipleSelectionGridPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
49
|
multipleSelectionGridPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
50
|
-
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionGridPage.errorMessage(),
|
51
|
-
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionGridPage.errorMessage(),
|
50
|
+
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionGridPage.errorMessage(), 0), 'Error: Please enter some text.');
|
51
|
+
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionGridPage.errorMessage(), 1), 'Error: Please set a correct answer.');
|
52
52
|
for (let index = 1; index < 4; index++) {
|
53
53
|
multipleSelectionGridPage.steps.verifyErrorIconInSpecifyColumnsAndRowsGrid(index);
|
54
54
|
}
|
@@ -15,7 +15,6 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
|
17
17
|
numberLinePage.steps.selectToolOptions(unselectedToolOption);
|
18
|
-
numberLinePage.steps.uncheckStaggerResponseCheckbox();
|
19
18
|
numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
|
20
19
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
|
21
20
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [2]);
|
@@ -32,7 +32,9 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
32
32
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
33
33
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
34
34
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
|
35
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
35
36
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, -9);
|
37
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-9]);
|
36
38
|
numberLineLabelPage.steps.allotPoints(20);
|
37
39
|
numberLineLabelPage.steps.switchToPreviewTab();
|
38
40
|
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
@@ -114,8 +116,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
114
116
|
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
115
117
|
}
|
116
118
|
utilities.verifyElementVisibilityState(numberLineLabelPage.numberLinePointPreviewTab(), 'notExist');
|
117
|
-
|
118
|
-
//numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
119
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
119
120
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
120
121
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
121
122
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
@@ -219,7 +219,7 @@ describe('Create item page - Single selection grid: Partial different weights wi
|
|
219
219
|
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
|
220
220
|
singleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 2 });
|
221
221
|
singleSelectionGridPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
222
|
-
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column:
|
222
|
+
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 2 }, { row: 2, column: 2 }, { row: 3, column: 2 }, { row: 4, column: 2 }]);
|
223
223
|
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
224
224
|
cy.log('When the user has attempted the question with more number of correct responses from the correct accordion than the alternative accordion and clicks on \'Check answer\' button, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
225
225
|
singleSelectionGridPage.steps.checkAnswer();
|
@@ -47,8 +47,8 @@ describe('Create item page - Single selection grid: Header section and Saving qu
|
|
47
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
48
48
|
singleSelectionGridPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
49
|
singleSelectionGridPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
50
|
-
utilities.verifyInnerText(utilities.getNthElement(singleSelectionGridPage.errorMessage(),
|
51
|
-
utilities.verifyInnerText(utilities.getNthElement(singleSelectionGridPage.errorMessage(),
|
50
|
+
utilities.verifyInnerText(utilities.getNthElement(singleSelectionGridPage.errorMessage(), 0), 'Error: Please enter some text.');
|
51
|
+
utilities.verifyInnerText(utilities.getNthElement(singleSelectionGridPage.errorMessage(), 1), 'Error: Please set a correct answer.');
|
52
52
|
for (let index = 1; index < 4; index++) {
|
53
53
|
singleSelectionGridPage.steps.verifyErrorIconInSpecifyColumnsAndRowsGrid(index);
|
54
54
|
}
|
@@ -19,8 +19,8 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
19
19
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
22
|
-
textEntryMathPage.steps.
|
23
|
-
textEntryMathPage.steps.
|
22
|
+
textEntryMathPage.steps.addResponseArea();
|
23
|
+
textEntryMathPage.steps.addResponseArea();
|
24
24
|
textEntryMathPage.steps.switchToPreviewTab();
|
25
25
|
});
|
26
26
|
|
@@ -64,9 +64,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
64
64
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
65
65
|
cy.barsPreLoaderWait();
|
66
66
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
67
|
-
textEntryMathPage.steps.
|
68
|
-
textEntryMathPage.steps.
|
69
|
-
textEntryMathPage.steps.
|
67
|
+
textEntryMathPage.steps.addResponseArea();
|
68
|
+
textEntryMathPage.steps.addResponseArea();
|
69
|
+
textEntryMathPage.steps.addResponseArea();
|
70
70
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
71
71
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
72
72
|
equationEditorFlyout.steps.clearAll();
|
@@ -133,7 +133,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
133
133
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
134
134
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
135
135
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
136
|
-
textEntryMathPage.steps.
|
136
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
137
137
|
});
|
138
138
|
|
139
139
|
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, and \'Your answer is incorrect\' label should be displayed', () => {
|
@@ -264,9 +264,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
264
264
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
265
265
|
cy.barsPreLoaderWait();
|
266
266
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
267
|
-
textEntryMathPage.steps.
|
268
|
-
textEntryMathPage.steps.
|
269
|
-
textEntryMathPage.steps.
|
267
|
+
textEntryMathPage.steps.addResponseArea();
|
268
|
+
textEntryMathPage.steps.addResponseArea();
|
269
|
+
textEntryMathPage.steps.addResponseArea();
|
270
270
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
271
271
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
272
272
|
equationEditorFlyout.steps.clearAll();
|
@@ -34,9 +34,9 @@ describe('Create item page - Text entry math - Check answer functionality', () =
|
|
34
34
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
35
35
|
cy.barsPreLoaderWait();
|
36
36
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
37
|
-
textEntryMathPage.steps.
|
38
|
-
textEntryMathPage.steps.
|
39
|
-
textEntryMathPage.steps.
|
37
|
+
textEntryMathPage.steps.addResponseArea();
|
38
|
+
textEntryMathPage.steps.addResponseArea();
|
39
|
+
textEntryMathPage.steps.addResponseArea();
|
40
40
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
41
41
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
42
42
|
equationEditorFlyout.steps.clearAll();
|
@@ -49,8 +49,8 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
49
49
|
});
|
50
50
|
|
51
51
|
it('When user adds response tokens to the question input field, then the response tokens should be displayed with a numeric count along with a close button in the question input field', () => {
|
52
|
-
textEntryMathPage.steps.
|
53
|
-
textEntryMathPage.steps.
|
52
|
+
textEntryMathPage.steps.addResponseArea();
|
53
|
+
textEntryMathPage.steps.addResponseArea();
|
54
54
|
textEntryMathPage.steps.verifyResponseAreaContents(0);
|
55
55
|
textEntryMathPage.steps.verifyResponseAreaContents(1);
|
56
56
|
});
|
@@ -63,7 +63,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
63
63
|
it('When the user focuses in the question input field, the CKEditor toolbar should be displayed with a \'+Response\' button and when the user clicks on \'+Response\' button, then a response token should be added in the question input field', () => {
|
64
64
|
textEntryMathPage.steps.focusInQuestionInputField();
|
65
65
|
utilities.verifyElementVisibilityState(textEntryMathPage.responseToken(), 'visible');
|
66
|
-
textEntryMathPage.steps.
|
66
|
+
textEntryMathPage.steps.addResponseArea();
|
67
67
|
utilities.verifyElementCount(textEntryMathPage.responseArea(), 3);
|
68
68
|
textEntryMathPage.steps.verifyResponseAreaContents(2);
|
69
69
|
});
|
@@ -86,7 +86,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
86
86
|
textEntryMathPage.tests.verifyQuestionInputFieldPlaceholderText();
|
87
87
|
|
88
88
|
it('When the user adds a response area in the question field, then the error message should disappear', () => {
|
89
|
-
textEntryMathPage.steps.
|
89
|
+
textEntryMathPage.steps.addResponseArea();
|
90
90
|
utilities.verifyElementCount(textEntryMathPage.responseArea(), 1);
|
91
91
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
92
92
|
});
|
@@ -124,8 +124,8 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
124
124
|
before(() => {
|
125
125
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
126
126
|
cy.barsPreLoaderWait();
|
127
|
-
textEntryMathPage.steps.
|
128
|
-
textEntryMathPage.steps.
|
127
|
+
textEntryMathPage.steps.addResponseArea();
|
128
|
+
textEntryMathPage.steps.addResponseArea();
|
129
129
|
});
|
130
130
|
|
131
131
|
it('For the two response token in question input field, two response accordions \'Response 1\' and \'Response 2\' should be present in collapsed state in the \'Specify correct answer section\'', () => {
|
@@ -137,7 +137,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
137
137
|
});
|
138
138
|
|
139
139
|
it('When the user adds a response token in the question input field, then a response accordion along with \'Response #\' label should be added in the \'Specify correct answer\' section', () => {
|
140
|
-
textEntryMathPage.steps.
|
140
|
+
textEntryMathPage.steps.addResponseArea();
|
141
141
|
utilities.verifyElementCount(textEntryMathPage.responseAccordion(), 3);
|
142
142
|
utilities.verifyInnerText(utilities.getNthElement(textEntryMathPage.responseAccordionLabel(), 2), 'Response 3');
|
143
143
|
});
|
@@ -157,8 +157,8 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
157
157
|
before(() => {
|
158
158
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
159
159
|
cy.barsPreLoaderWait();
|
160
|
-
textEntryMathPage.steps.
|
161
|
-
textEntryMathPage.steps.
|
160
|
+
textEntryMathPage.steps.addResponseArea();
|
161
|
+
textEntryMathPage.steps.addResponseArea();
|
162
162
|
});
|
163
163
|
|
164
164
|
it('For the two response token in question input field, in additional settings accordion, two \'ARIA label for text containers\'input fields should be displayed', () => {
|
@@ -167,7 +167,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
167
167
|
});
|
168
168
|
|
169
169
|
it('When the user adds a response token in the question input field, then in additional settings accordion, one more \'ARIA label for text containers\' input field should be displayed with appropriate numeration', () => {
|
170
|
-
textEntryMathPage.steps.
|
170
|
+
textEntryMathPage.steps.addResponseArea();
|
171
171
|
textEntryMathPage.steps.verifyTextContainerAriaLabelInputFieldCountAndNumeration(3);
|
172
172
|
});
|
173
173
|
|
@@ -199,8 +199,8 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
199
199
|
|
200
200
|
it('When the user adds a response token in the question input field, then in preview tab the additional response field should be displayed', () => {
|
201
201
|
textEntryMathPage.steps.switchToEditTab();
|
202
|
-
textEntryMathPage.steps.
|
203
|
-
textEntryMathPage.steps.
|
202
|
+
textEntryMathPage.steps.addResponseArea();
|
203
|
+
textEntryMathPage.steps.addResponseArea();
|
204
204
|
textEntryMathPage.steps.switchToPreviewTab();
|
205
205
|
utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), 2);
|
206
206
|
});
|
@@ -84,7 +84,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
|
|
84
84
|
});
|
85
85
|
|
86
86
|
it('When the user adds one more response token, then points per response should get updated accordingly', () => {
|
87
|
-
textEntryMathPage.steps.
|
87
|
+
textEntryMathPage.steps.addResponseArea();
|
88
88
|
textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 1.33);
|
89
89
|
textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 1.33);
|
90
90
|
textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(2, 1.33);
|
@@ -16,7 +16,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
16
16
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Equivalent structure: Response inputted needs to be in set structure / format to be marked correct');
|
17
17
|
textEntryMathPage.steps.clearQuestionInputField();
|
18
18
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter response according to set structure')
|
19
|
-
textEntryMathPage.steps.
|
19
|
+
textEntryMathPage.steps.addResponseArea();
|
20
20
|
textEntryMathPage.steps.allotPoints(20);
|
21
21
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
22
22
|
textEntryMathPage.steps.selectEvaluationMethod('Equivalent structure');
|
@@ -332,7 +332,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
332
332
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Equivalent structure: Response inputted needs to be in set structure / format to be marked correct');
|
333
333
|
textEntryMathPage.steps.clearQuestionInputField();
|
334
334
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter response according to set structure')
|
335
|
-
textEntryMathPage.steps.
|
335
|
+
textEntryMathPage.steps.addResponseArea();
|
336
336
|
textEntryMathPage.steps.allotPoints(20);
|
337
337
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
338
338
|
textEntryMathPage.steps.selectEvaluationMethod('Equivalent structure');
|
@@ -769,7 +769,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
769
769
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Equivalent structure: Response inputted needs to be in set structure / format to be marked correct');
|
770
770
|
textEntryMathPage.steps.clearQuestionInputField();
|
771
771
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter response according to set structure')
|
772
|
-
textEntryMathPage.steps.
|
772
|
+
textEntryMathPage.steps.addResponseArea();
|
773
773
|
textEntryMathPage.steps.allotPoints(20);
|
774
774
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
775
775
|
textEntryMathPage.steps.selectEvaluationMethod('Equivalent structure');
|
@@ -917,7 +917,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
917
917
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Equivalent structure: Response inputted needs to be in set structure / format to be marked correct');
|
918
918
|
textEntryMathPage.steps.clearQuestionInputField();
|
919
919
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter response according to set structure')
|
920
|
-
textEntryMathPage.steps.
|
920
|
+
textEntryMathPage.steps.addResponseArea();
|
921
921
|
textEntryMathPage.steps.allotPoints(20);
|
922
922
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
923
923
|
textEntryMathPage.steps.selectEvaluationMethod('Equivalent structure');
|
@@ -1215,7 +1215,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1215
1215
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Equivalent structure: Response inputted needs to be in set structure / format to be marked correct');
|
1216
1216
|
textEntryMathPage.steps.clearQuestionInputField();
|
1217
1217
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter response according to set structure')
|
1218
|
-
textEntryMathPage.steps.
|
1218
|
+
textEntryMathPage.steps.addResponseArea();
|
1219
1219
|
textEntryMathPage.steps.allotPoints(20);
|
1220
1220
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
1221
1221
|
textEntryMathPage.steps.selectEvaluationMethod('Equivalent structure');
|
@@ -17,7 +17,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
17
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Match exact: Response entered needs to be an exact match to be marked correct');
|
18
18
|
textEntryMathPage.steps.clearQuestionInputField();
|
19
19
|
textEntryMathPage.steps.addInputToQuestionInputField('Match the exact value entered in edit tab')
|
20
|
-
textEntryMathPage.steps.
|
20
|
+
textEntryMathPage.steps.addResponseArea();
|
21
21
|
textEntryMathPage.steps.allotPoints(20);
|
22
22
|
textEntryMathPage.steps.expandAdditionalSettings();
|
23
23
|
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
@@ -17,7 +17,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
17
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Match exact: Response inputted needs to be equal and represented the same way to be marked correct');
|
18
18
|
textEntryMathPage.steps.clearQuestionInputField();
|
19
19
|
textEntryMathPage.steps.addInputToQuestionInputField('Match the value entered in edit tab')
|
20
|
-
textEntryMathPage.steps.
|
20
|
+
textEntryMathPage.steps.addResponseArea();
|
21
21
|
textEntryMathPage.steps.allotPoints(20);
|
22
22
|
textEntryMathPage.steps.expandAdditionalSettings();
|
23
23
|
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
@@ -17,7 +17,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
17
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Symbols are equivalent: Response inputted needs to be equivalent to be marked correct');
|
18
18
|
textEntryMathPage.steps.clearQuestionInputField();
|
19
19
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter the correct value in the response field');
|
20
|
-
textEntryMathPage.steps.
|
20
|
+
textEntryMathPage.steps.addResponseArea();
|
21
21
|
textEntryMathPage.steps.allotPoints(20);
|
22
22
|
textEntryMathPage.steps.expandAdditionalSettings();
|
23
23
|
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
@@ -17,7 +17,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
17
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Value is equivalent: Response inputted needs to be equivalent but can be represented differently to be marked correct');
|
18
18
|
textEntryMathPage.steps.clearQuestionInputField();
|
19
19
|
textEntryMathPage.steps.addInputToQuestionInputField('Enter the correct value in the response field');
|
20
|
-
textEntryMathPage.steps.
|
20
|
+
textEntryMathPage.steps.addResponseArea();
|
21
21
|
textEntryMathPage.steps.expandAdditionalSettings();
|
22
22
|
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
23
23
|
textEntryMathPage.steps.allotPoints(20);
|
@@ -17,7 +17,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
17
17
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Response is true: Response inputted needs to be a true equation / inequality to be marked correct');
|
18
18
|
textEntryMathPage.steps.clearQuestionInputField();
|
19
19
|
textEntryMathPage.steps.addInputToQuestionInputField('Compare the equations correctly')
|
20
|
-
textEntryMathPage.steps.
|
20
|
+
textEntryMathPage.steps.addResponseArea();
|
21
21
|
textEntryMathPage.steps.allotPoints(20);
|
22
22
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
23
23
|
textEntryMathPage.steps.selectEvaluationMethod('Response is true');
|
@@ -211,7 +211,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
211
211
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Expanded form: Response inputted needs to be in expanded form to be marked correct');
|
212
212
|
textEntryMathPage.steps.clearQuestionInputField();
|
213
213
|
textEntryMathPage.steps.addInputToQuestionInputField('Expand the following')
|
214
|
-
textEntryMathPage.steps.
|
214
|
+
textEntryMathPage.steps.addResponseArea();
|
215
215
|
textEntryMathPage.steps.allotPoints(20);
|
216
216
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
217
217
|
textEntryMathPage.steps.selectEvaluationMethod('Expanded form');
|
@@ -409,7 +409,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
409
409
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Factored form: Response inputted needs to be in factored form to be marked correct');
|
410
410
|
textEntryMathPage.steps.clearQuestionInputField();
|
411
411
|
textEntryMathPage.steps.addInputToQuestionInputField('Factorize the following')
|
412
|
-
textEntryMathPage.steps.
|
412
|
+
textEntryMathPage.steps.addResponseArea();
|
413
413
|
textEntryMathPage.steps.allotPoints(20);
|
414
414
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
415
415
|
textEntryMathPage.steps.selectEvaluationMethod('Factored form');
|
@@ -605,7 +605,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
605
605
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Simplified version: Response inputted needs to be in simplified form to be marked correct');
|
606
606
|
textEntryMathPage.steps.clearQuestionInputField();
|
607
607
|
textEntryMathPage.steps.addInputToQuestionInputField('Simplify the following')
|
608
|
-
textEntryMathPage.steps.
|
608
|
+
textEntryMathPage.steps.addResponseArea();
|
609
609
|
textEntryMathPage.steps.allotPoints(20);
|
610
610
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
611
611
|
textEntryMathPage.steps.selectEvaluationMethod('Simplified version');
|
@@ -14,8 +14,8 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
|
|
14
14
|
before(() => {
|
15
15
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
16
16
|
cy.barsPreLoaderWait();
|
17
|
-
textEntryMathPage.steps.
|
18
|
-
textEntryMathPage.steps.
|
17
|
+
textEntryMathPage.steps.addResponseArea();
|
18
|
+
textEntryMathPage.steps.addResponseArea();
|
19
19
|
textEntryMathPage.steps.allotPoints(10);
|
20
20
|
});
|
21
21
|
|
@@ -31,8 +31,8 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
|
|
31
31
|
before(() => {
|
32
32
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
33
33
|
cy.barsPreLoaderWait();
|
34
|
-
textEntryMathPage.steps.
|
35
|
-
textEntryMathPage.steps.
|
34
|
+
textEntryMathPage.steps.addResponseArea();
|
35
|
+
textEntryMathPage.steps.addResponseArea();
|
36
36
|
textEntryMathPage.steps.allotPoints(10);
|
37
37
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
38
38
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
@@ -70,7 +70,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
|
|
70
70
|
});
|
71
71
|
|
72
72
|
it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
73
|
-
textEntryMathPage.steps.
|
73
|
+
textEntryMathPage.steps.addResponseArea();
|
74
74
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
75
75
|
textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a×b');
|
76
76
|
textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectTextContainer(1.67);
|
@@ -142,7 +142,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
|
|
142
142
|
});
|
143
143
|
|
144
144
|
it('When the user adds a new option, then \'Total penalty points\' should get updated accordingly', () => {
|
145
|
-
textEntryMathPage.steps.
|
145
|
+
textEntryMathPage.steps.addResponseArea();
|
146
146
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
147
147
|
textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a×b');
|
148
148
|
textEntryMathPage.steps.verifyTotalPenaltyPoints(3);
|
@@ -195,8 +195,8 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
|
|
195
195
|
before(() => {
|
196
196
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
197
197
|
cy.barsPreLoaderWait();
|
198
|
-
textEntryMathPage.steps.
|
199
|
-
textEntryMathPage.steps.
|
198
|
+
textEntryMathPage.steps.addResponseArea();
|
199
|
+
textEntryMathPage.steps.addResponseArea();
|
200
200
|
textEntryMathPage.steps.allotPoints(10);
|
201
201
|
textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
|
202
202
|
});
|
@@ -21,8 +21,8 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
21
21
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
22
22
|
cy.barsPreLoaderWait();
|
23
23
|
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
24
|
-
textEntryMathPage.steps.
|
25
|
-
textEntryMathPage.steps.
|
24
|
+
textEntryMathPage.steps.addResponseArea();
|
25
|
+
textEntryMathPage.steps.addResponseArea();
|
26
26
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
27
27
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
28
28
|
equationEditorFlyout.steps.clearAll();
|
@@ -15,7 +15,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
|
|
15
15
|
before(() => {
|
16
16
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
17
17
|
cy.barsPreLoaderWait();
|
18
|
-
textEntryMathPage.steps.
|
18
|
+
textEntryMathPage.steps.addResponseArea();
|
19
19
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
20
20
|
});
|
21
21
|
|
@@ -58,7 +58,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
|
|
58
58
|
before(() => {
|
59
59
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
60
60
|
cy.barsPreLoaderWait();
|
61
|
-
textEntryMathPage.steps.
|
61
|
+
textEntryMathPage.steps.addResponseArea();
|
62
62
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
63
63
|
});
|
64
64
|
|
@@ -148,7 +148,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
|
|
148
148
|
before(() => {
|
149
149
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
150
150
|
cy.barsPreLoaderWait();
|
151
|
-
textEntryMathPage.steps.
|
151
|
+
textEntryMathPage.steps.addResponseArea();
|
152
152
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
153
153
|
});
|
154
154
|
|
@@ -254,7 +254,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
|
|
254
254
|
before(() => {
|
255
255
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
256
256
|
cy.barsPreLoaderWait();
|
257
|
-
textEntryMathPage.steps.
|
257
|
+
textEntryMathPage.steps.addResponseArea();
|
258
258
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
259
259
|
});
|
260
260
|
|
@@ -549,7 +549,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
|
|
549
549
|
before(() => {
|
550
550
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
551
551
|
cy.barsPreLoaderWait();
|
552
|
-
textEntryMathPage.steps.
|
552
|
+
textEntryMathPage.steps.addResponseArea();
|
553
553
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
554
554
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
555
555
|
});
|
@@ -26,8 +26,8 @@ describe('Create Item page - Text entry math: Specify correct answer, Alternativ
|
|
26
26
|
cy.log('Navigating to Text entry math question type');
|
27
27
|
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
28
28
|
cy.barsPreLoaderWait();
|
29
|
-
textEntryMathPage.steps.
|
30
|
-
textEntryMathPage.steps.
|
29
|
+
textEntryMathPage.steps.addResponseArea();
|
30
|
+
textEntryMathPage.steps.addResponseArea();
|
31
31
|
});
|
32
32
|
|
33
33
|
//Failing here due to https://redmine.zeuslearning.com/issues/567075
|
@@ -139,7 +139,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
139
139
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
|
140
140
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(1);
|
141
141
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
|
142
|
-
textEntryMathWithImagePage.steps.
|
142
|
+
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
143
143
|
});
|
144
144
|
|
145
145
|
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, and \'Your answer is incorrect\' label should be displayed', () => {
|
@@ -164,15 +164,12 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
164
164
|
utilities.verifyElementVisibilityState(videoResponsePage.stopButton(), 'visible');
|
165
165
|
});
|
166
166
|
|
167
|
-
it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button, recording should get resumed. the status message should update to "Recording...". User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs/min:sec)\'. Pause recording and stop recording buttons should be displayed. Start recording button should not be displayed', () => {
|
167
|
+
it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button, recording should get resumed. the status message should update to "Recording...". User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs/min:sec)\'. Pause recording and stop recording buttons should be displayed. Start recording button should not be displayed. On clicking on the stop recording button, the recording should stop, recorded video response should be saved. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs)\'.', () => {
|
168
168
|
videoResponsePage.steps.resumeRecording();
|
169
169
|
videoResponsePage.steps.verifyRecordingStatus('Recording...');
|
170
|
-
videoResponsePage.steps.verifyRecordingTime('0:08', '5:00');
|
171
170
|
utilities.verifyElementVisibilityState(videoResponsePage.pauseButton(), 'visible');
|
172
171
|
utilities.verifyElementVisibilityState(videoResponsePage.stopButton(), 'visible');
|
173
|
-
|
174
|
-
|
175
|
-
it('When a recording is in progress and the user stops recording, then the recording should stop, recorded video response should be saved. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs)\'.', () => {
|
172
|
+
videoResponsePage.steps.verifyRecordingTime('0:10', '5:00');
|
176
173
|
videoResponsePage.steps.stopAndVerifySavingAndRecordingLength();
|
177
174
|
});
|
178
175
|
}
|
@@ -113,6 +113,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
113
113
|
});
|
114
114
|
};
|
115
115
|
|
116
|
+
//Note: Remove comment after https://redmine.zeuslearning.com/issues/570904 is resolved
|
116
117
|
it('When the user selects \'Grading\' view without attempting the question, then by default correct dot column should have correct icons, incorrect dot column should have incorrect icons, the correct answer should be displayed in the correct answer section number line axis and your answer is incorrect status message should be displayed', () => {
|
117
118
|
if (view === 'Grading view') {
|
118
119
|
studentViewPage.steps.submitResponse();
|
@@ -219,6 +220,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
219
220
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
220
221
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 0.25, defaultDots: 0 });
|
221
222
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25, defaultDots: 0 });
|
223
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
222
224
|
//correct answer section
|
223
225
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 0.25 });
|
224
226
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 0.25 });
|
@@ -250,6 +252,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
250
252
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
251
253
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 0.25, defaultDots: 0 });
|
252
254
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25, defaultDots: 0 });
|
255
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
253
256
|
//correct answer section
|
254
257
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 0.25 });
|
255
258
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 0.25 });
|
@@ -281,6 +284,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
281
284
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
282
285
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 0.25, defaultDots: 0 });
|
283
286
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25 });
|
287
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
284
288
|
//correct answer section
|
285
289
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 0.25 });
|
286
290
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 0.25 });
|
@@ -313,6 +317,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
313
317
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
314
318
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 0.25, defaultDots: 0 });
|
315
319
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 0.25, defaultDots: 0 });
|
320
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
316
321
|
//correct answer section
|
317
322
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 0.25 });
|
318
323
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 0.25 });
|