itemengine-cypress-automation 1.0.295-applitools-78e9d04.0 → 1.0.295-e2e6thFebFixes-348b431.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -3
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +39 -1
- package/cypress/pages/singleSelectionPage.js +39 -1
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -12,14 +12,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -85,11 +77,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
85
77
|
it('Question instructions should be visible', () => {
|
86
78
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
87
79
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
88
|
-
cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Options with image, bold text, and equation`);
|
89
80
|
});
|
90
81
|
|
91
82
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
92
|
-
it(`
|
83
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
93
84
|
listOrderingPage.steps.verifyOptionWithImageInPreviewTab(0);
|
94
85
|
listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(1);
|
95
86
|
listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(2);
|
@@ -114,7 +105,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
114
105
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '');
|
115
106
|
});
|
116
107
|
|
117
|
-
it(
|
108
|
+
it('User should be able to reorder options containing image, bold text and equation options in the list using position dropdowns. On setting position for all options, the alert message should get removed', () => {
|
118
109
|
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
|
119
110
|
listOrderingPage.steps.verifyAlertMessageNotExists();
|
120
111
|
});
|
@@ -137,7 +128,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
137
128
|
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), 2), '3');
|
138
129
|
});
|
139
130
|
} else {
|
140
|
-
it(
|
131
|
+
it('The order of the options should be as per the correct answer order', () => {
|
141
132
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '2');
|
142
133
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(1, '1');
|
143
134
|
listOrderingPage.steps.verifySelectedOptionPositionDropdown(2, '3');
|
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,14 +14,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
views.forEach((view) => {
|
26
18
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -88,7 +80,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
88
80
|
it('Question instructions should be visible', () => {
|
89
81
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
90
82
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
91
|
-
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Default question view`);
|
92
83
|
});
|
93
84
|
|
94
85
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -98,7 +89,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
98
89
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(2);
|
99
90
|
});
|
100
91
|
|
101
|
-
it(
|
92
|
+
it('User should be able to reorder options containing image, bold text and equation options in the list', () => {
|
102
93
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('This is a bold option', 0);
|
103
94
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('Solve the following', 1);
|
104
95
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('This is a bold option', 0);
|
@@ -108,7 +99,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
108
99
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('alpha', 3);
|
109
100
|
});
|
110
101
|
} else if (view === 'Grading view') {
|
111
|
-
it(
|
102
|
+
it(`The order of the responses should be as per the submitted response`, () => {
|
112
103
|
listOrderingPage.steps.verifyHorizontalOptionWithBoldTextInPreviewTab(0);
|
113
104
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(1);
|
114
105
|
listOrderingPage.steps.verifyHorizontalOptionWithImageInPreviewTab(2);
|
@@ -14,14 +14,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -104,7 +96,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
104
96
|
});
|
105
97
|
};
|
106
98
|
|
107
|
-
it(
|
99
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
108
100
|
if (view === 'Grading view') {
|
109
101
|
studentViewPage.steps.submitResponse();
|
110
102
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -122,7 +114,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
122
114
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
123
115
|
});
|
124
116
|
|
125
|
-
it(
|
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 all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
126
118
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
127
119
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
128
120
|
if (view === 'Grading view') {
|
@@ -143,7 +135,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
143
135
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
144
136
|
});
|
145
137
|
|
146
|
-
it(
|
138
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
147
139
|
if (view === 'Grading view') {
|
148
140
|
studentViewPage.steps.clearResponses();
|
149
141
|
};
|
@@ -167,7 +159,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
167
159
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
168
160
|
});
|
169
161
|
|
170
|
-
it(
|
162
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
171
163
|
if (view === 'Grading view') {
|
172
164
|
studentViewPage.steps.clearResponses();
|
173
165
|
};
|
@@ -190,7 +182,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
190
182
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
191
183
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
192
184
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
193
|
-
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question correctly`);
|
194
185
|
});
|
195
186
|
});
|
196
187
|
});
|
package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js
CHANGED
@@ -15,7 +15,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
15
15
|
});
|
16
16
|
|
17
17
|
views.forEach((view) => {
|
18
|
-
describe(`${view}:
|
18
|
+
describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
|
19
19
|
abortEarlySetup();
|
20
20
|
before(() => {
|
21
21
|
switch (view) {
|
@@ -66,7 +66,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
66
66
|
});
|
67
67
|
};
|
68
68
|
|
69
|
-
it(
|
69
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
70
70
|
if (view === 'Grading view') {
|
71
71
|
utilities.verifyElementVisibilityState(studentViewPage.submitButton(), 'visible');
|
72
72
|
studentViewPage.steps.submitResponse();
|
@@ -85,7 +85,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
85
85
|
listOrderingPage.steps.verifyCorrectOptionIconsCorrectAnswerSection();
|
86
86
|
});
|
87
87
|
|
88
|
-
it(
|
88
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
89
89
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('sprout', 3);
|
90
90
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 0);
|
91
91
|
if (view === 'Grading view') {
|
@@ -106,7 +106,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
106
106
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
107
107
|
});
|
108
108
|
|
109
|
-
it(
|
109
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
110
110
|
if (view === 'Grading view') {
|
111
111
|
studentViewPage.steps.clearResponses();
|
112
112
|
};
|
@@ -132,7 +132,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
132
132
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
133
133
|
});
|
134
134
|
|
135
|
-
it(
|
135
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
136
136
|
if (view === 'Grading view') {
|
137
137
|
studentViewPage.steps.clearResponses();
|
138
138
|
};
|
@@ -9,7 +9,7 @@ var itemReferenceID = "";
|
|
9
9
|
const options = ['sprout', 'plant', 'flower', 'seed'];
|
10
10
|
const correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
11
11
|
|
12
|
-
describe('Create item page - List ordering
|
12
|
+
describe('Create item page - List ordering: All or nothing for "Horizontal" option orientation', () => {
|
13
13
|
before(() => {
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
@@ -69,7 +69,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
69
69
|
});
|
70
70
|
};
|
71
71
|
if (view === 'Question preview' || view === 'Item preview') {
|
72
|
-
it(
|
72
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
73
73
|
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
74
74
|
listOrderingPage.steps.switchToGradingView();
|
75
75
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
@@ -78,8 +78,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
78
78
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
79
79
|
});
|
80
80
|
}
|
81
|
-
|
82
|
-
it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
|
81
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
83
82
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
84
83
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
85
84
|
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
@@ -102,7 +101,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
102
101
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
103
102
|
});
|
104
103
|
|
105
|
-
it(
|
104
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
106
105
|
if (view === 'Grading view') {
|
107
106
|
studentViewPage.steps.clearResponses();
|
108
107
|
};
|
@@ -128,7 +127,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
128
127
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
129
128
|
});
|
130
129
|
|
131
|
-
it(
|
130
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
132
131
|
if (view === 'Grading view') {
|
133
132
|
studentViewPage.steps.clearResponses();
|
134
133
|
};
|
@@ -14,14 +14,6 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
views.forEach((view) => {
|
26
18
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -91,10 +83,9 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
91
83
|
}
|
92
84
|
});
|
93
85
|
|
94
|
-
it(
|
86
|
+
it('Question instructions should be visible', () => {
|
95
87
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
96
88
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
97
|
-
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} - Options with image, bold text and equation`);
|
98
89
|
});
|
99
90
|
|
100
91
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -105,7 +96,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
105
96
|
listOrderingPage.steps.verifyTextContentOfOptionInPreviewTabSeperateList('alpha', 3);
|
106
97
|
});
|
107
98
|
|
108
|
-
it(
|
99
|
+
it('User should be able to drop the options in the dropzone containing image, bold text and equation options in the list', () => {
|
109
100
|
listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
|
110
101
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
|
111
102
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
|
@@ -139,7 +130,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
139
130
|
});
|
140
131
|
|
141
132
|
} else {
|
142
|
-
it(
|
133
|
+
it('The order of the options should be as per the correct answer order', () => {
|
143
134
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
|
144
135
|
listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
|
145
136
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
|
@@ -14,14 +14,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -117,9 +109,8 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
117
109
|
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
118
110
|
});
|
119
111
|
};
|
120
|
-
|
121
112
|
if (view === 'Question preview' || view === 'Item preview') {
|
122
|
-
it(
|
113
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
123
114
|
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
124
115
|
listOrderingPage.steps.switchToGradingView();
|
125
116
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
@@ -129,7 +120,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
129
120
|
});
|
130
121
|
};
|
131
122
|
|
132
|
-
it(
|
123
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
133
124
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
134
125
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
135
126
|
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
@@ -152,7 +143,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
152
143
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
153
144
|
});
|
154
145
|
|
155
|
-
it(
|
146
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
156
147
|
if (view === 'Grading view') {
|
157
148
|
studentViewPage.steps.clearResponses();
|
158
149
|
};
|
@@ -178,7 +169,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
178
169
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
179
170
|
});
|
180
171
|
|
181
|
-
it(
|
172
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
182
173
|
if (view === 'Grading view') {
|
183
174
|
studentViewPage.steps.clearResponses();
|
184
175
|
};
|
@@ -203,7 +194,6 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
203
194
|
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
204
195
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
205
196
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
206
|
-
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question correctly`);
|
207
197
|
});
|
208
198
|
});
|
209
199
|
});
|
package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js
CHANGED
@@ -81,7 +81,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
81
81
|
}
|
82
82
|
});
|
83
83
|
|
84
|
-
it(
|
84
|
+
it('Question instructions should be visible', () => {
|
85
85
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
86
86
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
87
87
|
});
|
@@ -93,7 +93,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
93
93
|
listOrderingPage.steps.verifyOptionWithEquationTextInOptionsContainerPreviewTabSeperateList(2);
|
94
94
|
});
|
95
95
|
|
96
|
-
it(
|
96
|
+
it('User should be able to drop the options in the dropzone containing image, bold text and equation options in the list', () => {
|
97
97
|
listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
|
98
98
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
|
99
99
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
|
@@ -125,7 +125,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
125
125
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
|
126
126
|
});
|
127
127
|
} else {
|
128
|
-
it(
|
128
|
+
it('The order of the options should be as per the correct answer order', () => {
|
129
129
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
|
130
130
|
listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
|
131
131
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
|
@@ -14,14 +14,6 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -105,7 +97,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
105
97
|
});
|
106
98
|
};
|
107
99
|
|
108
|
-
it(
|
100
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
109
101
|
if (view === 'Grading view') {
|
110
102
|
studentViewPage.steps.submitResponse();
|
111
103
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -124,7 +116,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
124
116
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
125
117
|
});
|
126
118
|
|
127
|
-
it(
|
119
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
128
120
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
|
129
121
|
if (view === 'Grading view') {
|
130
122
|
studentViewPage.steps.submitResponse();
|
@@ -143,7 +135,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
143
135
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
144
136
|
});
|
145
137
|
|
146
|
-
it(
|
138
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
147
139
|
if (view === 'Grading view') {
|
148
140
|
studentViewPage.steps.clearResponses();
|
149
141
|
};
|
@@ -165,7 +157,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
165
157
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
166
158
|
});
|
167
159
|
|
168
|
-
it(
|
160
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
169
161
|
if (view === 'Grading view') {
|
170
162
|
studentViewPage.steps.clearResponses();
|
171
163
|
};
|
@@ -187,7 +179,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
187
179
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
188
180
|
});
|
189
181
|
|
190
|
-
it(
|
182
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
191
183
|
if (view === 'Grading view') {
|
192
184
|
studentViewPage.steps.clearResponses();
|
193
185
|
};
|
@@ -208,7 +200,6 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
208
200
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
209
201
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
210
202
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
211
|
-
cy.eyesCheckWindow(`Matching ${view} - Attempting the question correctly`);
|
212
203
|
});
|
213
204
|
});
|
214
205
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
views.forEach((view) => {
|
23
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -99,16 +91,15 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
99
91
|
}
|
100
92
|
});
|
101
93
|
|
102
|
-
it(
|
94
|
+
it('Question instructions should be visible', () => {
|
103
95
|
utilities.verifyInnerText(matchingPage.questionInstructionsText(), 'Fill the categories with the right answer.');
|
104
96
|
utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
|
105
97
|
});
|
106
98
|
|
107
|
-
it(
|
99
|
+
it('The prompt should have image, equation, bold text displayed', () => {
|
108
100
|
matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
|
109
101
|
matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
|
110
102
|
matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
|
111
|
-
cy.eyesCheckWindow(`Matching - ${view} - Prompt with image, equation, bold text`);
|
112
103
|
});
|
113
104
|
|
114
105
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -121,7 +112,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
121
112
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(2, '');
|
122
113
|
});
|
123
114
|
|
124
|
-
it(
|
115
|
+
it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
|
125
116
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fox', dropzoneIndex: 0 }, { optionText: 'This is a bold option', dropzoneIndex: 1 }, { optionText: 'Solve the following', dropzoneIndex: 2 }]);
|
126
117
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
|
127
118
|
matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
@@ -98,7 +98,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
98
98
|
});
|
99
99
|
};
|
100
100
|
|
101
|
-
it(
|
101
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
102
102
|
if (view === 'Grading view') {
|
103
103
|
studentViewPage.steps.submitResponse();
|
104
104
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -119,7 +119,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
119
119
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
120
120
|
});
|
121
121
|
|
122
|
-
it(
|
122
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
123
123
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
|
124
124
|
if (view === 'Grading view') {
|
125
125
|
studentViewPage.steps.submitResponse();
|
@@ -138,7 +138,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
138
138
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
139
139
|
});
|
140
140
|
|
141
|
-
it(
|
141
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
142
142
|
if (view === 'Grading view') {
|
143
143
|
studentViewPage.steps.clearResponses();
|
144
144
|
};
|
@@ -160,7 +160,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
160
160
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
161
161
|
});
|
162
162
|
|
163
|
-
it(
|
163
|
+
it('When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
164
164
|
if (view === 'Grading view') {
|
165
165
|
studentViewPage.steps.clearResponses();
|
166
166
|
};
|
@@ -182,7 +182,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
182
182
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
183
183
|
});
|
184
184
|
|
185
|
-
it(
|
185
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
186
186
|
if (view === 'Grading view') {
|
187
187
|
studentViewPage.steps.clearResponses();
|
188
188
|
};
|
@@ -11,14 +11,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
views.forEach((view) => {
|
23
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -88,19 +80,18 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
88
80
|
utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
|
89
81
|
});
|
90
82
|
|
91
|
-
it(
|
83
|
+
it('The prompt should have image, equation, bold text displayed', () => {
|
92
84
|
matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
|
93
85
|
matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
|
94
86
|
matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
|
95
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} - Prompt with image, equation, bold text`);
|
96
87
|
});
|
97
88
|
|
98
89
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
99
|
-
it(
|
90
|
+
it('User should be able to attempt the question by selecting option from the dropdowns', () => {
|
100
91
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
|
101
92
|
});
|
102
93
|
} else if (view === 'Grading view') {
|
103
|
-
it(
|
94
|
+
it('The dropdowns should be displayed filled with answers', () => {
|
104
95
|
utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
|
105
96
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
|
106
97
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
|
@@ -118,7 +109,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
118
109
|
matchingPage.steps.verifyDropdownIsDisabled(2);
|
119
110
|
});
|
120
111
|
} else {
|
121
|
-
it(
|
112
|
+
it('The dropdowns should be displayed filled with answers', () => {
|
122
113
|
utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
|
123
114
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
|
124
115
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
|