itemengine-cypress-automation 1.0.280-applitools-0af112e.0 → 1.0.283-applitools-caab082.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +0 -4
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +8 -3
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -3
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +8 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -7
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -19
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -5
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +4 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +4 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -5
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -12
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -7
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +6 -9
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +6 -9
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -9
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +4 -8
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +2 -6
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +3 -6
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -3
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -3
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +0 -2
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +9 -12
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +0 -2
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +0 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +0 -4
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/applitools.config.js +14 -0
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
@@ -118,7 +118,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
118
118
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
119
119
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
120
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
121
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Without attempting the question`);
|
122
121
|
});
|
123
122
|
|
124
123
|
it(`${view}: - FIG drag and drop - 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`, () => {
|
@@ -138,7 +137,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
138
137
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
139
138
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
140
139
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
141
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view -
|
140
|
+
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question incorrectly`);
|
142
141
|
});
|
143
142
|
|
144
143
|
it(`${view}: - FIG drag and drop - When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with the numeration should be displayed`, () => {
|
@@ -161,7 +160,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
161
160
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
162
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
162
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
164
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question partially correct with some correct, some incomplete and some incorrect options`);
|
165
163
|
});
|
166
164
|
|
167
165
|
it(`${view}: - FIG drag and drop - When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
|
@@ -184,7 +182,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
184
182
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
185
183
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
184
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
187
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question partially correct with one dropzone incomplete`);
|
188
185
|
});
|
189
186
|
|
190
187
|
it(`${view}: - FIG drag and drop - When the user attempts the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer, 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 should be displayed along with numeration`, () => {
|
@@ -207,7 +204,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
207
204
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
208
205
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
209
206
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
210
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer`);
|
211
207
|
});
|
212
208
|
|
213
209
|
it(`${view}: - FIG drag and drop - 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`, () => {
|
@@ -84,9 +84,10 @@ describe('Preview tab contents for all views', () => {
|
|
84
84
|
}
|
85
85
|
});
|
86
86
|
|
87
|
-
it(
|
87
|
+
it(`Fill in the gaps drag and drop - ${view} - Question instructions should be visible`, () => {
|
88
88
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'Drag and drop the options in appropriate dropzone');
|
89
89
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'visible');
|
90
|
+
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Options with image, equation, and bold text`);
|
90
91
|
});
|
91
92
|
|
92
93
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -98,7 +99,7 @@ describe('Preview tab contents for all views', () => {
|
|
98
99
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
99
100
|
});
|
100
101
|
|
101
|
-
it(`
|
102
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container`, () => {
|
102
103
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
103
104
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
104
105
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -106,7 +107,6 @@ describe('Preview tab contents for all views', () => {
|
|
106
107
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '');
|
107
108
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, '');
|
108
109
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
109
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Options with image, equation, and bold text`);
|
110
110
|
});
|
111
111
|
|
112
112
|
it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
|
@@ -118,7 +118,7 @@ describe('Preview tab contents for all views', () => {
|
|
118
118
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
|
119
119
|
});
|
120
120
|
} else if (view === 'Grading view') {
|
121
|
-
it(`
|
121
|
+
it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '3\nPetals');
|
123
123
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
124
124
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '1\nThis is a bold option');
|
@@ -128,20 +128,18 @@ describe('Preview tab contents for all views', () => {
|
|
128
128
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
129
129
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
130
130
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.optionContainerOptionsPreviewTab(), 'notExist');
|
131
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Submitted options in dropzones`);
|
132
131
|
});
|
133
132
|
|
134
133
|
it('The content in the dropzone should not be editable', () => {
|
135
134
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneIsNotEditableInGradingView();
|
136
135
|
});
|
137
136
|
} else {
|
138
|
-
it(`
|
137
|
+
it(`The dropzone should be displayed filled with answers`, () => {
|
139
138
|
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
140
139
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
141
140
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
142
141
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'This is a bold option');
|
143
142
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
|
144
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Dropzones filled with answers`);
|
145
143
|
});
|
146
144
|
}
|
147
145
|
});
|
@@ -118,7 +118,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
118
118
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.correctAnswersLabel(), 'Correct answers');
|
119
119
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
120
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
121
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} view - Without attempting the question`);
|
122
121
|
});
|
123
122
|
|
124
123
|
it(`${view}: FIG Dropdown - 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`, () => {
|
@@ -159,7 +158,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
159
158
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
160
159
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
161
160
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
162
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting partially correct`);
|
163
161
|
});
|
164
162
|
|
165
163
|
it(`${view}: FIG Dropdown - When the user attempts the question correctly, then the user should be awarded with full 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 correct\' should be displayed and correct answer section should not be displayed`, () => {
|
@@ -72,16 +72,16 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
72
72
|
}
|
73
73
|
});
|
74
74
|
|
75
|
-
it(
|
75
|
+
it(`${view} - Fill in the gaps dropdown - Question instructions should be visible`, () => {
|
76
76
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
77
77
|
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.questionInstructionsText(), 'visible');
|
78
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Default state`);
|
78
79
|
});
|
79
80
|
|
80
81
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
81
|
-
it(
|
82
|
+
it(`The sample \'Lorem Ipsum\' text along with two response dropdowns should be displayed`, () => {
|
82
83
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
83
84
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionContainerPreviewTab(), 'Lorem ipsum dolor sit amet, \n\n\n onsectetur adipiscing elit. Ut pellentesque tinciduntornare. Integer porttitor est quis urna porttitor, eget tempus tellus dapibus \n\n');
|
84
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Default state`);
|
85
85
|
});
|
86
86
|
|
87
87
|
it('User should be able to select an option from the dropdown', () => {
|
@@ -91,7 +91,6 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
91
91
|
it('The dropdowns should be displayed filled with answers', () => {
|
92
92
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
93
93
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
94
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Correct answers`);
|
95
94
|
});
|
96
95
|
|
97
96
|
it('The dropdowns should not be editable', () => {
|
@@ -99,12 +98,11 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
99
98
|
fillInTheGapsDropdownPage.steps.verifyDropdownIsDisabled(1);
|
100
99
|
});
|
101
100
|
} else {
|
102
|
-
it(
|
101
|
+
it(`The dropdowns should be displayed filled with correct answers`, () => {
|
103
102
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
104
103
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
105
104
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
106
105
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
107
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Correct answer section`);
|
108
106
|
});
|
109
107
|
}
|
110
108
|
|
@@ -126,7 +126,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
126
126
|
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
127
127
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
128
128
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
129
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Without attempting the question`);
|
130
129
|
});
|
131
130
|
|
132
131
|
it(`${view}: FIG over image Drag and drop - 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`, () => {
|
@@ -169,7 +168,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
169
168
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
170
169
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
171
170
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
172
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question partially correct with some correct, some incomplete, some incorrect options`);
|
173
171
|
});
|
174
172
|
|
175
173
|
it(`${view}: FIG over image Drag and drop - When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
|
@@ -192,7 +190,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
192
190
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
193
191
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
194
192
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
195
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question partially correct with all the dropzone correctly attempted but one dropzone incomplete`);
|
196
193
|
});
|
197
194
|
|
198
195
|
it(`${view}: FIG over image Drag and drop - 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`, () => {
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -99,7 +99,7 @@ describe('Preview tab contents for all views', () => {
|
|
99
99
|
|
100
100
|
it(`${view} - Fill in the gaps over image drag and drop - The image uploaded in the \'Background image\' section should be displayed`, () => {
|
101
101
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
|
102
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop -
|
102
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - default state`);
|
103
103
|
});
|
104
104
|
|
105
105
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -111,7 +111,6 @@ describe('Preview tab contents for all views', () => {
|
|
111
111
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '');
|
112
112
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, '');
|
113
113
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
114
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Options container and dropzone`);
|
115
114
|
});
|
116
115
|
|
117
116
|
it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
|
@@ -133,7 +132,6 @@ describe('Preview tab contents for all views', () => {
|
|
133
132
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
134
133
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
135
134
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.optionContainerOptionsPreviewTab(), 'notExist');
|
136
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Submitted correct answers`);
|
137
135
|
});
|
138
136
|
|
139
137
|
it('The content in the dropzone should not be editable', () => {
|
@@ -148,7 +146,6 @@ describe('Preview tab contents for all views', () => {
|
|
148
146
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|
149
147
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
150
148
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
151
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Correct answers`);
|
152
149
|
});
|
153
150
|
}
|
154
151
|
});
|
@@ -127,7 +127,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
127
127
|
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.correctAnswersLabel(), 'Correct answers');
|
128
128
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
129
129
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
130
|
-
cy.eyesCheckWindow(`${view} view - Without attempting the question`);
|
131
130
|
});
|
132
131
|
|
133
132
|
it(`${view}: FIG over image Dropdown - 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`, () => {
|
@@ -168,7 +167,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
168
167
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
169
168
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
169
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
171
|
-
cy.eyesCheckWindow(`${view} - Attempting partially correct`);
|
172
170
|
});
|
173
171
|
|
174
172
|
it(`${view}: FIG over image Dropdown - 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`, () => {
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js
CHANGED
@@ -75,9 +75,10 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
75
75
|
}
|
76
76
|
});
|
77
77
|
|
78
|
-
it(
|
78
|
+
it(`${view} - Fill in the gaps over image dropdown Question instructions should be visible`, () => {
|
79
79
|
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
80
80
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'visible');
|
81
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - defualt state`);
|
81
82
|
});
|
82
83
|
|
83
84
|
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
@@ -90,9 +91,8 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
90
91
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '' }, { dropdownIndex: 1, dropdownText: '' }]);
|
91
92
|
});
|
92
93
|
|
93
|
-
it(
|
94
|
+
it(`User should be able to select an option from the dropdown`, () => {
|
94
95
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
95
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - Selected options`);
|
96
96
|
});
|
97
97
|
} else if (view === 'Grading view') {
|
98
98
|
it('The dropdowns should be displayed filled with answers', () => {
|
@@ -105,10 +105,9 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
|
|
105
105
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsDisabled(1);
|
106
106
|
});
|
107
107
|
} else {
|
108
|
-
it(
|
108
|
+
it(`The dropdowns should be displayed filled with correct answers`, () => {
|
109
109
|
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 2);
|
110
110
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
111
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - Correct answers`);
|
112
111
|
});
|
113
112
|
}
|
114
113
|
});
|
@@ -119,7 +119,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
119
119
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
|
120
120
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
121
121
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
122
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} view - Without attempting the question`);
|
123
122
|
});
|
124
123
|
|
125
124
|
it(`${view}: FIG over image Text - 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`, () => {
|
@@ -162,7 +161,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
162
161
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
|
163
162
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
164
163
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
165
|
-
cy.eyesCheckWindow(`FIG over image text - ${view} - Attempting partially correct`);
|
166
164
|
});
|
167
165
|
|
168
166
|
it(`${view}: FIG over image Text - 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`, () => {
|
@@ -70,9 +70,10 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
70
70
|
}
|
71
71
|
});
|
72
72
|
|
73
|
-
it(
|
73
|
+
it(`${view} - Fill in the gaps over image text Question instructions should be visible`, () => {
|
74
74
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'Fill in the gaps');
|
75
75
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'visible');
|
76
|
+
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
76
77
|
});
|
77
78
|
|
78
79
|
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
@@ -85,16 +86,14 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
85
86
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
86
87
|
});
|
87
88
|
|
88
|
-
it(
|
89
|
+
it(`User should be able to enter text in the answer input fields`, () => {
|
89
90
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
90
91
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
91
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
92
92
|
});
|
93
93
|
} else if (view === 'Grading view') {
|
94
|
-
it(
|
94
|
+
it(`The answer input fields should be displayed filled with answers`, () => {
|
95
95
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
96
96
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
97
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
|
98
97
|
});
|
99
98
|
|
100
99
|
it('The input fields should not be editable', () => {
|
@@ -103,10 +102,9 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
103
102
|
fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
104
103
|
});
|
105
104
|
} else {
|
106
|
-
it(
|
105
|
+
it(`The answer input fields should be displayed filled with correct answers`, () => {
|
107
106
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
|
108
107
|
fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
109
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Correct answers`);
|
110
108
|
});
|
111
109
|
}
|
112
110
|
});
|
@@ -111,7 +111,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
111
111
|
utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
|
112
112
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
113
113
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
114
|
-
cy.eyesCheckWindow(`FIG Text - ${view} view - Without attempting the question`);
|
115
114
|
});
|
116
115
|
|
117
116
|
it(`${view}: FIG text - 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`, () => {
|
@@ -154,7 +153,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
154
153
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
155
154
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
156
155
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
157
|
-
cy.eyesCheckWindow(`FIG Text - ${view} - Attempting partially correct`);
|
158
156
|
});
|
159
157
|
|
160
158
|
it(`${view}: FIG text - 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`, () => {
|
@@ -68,9 +68,10 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
68
68
|
}
|
69
69
|
});
|
70
70
|
|
71
|
-
it(
|
71
|
+
it(`Fill in the gaps text - ${view} Question instructions should be visible`, () => {
|
72
72
|
utilities.verifyInnerText(fillInTheGapsTextPage.questionInstructionsText(), 'Fill in the gaps');
|
73
73
|
utilities.verifyElementVisibilityState(fillInTheGapsTextPage.questionInstructionsText(), 'visible');
|
74
|
+
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Default question state`);
|
74
75
|
});
|
75
76
|
|
76
77
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -83,13 +84,11 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
83
84
|
it(`Fill in the gaps text - ${view} User should be able to enter text in the answer input fields`, () => {
|
84
85
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
85
86
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
86
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Filled input fields`);
|
87
87
|
});
|
88
88
|
} else if (view === 'Grading view') {
|
89
89
|
it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with answers`, () => {
|
90
90
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
91
91
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
92
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Filled input fields`);
|
93
92
|
});
|
94
93
|
|
95
94
|
it('The input fields should not be editable', () => {
|
@@ -101,7 +100,6 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
101
100
|
it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with correct answers`, () => {
|
102
101
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
103
102
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
104
|
-
cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Correct answers`);
|
105
103
|
});
|
106
104
|
}
|
107
105
|
|
@@ -152,7 +152,6 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
152
152
|
graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
153
153
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
154
154
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
155
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Grading view without attempting the question`);
|
156
155
|
});
|
157
156
|
|
158
157
|
it(`Graphing: ${view} - 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`, () => {
|
@@ -229,7 +228,6 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
229
228
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
230
229
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
231
230
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
232
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Partially correct answer displayed in grading view`);
|
233
231
|
});
|
234
232
|
|
235
233
|
it(`Graphing: ${view} - 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`, () => {
|
@@ -273,7 +271,6 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
273
271
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
274
272
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
275
273
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
276
|
-
cy.eyesCheckWindow(`Graphing: ${view} - Partially correct with incorrect response displayed in grading view`);
|
277
274
|
});
|
278
275
|
|
279
276
|
it(`Graphing: ${view} - 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`, () => {
|
@@ -94,18 +94,16 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
94
94
|
graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
|
95
95
|
});
|
96
96
|
|
97
|
-
it(
|
97
|
+
it(`By default, the move control should be in enabled state and all other controls should be disabled`, () => {
|
98
98
|
utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
|
99
99
|
controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
|
100
100
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
|
101
101
|
});
|
102
|
-
cy.eyesCheckWindow(`${view} - Graphing - Default move control enabled`);
|
103
102
|
});
|
104
103
|
|
105
|
-
it(
|
104
|
+
it(`User should be able to plot points using the \'Point\' tool options`, () => {
|
106
105
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
107
106
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
|
108
|
-
cy.eyesCheckWindow(`${view} - Graphing - Plot points using Point tool`);
|
109
107
|
});
|
110
108
|
|
111
109
|
it('By default, the control options should be in displayed and when the user hovers over the tool options then tooltips should be displayed', () => {
|
@@ -190,7 +188,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
190
188
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
|
191
189
|
});
|
192
190
|
|
193
|
-
it(
|
191
|
+
it(`When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
|
194
192
|
graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
|
195
193
|
graphingPage.steps.confirmReset();
|
196
194
|
utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
|
@@ -200,7 +198,6 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
|
|
200
198
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Undo'));
|
201
199
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Redo'));
|
202
200
|
utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Reset'));
|
203
|
-
cy.eyesCheckWindow(`${view} - Graphing - Reset action`);
|
204
201
|
});
|
205
202
|
|
206
203
|
it('CSS of preview content', { tags: 'css' }, () => {
|
@@ -12,7 +12,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
12
12
|
before(() => {
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
|
-
|
15
|
+
|
16
16
|
beforeEach(() => {
|
17
17
|
cy.startApplitools();
|
18
18
|
});
|
@@ -116,7 +116,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
116
116
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
117
117
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
118
118
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
119
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Without attempting the question`);
|
120
119
|
});
|
121
120
|
|
122
121
|
it(`${view}: Grid fill - 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`, () => {
|
@@ -159,7 +158,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
159
158
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
160
159
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
161
160
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
162
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct`);
|
163
161
|
});
|
164
162
|
|
165
163
|
it(`${view}: Grid fill - When the user attempts the question partially correct with one correct and one incorrect response, 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`, () => {
|
@@ -183,7 +181,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
183
181
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
184
182
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
185
183
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct with one correct and one incorrect response`);
|
187
184
|
});
|
188
185
|
|
189
186
|
it(`${view}: Grid fill - When the user attempts the question partially correct 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`, () => {
|
@@ -209,7 +206,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
209
206
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
210
207
|
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
211
208
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
212
|
-
cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct with all the correct cells with one incorrect cell`);
|
213
209
|
});
|
214
210
|
|
215
211
|
it(`${view}: Grid fill - 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`, () => {
|
@@ -87,14 +87,11 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
87
87
|
|
88
88
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
89
89
|
gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
|
90
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
|
91
90
|
});
|
92
91
|
|
93
92
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
94
|
-
|
95
93
|
it('Cell with \'Shade\' customization should be displayed', () => {
|
96
94
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
|
97
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Shade customization`);
|
98
95
|
});
|
99
96
|
|
100
97
|
it('User should be able to select cell', () => {
|
@@ -102,12 +99,10 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
102
99
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
|
103
100
|
gridFillPage.steps.selectCellPreviewTab(0, 5);
|
104
101
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
|
105
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Select cell`);
|
106
102
|
});
|
107
103
|
|
108
104
|
it('User should be able to unselect cells', () => {
|
109
105
|
gridFillPage.steps.unselectCellPreviewTab(0, 0);
|
110
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Unselect cell`);
|
111
106
|
});
|
112
107
|
|
113
108
|
it('When user hovers over cell, then cell should be in interactive state', () => {
|
@@ -117,32 +112,27 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
117
112
|
'background-color': css.color.gridCellHoverStateBg
|
118
113
|
});
|
119
114
|
utilities.hoverAwayFromElement(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 9));
|
120
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hover over cell`);
|
121
115
|
});
|
122
116
|
}
|
123
117
|
else if (view === 'Grading view') {
|
124
118
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
125
119
|
gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
|
126
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
|
127
120
|
});
|
128
121
|
|
129
122
|
it(`The grid fill should be displayed filled with selected correct answer cells and status message \' Your answer is correct\' should be displayed`, () => {
|
130
123
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
|
131
124
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
|
132
125
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
133
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Correct answer`);
|
134
126
|
});
|
135
127
|
|
136
128
|
it('Grid fill should not be editable', () => {
|
137
129
|
gridFillPage.steps.selectCellPreviewTab(1, 3);
|
138
130
|
gridFillPage.steps.verifyCellNotSelectedPreviewTab(1, 3);
|
139
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Not editable`);
|
140
131
|
});
|
141
132
|
|
142
133
|
} else {
|
143
134
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
144
135
|
gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
|
145
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
|
146
136
|
});
|
147
137
|
|
148
138
|
it(`The grid fill should be displayed filled with selected correct answer cells`, () => {
|
@@ -150,13 +140,11 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
150
140
|
gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
|
151
141
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
152
142
|
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 5);
|
153
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Correct answer cells`);
|
154
143
|
});
|
155
144
|
|
156
145
|
it('Grid fill should not be editable', () => {
|
157
146
|
gridFillPage.steps.selectCellPreviewTab(1, 3);
|
158
147
|
gridFillPage.steps.verifyCellNotSelectedPreviewTab(1, 3);
|
159
|
-
cy.eyesCheckWindow(`Grid fill - ${view} - Not editable`);
|
160
148
|
});
|
161
149
|
}
|
162
150
|
|
@@ -133,7 +133,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
133
133
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
134
134
|
utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
|
135
135
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
136
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Without attempting the question`);
|
137
136
|
|
138
137
|
});
|
139
138
|
|
@@ -179,7 +178,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
179
178
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
180
179
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
181
180
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
182
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question partially correct`);
|
183
181
|
});
|
184
182
|
|
185
183
|
it(`${view}: Image highlight - 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`, () => {
|
@@ -205,7 +203,6 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
205
203
|
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
206
204
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
207
205
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
208
|
-
cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question partially correct with correct response and an incorrect response`);
|
209
206
|
});
|
210
207
|
|
211
208
|
it(`${view}: Image highlight - 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`, () => {
|