itemengine-cypress-automation 1.0.205-8thJuneFixes-5ad148f.0 → 1.0.205
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +302 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +282 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +385 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +386 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +386 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +337 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +258 -0
- package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/gridSettings.js +439 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +105 -0
- package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +450 -0
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +91 -0
- package/cypress/e2e/ILC/ChartsBar/toolSettings.js +73 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +6 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +169 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionProperties.js +223 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +119 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +277 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +0 -2
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -5
- package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +14 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/styleAndLayoutCutomization.js +378 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +479 -0
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +3 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +7 -7
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +1 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
- package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +7 -7
- package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -4
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +10 -9
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +36 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +326 -176
- package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +37 -15
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +38 -17
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +441 -186
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +33 -14
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +330 -164
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +4 -4
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +20 -7
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +83 -66
- package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +25 -17
- package/cypress/e2e/ILC/SingleSelection/trueOrFalseCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettings.js +89 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +15 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +21 -21
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +17 -17
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +21 -21
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +8 -4
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +0 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/pages/audioResponsePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +785 -5
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
- package/cypress/pages/components/barAndLineChartComponent.js +180 -9
- package/cypress/pages/components/chartsCommonComponent.js +1 -0
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +77 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -3
- package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +24 -7
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +8 -4
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
- package/cypress/pages/components/imageCanvasComponent.js +112 -2
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/layoutSectionComponent.js +4 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +960 -3
- package/cypress/pages/drawingResponsePage.js +2 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +4 -3
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +18 -3
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +65 -3
- package/cypress/pages/listOrderingPage.js +3 -3
- package/cypress/pages/multipleSelectionPage.js +77 -25
- package/cypress/pages/rulerPage.js +5 -0
- package/cypress/pages/singleSelectionPage.js +40 -1
- package/cypress/pages/videoResponsePage.js +1 -1
- package/package.json +2 -2
@@ -46,7 +46,7 @@ describe('Create Item page - Multiple selection grid: Manually and non scored',
|
|
46
46
|
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
47
47
|
multipleSelectionGridPage.steps.expandScoringTypeDropdown();
|
48
48
|
multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
49
|
-
|
49
|
+
//multipleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
50
50
|
multipleSelectionGridPage.steps.switchToPreviewTab();
|
51
51
|
});
|
52
52
|
|
@@ -21,7 +21,7 @@ describe('Create item page - Multiple selection grid: Partial different weights
|
|
21
21
|
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 2 }]);
|
22
22
|
multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 5, 1: 7, 2: 4, 3: 8 });
|
23
23
|
multipleSelectionGridPage.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '24');
|
24
|
-
|
24
|
+
//multipleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
25
25
|
multipleSelectionGridPage.steps.switchToPreviewTab();
|
26
26
|
});
|
27
27
|
|
@@ -58,11 +58,11 @@ describe('Create Item page - Short text response: Scoring Section - Manually sco
|
|
58
58
|
shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
|
59
59
|
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
|
60
60
|
shortTextResponsePage.steps.switchToStudentView();
|
61
|
-
cy.log('When the user clicks on \'Check answer\' button, red cross mark icon should be displayed besides the response field, Incorrect answer label and border should not be displayed and no correct answer wrapper should be displayed');
|
61
|
+
/*cy.log('When the user clicks on \'Check answer\' button, red cross mark icon should be displayed besides the response field, Incorrect answer label and border should not be displayed and no correct answer wrapper should be displayed');
|
62
62
|
shortTextResponsePage.steps.checkAnswer();
|
63
63
|
shortTextResponsePage.steps.verifyIncorrectIcon();
|
64
64
|
shortTextResponsePage.steps.verifyIncorrectAttemptBorder();
|
65
|
-
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist()
|
65
|
+
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();*/
|
66
66
|
});
|
67
67
|
|
68
68
|
it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside correct response and correct answer border should be displayed and correct answer wrapper should not be displayed in the question preview', () => {
|
@@ -73,11 +73,11 @@ describe('Create Item page - Short text response: Scoring Section - Manually sco
|
|
73
73
|
shortTextResponsePage.steps.verifyCorrectAttemptBorder();
|
74
74
|
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();
|
75
75
|
shortTextResponsePage.steps.switchToStudentView();
|
76
|
-
cy.log('When the user clicks on \'Check answer\' button, then green checkmark icon should be displayed besides response fields, Correct answer label and border should not be displayed and no correct answer container should be displayed and no correct answer container should be displayed')
|
76
|
+
/*cy.log('When the user clicks on \'Check answer\' button, then green checkmark icon should be displayed besides response fields, Correct answer label and border should not be displayed and no correct answer container should be displayed and no correct answer container should be displayed')
|
77
77
|
shortTextResponsePage.steps.checkAnswer();
|
78
78
|
shortTextResponsePage.steps.verifyCorrectIcon();
|
79
79
|
shortTextResponsePage.steps.verifyCorrectAttemptBorder();
|
80
|
-
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist()
|
80
|
+
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();*/
|
81
81
|
});
|
82
82
|
});
|
83
83
|
});
|
@@ -93,7 +93,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
93
93
|
});
|
94
94
|
};
|
95
95
|
|
96
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
96
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
|
97
97
|
if (view === 'Grading view') {
|
98
98
|
studentViewPage.steps.submitResponse();
|
99
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -104,12 +104,17 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
104
104
|
singleSelectionPage.steps.switchToGradingView();
|
105
105
|
singleSelectionPage.steps.verifyPreviewScore(0, 20);
|
106
106
|
}
|
107
|
-
singleSelectionPage.steps.
|
107
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
108
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
109
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
110
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
108
111
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
109
112
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
113
|
+
//correct answer section
|
114
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
110
115
|
});
|
111
116
|
|
112
|
-
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
|
117
|
+
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 incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
113
118
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
114
119
|
if (view === 'Grading view') {
|
115
120
|
studentViewPage.steps.submitResponse();
|
@@ -121,12 +126,16 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
121
126
|
singleSelectionPage.steps.switchToGradingView();
|
122
127
|
singleSelectionPage.steps.verifyPreviewScore(0, 20);
|
123
128
|
}
|
124
|
-
singleSelectionPage.steps.
|
125
|
-
singleSelectionPage.steps.
|
129
|
+
singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
130
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
131
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
132
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
126
133
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
134
|
+
//correct answer section
|
135
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
127
136
|
});
|
128
137
|
|
129
|
-
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct answer border and a label should not be displayed below the question preview', () => {
|
138
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
130
139
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
131
140
|
if (view === 'Grading view') {
|
132
141
|
studentViewPage.steps.submitResponse();
|
@@ -138,9 +147,13 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
138
147
|
singleSelectionPage.steps.verifyPreviewScore(20, 20);
|
139
148
|
singleSelectionPage.steps.switchToGradingView();
|
140
149
|
}
|
141
|
-
singleSelectionPage.steps.
|
150
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
151
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
152
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
153
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
142
154
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
143
155
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
156
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
144
157
|
});
|
145
158
|
});
|
146
159
|
});
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { singleSelectionPage } from "../../../pages/singleSelectionPage";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
const css = Cypress.env('css');
|
4
|
-
const grepTags = Cypress.env('grepTags');
|
5
4
|
|
6
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'];
|
7
6
|
|
@@ -26,28 +25,31 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
26
25
|
singleSelectionPage.steps.switchToPreviewTab();
|
27
26
|
});
|
28
27
|
|
29
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
28
|
+
it('When the user selects \'Grading\' view without attempting the question, no icon should be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
|
30
29
|
singleSelectionPage.steps.switchToGradingView();
|
31
|
-
singleSelectionPage.steps.
|
32
|
-
singleSelectionPage.steps.
|
33
|
-
singleSelectionPage.steps.
|
34
|
-
singleSelectionPage.steps.
|
30
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
31
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
32
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
33
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
35
34
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
36
35
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
37
|
-
|
36
|
+
//correct answer section
|
37
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
38
|
+
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
38
39
|
});
|
39
40
|
|
40
|
-
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 and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview', () => {
|
41
|
+
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 and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from correct accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
41
42
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
42
43
|
singleSelectionPage.steps.verifyPreviewScore(20, 20);
|
43
44
|
singleSelectionPage.steps.switchToGradingView();
|
44
|
-
singleSelectionPage.steps.
|
45
|
-
singleSelectionPage.steps.
|
46
|
-
singleSelectionPage.steps.
|
47
|
-
singleSelectionPage.steps.
|
45
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
46
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
47
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
48
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
48
49
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
49
50
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
50
|
-
singleSelectionPage.steps.
|
51
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
52
|
+
//singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
51
53
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview')
|
52
54
|
singleSelectionPage.steps.checkAnswer();
|
53
55
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
@@ -60,17 +62,18 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
60
62
|
|
61
63
|
singleSelectionPage.tests.verifyPointsCorrectAnswerLabelAndBorderCSSAndA11y('single selection');
|
62
64
|
|
63
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion and unattempted correct options from the correct accordion, correct answer border and a label should not be displayed below the question preview', () => {
|
65
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion and unattempted correct options from the correct accordion, correct answer border and a label should not be displayed below the question preview and correct', () => {
|
64
66
|
singleSelectionPage.steps.resetQuestionPreview();
|
65
67
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
66
68
|
singleSelectionPage.steps.verifyPreviewScore(10, 20);
|
67
69
|
singleSelectionPage.steps.switchToGradingView();
|
68
|
-
singleSelectionPage.steps.
|
69
|
-
singleSelectionPage.steps.
|
70
|
-
singleSelectionPage.steps.
|
71
|
-
singleSelectionPage.steps.
|
70
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
71
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
72
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
|
73
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
72
74
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
73
75
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
76
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
74
77
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
75
78
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview')
|
76
79
|
singleSelectionPage.steps.checkAnswer();
|
@@ -82,18 +85,20 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
82
85
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
83
86
|
});
|
84
87
|
|
85
|
-
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, correct icons should only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
|
88
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct icons should only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
|
86
89
|
singleSelectionPage.steps.resetQuestionPreview();
|
87
90
|
singleSelectionPage.steps.checkOptionInPreviewTab(3);
|
88
91
|
singleSelectionPage.steps.verifyPreviewScore(0, 20);
|
89
92
|
singleSelectionPage.steps.switchToGradingView();
|
90
|
-
singleSelectionPage.steps.
|
91
|
-
singleSelectionPage.steps.
|
92
|
-
singleSelectionPage.steps.
|
93
|
-
singleSelectionPage.steps.
|
93
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
94
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
95
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
96
|
+
singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
|
94
97
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
95
98
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
96
|
-
|
99
|
+
//correct answer section
|
100
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
101
|
+
//singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
97
102
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label should not be displayed below the question preview')
|
98
103
|
singleSelectionPage.steps.checkAnswer();
|
99
104
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
@@ -141,27 +146,30 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
141
146
|
singleSelectionPage.steps.switchToPreviewTab();
|
142
147
|
});
|
143
148
|
|
144
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
149
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should only be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer from alternative accordion should be displayed in correct answer section', () => {
|
145
150
|
singleSelectionPage.steps.switchToGradingView();
|
146
|
-
singleSelectionPage.steps.
|
147
|
-
singleSelectionPage.steps.
|
148
|
-
singleSelectionPage.steps.
|
149
|
-
singleSelectionPage.steps.
|
151
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
152
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
153
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
154
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
150
155
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
151
156
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
152
|
-
|
157
|
+
//correct answer section
|
158
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
|
159
|
+
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
153
160
|
});
|
154
161
|
|
155
|
-
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
|
162
|
+
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 border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
156
163
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
157
164
|
singleSelectionPage.steps.verifyPreviewScore(10, 20);
|
158
165
|
singleSelectionPage.steps.switchToGradingView();
|
159
|
-
singleSelectionPage.steps.
|
160
|
-
singleSelectionPage.steps.
|
161
|
-
singleSelectionPage.steps.
|
162
|
-
singleSelectionPage.steps.
|
166
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
167
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
168
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
169
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
163
170
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
164
171
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
172
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
165
173
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
166
174
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview')
|
167
175
|
singleSelectionPage.steps.checkAnswer();
|
@@ -173,17 +181,18 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
173
181
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
174
182
|
});
|
175
183
|
|
176
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview', () => {
|
184
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from alternative accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
177
185
|
singleSelectionPage.steps.resetQuestionPreview();
|
178
186
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
179
187
|
singleSelectionPage.steps.verifyPreviewScore(20, 20);
|
180
188
|
singleSelectionPage.steps.switchToGradingView();
|
181
|
-
singleSelectionPage.steps.
|
182
|
-
singleSelectionPage.steps.
|
183
|
-
singleSelectionPage.steps.
|
184
|
-
singleSelectionPage.steps.
|
189
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
190
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
191
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
|
192
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
185
193
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
186
194
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
195
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
187
196
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
188
197
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview')
|
189
198
|
singleSelectionPage.steps.checkAnswer();
|
@@ -195,17 +204,19 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
195
204
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
196
205
|
});
|
197
206
|
|
198
|
-
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,
|
207
|
+
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, no icons should only be displayed besides unattempted correct options, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
|
199
208
|
singleSelectionPage.steps.resetQuestionPreview();
|
200
209
|
singleSelectionPage.steps.checkOptionInPreviewTab(0);
|
201
210
|
singleSelectionPage.steps.verifyPreviewScore(0, 20);
|
202
211
|
singleSelectionPage.steps.switchToGradingView();
|
203
|
-
singleSelectionPage.steps.
|
204
|
-
singleSelectionPage.steps.
|
205
|
-
singleSelectionPage.steps.
|
206
|
-
singleSelectionPage.steps.
|
212
|
+
singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
|
213
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
214
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
215
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
207
216
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
208
217
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
218
|
+
//correct answer section
|
219
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
|
209
220
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
210
221
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label should not be displayed below the question preview')
|
211
222
|
singleSelectionPage.steps.checkAnswer();
|
@@ -234,27 +245,30 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
234
245
|
singleSelectionPage.steps.switchToPreviewTab();
|
235
246
|
});
|
236
247
|
|
237
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
248
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should only be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer from correct accordion should be displayed in correct answer section', () => {
|
238
249
|
singleSelectionPage.steps.switchToGradingView();
|
239
|
-
singleSelectionPage.steps.
|
240
|
-
singleSelectionPage.steps.
|
241
|
-
singleSelectionPage.steps.
|
242
|
-
singleSelectionPage.steps.
|
250
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
251
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
252
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
253
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
243
254
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
244
255
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
245
|
-
|
256
|
+
//correct answer section
|
257
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
258
|
+
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
246
259
|
});
|
247
260
|
|
248
|
-
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 and on switching to \'Grading\' view, correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview', () => {
|
261
|
+
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 and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from correct accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
249
262
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
250
263
|
singleSelectionPage.steps.verifyPreviewScore(20, 20);
|
251
264
|
singleSelectionPage.steps.switchToGradingView();
|
252
|
-
singleSelectionPage.steps.
|
253
|
-
singleSelectionPage.steps.
|
254
|
-
singleSelectionPage.steps.
|
255
|
-
singleSelectionPage.steps.
|
265
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
266
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
267
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
268
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
256
269
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
257
270
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
271
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
258
272
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
259
273
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview')
|
260
274
|
singleSelectionPage.steps.checkAnswer();
|
@@ -266,17 +280,18 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
266
280
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
267
281
|
});
|
268
282
|
|
269
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should
|
283
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
270
284
|
singleSelectionPage.steps.resetQuestionPreview();
|
271
285
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
272
286
|
singleSelectionPage.steps.verifyPreviewScore(20, 20);
|
273
287
|
singleSelectionPage.steps.switchToGradingView();
|
274
|
-
singleSelectionPage.steps.
|
275
|
-
singleSelectionPage.steps.
|
276
|
-
singleSelectionPage.steps.
|
277
|
-
singleSelectionPage.steps.
|
288
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
289
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
290
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
|
291
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
278
292
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
279
293
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
294
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
280
295
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
281
296
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview')
|
282
297
|
singleSelectionPage.steps.checkAnswer();
|
@@ -288,17 +303,19 @@ describe('Create item page - Single selection: All or nothing with alternative a
|
|
288
303
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
289
304
|
});
|
290
305
|
|
291
|
-
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,
|
306
|
+
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, no icons should be displayed besides unattempted correct options, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
|
292
307
|
singleSelectionPage.steps.resetQuestionPreview();
|
293
308
|
singleSelectionPage.steps.checkOptionInPreviewTab(0);
|
294
309
|
singleSelectionPage.steps.verifyPreviewScore(0, 20);
|
295
310
|
singleSelectionPage.steps.switchToGradingView();
|
296
|
-
singleSelectionPage.steps.
|
297
|
-
singleSelectionPage.steps.
|
298
|
-
singleSelectionPage.steps.
|
299
|
-
singleSelectionPage.steps.
|
311
|
+
singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
|
312
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
313
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
314
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
300
315
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
301
316
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
317
|
+
//correct answer section
|
318
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
302
319
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
303
320
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label should not be displayed below the question preview')
|
304
321
|
singleSelectionPage.steps.checkAnswer();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
1
|
+
/*import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
2
|
import { singleSelectionPage } from "../../../pages";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const css = Cypress.env('css');
|
@@ -108,4 +108,4 @@ describe('Create Item page - Single Selection - Block', () => {
|
|
108
108
|
|
109
109
|
singleSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
110
110
|
});
|
111
|
-
})
|
111
|
+
});*/
|
@@ -42,50 +42,58 @@ describe('Question Preview: Non Scored', () => {
|
|
42
42
|
|
43
43
|
singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
|
44
44
|
|
45
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
45
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides the unattempted options, correct answer label and border should not be displayed and correct answer section should be displayed with correct answer', () => {
|
46
46
|
singleSelectionPage.steps.switchToGradingView();
|
47
|
-
singleSelectionPage.steps.
|
47
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
48
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
49
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
50
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
48
51
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
49
52
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
50
|
-
|
53
|
+
//correct answer section
|
54
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
55
|
+
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
51
56
|
});
|
52
57
|
|
53
|
-
it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses,
|
58
|
+
it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted options, incorrect answer border and label should not be displayed below the question preview and correct anser section should be displayed with correct answer', () => {
|
54
59
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
55
60
|
singleSelectionPage.steps.switchToGradingView();
|
56
|
-
singleSelectionPage.steps.
|
57
|
-
singleSelectionPage.steps.
|
58
|
-
singleSelectionPage.steps.
|
59
|
-
singleSelectionPage.steps.
|
61
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
62
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
63
|
+
singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
64
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
60
65
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
66
|
+
//correct answer section
|
67
|
+
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
61
68
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
62
|
-
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')
|
69
|
+
/*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')
|
63
70
|
singleSelectionPage.steps.checkAnswer();
|
64
71
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
65
72
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
66
73
|
singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
67
74
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
68
75
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
69
|
-
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists()
|
76
|
+
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
70
77
|
});
|
71
78
|
|
72
|
-
it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct answer border
|
79
|
+
it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, no icons should be displayed besides unattempted responses, correct answer border, a label and correct answer section should not be displayed below the question preview', () => {
|
73
80
|
singleSelectionPage.steps.resetQuestionPreview();
|
74
81
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
75
82
|
singleSelectionPage.steps.switchToGradingView();
|
76
|
-
singleSelectionPage.steps.
|
77
|
-
singleSelectionPage.steps.
|
78
|
-
singleSelectionPage.steps.
|
79
|
-
singleSelectionPage.steps.
|
83
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
84
|
+
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
85
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
86
|
+
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
80
87
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
88
|
+
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
81
89
|
singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
82
|
-
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')
|
90
|
+
/*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')
|
83
91
|
singleSelectionPage.steps.checkAnswer();
|
84
92
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
85
93
|
singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
86
94
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
87
95
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
88
96
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
89
|
-
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists()
|
97
|
+
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
|
90
98
|
});
|
91
99
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { singleSelectionPage } from "../../../pages/singleSelectionPage";
|
1
|
+
/*import { singleSelectionPage } from "../../../pages/singleSelectionPage";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const css = Cypress.env('css');
|
@@ -100,4 +100,4 @@ describe('Create Item page - True or False', () => {
|
|
100
100
|
|
101
101
|
singleSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
102
102
|
});
|
103
|
-
})
|
103
|
+
});*/
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { singleSelectionGridPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Multiple selection grid - Additional settings', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Additional settings: Row style and layout section - Row numeration edit tab contents', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
15
|
+
});
|
16
|
+
|
17
|
+
singleSelectionGridPage.tests.verifyRowNumerationContents();
|
18
|
+
});
|
19
|
+
|
20
|
+
describe('Additional settings: Row style and layout section - Row numeration specify correct answer section', () => {
|
21
|
+
abortEarlySetup();
|
22
|
+
before(() => {
|
23
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
24
|
+
cy.barsPreLoaderWait();
|
25
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
26
|
+
});
|
27
|
+
|
28
|
+
singleSelectionGridPage.tests.verifyRowNumerationEditTabFunctionality();
|
29
|
+
});
|
30
|
+
|
31
|
+
describe('Additional settings: Row style and layout section - Row numeration preview tab', () => {
|
32
|
+
abortEarlySetup();
|
33
|
+
before(() => {
|
34
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
35
|
+
cy.barsPreLoaderWait();
|
36
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
37
|
+
});
|
38
|
+
|
39
|
+
singleSelectionGridPage.tests.verifyRowNumerationPreviewTabFunctionality();
|
40
|
+
});
|
41
|
+
|
42
|
+
describe('Additional settings: Row style and layout section - Option alignment in cell: Specify correct answer', () => {
|
43
|
+
abortEarlySetup();
|
44
|
+
before(() => {
|
45
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
46
|
+
cy.barsPreLoaderWait();
|
47
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
48
|
+
});
|
49
|
+
|
50
|
+
singleSelectionGridPage.tests.verifyOptionAlignmentInCellContentsAndFunctionalityEditTab();
|
51
|
+
});
|
52
|
+
|
53
|
+
describe('Additional settings: Row style and layout section - Option alignment in cell: Preview tab', () => {
|
54
|
+
abortEarlySetup();
|
55
|
+
before(() => {
|
56
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
57
|
+
cy.barsPreLoaderWait();
|
58
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
59
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
60
|
+
});
|
61
|
+
|
62
|
+
singleSelectionGridPage.tests.verifyOptionAlignmentInCellFunctionalityPreviewTab();
|
63
|
+
});
|
64
|
+
|
65
|
+
describe('Additional settings: ARIA label for row headers - Contents in edit tab', () => {
|
66
|
+
abortEarlySetup();
|
67
|
+
before(() => {
|
68
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
69
|
+
cy.barsPreLoaderWait();
|
70
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
71
|
+
singleSelectionGridPage.steps.addInputToRowInputStepper(2);
|
72
|
+
});
|
73
|
+
|
74
|
+
singleSelectionGridPage.tests.verifyARIALabelContentsAndFunctionalityEditTab();
|
75
|
+
});
|
76
|
+
|
77
|
+
describe('Additional settings: ARIA label for row headers - functionality in preview tab', () => {
|
78
|
+
abortEarlySetup();
|
79
|
+
before(() => {
|
80
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
81
|
+
cy.barsPreLoaderWait();
|
82
|
+
singleSelectionGridPage.steps.expandAdditionalSettings();
|
83
|
+
singleSelectionGridPage.steps.addInputToRowInputStepper(2);
|
84
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
85
|
+
});
|
86
|
+
|
87
|
+
singleSelectionGridPage.tests.verifyARIALabelFunctionalityPreviewTab();
|
88
|
+
});
|
89
|
+
});
|