itemengine-cypress-automation 1.0.291-RCA-5154-dad9b9b.0 → 1.0.292
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +74 -0
- package/cypress/e2e/ILC/DrawingResponse/editQuestion.smoke.js +46 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/editQuestion.smoke.js +46 -0
- package/cypress/e2e/ILC/EssayResponseBasic/editQuestion.smoke.js +46 -0
- package/cypress/e2e/ILC/EssayResponseMath/editQuestion.smoke.js +46 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +76 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +68 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +78 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +72 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +65 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editQuestion.smoke.js +60 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/GridFill/editQuestion.smoke.js +66 -0
- package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -5
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/ListOrderingNew/editQuestion.smoke.js +72 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +72 -0
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +4 -2
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -4
- package/cypress/e2e/ILC/MultipleSelection/editQuestion.smoke.js +73 -0
- package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +123 -117
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -1
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +0 -2
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -3
- package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editQuestion.smoke.js +82 -0
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +0 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/editQuestion.smoke.js +74 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodMatchValue.js → evaluationMethodMatchValue.smoke.js} +1 -1
- package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodsWithoutSetResponse.js → evaluationMethodsWithoutSetResponse.smoke.js} +2 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/TextSelection/editQuestion.smoke.js +88 -0
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -3
- package/cypress/e2e/ILC/VideoResponseNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsStandardRecorderStyle.js +2 -3
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +6 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +11 -1
- package/cypress/pages/components/browseItemsPage.js +27 -2
- package/cypress/pages/components/commonComponents.js +2 -1
- package/cypress/pages/components/createQuestionBasePage.js +31 -2
- package/cypress/pages/components/draggableOptionContainer.js +6 -4
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +12 -1
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +23 -0
- package/cypress/pages/components/imageCanvasComponent.js +0 -1
- package/cypress/pages/components/optionsWrapperComponent.js +15 -0
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +15 -1
- package/cypress/pages/drawingResponsePage.js +2 -1
- package/cypress/pages/essayResponseBasicPage.js +3 -1
- package/cypress/pages/essayResponsePage.js +2 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -0
- package/cypress/pages/fillInTheGapsDropdownPage.js +4 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -0
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +3 -1
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +2 -0
- package/cypress/pages/fillInTheGapsTextPage.js +2 -0
- package/cypress/pages/gridFillPage.js +2 -1
- package/cypress/pages/listOrderingPage.js +13 -0
- package/cypress/pages/matchingPage.js +13 -2
- package/cypress/pages/multipleSelectionGridPage.js +33 -0
- package/cypress/pages/multipleSelectionPage.js +27 -0
- package/cypress/pages/singleSelectionGridPage.js +25 -0
- package/cypress/pages/singleSelectionPage.js +30 -4
- package/cypress/pages/studentViewPage.js +2 -2
- package/cypress/pages/textSelectionPage.js +13 -0
- package/cypress/pages/videoResponsePage.js +14 -1
- package/package.json +1 -1
- /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodEquivalentStructures.js → evaluationMethodEquivalentStructures.smoke.js} +0 -0
- /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodMatchExact.js → evaluationMethodMatchExact.smoke.js} +0 -0
- /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodSymbolsAreEquivalent.js → evaluationMethodSymbolsAreEquivalent.smoke.js} +0 -0
- /package/cypress/e2e/ILC/TextEntryMath/{evaluationMethodValueIsEquivalent.js → evaluationMethodValueIsEquivalent.smoke.js} +0 -0
@@ -4,136 +4,142 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
|
5
5
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
6
6
|
|
7
|
-
describe('
|
8
|
-
abortEarlySetup();
|
7
|
+
describe('Multiple selection manually and non scored scoring', () => {
|
9
8
|
before(() => {
|
10
|
-
cy.
|
11
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
12
|
-
multipleSelectionPage.steps.addQuestionInstructions();
|
13
|
-
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
14
|
-
multipleSelectionPage.steps.expandScoringTypeDropdown();
|
15
|
-
multipleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored')
|
16
|
-
multipleSelectionPage.steps.switchToPreviewTab();
|
9
|
+
cy.loginAs('admin');
|
17
10
|
});
|
18
11
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
describe('Question Preview: Manually Scored', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Adding question instructions and options, select Manually Scored scoring type and add points for the question');
|
16
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
17
|
+
multipleSelectionPage.steps.addQuestionInstructions();
|
18
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
19
|
+
multipleSelectionPage.steps.expandScoringTypeDropdown();
|
20
|
+
multipleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored')
|
21
|
+
multipleSelectionPage.steps.switchToPreviewTab();
|
23
22
|
});
|
24
|
-
});
|
25
23
|
|
26
|
-
|
24
|
+
it('In Preview tab, Question Instructions and options should be displayed along with check box', () => {
|
25
|
+
multipleSelectionPage.steps.verifyQuestionInstructionsText();
|
26
|
+
options.forEach((optionsText, count) => {
|
27
|
+
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.optionsText(), count), optionsText);
|
28
|
+
});
|
29
|
+
});
|
27
30
|
|
28
|
-
|
29
|
-
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
30
|
-
});
|
31
|
-
});
|
31
|
+
multipleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored')
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
cy.log('Adding question instructions and options, select Non Scored scoring type and set correct answer');
|
37
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
38
|
-
multipleSelectionPage.steps.addQuestionInstructions();
|
39
|
-
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
40
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
41
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
42
|
-
multipleSelectionPage.steps.expandScoringTypeDropdown();
|
43
|
-
multipleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
44
|
-
//multipleSelectionPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
45
|
-
multipleSelectionPage.steps.switchToPreviewTab();
|
33
|
+
it('User should able to save question with manually scored scoring type', () => {
|
34
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
35
|
+
});
|
46
36
|
});
|
47
37
|
|
48
|
-
|
38
|
+
describe('Question Preview: Non Scored', () => {
|
39
|
+
abortEarlySetup();
|
40
|
+
before(() => {
|
41
|
+
cy.log('Adding question instructions and options, select Non Scored scoring type and set correct answer');
|
42
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
43
|
+
multipleSelectionPage.steps.addQuestionInstructions();
|
44
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
45
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
46
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
47
|
+
multipleSelectionPage.steps.expandScoringTypeDropdown();
|
48
|
+
multipleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
49
|
+
//multipleSelectionPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
50
|
+
multipleSelectionPage.steps.switchToPreviewTab();
|
51
|
+
});
|
49
52
|
|
50
|
-
|
51
|
-
multipleSelectionPage.steps.switchToGradingView();
|
52
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
53
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
54
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
55
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
56
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
57
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
58
|
-
//correct answer section
|
59
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
60
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
61
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
62
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
63
|
-
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
64
|
-
});
|
53
|
+
multipleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
|
65
54
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
/*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')
|
82
|
-
multipleSelectionPage.steps.checkAnswer();
|
83
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
84
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
85
|
-
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
86
|
-
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
|
87
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
88
|
-
});
|
55
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer section should be displayed with correct responses', () => {
|
56
|
+
multipleSelectionPage.steps.switchToGradingView();
|
57
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
58
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
59
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
60
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
61
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
62
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
63
|
+
//correct answer section
|
64
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
65
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
66
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
67
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
68
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
69
|
+
});
|
89
70
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
});
|
71
|
+
it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed beside the incorrect responses and no icons should be displayed besides unattempted responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer section should be displayed with correct responses', () => {
|
72
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
73
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
74
|
+
multipleSelectionPage.steps.switchToGradingView();
|
75
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
76
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
77
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
78
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
|
79
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
80
|
+
//correct answer section
|
81
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
82
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
83
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
84
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
85
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
86
|
+
/*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
|
+
multipleSelectionPage.steps.checkAnswer();
|
88
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
89
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
90
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
91
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
|
92
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
93
|
+
});
|
114
94
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
95
|
+
it('When the user attempts the question partially correct, then on switching to \'Grading\' view, no icons should be displayed besides unattempted correct options, correct icons should be displayed besides the correct responses and incorrect icons should be displayed beside the incorrect responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer section should be displayed with correct responses', () => {
|
96
|
+
multipleSelectionPage.steps.resetQuestionPreview();
|
97
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
98
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
99
|
+
multipleSelectionPage.steps.switchToGradingView();
|
100
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
101
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
102
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
103
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
104
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
105
|
+
//correct answer section
|
106
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
107
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
108
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
109
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
110
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
111
|
+
/*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')
|
112
|
+
multipleSelectionPage.steps.checkAnswer();
|
113
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
114
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
115
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
116
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
117
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
118
|
+
});
|
119
|
+
|
120
|
+
it('When the user attempts the question correctly, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, no icons should not be displayed besides unattempted responses, correct answer border and an \'Correct answer\' label should be displayed below the question preview and correct answer section should not be displayed', () => {
|
121
|
+
multipleSelectionPage.steps.resetQuestionPreview();
|
122
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
123
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
124
|
+
multipleSelectionPage.steps.switchToGradingView();
|
125
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
126
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
127
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
128
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
129
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
130
|
+
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
131
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
|
+
/*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')
|
133
|
+
multipleSelectionPage.steps.checkAnswer();
|
134
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
135
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
136
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
137
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
138
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
|
139
|
+
});
|
135
140
|
|
136
|
-
|
137
|
-
|
141
|
+
it('User should able to save question with non scored scoring type', () => {
|
142
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
143
|
+
});
|
138
144
|
});
|
139
145
|
});
|
@@ -122,7 +122,6 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
|
|
122
122
|
cy.checkAccessibility(multipleSelectionPage.automaticallySetPenaltyPointsCheckboxLabel().parents('.penalty-score-for-each-incorrect-wrapper'));
|
123
123
|
});
|
124
124
|
|
125
|
-
//Failing due to https://redmine.zeuslearning.com/issues/555127
|
126
125
|
it('When the user selects \'Specify points for each incorrect answer\', a penalty points detail section with \'Penalty points for each incorrect option:\' label and empty input field, \'Total penalty points: -\' label should be displayed', () => {
|
127
126
|
cy.log('Pre-step: Clearing the total penalty points input field')
|
128
127
|
multipleSelectionPage.steps.clearTotalPenaltyPointsInputField();
|
@@ -369,7 +369,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
369
369
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
370
370
|
});
|
371
371
|
|
372
|
-
//Failing due to: https://redmine.zeuslearning.com/issues/553991
|
373
372
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the correct accordion, correct answer label and correct answer section should not be displayed', () => {
|
374
373
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
375
374
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
@@ -425,7 +424,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
425
424
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();*/
|
426
425
|
});
|
427
426
|
|
428
|
-
//Failing due to: https://redmine.zeuslearning.com/issues/554783
|
429
427
|
it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded points as per the correctly attempted response and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, no icons should be displayed besides unattempted responses, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed and correct answer from alternative accordion should be displayed in correct answer section', () => {
|
430
428
|
multipleSelectionPage.steps.resetQuestionPreview();
|
431
429
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
@@ -108,9 +108,8 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
108
108
|
});
|
109
109
|
} else {
|
110
110
|
it(`The correct options should have correct icons besides them`, () => {
|
111
|
-
|
112
|
-
|
113
|
-
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
111
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
112
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
114
113
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
115
114
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
116
115
|
});
|
@@ -3,8 +3,6 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
5
5
|
|
6
|
-
//https://redmine.zeuslearning.com/issues/553983
|
7
|
-
//https://redmine.zeuslearning.com/issues/553940
|
8
6
|
describe('Create Item page - Multiple selection: Specify correct answer, Alternative correct answer', () => {
|
9
7
|
before(() => {
|
10
8
|
cy.loginAs('admin');
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { multipleSelectionGridPage } from "../../../pages/multipleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
const options = ['Cats are domestic animals', 'Lion is a wild animal', 'Dog is a domestic animal', 'salt is a mineral'];
|
8
|
+
|
9
|
+
describe('Edit item - multiple selection grid', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Edit multiple selection grid question', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select where the following animals are found')
|
20
|
+
multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
21
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 1, column: 1 }, 'Checkbox with text');
|
22
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 2, column: 2 }, 'No checkbox');
|
23
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 3, column: 1 }, 'No checkbox');
|
24
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 4, column: 2 }, 'No checkbox');
|
25
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Dog is a domestic animal');
|
26
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'salt is a mineral');
|
27
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
28
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
29
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
30
|
+
});
|
31
|
+
|
32
|
+
it('User should be able to edit question instruction and save the question', () => {
|
33
|
+
multipleSelectionGridPage.steps.editItem();
|
34
|
+
multipleSelectionGridPage.steps.clearQuestionInstructionsInputField();
|
35
|
+
multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Multiple selection grid question instruction Updated');
|
36
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
37
|
+
multipleSelectionGridPage.steps.verifyQuestionInstructionsTextPreviewTab('Multiple selection grid question instruction Updated');
|
38
|
+
});
|
39
|
+
|
40
|
+
it('User should be able to edit options and save the question', () => {
|
41
|
+
multipleSelectionGridPage.steps.editItem();
|
42
|
+
multipleSelectionGridPage.steps.modifyTableCellProperty({ row: 1, column: 0 }, 'Text');
|
43
|
+
multipleSelectionGridPage.steps.modifyTableCellProperty({ row: 2, column: 0 }, 'Text');
|
44
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 1, column: 0 }, 'Cats are domestic animals');
|
45
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 2, column: 0 }, 'Lion is a wild animal');
|
46
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 1, column: 1 }, 'Checkbox');
|
47
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 2, column: 2 }, 'Checkbox');
|
48
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 3, column: 1 }, 'Checkbox');
|
49
|
+
multipleSelectionGridPage.steps.modifyTableCellPropertyForOptionCells({ row: 4, column: 2 }, 'Checkbox');
|
50
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
51
|
+
multipleSelectionGridPage.steps.verifyOptionFieldContentsInOptionsSection(options);
|
52
|
+
});
|
53
|
+
|
54
|
+
it('User should be able to edit correct answer and save the question', () => {
|
55
|
+
multipleSelectionGridPage.steps.editItem();
|
56
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
57
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
58
|
+
});
|
59
|
+
|
60
|
+
it('User should be able to edit points and save the question', () => {
|
61
|
+
multipleSelectionGridPage.steps.editItem();
|
62
|
+
multipleSelectionGridPage.steps.allotPoints(30);
|
63
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
64
|
+
multipleSelectionGridPage.steps.verifyPointInQuestionPreview(30);
|
65
|
+
});
|
66
|
+
|
67
|
+
it('User should be able to change scoring type to manually and save the question', () => {
|
68
|
+
multipleSelectionGridPage.steps.editItem();
|
69
|
+
multipleSelectionGridPage.steps.expandScoringTypeDropdown();
|
70
|
+
multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
71
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
72
|
+
});
|
73
|
+
|
74
|
+
it('User should be able to change scoring type to non scored and save the question', () => {
|
75
|
+
multipleSelectionGridPage.steps.editItem();
|
76
|
+
multipleSelectionGridPage.steps.expandScoringTypeDropdown();
|
77
|
+
multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
78
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
79
|
+
multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
80
|
+
});
|
81
|
+
});
|
82
|
+
});
|
@@ -76,6 +76,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
76
76
|
itemPreviewPage.steps.switchToPreviewTab();
|
77
77
|
break;
|
78
78
|
case 'Grading view':
|
79
|
+
cy.wait(5000);
|
79
80
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
80
81
|
break;
|
81
82
|
}
|
@@ -92,6 +93,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
92
93
|
itemPreviewPage.steps.resetQuestionPreview();
|
93
94
|
break;
|
94
95
|
case 'Grading view':
|
96
|
+
cy.wait(5000);
|
95
97
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
96
98
|
break;
|
97
99
|
}
|
@@ -76,6 +76,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
76
76
|
itemPreviewPage.steps.switchToPreviewTab();
|
77
77
|
break;
|
78
78
|
case 'Grading view':
|
79
|
+
cy.wait(5000);
|
79
80
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
80
81
|
break;
|
81
82
|
}
|
@@ -92,6 +93,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
92
93
|
itemPreviewPage.steps.resetQuestionPreview();
|
93
94
|
break;
|
94
95
|
case 'Grading view':
|
96
|
+
cy.wait(5000);
|
95
97
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
96
98
|
break;
|
97
99
|
}
|
@@ -122,7 +122,6 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
122
122
|
case 'Question preview':
|
123
123
|
case 'Item preview':
|
124
124
|
case 'Item view':
|
125
|
-
case 'Item preview':
|
126
125
|
case 'Student view':
|
127
126
|
utilities.verifyCSS(utilities.getNthElement(singleSelectionPage.optionTextPreviewTab(), 2), {
|
128
127
|
'color': css.color.text,
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { singleSelectionGridPage } from "../../../pages/singleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
const options = ['Cats are domestic animals', 'Lion is a wild animal', 'Dog is a domestic animal', 'salt is a mineral'];
|
8
|
+
|
9
|
+
describe('Edit item - single selection grid', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Edit single selection grid question', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
singleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select where the following animals are found')
|
20
|
+
singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
21
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Dog is a domestic animal');
|
22
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'salt is a mineral');
|
23
|
+
singleSelectionGridPage.steps.allotPoints(20);
|
24
|
+
singleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
25
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
26
|
+
});
|
27
|
+
|
28
|
+
it('User should be able to edit question instruction and save the question', () => {
|
29
|
+
singleSelectionGridPage.steps.editItem();
|
30
|
+
singleSelectionGridPage.steps.clearQuestionInstructionsInputField();
|
31
|
+
singleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Single selection grid question instruction Updated');
|
32
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
33
|
+
singleSelectionGridPage.steps.verifyQuestionInstructionsTextPreviewTab('Single selection grid question instruction Updated');
|
34
|
+
});
|
35
|
+
|
36
|
+
it('User should be able to edit options and save the question', () => {
|
37
|
+
singleSelectionGridPage.steps.editItem();
|
38
|
+
singleSelectionGridPage.steps.modifyTableCellProperty({ row: 1, column: 0 }, 'Text');
|
39
|
+
singleSelectionGridPage.steps.modifyTableCellProperty({ row: 2, column: 0 }, 'Text');
|
40
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 1, column: 0 }, 'Cats are domestic animals');
|
41
|
+
singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 2, column: 0 }, 'Lion is a wild animal');
|
42
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
43
|
+
singleSelectionGridPage.steps.verifyOptionFieldContentsInOptionsSection(options);
|
44
|
+
});
|
45
|
+
|
46
|
+
it('User should be able to edit correct answer and save the question', () => {
|
47
|
+
singleSelectionGridPage.steps.editItem();
|
48
|
+
singleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
49
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
50
|
+
});
|
51
|
+
|
52
|
+
it('User should be able to edit points and save the question', () => {
|
53
|
+
singleSelectionGridPage.steps.editItem();
|
54
|
+
singleSelectionGridPage.steps.allotPoints(30);
|
55
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
56
|
+
singleSelectionGridPage.steps.verifyPointInQuestionPreview(30);
|
57
|
+
});
|
58
|
+
|
59
|
+
it('User should be able to change scoring type to manually and save the question', () => {
|
60
|
+
singleSelectionGridPage.steps.editItem();
|
61
|
+
singleSelectionGridPage.steps.expandScoringTypeDropdown();
|
62
|
+
singleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
63
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
64
|
+
});
|
65
|
+
|
66
|
+
it('User should be able to change scoring type to non scored and save the question', () => {
|
67
|
+
singleSelectionGridPage.steps.editItem();
|
68
|
+
singleSelectionGridPage.steps.expandScoringTypeDropdown();
|
69
|
+
singleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
70
|
+
singleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
71
|
+
singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
|
72
|
+
});
|
73
|
+
});
|
74
|
+
});
|
@@ -56,7 +56,6 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
56
56
|
});
|
57
57
|
};
|
58
58
|
|
59
|
-
//Failing due to https://redmine.zeuslearning.com/issues/561708, https://redmine.zeuslearning.com/issues/561177
|
60
59
|
views.forEach((view) => {
|
61
60
|
describe(`Text entry math: all or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
|
62
61
|
abortEarlySetup();
|
@@ -22,7 +22,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
22
22
|
textEntryMathPage.steps.expandAdditionalSettings();
|
23
23
|
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
24
24
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
25
|
-
textEntryMathPage.steps.selectEvaluationMethod('Match value'
|
25
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match value');
|
26
26
|
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
27
27
|
});
|
28
28
|
|
@@ -645,7 +645,8 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
645
645
|
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
646
646
|
});
|
647
647
|
|
648
|
-
|
648
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5214
|
649
|
+
it.skip('When the user attempts the question using percentages then it should be treated as correct', () => {
|
649
650
|
textEntryMathPage.steps.resetQuestionPreview();
|
650
651
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
651
652
|
equationEditorFlyout.steps.enterTextInPreviewInputField('30%');
|
@@ -689,18 +690,6 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
689
690
|
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
690
691
|
});
|
691
692
|
|
692
|
-
it('When the user attempts the question using mixed fractions then it should be treated as incorrect if denominator is less than numerator', () => {
|
693
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
694
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
695
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('1');
|
696
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
697
|
-
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3', '2']);
|
698
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
699
|
-
textEntryMathPage.steps.switchToGradingView();
|
700
|
-
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
701
|
-
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
702
|
-
});
|
703
|
-
|
704
693
|
it('When the user attempts the question using polynomial expressions then it should be treated as correct', () => {
|
705
694
|
textEntryMathPage.steps.resetQuestionPreview();
|
706
695
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
@@ -57,7 +57,6 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
57
57
|
});
|
58
58
|
};
|
59
59
|
|
60
|
-
//Failing due to https://redmine.zeuslearning.com/issues/561708, https://redmine.zeuslearning.com/issues/561177
|
61
60
|
views.forEach((view) => {
|
62
61
|
describe(`Text entry math: all or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
|
63
62
|
abortEarlySetup();
|
@@ -127,8 +127,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
127
127
|
textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[0]);
|
128
128
|
textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
|
129
129
|
textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
130
|
-
|
131
|
-
// utilities.verifyInnerText(textSelectionPage.correctAnswersLabel(), 'Correct answers');
|
130
|
+
utilities.verifyInnerText(textSelectionPage.correctAnswersLabel(), 'Correct answers:');
|
132
131
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
|
133
132
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
134
133
|
});
|