itemengine-cypress-automation 1.0.278 → 1.0.280-applitools-0af112e.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
- package/package.json +1 -1
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -89,7 +97,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
89
97
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(2);
|
90
98
|
});
|
91
99
|
|
92
|
-
it(
|
100
|
+
it(`${view} - List ordering: Horizontal orientationUser should be able to reorder options containing image, bold text and equation options in the list`, () => {
|
93
101
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('This is a bold option', 0);
|
94
102
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('Solve the following', 1);
|
95
103
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('This is a bold option', 0);
|
@@ -97,9 +105,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
97
105
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(1);
|
98
106
|
listOrderingPage.steps.verifyHorizontalOptionWithImageInPreviewTab(2);
|
99
107
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('alpha', 3);
|
108
|
+
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Reordered options`);
|
100
109
|
});
|
101
110
|
} else if (view === 'Grading view') {
|
102
|
-
it(
|
111
|
+
it(`${view} - List ordering: Horizontal orientation The order of the responses should be as per the submitted response`, () => {
|
103
112
|
listOrderingPage.steps.verifyHorizontalOptionWithBoldTextInPreviewTab(0);
|
104
113
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(1);
|
105
114
|
listOrderingPage.steps.verifyHorizontalOptionWithImageInPreviewTab(2);
|
@@ -110,6 +119,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
110
119
|
listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('alpha');
|
111
120
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
112
121
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
122
|
+
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Submitted response order`);
|
113
123
|
});
|
114
124
|
|
115
125
|
it('The order of the responses should not be editable', () => {
|
@@ -125,6 +135,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
125
135
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(1);
|
126
136
|
listOrderingPage.steps.verifyHorizontalOptionWithImageInPreviewTab(2);
|
127
137
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('alpha', 3);
|
138
|
+
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Correct answer order`);
|
128
139
|
});
|
129
140
|
}
|
130
141
|
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
if (!grepTags || !grepTags.includes('smoke')) {
|
18
26
|
describe('Question preview modes: Student view and Grading view', () => {
|
19
27
|
abortEarlySetup();
|
@@ -96,7 +104,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
96
104
|
});
|
97
105
|
};
|
98
106
|
|
99
|
-
it(
|
107
|
+
it(`${view}: List ordering - 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`, () => {
|
100
108
|
if (view === 'Grading view') {
|
101
109
|
studentViewPage.steps.submitResponse();
|
102
110
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -112,9 +120,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
112
120
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
113
121
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
114
122
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
123
|
+
cy.eyesCheckWindow(`List ordering -${view} view - Without attempting the question`);
|
115
124
|
});
|
116
125
|
|
117
|
-
it(
|
126
|
+
it(`${view}: List ordering - 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`, () => {
|
118
127
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
119
128
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
120
129
|
if (view === 'Grading view') {
|
@@ -133,9 +142,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
133
142
|
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
134
143
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
135
144
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
145
|
+
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question incorrectly`);
|
136
146
|
});
|
137
147
|
|
138
|
-
it(
|
148
|
+
it(`${view}: List ordering - 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`, () => {
|
139
149
|
if (view === 'Grading view') {
|
140
150
|
studentViewPage.steps.clearResponses();
|
141
151
|
};
|
@@ -157,9 +167,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
157
167
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
158
168
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
159
169
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
170
|
+
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question partially correct`);
|
160
171
|
});
|
161
172
|
|
162
|
-
it(
|
173
|
+
it(`${view}: List ordering - 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`, () => {
|
163
174
|
if (view === 'Grading view') {
|
164
175
|
studentViewPage.steps.clearResponses();
|
165
176
|
};
|
@@ -182,6 +193,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
182
193
|
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
183
194
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
184
195
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
196
|
+
cy.eyesCheckWindow(`List ordering -${view} view - Attempting the question correctly`);
|
185
197
|
});
|
186
198
|
});
|
187
199
|
});
|
package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js
CHANGED
@@ -14,8 +14,16 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
+
beforeEach(() => {
|
18
|
+
cy.startApplitools();
|
19
|
+
});
|
20
|
+
|
21
|
+
afterEach(() => {
|
22
|
+
cy.eyesClose();
|
23
|
+
});
|
24
|
+
|
17
25
|
views.forEach((view) => {
|
18
|
-
describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
|
26
|
+
describe(`${view}: List ordering: Horizontal orientation - Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
20
28
|
before(() => {
|
21
29
|
switch (view) {
|
@@ -66,7 +74,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
66
74
|
});
|
67
75
|
};
|
68
76
|
|
69
|
-
it(
|
77
|
+
it(`${view}: List ordering: Horizontal orientation - 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
78
|
if (view === 'Grading view') {
|
71
79
|
utilities.verifyElementVisibilityState(studentViewPage.submitButton(), 'visible');
|
72
80
|
studentViewPage.steps.submitResponse();
|
@@ -83,9 +91,10 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
83
91
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
84
92
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
85
93
|
listOrderingPage.steps.verifyCorrectOptionIconsCorrectAnswerSection();
|
94
|
+
cy.eyesCheckWindow(`${view}: List ordering: Horizontal orientation - Grading view without attempting`);
|
86
95
|
});
|
87
96
|
|
88
|
-
it(
|
97
|
+
it(`${view}: List ordering: Horizontal orientation - 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
98
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('sprout', 3);
|
90
99
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 0);
|
91
100
|
if (view === 'Grading view') {
|
@@ -104,9 +113,10 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
104
113
|
listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
|
105
114
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
106
115
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
116
|
+
cy.eyesCheckWindow(`${view}: List ordering: Horizontal orientation - Incorrect attempt`);
|
107
117
|
});
|
108
118
|
|
109
|
-
it(
|
119
|
+
it(`${view}: List ordering: Horizontal orientation - 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
120
|
if (view === 'Grading view') {
|
111
121
|
studentViewPage.steps.clearResponses();
|
112
122
|
};
|
@@ -130,9 +140,10 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
130
140
|
listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
|
131
141
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
132
142
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
143
|
+
cy.eyesCheckWindow(`${view}: List ordering: Horizontal orientation - Partially correct attempt`);
|
133
144
|
});
|
134
145
|
|
135
|
-
it(
|
146
|
+
it(`${view}: List ordering: Horizontal orientation - 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
147
|
if (view === 'Grading view') {
|
137
148
|
studentViewPage.steps.clearResponses();
|
138
149
|
};
|
@@ -157,6 +168,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
157
168
|
listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
|
158
169
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
159
170
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
171
|
+
cy.eyesCheckWindow(`${view}: List ordering: Horizontal orientation - Correct attempt`);
|
160
172
|
});
|
161
173
|
});
|
162
174
|
});
|
@@ -9,11 +9,19 @@ 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: All or nothing for "Horizontal" option orientation', () => {
|
12
|
+
describe('Create item page - List ordering - Reorder as a separate list: All or nothing for "Horizontal" option orientation', () => {
|
13
13
|
before(() => {
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
+
beforeEach(() => {
|
18
|
+
cy.startApplitools();
|
19
|
+
});
|
20
|
+
|
21
|
+
afterEach(() => {
|
22
|
+
cy.eyesClose();
|
23
|
+
});
|
24
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -69,16 +77,18 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
69
77
|
});
|
70
78
|
};
|
71
79
|
if (view === 'Question preview' || view === 'Item preview') {
|
72
|
-
it(
|
80
|
+
it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - 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
81
|
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
74
82
|
listOrderingPage.steps.switchToGradingView();
|
75
83
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
76
84
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
77
85
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
78
86
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
87
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} view - Without attempting the question`);
|
79
88
|
});
|
80
89
|
}
|
81
|
-
|
90
|
+
|
91
|
+
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`, () => {
|
82
92
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
83
93
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
84
94
|
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
@@ -99,9 +109,10 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
99
109
|
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
100
110
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
101
111
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
112
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} view - Attempting the question incorrectly`);
|
102
113
|
});
|
103
114
|
|
104
|
-
it(
|
115
|
+
it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - 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`, () => {
|
105
116
|
if (view === 'Grading view') {
|
106
117
|
studentViewPage.steps.clearResponses();
|
107
118
|
};
|
@@ -125,9 +136,10 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
125
136
|
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
126
137
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
127
138
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
139
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} view - Attempting the question partially correct`);
|
128
140
|
});
|
129
141
|
|
130
|
-
it(
|
142
|
+
it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - 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`, () => {
|
131
143
|
if (view === 'Grading view') {
|
132
144
|
studentViewPage.steps.clearResponses();
|
133
145
|
};
|
@@ -152,6 +164,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
152
164
|
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
153
165
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
154
166
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
167
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} view - Attempting the question correctly`);
|
155
168
|
});
|
156
169
|
});
|
157
170
|
});
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -86,14 +94,15 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
86
94
|
});
|
87
95
|
|
88
96
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
89
|
-
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}`, () => {
|
97
|
+
it(`List ordering - Reorder as a separate list: ${view} - 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}`, () => {
|
90
98
|
listOrderingPage.steps.verifyOptionWithImageInOptionsContainerPreviewTabSeperateList(0);
|
91
99
|
listOrderingPage.steps.verifyOptionWithBoldTextInOptionsContainerPreviewTabSeperateList(1);
|
92
100
|
listOrderingPage.steps.verifyOptionWithEquationTextInOptionsContainerPreviewTabSeperateList(2);
|
93
101
|
listOrderingPage.steps.verifyTextContentOfOptionInPreviewTabSeperateList('alpha', 3);
|
102
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} - Options container`);
|
94
103
|
});
|
95
104
|
|
96
|
-
it(
|
105
|
+
it(`List ordering - Reorder as a separate list: ${view} - User should be able to drop the options in the dropzone containing image, bold text and equation options in the list`, () => {
|
97
106
|
listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
|
98
107
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
|
99
108
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
|
@@ -102,10 +111,11 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
102
111
|
listOrderingPage.steps.verifyOptionWithImageInDropzonePreviewTabSeperateList(1);
|
103
112
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzonePreviewTabSeperateList(2);
|
104
113
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
|
114
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} - Dropzone options`);
|
105
115
|
});
|
106
116
|
|
107
117
|
} else if (view === 'Grading view') {
|
108
|
-
it(`The order of the responses should be as per the submitted response`, () => {
|
118
|
+
it(`List ordering - Reorder as a separate list: ${view} - The order of the responses should be as per the submitted response`, () => {
|
109
119
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzonePreviewTabSeperateList(0);
|
110
120
|
listOrderingPage.steps.verifyOptionWithImageInDropzonePreviewTabSeperateList(1);
|
111
121
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzonePreviewTabSeperateList(2);
|
@@ -116,6 +126,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
116
126
|
listOrderingPage.steps.verifyCorrectOptionIconOrientationSeperateList('alpha');
|
117
127
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
118
128
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
129
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} - Submitted response order`);
|
119
130
|
});
|
120
131
|
|
121
132
|
it('The order of the responses should not be editable', () => {
|
@@ -127,11 +138,12 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
127
138
|
});
|
128
139
|
|
129
140
|
} else {
|
130
|
-
it(
|
141
|
+
it(`List ordering - Reorder as a separate list: ${view} - The order of the options should be as per the correct answer order`, () => {
|
131
142
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
|
132
143
|
listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
|
133
144
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
|
134
145
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzoneCorrectAnswerSectionSeperateList('alpha', 3);
|
146
|
+
cy.eyesCheckWindow(`List ordering - Reorder as a separate list: ${view} - Correct answer order`);
|
135
147
|
});
|
136
148
|
}
|
137
149
|
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
if (!grepTags || !grepTags.includes('smoke')) {
|
18
26
|
describe('Question preview modes: Student view and Grading view', () => {
|
19
27
|
abortEarlySetup();
|
@@ -107,18 +115,20 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
107
115
|
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
108
116
|
});
|
109
117
|
};
|
118
|
+
|
110
119
|
if (view === 'Question preview' || view === 'Item preview') {
|
111
|
-
it(
|
120
|
+
it(`${view}: List ordering:Reorder as a separate list - 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`, () => {
|
112
121
|
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
113
122
|
listOrderingPage.steps.switchToGradingView();
|
114
123
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
115
124
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
116
125
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
117
126
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
127
|
+
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Without attempting the question`);
|
118
128
|
});
|
119
129
|
};
|
120
130
|
|
121
|
-
it(
|
131
|
+
it(`${view}: List ordering:Reorder as a separate list - 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`, () => {
|
122
132
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
123
133
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
124
134
|
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
@@ -139,9 +149,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
139
149
|
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
140
150
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
141
151
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
152
|
+
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question incorrectly`);
|
142
153
|
});
|
143
154
|
|
144
|
-
it(
|
155
|
+
it(`${view}: List ordering:Reorder as a separate list - 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`, () => {
|
145
156
|
if (view === 'Grading view') {
|
146
157
|
studentViewPage.steps.clearResponses();
|
147
158
|
};
|
@@ -165,9 +176,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
165
176
|
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
166
177
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
167
178
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
179
|
+
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question partially correct`);
|
168
180
|
});
|
169
181
|
|
170
|
-
it(
|
182
|
+
it(`${view}: List ordering:Reorder as a separate list - 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
183
|
if (view === 'Grading view') {
|
172
184
|
studentViewPage.steps.clearResponses();
|
173
185
|
};
|
@@ -192,6 +204,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
192
204
|
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
193
205
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
194
206
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
207
|
+
cy.eyesCheckWindow(`List ordering:Reorder as a separate list ${view} view - Attempting the question correctly`);
|
195
208
|
});
|
196
209
|
});
|
197
210
|
});
|
package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -85,13 +93,14 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
85
93
|
});
|
86
94
|
|
87
95
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
88
|
-
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}`, () => {
|
96
|
+
it(`List ordering: Reorder as a separate list - ${view} - 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}`, () => {
|
89
97
|
listOrderingPage.steps.verifyOptionWithImageInOptionsContainerPreviewTabSeperateList(0);
|
90
98
|
listOrderingPage.steps.verifyOptionWithBoldTextInOptionsContainerPreviewTabSeperateList(1);
|
91
99
|
listOrderingPage.steps.verifyOptionWithEquationTextInOptionsContainerPreviewTabSeperateList(2);
|
100
|
+
cy.eyesCheckWindow(`List ordering: Reorder as a separate list - ${view} - Options container with image, bold text, and equation`);
|
92
101
|
});
|
93
102
|
|
94
|
-
it(
|
103
|
+
it(`List ordering: Reorder as a separate list - ${view} - User should be able to drop the options in the dropzone containing image, bold text and equation options in the list`, () => {
|
95
104
|
listOrderingPage.steps.clickAndDropOptionSeperateList('This is a bold option');
|
96
105
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Fox');
|
97
106
|
listOrderingPage.steps.clickAndDropOptionSeperateList('Solve the following');
|
@@ -100,9 +109,10 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
100
109
|
listOrderingPage.steps.verifyOptionWithImageInDropzonePreviewTabSeperateList(1);
|
101
110
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzonePreviewTabSeperateList(2);
|
102
111
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
|
112
|
+
cy.eyesCheckWindow(`List ordering: Reorder as a separate list - ${view} - Dropzone with image, bold text, and equation options`);
|
103
113
|
});
|
104
114
|
} else if (view === 'Grading view') {
|
105
|
-
it(`The order of the responses should be as per the submitted response`, () => {
|
115
|
+
it(`List ordering: Reorder as a separate list - ${view} - The order of the responses should be as per the submitted response`, () => {
|
106
116
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzonePreviewTabSeperateList(0);
|
107
117
|
listOrderingPage.steps.verifyOptionWithImageInDropzonePreviewTabSeperateList(1);
|
108
118
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzonePreviewTabSeperateList(2);
|
@@ -113,6 +123,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
113
123
|
listOrderingPage.steps.verifyCorrectOptionIconOrientationSeperateList('alpha');
|
114
124
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
115
125
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
126
|
+
cy.eyesCheckWindow(`List ordering: Reorder as a separate list - ${view} - Submitted response order`);
|
116
127
|
});
|
117
128
|
|
118
129
|
it('The order of the responses should not be editable', () => {
|
@@ -123,11 +134,12 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
123
134
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzonePreviewTabSeperateList('alpha', 3);
|
124
135
|
});
|
125
136
|
} else {
|
126
|
-
it(
|
137
|
+
it(`List ordering: Reorder as a separate list - ${view} - The order of the options should be as per the correct answer order`, () => {
|
127
138
|
listOrderingPage.steps.verifyOptionWithBoldTextInDropzoneCorrectAnswerSectionSeperateList(0);
|
128
139
|
listOrderingPage.steps.verifyOptionWithImageInDropzoneCorrectAnswerSectionTabSeperateList(1);
|
129
140
|
listOrderingPage.steps.verifyOptionWithEquationTextInDropzoneCorrectAnswerSectionSeperateList(2);
|
130
141
|
listOrderingPage.steps.verifyTextContentOfOptionInDropzoneCorrectAnswerSectionSeperateList('alpha', 3);
|
142
|
+
cy.eyesCheckWindow(`List ordering: Reorder as a separate list - ${view} - Correct answer order`);
|
131
143
|
});
|
132
144
|
}
|
133
145
|
|
@@ -14,6 +14,14 @@ 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
|
+
|
17
25
|
if (!grepTags || !grepTags.includes('smoke')) {
|
18
26
|
describe('Question preview modes: Student view and Grading view', () => {
|
19
27
|
abortEarlySetup();
|
@@ -97,7 +105,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
97
105
|
});
|
98
106
|
};
|
99
107
|
|
100
|
-
it(
|
108
|
+
it(`${view}: Matching - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, then 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`, () => {
|
101
109
|
if (view === 'Grading view') {
|
102
110
|
studentViewPage.steps.submitResponse();
|
103
111
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -114,9 +122,10 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
114
122
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
115
123
|
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
116
124
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
125
|
+
cy.eyesCheckWindow(`Matching ${view} view - Without attempting the question`);
|
117
126
|
});
|
118
127
|
|
119
|
-
it(
|
128
|
+
it(`${view}:Matching - 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`, () => {
|
120
129
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
|
121
130
|
if (view === 'Grading view') {
|
122
131
|
studentViewPage.steps.submitResponse();
|
@@ -133,9 +142,10 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
133
142
|
matchingPage.steps.verifyIncorrectOptionIcon(2);
|
134
143
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
135
144
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
145
|
+
cy.eyesCheckWindow(`Matching ${view} - Attempting the question incorrectly`);
|
136
146
|
});
|
137
147
|
|
138
|
-
it(
|
148
|
+
it(`${view}: Matching - 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`, () => {
|
139
149
|
if (view === 'Grading view') {
|
140
150
|
studentViewPage.steps.clearResponses();
|
141
151
|
};
|
@@ -155,9 +165,10 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
155
165
|
matchingPage.steps.verifyIncorrectOptionIcon(2);
|
156
166
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
157
167
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
168
|
+
cy.eyesCheckWindow(`Matching ${view} - Attempting partially correct with some correct, some incomplete and some incorrect options`);
|
158
169
|
});
|
159
170
|
|
160
|
-
it(
|
171
|
+
it(`${view}: Matching - 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`, () => {
|
161
172
|
if (view === 'Grading view') {
|
162
173
|
studentViewPage.steps.clearResponses();
|
163
174
|
};
|
@@ -177,9 +188,10 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
177
188
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
178
189
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
179
190
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
191
|
+
cy.eyesCheckWindow(`Matching ${view} - Attempting partially correct with incomplete response`);
|
180
192
|
});
|
181
193
|
|
182
|
-
it(
|
194
|
+
it(`${view}: Matching - 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`, () => {
|
183
195
|
if (view === 'Grading view') {
|
184
196
|
studentViewPage.steps.clearResponses();
|
185
197
|
};
|
@@ -200,6 +212,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
200
212
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
201
213
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
202
214
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
215
|
+
cy.eyesCheckWindow(`Matching ${view} - Attempting the question correctly`);
|
203
216
|
});
|
204
217
|
});
|
205
218
|
});
|