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
@@ -107,7 +107,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
107
107
|
});
|
108
108
|
};
|
109
109
|
|
110
|
-
it(
|
110
|
+
it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
|
111
111
|
if (view === 'Grading view') {
|
112
112
|
studentViewPage.steps.submitResponse();
|
113
113
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -125,7 +125,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
125
125
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
126
126
|
});
|
127
127
|
|
128
|
-
it(
|
128
|
+
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', () => {
|
129
129
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'vertical', range, 0);
|
130
130
|
numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
131
131
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'vertical', range, 4);
|
@@ -147,7 +147,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
147
147
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
148
148
|
});
|
149
149
|
|
150
|
-
it(
|
150
|
+
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', () => {
|
151
151
|
if (view === 'Grading view') {
|
152
152
|
studentViewPage.steps.clearResponses();
|
153
153
|
}
|
@@ -175,7 +175,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
175
175
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
176
176
|
});
|
177
177
|
|
178
|
-
it(
|
178
|
+
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', () => {
|
179
179
|
if (view === 'Grading view') {
|
180
180
|
studentViewPage.steps.clearResponses();
|
181
181
|
}
|
@@ -206,7 +206,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
206
206
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
207
207
|
});
|
208
208
|
|
209
|
-
it(
|
209
|
+
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', () => {
|
210
210
|
if (view === 'Grading view') {
|
211
211
|
studentViewPage.steps.clearResponses();
|
212
212
|
}
|
package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js
CHANGED
@@ -61,7 +61,7 @@ describe('Create item page - Number line label - vertical: Grading view, Correct
|
|
61
61
|
utilities.verifyElementVisibilityState(numberLineLabelPage.correctAnswersLabel(), 'visible');
|
62
62
|
});
|
63
63
|
|
64
|
-
it('
|
64
|
+
it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
|
65
65
|
numberLineLabelPage.steps.verifyVerticalIncorrectResponseOnNumberLinePreviewTab('Label 3', range, -8);
|
66
66
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
67
67
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
@@ -138,7 +138,7 @@ describe('Create item page - Number line label - vertical: Grading view, Correct
|
|
138
138
|
utilities.verifyElementVisibilityState(numberLineLabelPage.questionInstructionsText(), 'visible');
|
139
139
|
});
|
140
140
|
|
141
|
-
it('
|
141
|
+
it('The correct answer set by user should be displayed in the correct answer view', () => {
|
142
142
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerView('Label 1', 316);
|
143
143
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerView('Label 2', 59);
|
144
144
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerView('Label 3', 573);
|
package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js
CHANGED
@@ -90,7 +90,7 @@ describe('Create item page: Number line label - Preview contents in all views',
|
|
90
90
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'vertical', range, -9);
|
91
91
|
});
|
92
92
|
|
93
|
-
it(
|
93
|
+
it('The user should be able to change the plotted label on the number line', () => {
|
94
94
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Solve the following', 'vertical', range, 5);
|
95
95
|
numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [5]);
|
96
96
|
});
|
@@ -60,7 +60,7 @@ describe('Preview tab contents for all views', () => {
|
|
60
60
|
}
|
61
61
|
});
|
62
62
|
|
63
|
-
it(
|
63
|
+
it('\'Protractor\' should be displayed with \'Acute\' angle, \'30 percent\' opacity, \'Alternative text\' and in \'Orange\' color', () => {
|
64
64
|
protractorPage.steps.verifyAcuteAngleTypeInPreviewTab();
|
65
65
|
protractorPage.steps.verifyPreviewTabColorAndOpacityOfProtractor(3, 0.3);
|
66
66
|
protractorPage.steps.verifyAlternativeTextInPreviewTab('Measuring tool');
|
@@ -58,7 +58,7 @@ describe('Preview tab contents for all views', () => {
|
|
58
58
|
}
|
59
59
|
});
|
60
60
|
|
61
|
-
it(
|
61
|
+
it('\'Reading ruler\' should be displayed with \'30 percent\' opacity and in \'Blue\' color', () => {
|
62
62
|
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
63
63
|
readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab('0.3');
|
64
64
|
readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(2);
|
@@ -59,7 +59,7 @@ describe('Preview tab contents for all views', () => {
|
|
59
59
|
}
|
60
60
|
});
|
61
61
|
|
62
|
-
it(
|
62
|
+
it('\'Ruler\' should be displayed with \'6 in\' length and in \'Orange\' color', () => {
|
63
63
|
rulerPage.steps.verifyLengthOfRulerInPreview('6in');
|
64
64
|
rulerPage.steps.verifyRotationButtonVisibleInPreviewTab();
|
65
65
|
rulerPage.steps.verifyColorOfRulerInPreview(3);
|
@@ -13,14 +13,6 @@ describe('Create item page - Short text response: 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();
|
@@ -97,7 +89,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
97
89
|
});
|
98
90
|
};
|
99
91
|
|
100
|
-
it(
|
92
|
+
it('When the user selects \'Grading\' view without attempting the question, correct/incorret border should not be displayed and correct answer should be displayed below response field', () => {
|
101
93
|
if (view === 'Grading view') {
|
102
94
|
studentViewPage.steps.submitResponse();
|
103
95
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -113,7 +105,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
113
105
|
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
|
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 icon should be displayed besides incorrect response, incorrect answer border around response field and correct answer should be displayed in the question preview', () => {
|
117
109
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Text');
|
118
110
|
if (view === 'Grading view') {
|
119
111
|
studentViewPage.steps.submitResponse();
|
@@ -130,7 +122,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
130
122
|
shortTextResponsePage.steps.verifyIncorrectIcon();
|
131
123
|
});
|
132
124
|
|
133
|
-
it(
|
125
|
+
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 beside the correct response, correct answer border around response field should be displayed the question preview', () => {
|
134
126
|
if (view === 'Grading view') {
|
135
127
|
studentViewPage.steps.clearResponses();
|
136
128
|
};
|
@@ -147,7 +139,6 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
147
139
|
}
|
148
140
|
shortTextResponsePage.steps.verifyCorrectAttemptBorder();
|
149
141
|
shortTextResponsePage.steps.verifyCorrectIcon();
|
150
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Correct attempt`);
|
151
142
|
});
|
152
143
|
});
|
153
144
|
});
|
@@ -57,22 +57,23 @@ describe('Create item page - Short text response : Preview contents', () => {
|
|
57
57
|
}
|
58
58
|
});
|
59
59
|
|
60
|
-
it(
|
60
|
+
it('Question instructions should be visible', () => {
|
61
61
|
utilities.verifyInnerText(shortTextResponsePage.questionInstructionsText(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
62
62
|
utilities.verifyElementVisibilityState(shortTextResponsePage.questionInstructionsText(), 'visible');
|
63
63
|
});
|
64
64
|
|
65
65
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
66
|
-
it(
|
66
|
+
it('Answer input field should be visible and by default it should be empty', () => {
|
67
67
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('');
|
68
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.previewTabResponseField(), 'visible')
|
68
|
+
utilities.verifyElementVisibilityState(shortTextResponsePage.previewTabResponseField(), 'visible')
|
69
69
|
});
|
70
70
|
|
71
|
-
it(
|
71
|
+
it('User should be able to enter text in answer input field', () => {
|
72
72
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('The quick brown fox');
|
73
73
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
|
74
74
|
});
|
75
|
-
}
|
75
|
+
}
|
76
|
+
else {
|
76
77
|
it(`The response field should be displayed filled with correct answer`, () => {
|
77
78
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
|
78
79
|
utilities.verifyElementDisabled(shortTextResponsePage.previewTabResponseField());
|
@@ -83,7 +83,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
83
83
|
utilities.verifyElementVisibilityState(simpleCalculatorPage.nineButton(), 'visible');
|
84
84
|
});
|
85
85
|
|
86
|
-
it(
|
86
|
+
it('The user should be able to perform basic mathematical operations', () => {
|
87
87
|
simpleCalculatorPage.steps.clickOnACalculatorButton('one');
|
88
88
|
simpleCalculatorPage.steps.clickOnACalculatorButton('addition');
|
89
89
|
simpleCalculatorPage.steps.clickOnACalculatorButton('two');
|
@@ -14,14 +14,6 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -101,7 +93,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
101
93
|
});
|
102
94
|
};
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
|
105
97
|
if (view === 'Grading view') {
|
106
98
|
studentViewPage.steps.submitResponse();
|
107
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -122,7 +114,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
122
114
|
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
123
115
|
});
|
124
116
|
|
125
|
-
it(
|
117
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
126
118
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
127
119
|
if (view === 'Grading view') {
|
128
120
|
studentViewPage.steps.submitResponse();
|
@@ -144,7 +136,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
144
136
|
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
145
137
|
});
|
146
138
|
|
147
|
-
it(
|
139
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
148
140
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
149
141
|
if (view === 'Grading view') {
|
150
142
|
studentViewPage.steps.submitResponse();
|
@@ -163,7 +155,6 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
163
155
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
164
156
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
165
157
|
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
166
|
-
cy.eyesCheckWindow(`Single selection ${view} - Correct attempt`);
|
167
158
|
});
|
168
159
|
});
|
169
160
|
});
|
@@ -12,14 +12,6 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -87,12 +79,11 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
87
79
|
utilities.verifyElementVisibilityState(singleSelectionPage.questionInstructionsText(), 'visible');
|
88
80
|
});
|
89
81
|
|
90
|
-
it(`
|
82
|
+
it(`When the user has added image, equation, bold text and link to the options input they should be displayed in the ${view}`, () => {
|
91
83
|
singleSelectionPage.steps.verifyImageInPreviewTab(0);
|
92
84
|
singleSelectionPage.steps.verifyLinkTextInPreviewTab(1);
|
93
85
|
singleSelectionPage.steps.verifyBoldTextInPreviewTab(2);
|
94
86
|
singleSelectionPage.steps.verifyEquationTextInPreviewTab(3);
|
95
|
-
cy.eyesCheckWindow(`Single selection - ${view} - Options with image, equation, bold text, and link`);
|
96
87
|
});
|
97
88
|
|
98
89
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -11,14 +11,6 @@ describe('Create item page - Single selection grid: 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();
|
@@ -101,7 +93,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
101
93
|
});
|
102
94
|
};
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('When the user selects \'Grading\' view without attempting the question, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers and correct/incorrect status message should not be displayed', () => {
|
105
97
|
if (view === 'Grading view') {
|
106
98
|
studentViewPage.steps.submitResponse();
|
107
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -117,7 +109,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
117
109
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
118
110
|
});
|
119
111
|
|
120
|
-
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 icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
|
121
113
|
singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
122
114
|
if (view === 'Grading view') {
|
123
115
|
studentViewPage.steps.submitResponse();
|
@@ -135,7 +127,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
135
127
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
136
128
|
});
|
137
129
|
|
138
|
-
it(
|
130
|
+
it('When the user attempts the question partially correct with incorrect responses, 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 a preview of the entire grid with correct answers should be displayed', () => {
|
139
131
|
if (view === 'Grading view') {
|
140
132
|
studentViewPage.steps.clearResponses();
|
141
133
|
};
|
@@ -158,7 +150,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
158
150
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
159
151
|
});
|
160
152
|
|
161
|
-
it(
|
153
|
+
it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
|
162
154
|
if (view === 'Grading view') {
|
163
155
|
studentViewPage.steps.clearResponses();
|
164
156
|
};
|
@@ -182,7 +174,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
182
174
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
183
175
|
});
|
184
176
|
|
185
|
-
it(
|
177
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
186
178
|
if (view === 'Grading view') {
|
187
179
|
studentViewPage.steps.clearResponses();
|
188
180
|
};
|
@@ -204,7 +196,6 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
204
196
|
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
|
205
197
|
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
206
198
|
singleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
|
207
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Correct responses displayed`);
|
208
199
|
});
|
209
200
|
});
|
210
201
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Single selection grid: 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();
|
@@ -90,7 +82,7 @@ describe('Create item page - Single selection grid: Preview contents', () => {
|
|
90
82
|
utilities.verifyElementVisibilityState(singleSelectionGridPage.questionInstructionsText(), 'visible');
|
91
83
|
});
|
92
84
|
|
93
|
-
it(`
|
85
|
+
it(`The question grid as set by the user should be displayed in the ${view}`, () => {
|
94
86
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
|
95
87
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
|
96
88
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
|
@@ -101,7 +93,6 @@ describe('Create item page - Single selection grid: Preview contents', () => {
|
|
101
93
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
|
102
94
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No radio button');
|
103
95
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No radio button');
|
104
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Question grid displayed`);
|
105
96
|
});
|
106
97
|
|
107
98
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -12,14 +12,6 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
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();
|
@@ -126,14 +118,14 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
126
118
|
});
|
127
119
|
};
|
128
120
|
|
129
|
-
it(
|
121
|
+
it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
|
130
122
|
if (view === 'Grading view') {
|
131
123
|
studentViewPage.steps.submitResponse();
|
132
124
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
133
125
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
134
126
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
135
127
|
}
|
136
|
-
if (view === '
|
128
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
137
129
|
textEntryMathPage.steps.switchToGradingView();
|
138
130
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
139
131
|
}
|
@@ -147,7 +139,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
147
139
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
148
140
|
});
|
149
141
|
|
150
|
-
it(
|
142
|
+
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, and \'Your answer is incorrect\' label should be displayed', () => {
|
151
143
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
152
144
|
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
|
153
145
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -163,9 +155,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
163
155
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
164
156
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
165
157
|
}
|
166
|
-
if (view === '
|
167
|
-
textEntryMathPage.steps.switchToGradingView();
|
158
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
168
159
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
160
|
+
textEntryMathPage.steps.switchToGradingView();
|
169
161
|
}
|
170
162
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
171
163
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
@@ -177,7 +169,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
177
169
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
178
170
|
});
|
179
171
|
|
180
|
-
it(
|
172
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
|
181
173
|
if (view === 'Grading view') {
|
182
174
|
studentViewPage.steps.clearResponses();
|
183
175
|
}
|
@@ -195,9 +187,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
195
187
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
196
188
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
197
189
|
}
|
198
|
-
if (view === '
|
199
|
-
textEntryMathPage.steps.switchToGradingView();
|
190
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
200
191
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
192
|
+
textEntryMathPage.steps.switchToGradingView();
|
201
193
|
}
|
202
194
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
203
195
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
@@ -209,7 +201,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
209
201
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
210
202
|
});
|
211
203
|
|
212
|
-
it(
|
204
|
+
it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
|
213
205
|
if (view === 'Grading view') {
|
214
206
|
studentViewPage.steps.clearResponses();
|
215
207
|
}
|
@@ -224,9 +216,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
224
216
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
225
217
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
226
218
|
}
|
227
|
-
if (view === '
|
228
|
-
textEntryMathPage.steps.switchToGradingView();
|
219
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
229
220
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
221
|
+
textEntryMathPage.steps.switchToGradingView();
|
230
222
|
}
|
231
223
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
232
224
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
@@ -238,7 +230,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
238
230
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
239
231
|
});
|
240
232
|
|
241
|
-
it(
|
233
|
+
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, and \'Your answer is correct\' should be displayed', () => {
|
242
234
|
if (view === 'Grading view') {
|
243
235
|
studentViewPage.steps.clearResponses();
|
244
236
|
}
|
@@ -257,16 +249,15 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
257
249
|
cy.wait(1000);
|
258
250
|
gradingViewPage.steps.verifyGradingViewScore(20, 20);
|
259
251
|
}
|
260
|
-
if (view === '
|
261
|
-
textEntryMathPage.steps.switchToGradingView();
|
252
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
262
253
|
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
254
|
+
textEntryMathPage.steps.switchToGradingView();
|
263
255
|
}
|
264
256
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
265
257
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
266
258
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
267
259
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
268
260
|
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
269
|
-
cy.eyesCheckWindow(`TEM ${view} - Attempting the question correctly`);
|
270
261
|
});
|
271
262
|
});
|
272
263
|
});
|
@@ -96,7 +96,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
96
96
|
});
|
97
97
|
};
|
98
98
|
|
99
|
-
it(
|
99
|
+
it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
|
100
100
|
if (view === 'Grading view') {
|
101
101
|
studentViewPage.steps.submitResponse();
|
102
102
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -117,7 +117,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
117
117
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
118
118
|
});
|
119
119
|
|
120
|
-
it(
|
120
|
+
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, and \'Your answer is incorrect\' label should be displayed', () => {
|
121
121
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
122
122
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
123
123
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -153,7 +153,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
153
153
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
154
154
|
});
|
155
155
|
|
156
|
-
it(
|
156
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
|
157
157
|
if (view === 'Grading view') {
|
158
158
|
studentViewPage.steps.clearResponses();
|
159
159
|
}
|
@@ -192,7 +192,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
192
192
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
193
193
|
});
|
194
194
|
|
195
|
-
it(
|
195
|
+
it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
|
196
196
|
if (view === 'Grading view') {
|
197
197
|
studentViewPage.steps.clearResponses();
|
198
198
|
}
|
@@ -228,7 +228,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
228
228
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
229
229
|
});
|
230
230
|
|
231
|
-
it(
|
231
|
+
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, and \'Your answer is correct\' should be displayed', () => {
|
232
232
|
if (view === 'Grading view') {
|
233
233
|
studentViewPage.steps.clearResponses();
|
234
234
|
}
|
@@ -267,4 +267,5 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
267
267
|
});
|
268
268
|
});
|
269
269
|
});
|
270
|
+
|
270
271
|
});
|
@@ -12,14 +12,6 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -77,10 +69,9 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
77
69
|
}
|
78
70
|
});
|
79
71
|
|
80
|
-
it(
|
72
|
+
it('Question instructions should be visible', () => {
|
81
73
|
utilities.verifyInnerText(textEntryMathPage.questionInstructionsText(), 'Enter the correct answer in the response field');
|
82
74
|
utilities.verifyElementVisibilityState(textEntryMathPage.questionInstructionsText(), 'visible');
|
83
|
-
cy.eyesCheckWindow(`TEM ${view}: Default state`);
|
84
75
|
});
|
85
76
|
|
86
77
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -90,7 +81,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
90
81
|
utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), '2');
|
91
82
|
});
|
92
83
|
|
93
|
-
it(`
|
84
|
+
it(`User should able to enter answers in the response fields for ${view}`, () => {
|
94
85
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
95
86
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
96
87
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -100,14 +91,14 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
100
91
|
textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
|
101
92
|
});
|
102
93
|
} else if (view === 'Grading view') {
|
103
|
-
it(`
|
94
|
+
it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
|
104
95
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
|
105
96
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
106
97
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
107
98
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
|
108
99
|
});
|
109
100
|
} else {
|
110
|
-
it(`
|
101
|
+
it(`The response input fields should be displayed filled with correct answers`, () => {
|
111
102
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
|
112
103
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
113
104
|
});
|