itemengine-cypress-automation 1.0.295-applitools-78e9d04.0 → 1.0.295-e2e6thFebFixes-348b431.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -3
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +39 -1
- package/cypress/pages/singleSelectionPage.js +39 -1
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -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();
|
@@ -70,10 +62,9 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
70
62
|
}
|
71
63
|
});
|
72
64
|
|
73
|
-
it(
|
65
|
+
it('Question instructions should be visible', () => {
|
74
66
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'Fill in the gaps');
|
75
67
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'visible');
|
76
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
77
68
|
});
|
78
69
|
|
79
70
|
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
@@ -86,12 +77,12 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
86
77
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
87
78
|
});
|
88
79
|
|
89
|
-
it(
|
80
|
+
it('User should be able to enter text in the answer input fields', () => {
|
90
81
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
91
82
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
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
88
|
});
|
@@ -102,7 +93,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
102
93
|
fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
103
94
|
});
|
104
95
|
} else {
|
105
|
-
it(
|
96
|
+
it('The answer input fields should be displayed filled with correct answers', () => {
|
106
97
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
107
98
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
108
99
|
});
|
@@ -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');
|
@@ -113,7 +105,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
113
105
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
114
106
|
});
|
115
107
|
|
116
|
-
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', () => {
|
117
109
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
118
110
|
if (view === 'Grading view') {
|
119
111
|
studentViewPage.steps.submitResponse();
|
@@ -132,7 +124,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
132
124
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
133
125
|
});
|
134
126
|
|
135
|
-
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', () => {
|
136
128
|
if (view === 'Grading view') {
|
137
129
|
studentViewPage.steps.clearResponses();
|
138
130
|
};
|
@@ -154,7 +146,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
154
146
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
155
147
|
});
|
156
148
|
|
157
|
-
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', () => {
|
158
150
|
if (view === 'Grading view') {
|
159
151
|
studentViewPage.steps.clearResponses();
|
160
152
|
};
|
@@ -175,7 +167,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
175
167
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
176
168
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
177
169
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
178
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Attempting the question correctly`);
|
179
170
|
});
|
180
171
|
});
|
181
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();
|
@@ -68,10 +60,9 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
68
60
|
}
|
69
61
|
});
|
70
62
|
|
71
|
-
it(
|
63
|
+
it('Question instructions should be visible', () => {
|
72
64
|
utilities.verifyInnerText(fillInTheGapsTextPage.questionInstructionsText(), 'Fill in the gaps');
|
73
65
|
utilities.verifyElementVisibilityState(fillInTheGapsTextPage.questionInstructionsText(), 'visible');
|
74
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Default question state`);
|
75
66
|
});
|
76
67
|
|
77
68
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -81,12 +72,12 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
81
72
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
82
73
|
});
|
83
74
|
|
84
|
-
it(
|
75
|
+
it('User should be able to enter text in the answer input fields', () => {
|
85
76
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
86
77
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
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
83
|
});
|
@@ -97,7 +88,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
97
88
|
fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
98
89
|
});
|
99
90
|
} else {
|
100
|
-
it(
|
91
|
+
it('The answer input fields should be displayed filled with correct answers', () => {
|
101
92
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
102
93
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
103
94
|
});
|
@@ -116,7 +116,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
116
116
|
});
|
117
117
|
};
|
118
118
|
|
119
|
-
it(
|
119
|
+
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', () => {
|
120
120
|
if (view === 'Grading view') {
|
121
121
|
studentViewPage.steps.submitResponse();
|
122
122
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -148,7 +148,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
148
148
|
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 }]);
|
149
149
|
});
|
150
150
|
|
151
|
-
it(
|
151
|
+
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', () => {
|
152
152
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
|
153
153
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
|
154
154
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
|
@@ -184,7 +184,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
184
184
|
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 }]);
|
185
185
|
});
|
186
186
|
|
187
|
-
it(
|
187
|
+
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', () => {
|
188
188
|
if (view === 'Grading view') {
|
189
189
|
studentViewPage.steps.clearResponses();
|
190
190
|
}
|
@@ -223,7 +223,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
223
223
|
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 }]);
|
224
224
|
});
|
225
225
|
|
226
|
-
it(
|
226
|
+
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', () => {
|
227
227
|
if (view === 'Grading view') {
|
228
228
|
studentViewPage.steps.clearResponses();
|
229
229
|
}
|
@@ -266,7 +266,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
266
266
|
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 }]);
|
267
267
|
});
|
268
268
|
|
269
|
-
it(
|
269
|
+
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', () => {
|
270
270
|
if (view === 'Grading view') {
|
271
271
|
studentViewPage.steps.clearResponses();
|
272
272
|
}
|
@@ -14,14 +14,6 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (views.includes('Grading view')) {
|
26
18
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -67,14 +59,13 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
67
59
|
utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
|
68
60
|
});
|
69
61
|
|
70
|
-
it('
|
62
|
+
it('The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
|
71
63
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionSineWave(), 'visible');
|
72
64
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 7, yRange: 20 }, { x: 1, xRange: 20, y: 8, yRange: 20 }]);
|
73
65
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionCircle(), 'visible');
|
74
66
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
75
67
|
utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionLine(), 'visible');
|
76
68
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
77
|
-
cy.eyesCheckWindow('Graphing - The graph plotted by the author in the edit tab should be displayed in the grading view');
|
78
69
|
});
|
79
70
|
|
80
71
|
it('Correct answer label should be displayed', () => {
|
@@ -173,14 +164,13 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
|
|
173
164
|
utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
|
174
165
|
});
|
175
166
|
|
176
|
-
it('
|
167
|
+
it('The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
|
177
168
|
utilities.verifyElementVisibilityState(graphingPage.graphLine(), 'visible');
|
178
169
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }])
|
179
170
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygon(), 'visible');
|
180
171
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }])
|
181
172
|
utilities.verifyElementVisibilityState(graphingPage.graphCircle(), 'visible');
|
182
173
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }])
|
183
|
-
cy.eyesCheckWindow('Graphing - The graph plotted by the author should be displayed in the correct answer view');
|
184
174
|
});
|
185
175
|
|
186
176
|
it('The points alloted to the question should be displayed', () => {
|
@@ -15,14 +15,6 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
15
15
|
cy.loginAs('admin');
|
16
16
|
});
|
17
17
|
|
18
|
-
beforeEach(() => {
|
19
|
-
cy.startApplitools();
|
20
|
-
});
|
21
|
-
|
22
|
-
afterEach(() => {
|
23
|
-
cy.eyesClose();
|
24
|
-
});
|
25
|
-
|
26
18
|
views.forEach((view) => {
|
27
19
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
28
20
|
abortEarlySetup();
|
@@ -94,14 +86,14 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
94
86
|
graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
|
95
87
|
});
|
96
88
|
|
97
|
-
it(
|
89
|
+
it('By default, the move control should be in enabled state and all other controls should be disabled', () => {
|
98
90
|
utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
|
99
91
|
controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
|
100
92
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
|
101
93
|
});
|
102
94
|
});
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('User should be able to plot points using the \'Point\' tool options', () => {
|
105
97
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
106
98
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
107
99
|
});
|
@@ -170,12 +162,11 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
170
162
|
utilities.verifyElementCount(graphingPage.graphSineAndParabolaPreviewTab(), 2);
|
171
163
|
});
|
172
164
|
|
173
|
-
it(
|
165
|
+
it('User should be able to draw a polygon using the \'Polygon\' tool option', () => {
|
174
166
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
|
175
167
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
|
176
168
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }]);
|
177
169
|
utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
|
178
|
-
cy.eyesCheckWindow(`${view} - Graphing - Plotted points using all tools`);
|
179
170
|
});
|
180
171
|
|
181
172
|
it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
|
@@ -188,7 +179,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
188
179
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
|
189
180
|
});
|
190
181
|
|
191
|
-
it(
|
182
|
+
it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
|
192
183
|
graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
|
193
184
|
graphingPage.steps.confirmReset();
|
194
185
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
|
@@ -13,15 +13,6 @@ describe('Create item page - Grid fill: 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
|
-
|
25
16
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
17
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
18
|
abortEarlySetup();
|
@@ -118,7 +109,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
118
109
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
119
110
|
});
|
120
111
|
|
121
|
-
it(
|
112
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
|
122
113
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
123
114
|
if (view === 'Grading view') {
|
124
115
|
studentViewPage.steps.submitResponse();
|
@@ -137,7 +128,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
137
128
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
138
129
|
});
|
139
130
|
|
140
|
-
it(
|
131
|
+
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 in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
141
132
|
if (view === 'Grading view') {
|
142
133
|
studentViewPage.steps.clearResponses();
|
143
134
|
};
|
@@ -159,7 +150,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
159
150
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
160
151
|
});
|
161
152
|
|
162
|
-
it(
|
153
|
+
it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
163
154
|
if (view === 'Grading view') {
|
164
155
|
studentViewPage.steps.clearResponses();
|
165
156
|
};
|
@@ -182,7 +173,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
182
173
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
183
174
|
});
|
184
175
|
|
185
|
-
it(
|
176
|
+
it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
186
177
|
if (view === 'Grading view') {
|
187
178
|
studentViewPage.steps.clearResponses();
|
188
179
|
};
|
@@ -207,7 +198,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
207
198
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
208
199
|
});
|
209
200
|
|
210
|
-
it(
|
201
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview', () => {
|
211
202
|
if (view === 'Grading view') {
|
212
203
|
studentViewPage.steps.clearResponses();
|
213
204
|
};
|
@@ -226,7 +217,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
226
217
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
227
218
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
228
219
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
229
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question correctly`);
|
230
220
|
});
|
231
221
|
});
|
232
222
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
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();
|
@@ -82,7 +74,6 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
82
74
|
gridFillPage.steps.verifyRowsCountPreviewTab(4);
|
83
75
|
gridFillPage.steps.verifyColumnsCountPreviewTab(6);
|
84
76
|
gridFillPage.steps.getCellCountInGridPreviewTab(24);
|
85
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Grid matrix`);
|
86
77
|
});
|
87
78
|
|
88
79
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
@@ -90,6 +81,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
90
81
|
});
|
91
82
|
|
92
83
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
84
|
+
|
93
85
|
it('Cell with \'Shade\' customization should be displayed', () => {
|
94
86
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
|
95
87
|
});
|
@@ -16,14 +16,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
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();
|
@@ -114,7 +106,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
114
106
|
});
|
115
107
|
};
|
116
108
|
|
117
|
-
it(
|
109
|
+
it('When the user selects \'Grading\' view without attempting the question, highlight 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', () => {
|
118
110
|
if (view === 'Grading view') {
|
119
111
|
studentViewPage.steps.submitResponse();
|
120
112
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -132,10 +124,9 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
132
124
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
133
125
|
utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
|
134
126
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
135
|
-
|
136
127
|
});
|
137
128
|
|
138
|
-
it(
|
129
|
+
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', () => {
|
139
130
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
140
131
|
if (view === 'Grading view') {
|
141
132
|
studentViewPage.steps.submitResponse();
|
@@ -155,7 +146,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
155
146
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
156
147
|
});
|
157
148
|
|
158
|
-
it(
|
149
|
+
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, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
159
150
|
if (view === 'Grading view') {
|
160
151
|
studentViewPage.steps.clearResponses();
|
161
152
|
};
|
@@ -178,7 +169,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
178
169
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
179
170
|
});
|
180
171
|
|
181
|
-
it(
|
172
|
+
it('When the user attempts the question correct with an incorrect response, 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', () => {
|
182
173
|
if (view === 'Grading view') {
|
183
174
|
studentViewPage.steps.clearResponses();
|
184
175
|
};
|
@@ -203,7 +194,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
203
194
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
204
195
|
});
|
205
196
|
|
206
|
-
it(
|
197
|
+
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', () => {
|
207
198
|
if (view === 'Grading view') {
|
208
199
|
studentViewPage.steps.clearResponses();
|
209
200
|
};
|
@@ -226,7 +217,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
226
217
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
227
218
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
228
219
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question correctly`);
|
230
220
|
});
|
231
221
|
});
|
232
222
|
});
|
@@ -15,14 +15,6 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
15
15
|
cy.loginAs('admin');
|
16
16
|
});
|
17
17
|
|
18
|
-
beforeEach(() => {
|
19
|
-
cy.startApplitools();
|
20
|
-
});
|
21
|
-
|
22
|
-
afterEach(() => {
|
23
|
-
cy.eyesClose();
|
24
|
-
});
|
25
|
-
|
26
18
|
views.forEach((view) => {
|
27
19
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
28
20
|
abortEarlySetup();
|
@@ -82,16 +74,15 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
82
74
|
utilities.verifyElementVisibilityState(imageHighlightPage.questionInstructionsText(), 'visible');
|
83
75
|
});
|
84
76
|
|
85
|
-
it(
|
77
|
+
it('The uploaded image should be displayed in the preview tab', () => {
|
86
78
|
imageHighlightPage.steps.verifyImageUploadedPreviewTab();
|
87
79
|
imageHighlightPage.steps.verifyHighlightRegionCountInPreviewTab(3);
|
88
80
|
imageHighlightPage.steps.verifyImageUploadedAltTextPreviewTab('Image alternative text');
|
89
81
|
imageHighlightPage.steps.verifyImageUploadedWidthAndHeightPreviewTab('768', '432');
|
90
|
-
cy.eyesCheckWindow(`Image highlight - ${view} - Uploaded image displayed`);
|
91
82
|
});
|
92
83
|
|
93
84
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
94
|
-
it(
|
85
|
+
it('The highlighted regions should be displayed', () => {
|
95
86
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
|
96
87
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, branchesHighlightRegion);
|
97
88
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, leafHighlightRegion);
|
@@ -119,7 +110,7 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
119
110
|
imageHighlightPage.steps.removeHighlightOfARegionInPreviewTab(1);
|
120
111
|
});
|
121
112
|
} else if (view === 'Grading view') {
|
122
|
-
it(
|
113
|
+
it('The highlighted regions should be displayed', () => {
|
123
114
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
|
124
115
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, leafHighlightRegion);
|
125
116
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
|
@@ -147,7 +138,7 @@ describe('Create item page - Image highlight - Preview contents in all views', (
|
|
147
138
|
imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
|
148
139
|
});
|
149
140
|
|
150
|
-
it(
|
141
|
+
it('The highlight regions should be displayed with correct answers', () => {
|
151
142
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
152
143
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
|
153
144
|
});
|
@@ -92,7 +92,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
92
92
|
});
|
93
93
|
};
|
94
94
|
|
95
|
-
it(
|
95
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not 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', () => {
|
96
96
|
if (view === 'Grading view') {
|
97
97
|
utilities.verifyElementDisabledClass(studentViewPage.submitButton());
|
98
98
|
};
|
@@ -110,7 +110,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
110
110
|
};
|
111
111
|
});
|
112
112
|
|
113
|
-
it(
|
113
|
+
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', () => {
|
114
114
|
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
|
115
115
|
if (view === 'Grading view') {
|
116
116
|
studentViewPage.steps.submitResponse();
|
@@ -130,7 +130,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
130
130
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
131
131
|
});
|
132
132
|
|
133
|
-
it(
|
133
|
+
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', () => {
|
134
134
|
if (view === 'Grading view') {
|
135
135
|
studentViewPage.steps.clearResponses();
|
136
136
|
};
|
@@ -153,7 +153,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
153
153
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
154
154
|
});
|
155
155
|
|
156
|
-
it(
|
156
|
+
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', () => {
|
157
157
|
if (view === 'Grading view') {
|
158
158
|
studentViewPage.steps.clearResponses();
|
159
159
|
};
|