itemengine-cypress-automation 1.0.286-fixesE2E24thJan-7a46dd4.0 → 1.0.288
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +4 -4
- package/cypress/e2e/ILC/DeleteItem/deleteItem.ts +140 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +97 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +9 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +10 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +27 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/manuallyAndNonScoredEditTab.js +16 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +10 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +8 -0
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +3 -3
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +1 -0
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +10 -0
- package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +10 -0
- package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSameList.js +3 -3
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/manuallyAndNonScoredEditTab.js +13 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +8 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +5 -5
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +8 -0
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +9 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +2 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +8 -0
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +0 -1
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +8 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +262 -75
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +92 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +47 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +47 -0
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/manuallyAndNonScored.js +8 -0
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +2 -3
- package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +8 -0
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/fixtures/evaluationMethodsAndCustomSettings.js +58 -1
- package/cypress/pages/audioPlayerPage.js +1 -2
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +12 -0
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +37 -0
- package/cypress/pages/components/draggableOptionContainer.js +2 -2
- package/cypress/pages/components/equationEditorFlyout.js +9 -0
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -4
- package/cypress/pages/components/imageCanvasComponent.js +7 -7
- package/cypress/pages/components/layoutSectionComponent.js +8 -6
- package/cypress/pages/components/numberLineCommonComponent.js +8 -4
- package/cypress/pages/createItemPage.js +21 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +6 -6
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +23 -21
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +4 -0
- package/cypress/pages/graphingPage.js +14 -13
- package/cypress/pages/listOrderingPage.js +31 -4
- package/cypress/pages/multipleSelectionPage.js +10 -1
- package/cypress/pages/rulerPage.js +1 -0
- package/cypress/pages/singleSelectionPage.js +2 -0
- package/cypress/pages/studentViewPage.js +2 -0
- package/cypress/pages/textEntryMathPage.js +35 -16
- package/package.json +1 -1
@@ -118,8 +118,8 @@ describe('Audio player: Edit tab', () => {
|
|
118
118
|
it('When the user adds the transcript file and file upload is inprogress, file name and progress bar should be displayed below \'File name\' label. Progress bar should disappear once file is uploaded', () => {
|
119
119
|
multipleSelectionPage.steps.uploadTranscriptFile('sample.txt');
|
120
120
|
utilities.verifyElementVisibilityState(multipleSelectionPage.transcriptFileUploadProgressBar(), 'visible');
|
121
|
-
utilities.verifyInnerText(multipleSelectionPage.
|
122
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.
|
121
|
+
utilities.verifyInnerText(multipleSelectionPage.uploadedTranscriptFileNameLabel(), 'sample.txt');
|
122
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadedTranscriptFileNameLabel(), 'visible');
|
123
123
|
utilities.verifyElementVisibilityState(multipleSelectionPage.transcriptFileUploadProgressBar(), 'hidden');
|
124
124
|
});
|
125
125
|
|
@@ -137,8 +137,8 @@ describe('Audio player: Edit tab', () => {
|
|
137
137
|
it('When user clicks on \'Choose file\' button again and upload another transcript file, previously uploaded transcript file should get replaced with new transcript file', () => {
|
138
138
|
multipleSelectionPage.steps.uploadTranscriptFile('sample1.txt');
|
139
139
|
utilities.verifyElementVisibilityState(multipleSelectionPage.transcriptFileUploadProgressBar(), 'hidden');
|
140
|
-
utilities.verifyInnerText(multipleSelectionPage.
|
141
|
-
utilities.verifyElementVisibilityState(multipleSelectionPage.
|
140
|
+
utilities.verifyInnerText(multipleSelectionPage.uploadedTranscriptFileNameLabel(), 'sample1.txt');
|
141
|
+
utilities.verifyElementVisibilityState(multipleSelectionPage.uploadedTranscriptFileNameLabel(), 'visible');
|
142
142
|
});
|
143
143
|
|
144
144
|
it('When the user uploads a file that is not supported, following error message should be displayed: \'Error: The file type is not supported. Please upload a file with the following supported formats: TXT.\'', () => {
|
@@ -0,0 +1,140 @@
|
|
1
|
+
import { multipleSelectionPage, rulerPage, singleSelectionPage } from '../../../pages'
|
2
|
+
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
3
|
+
|
4
|
+
describe('Delete Question, delete resource and delete item', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Delete question', () => {
|
10
|
+
before(() => {
|
11
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
12
|
+
cy.barsPreLoaderWait();
|
13
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
14
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
15
|
+
multipleSelectionPage.steps.allotPoints(20);
|
16
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
17
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
18
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
19
|
+
});
|
20
|
+
|
21
|
+
it('When user deletes a question then the question should be deleted and create question and create resource buttons should be displayed', () => {
|
22
|
+
multipleSelectionPage.steps.deleteItem(0);
|
23
|
+
multipleSelectionPage.steps.verifyQuestionsCount(0);
|
24
|
+
multipleSelectionPage.steps.verifyAddQuestionButtonIsVisible();
|
25
|
+
multipleSelectionPage.steps.verifyAddQuestionAndAddResourceButtonIsVisible();
|
26
|
+
});
|
27
|
+
|
28
|
+
it('User should be able to add question again', () => {
|
29
|
+
multipleSelectionPage.steps.clickOnAddQuestion();
|
30
|
+
multipleSelectionPage.steps.selectQuestionType('multiple selection');
|
31
|
+
cy.barsPreLoaderWait();
|
32
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
33
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
34
|
+
multipleSelectionPage.steps.allotPoints(20);
|
35
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
36
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
37
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
38
|
+
multipleSelectionPage.steps.verifyQuestionsCount(1);
|
39
|
+
});
|
40
|
+
});
|
41
|
+
|
42
|
+
describe('Delete resource', () => {
|
43
|
+
before(() => {
|
44
|
+
rulerPage.steps.navigateToCreateResource('ruler');
|
45
|
+
rulerPage.steps.uncheckAddShowHideButtonCheckbox();
|
46
|
+
rulerPage.steps.expandUnitOfMeasurementDropdown();
|
47
|
+
rulerPage.steps.selectOptionFromUnitOfMeasurementDropdown('Inch');
|
48
|
+
rulerPage.steps.enterInputToOpacityInputField(50);
|
49
|
+
rulerPage.steps.selectColorBlock(3);
|
50
|
+
rulerPage.steps.saveAQuestionAndVerifySnackbar();
|
51
|
+
});
|
52
|
+
|
53
|
+
it('When user deletes a resource then the resource should be deleted and create question and create resource buttons should be displayed', () => {
|
54
|
+
rulerPage.steps.deleteItem(0);
|
55
|
+
rulerPage.steps.verifyQuestionsCount(0);
|
56
|
+
rulerPage.steps.verifyAddQuestionButtonIsVisible();
|
57
|
+
rulerPage.steps.verifyAddQuestionAndAddResourceButtonIsVisible();
|
58
|
+
});
|
59
|
+
|
60
|
+
it('User should be able to add resource again', () => {
|
61
|
+
rulerPage.steps.clickOnAddResource();
|
62
|
+
rulerPage.steps.selectResourceType('ruler');
|
63
|
+
rulerPage.steps.uncheckAddShowHideButtonCheckbox();
|
64
|
+
rulerPage.steps.expandUnitOfMeasurementDropdown();
|
65
|
+
rulerPage.steps.selectOptionFromUnitOfMeasurementDropdown('Inch');
|
66
|
+
rulerPage.steps.enterInputToOpacityInputField(50);
|
67
|
+
rulerPage.steps.selectColorBlock(3);
|
68
|
+
rulerPage.steps.saveAQuestionAndVerifySnackbar();
|
69
|
+
rulerPage.steps.verifyQuestionsCount(1);
|
70
|
+
});
|
71
|
+
});
|
72
|
+
|
73
|
+
describe('Delete item', () => {
|
74
|
+
before(() => {
|
75
|
+
//Add question 1
|
76
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
77
|
+
cy.barsPreLoaderWait();
|
78
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
79
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
80
|
+
multipleSelectionPage.steps.allotPoints(20);
|
81
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
82
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
83
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
84
|
+
//Add resource
|
85
|
+
rulerPage.steps.clickOnAddResource();
|
86
|
+
rulerPage.steps.selectResourceType('ruler');
|
87
|
+
rulerPage.steps.uncheckAddShowHideButtonCheckbox();
|
88
|
+
rulerPage.steps.expandUnitOfMeasurementDropdown();
|
89
|
+
rulerPage.steps.selectOptionFromUnitOfMeasurementDropdown('Inch');
|
90
|
+
rulerPage.steps.enterInputToOpacityInputField(50);
|
91
|
+
rulerPage.steps.selectColorBlock(3);
|
92
|
+
rulerPage.steps.saveAQuestionAndVerifySnackbar();
|
93
|
+
//Add question 2
|
94
|
+
singleSelectionPage.steps.clickOnAddQuestion();
|
95
|
+
singleSelectionPage.steps.selectQuestionType('single selection');
|
96
|
+
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('This is a newly added question');
|
97
|
+
singleSelectionPage.steps.allotPoints(20);
|
98
|
+
singleSelectionPage.steps.addInputToOptionsInputField(options);
|
99
|
+
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
|
100
|
+
singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
101
|
+
});
|
102
|
+
|
103
|
+
it('User should be able to delete the question', () => {
|
104
|
+
multipleSelectionPage.steps.deleteItem(0);
|
105
|
+
multipleSelectionPage.steps.verifyQuestionsCount(2);
|
106
|
+
multipleSelectionPage.steps.verifyAddQuestionButtonIsVisible();
|
107
|
+
multipleSelectionPage.steps.verifyAddQuestionAndAddResourceButtonIsVisible();
|
108
|
+
});
|
109
|
+
|
110
|
+
it('User should be able to delete the resource', () => {
|
111
|
+
multipleSelectionPage.steps.deleteItem(0);
|
112
|
+
multipleSelectionPage.steps.verifyQuestionsCount(1);
|
113
|
+
multipleSelectionPage.steps.verifyAddQuestionButtonIsVisible();
|
114
|
+
multipleSelectionPage.steps.verifyAddQuestionAndAddResourceButtonIsVisible();
|
115
|
+
});
|
116
|
+
|
117
|
+
it('User should be able to add a question and resource again in the item', () => {
|
118
|
+
multipleSelectionPage.steps.clickOnAddQuestion();
|
119
|
+
multipleSelectionPage.steps.selectQuestionType('multiple selection');
|
120
|
+
cy.barsPreLoaderWait();
|
121
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
122
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
123
|
+
multipleSelectionPage.steps.allotPoints(20);
|
124
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
125
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
126
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
127
|
+
rulerPage.steps.clickOnAddResource();
|
128
|
+
rulerPage.steps.selectResourceType('ruler');
|
129
|
+
rulerPage.steps.uncheckAddShowHideButtonCheckbox();
|
130
|
+
rulerPage.steps.expandUnitOfMeasurementDropdown();
|
131
|
+
rulerPage.steps.selectOptionFromUnitOfMeasurementDropdown('Inch');
|
132
|
+
rulerPage.steps.enterInputToOpacityInputField(50);
|
133
|
+
rulerPage.steps.selectColorBlock(3);
|
134
|
+
rulerPage.steps.saveAQuestionAndVerifySnackbar();
|
135
|
+
multipleSelectionPage.steps.verifyQuestionsCount(3);
|
136
|
+
multipleSelectionPage.steps.verifyAddQuestionButtonIsVisible();
|
137
|
+
multipleSelectionPage.steps.verifyAddQuestionAndAddResourceButtonIsVisible();
|
138
|
+
});
|
139
|
+
});
|
140
|
+
});
|
package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js
CHANGED
@@ -180,7 +180,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
180
180
|
|
181
181
|
it('When the user has set \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
|
182
182
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
183
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(1.99);
|
183
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints('1.99');
|
184
184
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
185
185
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
|
186
186
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 11.94);
|
@@ -188,7 +188,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
188
188
|
|
189
189
|
it('When the user sets \'Rounding\' to \'Round down if <=0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value less than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
190
190
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
191
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(1.33);
|
191
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints('1.33');
|
192
192
|
dragAndDropIntoCategoriesPage.steps.expandRoundingDropdown();
|
193
193
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50');
|
194
194
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
@@ -208,7 +208,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
208
208
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
209
209
|
dragAndDropIntoCategoriesPage.steps.expandRoundingDropdown();
|
210
210
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50; Round up if > 0.50');
|
211
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(1.33);
|
211
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints('1.33');
|
212
212
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
213
213
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
|
214
214
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 7.98);
|
@@ -224,7 +224,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
224
224
|
|
225
225
|
it('When the user has set \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.50, then the points awarded should be rounded up to the nearest integer value', () => {
|
226
226
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
227
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(1.65);
|
227
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints('1.65');
|
228
228
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
229
229
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
|
230
230
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 9.9);
|
@@ -232,6 +232,103 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
232
232
|
});
|
233
233
|
});
|
234
234
|
});
|
235
|
+
views.forEach((view) => {
|
236
|
+
//https://weldnorthed.atlassian.net/browse/IEI-4998
|
237
|
+
describe(`${view}: Drag and drop into categories - Manually scored`, { tags: 'smoke' }, () => {
|
238
|
+
abortEarlySetup();
|
239
|
+
before(() => {
|
240
|
+
switch (view) {
|
241
|
+
case 'Question preview':
|
242
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
243
|
+
cy.barsPreLoaderWait();
|
244
|
+
dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
|
245
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
246
|
+
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
|
247
|
+
break;
|
248
|
+
case 'Grading view':
|
249
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
250
|
+
break;
|
251
|
+
};
|
252
|
+
});
|
253
|
+
|
254
|
+
beforeEach(() => {
|
255
|
+
switch (view) {
|
256
|
+
case 'Question preview':
|
257
|
+
break;
|
258
|
+
case 'Grading view':
|
259
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
260
|
+
break;
|
261
|
+
}
|
262
|
+
});
|
263
|
+
|
264
|
+
if (view === 'Question preview') {
|
265
|
+
after(() => {
|
266
|
+
dragAndDropIntoCategoriesPage.steps.clickOnSaveQuestionButton();
|
267
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
268
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
269
|
+
});
|
270
|
+
};
|
271
|
+
|
272
|
+
it('When the user selects \'Grading\' view, correct answer section should not be displayed', () => {
|
273
|
+
if (view === 'Grading view') {
|
274
|
+
studentViewPage.steps.submitResponse();
|
275
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
276
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
277
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
278
|
+
};
|
279
|
+
});
|
280
|
+
});
|
281
|
+
|
282
|
+
//https://weldnorthed.atlassian.net/browse/IEI-4998
|
283
|
+
describe(`${view}: Drag and drop into categories - Per dropzone`, { tags: 'smoke' }, () => {
|
284
|
+
abortEarlySetup();
|
285
|
+
before(() => {
|
286
|
+
switch (view) {
|
287
|
+
case 'Question preview':
|
288
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
289
|
+
cy.barsPreLoaderWait();
|
290
|
+
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
291
|
+
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
292
|
+
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel', 'Peacock']);
|
293
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
294
|
+
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per dropzone');
|
295
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
296
|
+
break;
|
297
|
+
case 'Grading view':
|
298
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
299
|
+
break;
|
300
|
+
};
|
301
|
+
});
|
302
|
+
|
303
|
+
beforeEach(() => {
|
304
|
+
switch (view) {
|
305
|
+
case 'Question preview':
|
306
|
+
break;
|
307
|
+
case 'Grading view':
|
308
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
309
|
+
break;
|
310
|
+
}
|
311
|
+
});
|
312
|
+
|
313
|
+
if (view === 'Question preview') {
|
314
|
+
after(() => {
|
315
|
+
dragAndDropIntoCategoriesPage.steps.clickOnSaveQuestionButton();
|
316
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
317
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
318
|
+
});
|
319
|
+
};
|
320
|
+
|
321
|
+
it('When the user attempts the question correctly in the order same as set in the specify correct answer section, then the correct answer section should not be displayed', () => {
|
322
|
+
if (view === 'Grading view') {
|
323
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
324
|
+
studentViewPage.steps.submitResponse();
|
325
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
326
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
327
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
328
|
+
};
|
329
|
+
});
|
330
|
+
});
|
331
|
+
});
|
235
332
|
|
236
333
|
if (!grepTags || !grepTags.includes('smoke')) {
|
237
334
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
@@ -35,6 +35,11 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
|
|
35
35
|
});
|
36
36
|
|
37
37
|
dragAndDropIntoCategoriesPage.tests.verifyPointsFieldErrorState();
|
38
|
+
|
39
|
+
it('User should able to save question with manually scored scoring type', () => {
|
40
|
+
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
|
41
|
+
dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
|
42
|
+
});
|
38
43
|
});
|
39
44
|
|
40
45
|
describe('Edit tab \'Scoring\' section for Non Scored scoring type', () => {
|
@@ -74,5 +79,9 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
|
|
74
79
|
dragAndDropIntoCategoriesPage.tests.verifyContentsOfSpecifyCorrectAnswerSection('Non scored');
|
75
80
|
|
76
81
|
dragAndDropIntoCategoriesPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
|
82
|
+
|
83
|
+
it('User should able to save question with non scored scoring type', () => {
|
84
|
+
dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
|
85
|
+
});
|
77
86
|
});
|
78
87
|
});
|
package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js
CHANGED
@@ -2,7 +2,7 @@ import { dragAndDropIntoCategoriesPage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
|
5
|
-
const rowColumnOptions = ['
|
5
|
+
const rowColumnOptions = ['Small', 'Wide','No spacing'];
|
6
6
|
const dropzoneDimensions = ['Auto', 'Custom'];
|
7
7
|
|
8
8
|
describe('Drag and drop into categories - Style and layout customization accordion', () => {
|
@@ -35,6 +35,10 @@ describe('Create Item page - Fill in the gaps with drag and drop: Manually and n
|
|
35
35
|
});
|
36
36
|
|
37
37
|
fillInTheGapsDragAndDropPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
38
|
+
|
39
|
+
it('User should able to save question with manually scored scoring type', () => {
|
40
|
+
fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
41
|
+
});
|
38
42
|
});
|
39
43
|
|
40
44
|
describe('Question Preview: Non Scored', () => {
|
@@ -138,5 +142,9 @@ describe('Create Item page - Fill in the gaps with drag and drop: Manually and n
|
|
138
142
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
139
143
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
140
144
|
});
|
145
|
+
|
146
|
+
it('User should able to save question with non scored scoring type', () => {
|
147
|
+
fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
148
|
+
});
|
141
149
|
});
|
142
150
|
});
|
@@ -126,12 +126,12 @@ describe('Preview tab contents for all views', () => {
|
|
126
126
|
});
|
127
127
|
} else {
|
128
128
|
it('The dropzone should be displayed filled with answers', () => {
|
129
|
-
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
130
129
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
131
130
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
132
131
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'This is a bold option');
|
133
132
|
//Note: Equation needs to be checked manually in correct answer view
|
134
133
|
// fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
|
134
|
+
// utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
135
135
|
});
|
136
136
|
}
|
137
137
|
});
|
@@ -18,6 +18,8 @@ describe('Create Item page - Fill in the gaps with dropdown: Manually and non sc
|
|
18
18
|
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
19
19
|
cy.barsPreLoaderWait();
|
20
20
|
fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('fill in the gaps');
|
21
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
22
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
21
23
|
fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
|
22
24
|
fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
23
25
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
@@ -31,6 +33,10 @@ describe('Create Item page - Fill in the gaps with dropdown: Manually and non sc
|
|
31
33
|
});
|
32
34
|
|
33
35
|
fillInTheGapsDropdownPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
36
|
+
|
37
|
+
it('User should able to save question with manually scored scoring type', () => {
|
38
|
+
fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
|
39
|
+
});
|
34
40
|
});
|
35
41
|
|
36
42
|
describe('Question Preview: Non Scored', () => {
|
@@ -108,5 +114,9 @@ describe('Create Item page - Fill in the gaps with dropdown: Manually and non sc
|
|
108
114
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
109
115
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
110
116
|
});
|
117
|
+
|
118
|
+
it('User should able to save question with non scored scoring type', () => {
|
119
|
+
fillInTheGapsDropdownPage.steps.saveAQuestionAndVerifySnackbar();
|
120
|
+
});
|
111
121
|
});
|
112
122
|
});
|
@@ -70,7 +70,8 @@ describe('fill in the gaps over image with drag and drop - Additional settings :
|
|
70
70
|
});
|
71
71
|
});
|
72
72
|
|
73
|
-
|
73
|
+
//Remove the skip once https://weldnorthed.atlassian.net/browse/IEI-5058 is resolved.
|
74
|
+
it.skip('When the user selects "without enumeration" radio button, then in the "Grading view", numeration should not be displayed for dropzones and in the correct answer section, the entire question preview should be displayed with correct answers', () => {
|
74
75
|
fillInTheGapsOverImageDragAndDropPage.steps.selectEnumerationType('without enumeration');
|
75
76
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
76
77
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
@@ -78,8 +79,32 @@ describe('fill in the gaps over image with drag and drop - Additional settings :
|
|
78
79
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumerationNotExists();
|
79
80
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.correctAnswersNumeration(), 'notExist');
|
80
81
|
});
|
81
|
-
});
|
82
82
|
|
83
|
+
//https://weldnorthed.atlassian.net/browse/IEI-5058
|
84
|
+
it('When the user selects "without enumeration" radio button and sets partial equal weights as the scoring type, then in the "Grading view", numeration should not be displayed for dropzones and in the correct answer section, the entire question preview should be displayed with correct answers', () => {
|
85
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
86
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectEnumerationType('without enumeration');
|
87
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('partial equal weights');
|
88
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
89
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
90
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesWithoutEnumeration(['Bat', 'Eagle']);
|
91
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumerationNotExists();
|
92
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.correctAnswersNumeration(), 'notExist');
|
93
|
+
});
|
94
|
+
|
95
|
+
// https://weldnorthed.atlassian.net/browse/IEI-5058
|
96
|
+
it('When the user selects "without enumeration" radio button and sets partial equal weights as the scoring type, then in the "Grading view", numeration should not be displayed for dropzones and in the correct answer section, the entire question preview should be displayed with correct answers', () => {
|
97
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
98
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectEnumerationType('without enumeration');
|
99
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('partial different weights');
|
100
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
101
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
102
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesWithoutEnumeration(['Bat', 'Eagle']);
|
103
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumerationNotExists();
|
104
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.correctAnswersNumeration(), 'notExist');
|
105
|
+
});
|
106
|
+
});
|
107
|
+
|
83
108
|
describe('Additional settings: ARIA label for dropzones - Contents in edit tab', () => {
|
84
109
|
abortEarlySetup();
|
85
110
|
before(() => {
|
@@ -113,7 +113,6 @@ describe('Create Item page - Fill in the gaps over image with drag and drop into
|
|
113
113
|
});
|
114
114
|
|
115
115
|
it('When the user clicks on \'Add group\' button without entering text in the option input fields, error message \'Error: Option is required\' should be displayed', () => {
|
116
|
-
fillInTheGapsOverImageDragAndDropPage.steps.addGroup();
|
117
116
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionsInputFieldErrorMessage(0);
|
118
117
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionsInputFieldErrorMessage(1);
|
119
118
|
});
|
@@ -13,6 +13,13 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Scorin
|
|
13
13
|
cy.log('Add question instructions and options');
|
14
14
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
15
|
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
16
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
17
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
18
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(2);
|
19
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
20
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
21
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
22
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
16
23
|
});
|
17
24
|
|
18
25
|
it('When the user selects \'Manually scored\' option from the scoring Type dropdown then the \'Specify correct answer\' section should not be displayed; \'Points\' and \'Minimum scoring\' label and dropdown should be displayed', () => {
|
@@ -28,6 +35,10 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Scorin
|
|
28
35
|
});
|
29
36
|
|
30
37
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyPointsFieldErrorState(10);
|
38
|
+
|
39
|
+
it('User should able to save question with manually scored scoring type', () => {
|
40
|
+
fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
41
|
+
});
|
31
42
|
});
|
32
43
|
|
33
44
|
describe('Non scored scoring - Scoring section', () => {
|
@@ -65,5 +76,10 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Scorin
|
|
65
76
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
|
66
77
|
|
67
78
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
|
79
|
+
|
80
|
+
it('User should able to save question with non scored scoring type', () => {
|
81
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
|
82
|
+
fillInTheGapsOverImageDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
|
83
|
+
});
|
68
84
|
});
|
69
85
|
});
|
@@ -22,6 +22,8 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
|
|
22
22
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
23
23
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
24
24
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
25
27
|
fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
|
26
28
|
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
27
29
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
@@ -35,6 +37,10 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
|
|
35
37
|
});
|
36
38
|
|
37
39
|
fillInTheGapsOverImageDropdownPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
40
|
+
|
41
|
+
it('User should able to save question with manually scored scoring type', () => {
|
42
|
+
fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
|
43
|
+
});
|
38
44
|
});
|
39
45
|
|
40
46
|
describe('Question Preview: Non Scored', () => {
|
@@ -115,5 +121,9 @@ describe('Create Item page - Fill in the gaps over image with dropdown: Manually
|
|
115
121
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
116
122
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
117
123
|
});
|
124
|
+
|
125
|
+
it('User should able to save question with non scored scoring type', () => {
|
126
|
+
fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
|
127
|
+
});
|
118
128
|
});
|
119
129
|
});
|
@@ -18,6 +18,7 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
18
18
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
19
19
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
20
20
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
21
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
21
22
|
fillInTheGapsOverImageTextPage.steps.expandScoringTypeDropdown();
|
22
23
|
fillInTheGapsOverImageTextPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
23
24
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
@@ -31,6 +32,10 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
31
32
|
});
|
32
33
|
|
33
34
|
fillInTheGapsOverImageTextPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
35
|
+
|
36
|
+
it('User should able to save question with manually scored scoring type', () => {
|
37
|
+
fillInTheGapsOverImageTextPage.steps.saveAQuestionAndVerifySnackbar();
|
38
|
+
});
|
34
39
|
});
|
35
40
|
|
36
41
|
describe('Question Preview: Non Scored', () => {
|
@@ -47,7 +52,7 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
47
52
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
48
53
|
fillInTheGapsOverImageTextPage.steps.expandScoringTypeDropdown();
|
49
54
|
fillInTheGapsOverImageTextPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
50
|
-
|
55
|
+
//fillInTheGapsOverImageTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
51
56
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
52
57
|
});
|
53
58
|
|
@@ -118,5 +123,9 @@ describe('Create Item page - Fill in the gaps over image with text: Manually and
|
|
118
123
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
119
124
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
120
125
|
});
|
126
|
+
|
127
|
+
it('User should able to save question with non scored scoring type', () => {
|
128
|
+
fillInTheGapsOverImageTextPage.steps.saveAQuestionAndVerifySnackbar();
|
129
|
+
});
|
121
130
|
});
|
122
131
|
});
|
@@ -27,6 +27,10 @@ describe('Create Item page - Fill in the gaps with text: Manually and non scored
|
|
27
27
|
});
|
28
28
|
|
29
29
|
fillInTheGapsTextPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
30
|
+
|
31
|
+
it('User should able to save question with manually scored scoring type', () => {
|
32
|
+
fillInTheGapsTextPage.steps.saveAQuestionAndVerifySnackbar();
|
33
|
+
});
|
30
34
|
});
|
31
35
|
|
32
36
|
describe('Question Preview: Non Scored', () => {
|
@@ -109,5 +113,9 @@ describe('Create Item page - Fill in the gaps with text: Manually and non scored
|
|
109
113
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
110
114
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
111
115
|
});
|
116
|
+
|
117
|
+
it('User should able to save question with manually scored scoring type', () => {
|
118
|
+
fillInTheGapsTextPage.steps.saveAQuestionAndVerifySnackbar();
|
119
|
+
});
|
112
120
|
});
|
113
121
|
});
|
@@ -41,6 +41,10 @@ describe('Create Item page - Graphing: Manually and non scored', () => {
|
|
41
41
|
});
|
42
42
|
|
43
43
|
graphingPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
44
|
+
|
45
|
+
it('User should able to save question with manually scored scoring type', () => {
|
46
|
+
graphingPage.steps.saveAQuestionAndVerifySnackbar();
|
47
|
+
});
|
44
48
|
});
|
45
49
|
|
46
50
|
describe('Question Preview: Non Scored', () => {
|
@@ -247,5 +251,9 @@ describe('Create Item page - Graphing: Manually and non scored', () => {
|
|
247
251
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
248
252
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
249
253
|
});
|
254
|
+
|
255
|
+
it('User should able to save question with non scored scoring type', () => {
|
256
|
+
graphingPage.steps.saveAQuestionAndVerifySnackbar();
|
257
|
+
});
|
250
258
|
});
|
251
259
|
});
|
@@ -71,7 +71,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
71
71
|
graphingPage.steps.clickOnGraphTitle();
|
72
72
|
utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Graph title');
|
73
73
|
utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add title');
|
74
|
-
utilities.verifyElementVisibilityState(graphingPage.
|
74
|
+
utilities.verifyElementVisibilityState(graphingPage.addLabelInputField(), 'visible');
|
75
75
|
utilities.verifyInnerText(graphingPage.titlePopupSaveButton(), 'Save');
|
76
76
|
utilities.verifyInnerText(graphingPage.titlePopupCancelButton(), 'Cancel');
|
77
77
|
});
|
@@ -104,7 +104,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
104
104
|
graphingPage.steps.clickOnXAxisLabel();
|
105
105
|
utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'X axis label');
|
106
106
|
utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add title');
|
107
|
-
utilities.verifyElementVisibilityState(graphingPage.
|
107
|
+
utilities.verifyElementVisibilityState(graphingPage.addLabelInputField(), 'visible');
|
108
108
|
utilities.verifyInnerText(graphingPage.titlePopupSaveButton(), 'Save');
|
109
109
|
utilities.verifyInnerText(graphingPage.titlePopupCancelButton(), 'Cancel');
|
110
110
|
});
|
@@ -137,7 +137,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
137
137
|
graphingPage.steps.clickOnYAxisLabel();
|
138
138
|
utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Y axis label');
|
139
139
|
utilities.verifyInnerText(graphingPage.titlePopupAddLabelLabel(), 'Add title');
|
140
|
-
utilities.verifyElementVisibilityState(graphingPage.
|
140
|
+
utilities.verifyElementVisibilityState(graphingPage.addLabelInputField(), 'visible');
|
141
141
|
utilities.verifyInnerText(graphingPage.titlePopupSaveButton(), 'Save');
|
142
142
|
utilities.verifyInnerText(graphingPage.titlePopupCancelButton(), 'Cancel');
|
143
143
|
});
|