itemengine-cypress-automation 1.0.282-applitools-8c400f4.0 → 1.0.283-updatedPackageFile-3c0db7c.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 +26 -40
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -17
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -14
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -54
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -21
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -20
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -19
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -22
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -18
- 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 -18
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +7 -17
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -27
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +9 -21
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +13 -26
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -16
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -19
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -14
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -13
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -19
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -14
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -25
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- 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 - Fill in the gaps over image - drag and drop: All or
|
|
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
|
if (!grepTags || !grepTags.includes('smoke')) {
|
24
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
25
17
|
abortEarlySetup();
|
@@ -110,7 +102,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
110
102
|
});
|
111
103
|
};
|
112
104
|
|
113
|
-
it(
|
105
|
+
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', () => {
|
114
106
|
if (view === 'Grading view') {
|
115
107
|
studentViewPage.steps.submitResponse();
|
116
108
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -126,10 +118,9 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
126
118
|
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
127
119
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
128
120
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
129
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Without attempting the question`);
|
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 along with numeration should be displayed', () => {
|
133
124
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
134
125
|
if (view === 'Grading view') {
|
135
126
|
studentViewPage.steps.submitResponse();
|
@@ -146,10 +137,9 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
146
137
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
147
138
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
148
139
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
149
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question incorrectly`);
|
150
140
|
});
|
151
141
|
|
152
|
-
it(
|
142
|
+
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', () => {
|
153
143
|
if (view === 'Grading view') {
|
154
144
|
studentViewPage.steps.clearResponses();
|
155
145
|
};
|
@@ -169,10 +159,9 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
169
159
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
170
160
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
171
161
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
172
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question partially correct with some correct, some incomplete, some incorrect options`);
|
173
162
|
});
|
174
163
|
|
175
|
-
it(
|
164
|
+
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', () => {
|
176
165
|
if (view === 'Grading view') {
|
177
166
|
studentViewPage.steps.clearResponses();
|
178
167
|
};
|
@@ -192,10 +181,9 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
192
181
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
193
182
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
194
183
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
195
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question partially correct with all the dropzone correctly attempted but one dropzone incomplete`);
|
196
184
|
});
|
197
185
|
|
198
|
-
it(
|
186
|
+
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', () => {
|
199
187
|
if (view === 'Grading view') {
|
200
188
|
studentViewPage.steps.clearResponses();
|
201
189
|
};
|
@@ -217,7 +205,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
217
205
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
218
206
|
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
219
207
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
220
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
|
221
208
|
});
|
222
209
|
});
|
223
210
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -10,14 +10,6 @@ describe('Preview tab contents for all views', () => {
|
|
10
10
|
cy.loginAs('admin');
|
11
11
|
});
|
12
12
|
|
13
|
-
beforeEach(() => {
|
14
|
-
cy.startApplitools();
|
15
|
-
});
|
16
|
-
|
17
|
-
afterEach(() => {
|
18
|
-
cy.eyesClose();
|
19
|
-
});
|
20
|
-
|
21
13
|
views.forEach((view) => {
|
22
14
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
23
15
|
abortEarlySetup();
|
@@ -97,13 +89,12 @@ describe('Preview tab contents for all views', () => {
|
|
97
89
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
|
98
90
|
});
|
99
91
|
|
100
|
-
it(
|
92
|
+
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
101
93
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
|
102
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Background image`);
|
103
94
|
});
|
104
95
|
|
105
96
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
106
|
-
it(`
|
97
|
+
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}`, () => {
|
107
98
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
108
99
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
109
100
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -111,7 +102,6 @@ describe('Preview tab contents for all views', () => {
|
|
111
102
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '');
|
112
103
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, '');
|
113
104
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
114
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Options container and dropzone`);
|
115
105
|
});
|
116
106
|
|
117
107
|
it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
|
@@ -123,7 +113,7 @@ describe('Preview tab contents for all views', () => {
|
|
123
113
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
124
114
|
});
|
125
115
|
} else if (view === 'Grading view') {
|
126
|
-
it(
|
116
|
+
it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
|
127
117
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
|
128
118
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|
129
119
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
@@ -133,7 +123,6 @@ describe('Preview tab contents for all views', () => {
|
|
133
123
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
134
124
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
135
125
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.optionContainerOptionsPreviewTab(), 'notExist');
|
136
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Submitted correct answers`);
|
137
126
|
});
|
138
127
|
|
139
128
|
it('The content in the dropzone should not be editable', () => {
|
@@ -142,13 +131,12 @@ describe('Preview tab contents for all views', () => {
|
|
142
131
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewDropzoneOptionDisabled(2);
|
143
132
|
});
|
144
133
|
} else {
|
145
|
-
it(
|
134
|
+
it('The dropzone should be displayed filled with answers', () => {
|
146
135
|
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.dropzonePreviewTab(), 3);
|
147
136
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
|
148
137
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|
149
138
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
150
139
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
151
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Correct answers`);
|
152
140
|
});
|
153
141
|
}
|
154
142
|
});
|
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
16
16
|
cy.loginAs('admin');
|
17
17
|
});
|
18
18
|
|
19
|
-
beforeEach(() => {
|
20
|
-
cy.startApplitools();
|
21
|
-
});
|
22
|
-
|
23
|
-
afterEach(() => {
|
24
|
-
cy.eyesClose();
|
25
|
-
});
|
26
|
-
|
27
19
|
if (!grepTags || !grepTags.includes('smoke')) {
|
28
20
|
describe('Question preview modes: Student view and Grading view', () => {
|
29
21
|
abortEarlySetup();
|
@@ -111,7 +103,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
111
103
|
});
|
112
104
|
};
|
113
105
|
|
114
|
-
it(
|
106
|
+
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', () => {
|
115
107
|
if (view === 'Grading view') {
|
116
108
|
studentViewPage.steps.submitResponse();
|
117
109
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -127,10 +119,9 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
127
119
|
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.correctAnswersLabel(), 'Correct answers');
|
128
120
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
129
121
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
130
|
-
cy.eyesCheckWindow(`${view} view - Without attempting the question`);
|
131
122
|
});
|
132
123
|
|
133
|
-
it(
|
124
|
+
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', () => {
|
134
125
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
135
126
|
if (view === 'Grading view') {
|
136
127
|
studentViewPage.steps.submitResponse();
|
@@ -146,10 +137,9 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
146
137
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
147
138
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
148
139
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
149
|
-
cy.eyesCheckWindow(`${view} - Attempting the question incorrectly`);
|
150
140
|
});
|
151
141
|
|
152
|
-
it(
|
142
|
+
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 along with numeration should be displayed', () => {
|
153
143
|
if (view === 'Grading view') {
|
154
144
|
studentViewPage.steps.clearResponses();
|
155
145
|
};
|
@@ -168,10 +158,9 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
168
158
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
169
159
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
160
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
171
|
-
cy.eyesCheckWindow(`${view} - Attempting partially correct`);
|
172
161
|
});
|
173
162
|
|
174
|
-
it(
|
163
|
+
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', () => {
|
175
164
|
if (view === 'Grading view') {
|
176
165
|
studentViewPage.steps.clearResponses();
|
177
166
|
};
|
@@ -191,7 +180,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
191
180
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
192
181
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
193
182
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
194
|
-
cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
|
195
183
|
});
|
196
184
|
});
|
197
185
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js
CHANGED
@@ -14,14 +14,6 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
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();
|
@@ -90,9 +82,8 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
90
82
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '' }, { dropdownIndex: 1, dropdownText: '' }]);
|
91
83
|
});
|
92
84
|
|
93
|
-
it(
|
85
|
+
it('User should be select an option from the dropdown', () => {
|
94
86
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
95
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - Selected options`);
|
96
87
|
});
|
97
88
|
} else if (view === 'Grading view') {
|
98
89
|
it('The dropdowns should be displayed filled with answers', () => {
|
@@ -105,10 +96,9 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
105
96
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsDisabled(1);
|
106
97
|
});
|
107
98
|
} else {
|
108
|
-
it(
|
99
|
+
it('The dropdowns should be displayed filled with correct answers', () => {
|
109
100
|
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 2);
|
110
101
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
111
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - Correct answers`);
|
112
102
|
});
|
113
103
|
}
|
114
104
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
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
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -103,7 +95,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
103
95
|
});
|
104
96
|
};
|
105
97
|
|
106
|
-
it(
|
98
|
+
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', () => {
|
107
99
|
if (view === 'Grading view') {
|
108
100
|
studentViewPage.steps.submitResponse();
|
109
101
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -119,10 +111,9 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
119
111
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
|
120
112
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
121
113
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
122
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} view - Without attempting the question`);
|
123
114
|
});
|
124
115
|
|
125
|
-
it(
|
116
|
+
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', () => {
|
126
117
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
127
118
|
if (view === 'Grading view') {
|
128
119
|
studentViewPage.steps.submitResponse();
|
@@ -139,10 +130,9 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
139
130
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
|
140
131
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
141
132
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
142
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} - Attempting the question incorrectly`);
|
143
133
|
});
|
144
134
|
|
145
|
-
it(
|
135
|
+
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 along with numeration should be displayed', () => {
|
146
136
|
if (view === 'Grading view') {
|
147
137
|
studentViewPage.steps.clearResponses();
|
148
138
|
};
|
@@ -162,10 +152,9 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
162
152
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
|
163
153
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
164
154
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
165
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} - Attempting partially correct`);
|
166
155
|
});
|
167
156
|
|
168
|
-
it(
|
157
|
+
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', () => {
|
169
158
|
if (view === 'Grading view') {
|
170
159
|
studentViewPage.steps.clearResponses();
|
171
160
|
};
|
@@ -187,7 +176,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
187
176
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
188
177
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
189
178
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
190
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
|
191
179
|
});
|
192
180
|
});
|
193
181
|
});
|
@@ -9,14 +9,6 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
9
9
|
cy.loginAs('admin');
|
10
10
|
});
|
11
11
|
|
12
|
-
beforeEach(() => {
|
13
|
-
cy.startApplitools();
|
14
|
-
});
|
15
|
-
|
16
|
-
afterEach(() => {
|
17
|
-
cy.eyesClose();
|
18
|
-
});
|
19
|
-
|
20
12
|
views.forEach((view) => {
|
21
13
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
22
14
|
abortEarlySetup();
|
@@ -85,16 +77,14 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
85
77
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
86
78
|
});
|
87
79
|
|
88
|
-
it(
|
80
|
+
it('User should be able to enter text in the answer input fields', () => {
|
89
81
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
90
82
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
91
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
92
83
|
});
|
93
84
|
} else if (view === 'Grading view') {
|
94
|
-
it(
|
85
|
+
it('The answer input fields should be displayed filled with answers', () => {
|
95
86
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
96
87
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
97
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
98
88
|
});
|
99
89
|
|
100
90
|
it('The input fields should not be editable', () => {
|
@@ -103,10 +93,9 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
103
93
|
fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
104
94
|
});
|
105
95
|
} else {
|
106
|
-
it(
|
96
|
+
it('The answer input fields should be displayed filled with correct answers', () => {
|
107
97
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
108
98
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
109
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Correct answers`);
|
110
99
|
});
|
111
100
|
}
|
112
101
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
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
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -95,7 +87,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
95
87
|
});
|
96
88
|
};
|
97
89
|
|
98
|
-
it(
|
90
|
+
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', () => {
|
99
91
|
if (view === 'Grading view') {
|
100
92
|
studentViewPage.steps.submitResponse();
|
101
93
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -111,10 +103,9 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
111
103
|
utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
|
112
104
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
113
105
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
114
|
-
cy.eyesCheckWindow(`FIG Text - ${view} view - Without attempting the question`);
|
115
106
|
});
|
116
107
|
|
117
|
-
it(
|
108
|
+
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', () => {
|
118
109
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
119
110
|
if (view === 'Grading view') {
|
120
111
|
studentViewPage.steps.submitResponse();
|
@@ -131,10 +122,9 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
131
122
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
132
123
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
124
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
134
|
-
cy.eyesCheckWindow(`FIG Text - ${view} - Attempting the question incorrectly`);
|
135
125
|
});
|
136
126
|
|
137
|
-
it(
|
127
|
+
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 along with numeration should be displayed', () => {
|
138
128
|
if (view === 'Grading view') {
|
139
129
|
studentViewPage.steps.clearResponses();
|
140
130
|
};
|
@@ -154,10 +144,9 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
154
144
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
155
145
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
156
146
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
157
|
-
cy.eyesCheckWindow(`FIG Text - ${view} - Attempting partially correct`);
|
158
147
|
});
|
159
148
|
|
160
|
-
it(
|
149
|
+
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', () => {
|
161
150
|
if (view === 'Grading view') {
|
162
151
|
studentViewPage.steps.clearResponses();
|
163
152
|
};
|
@@ -178,7 +167,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
178
167
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
179
168
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
180
169
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
181
|
-
cy.eyesCheckWindow(`FIG Text - ${view} - Attempting the question correctly`);
|
182
170
|
});
|
183
171
|
});
|
184
172
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
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();
|
@@ -80,16 +72,14 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
80
72
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
81
73
|
});
|
82
74
|
|
83
|
-
it(
|
75
|
+
it('User should be able to enter text in the answer input fields', () => {
|
84
76
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
85
77
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
86
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Filled input fields`);
|
87
78
|
});
|
88
79
|
} else if (view === 'Grading view') {
|
89
|
-
it(
|
80
|
+
it('The answer input fields should be displayed filled with answers', () => {
|
90
81
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
91
82
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
92
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Filled input fields`);
|
93
83
|
});
|
94
84
|
|
95
85
|
it('The input fields should not be editable', () => {
|
@@ -98,10 +88,9 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
98
88
|
fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
99
89
|
});
|
100
90
|
} else {
|
101
|
-
it(
|
91
|
+
it('The answer input fields should be displayed filled with correct answers', () => {
|
102
92
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
103
93
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
104
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Correct answers`);
|
105
94
|
});
|
106
95
|
}
|
107
96
|
|
@@ -13,14 +13,6 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
if (!grepTags || !grepTags.includes('smoke')) {
|
25
17
|
describe('Question preview modes: Student view and Grading view', () => {
|
26
18
|
abortEarlySetup();
|
@@ -122,7 +114,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
122
114
|
});
|
123
115
|
};
|
124
116
|
|
125
|
-
it(
|
117
|
+
it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
126
118
|
if (view === 'Grading view') {
|
127
119
|
studentViewPage.steps.submitResponse();
|
128
120
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -152,10 +144,9 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
152
144
|
graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
153
145
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
154
146
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
155
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Grading view without attempting the question`);
|
156
147
|
});
|
157
148
|
|
158
|
-
it(
|
149
|
+
it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
|
159
150
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
|
160
151
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
|
161
152
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
|
@@ -189,10 +180,9 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
189
180
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
190
181
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
191
182
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
192
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Incorrect answer displayed in grading view`);
|
193
183
|
});
|
194
184
|
|
195
|
-
it(
|
185
|
+
it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
|
196
186
|
if (view === 'Grading view') {
|
197
187
|
studentViewPage.steps.clearResponses();
|
198
188
|
}
|
@@ -229,10 +219,9 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
229
219
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
230
220
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
231
221
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
232
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Partially correct answer displayed in grading view`);
|
233
222
|
});
|
234
223
|
|
235
|
-
it(
|
224
|
+
it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
|
236
225
|
if (view === 'Grading view') {
|
237
226
|
studentViewPage.steps.clearResponses();
|
238
227
|
}
|
@@ -273,10 +262,9 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
273
262
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
274
263
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
275
264
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
276
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Partially correct with incorrect response displayed in grading view`);
|
277
265
|
});
|
278
266
|
|
279
|
-
it(
|
267
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
|
280
268
|
if (view === 'Grading view') {
|
281
269
|
studentViewPage.steps.clearResponses();
|
282
270
|
}
|
@@ -307,7 +295,6 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
307
295
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
308
296
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
309
297
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
310
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Correct answer displayed in grading view`);
|
311
298
|
});
|
312
299
|
});
|
313
300
|
});
|