itemengine-cypress-automation 1.0.202-30thMayFixes-58abf34.0 → 1.0.203-31stMayFixes-16985aa.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +5 -11
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +22 -22
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/conditionalCheckboxScoring.js +60 -60
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/styleAndLayoutCustomization.js +2 -2
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +6 -8
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +7 -6
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/additionalSettings.js +2 -2
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +10 -10
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +3 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/additionalSettings.js +5 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +31 -50
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +5 -4
- package/cypress/e2e/ILC/UploadResponse/uploadedFileProperties.js +1 -1
- package/package.json +1 -1
@@ -271,7 +271,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
271
271
|
|
272
272
|
it('When the user hovers on \'Delete\' button, \'Delete transcript\' text should be displayed in tooltip', () => {
|
273
273
|
audioPlayerPage.deleteTranscriptButton()
|
274
|
-
.verifyTooltip('Delete transcript');
|
274
|
+
.verifyTooltip('Delete transcript file');
|
275
275
|
});
|
276
276
|
|
277
277
|
it('CSS of tooltip', { tags: 'css' }, () => {
|
@@ -181,9 +181,10 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
181
181
|
});
|
182
182
|
|
183
183
|
it('When user clicks on all the de-selected characters the category checkbox should get checked', () => {
|
184
|
-
|
185
|
-
|
186
|
-
|
184
|
+
editCategoryFlyout.steps.selectCategoryCharactersUsingIndex(0);
|
185
|
+
editCategoryFlyout.steps.selectCategoryCharacters('Dollar');
|
186
|
+
editCategoryFlyout.steps.selectCategoryCharacters('Cents');
|
187
|
+
editCategoryFlyout.steps.selectCategoryCharacters('Colon');
|
187
188
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
188
189
|
});
|
189
190
|
});
|
@@ -240,12 +241,6 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
240
241
|
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset());
|
241
242
|
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
242
243
|
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
243
|
-
editCategoryFlyout.categoryCharacters()
|
244
|
-
.then(($symbols) => {
|
245
|
-
for (let index = 0; index < $symbols.length - 2; index++) {
|
246
|
-
editCategoryFlyout.steps.selectCategoryCharactersUsingIndex(index);
|
247
|
-
}
|
248
|
-
});
|
249
244
|
});
|
250
245
|
});
|
251
246
|
|
@@ -280,11 +275,10 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
280
275
|
});
|
281
276
|
|
282
277
|
it('When user re-visits the Edit category flyout the changes should be displayed', () => {
|
283
|
-
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols)
|
284
278
|
essayResponsePage.steps.switchToEditTab()
|
285
279
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
286
280
|
utilities.verifyElementVisibilityState(editCategoryFlyout.categoryCharacters('QuestionMark not-selected'), 'exist');
|
287
|
-
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedStateForEditedCategory(
|
281
|
+
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedStateForEditedCategory([equationEditorCategoriesAndSymbols['general'].symbols.cents.ariaLabel, equationEditorCategoriesAndSymbols['general'].symbols.questionMark.ariaLabel, 'dollar', 'colon']);
|
288
282
|
});
|
289
283
|
});
|
290
284
|
});
|
@@ -214,7 +214,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
214
214
|
});
|
215
215
|
|
216
216
|
it('When user hovers on a category with a long name, then a tooltip should be displayed.', () => {
|
217
|
-
let categoriesWithTooltip = [
|
217
|
+
let categoriesWithTooltip = ['Greek Symbols', 'Measurement', 'Other Symbols'];
|
218
218
|
essayResponsePage.steps.verifyTooltipsOfCategoryTilesInEquationEditorSectionEditTab(categoriesWithTooltip);
|
219
219
|
});
|
220
220
|
|
@@ -390,6 +390,8 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
390
390
|
|
391
391
|
it(`In the equation editor flyout the ${allCategories[0].displayName} should be selected by default and the Equation editor input field should be prefilled with the added equation`, () => {
|
392
392
|
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
393
|
+
cy.log('Adding this to focus out of input field')
|
394
|
+
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
|
393
395
|
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1');
|
394
396
|
});
|
395
397
|
|
@@ -286,7 +286,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Dropzone setti
|
|
286
286
|
fillInTheGapsDragAndDropPage.steps.uncheckWordWrappedCheckbox();
|
287
287
|
fillInTheGapsDragAndDropPage.steps.clickOnResponseAreaSettingsOkButton();
|
288
288
|
fillInTheGapsDragAndDropPage.steps.verifyOptionTextNotWordWrappedInDropzoneSpecifyCorrectAnswerSection(0);
|
289
|
-
fillInTheGapsDragAndDropPage.steps.verifyDropzoneHeightSpecifyCorrectAnswerSection(0, '
|
289
|
+
fillInTheGapsDragAndDropPage.steps.verifyDropzoneHeightSpecifyCorrectAnswerSection(0, '50px');
|
290
290
|
});
|
291
291
|
});
|
292
292
|
|
@@ -235,6 +235,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
235
235
|
});
|
236
236
|
|
237
237
|
it('When the user modifies the selected color in the color popup and clicks on \'Cancel\' button, then the popup should close, the color block should not change and the modifications in the color popup should not persist', () => {
|
238
|
+
fillInTheGapsOverImageDropdownPage.steps.insertTextArea(80, 'Inserted text');
|
238
239
|
fillInTheGapsOverImageDropdownPage.steps.clickOnTextColorButton();
|
239
240
|
fillInTheGapsOverImageDropdownPage.steps.clickOnEditColorButton()
|
240
241
|
fillInTheGapsOverImageDropdownPage.steps.addInputToHexInputField('#00002E');
|
@@ -274,13 +274,13 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
274
274
|
|
275
275
|
fillInTheGapsOverImageTextPage.tests.verifyTextColorPopupFunctionality();
|
276
276
|
|
277
|
-
|
277
|
+
it('When the user clicks on the \'Edit color\' present in an \'Text color\' popup, then a select color popup should be displayed', () => {
|
278
278
|
fillInTheGapsOverImageTextPage.steps.clickOnEditColorButton();
|
279
279
|
fillInTheGapsOverImageTextPage.steps.verifyColorPopupIsDisplayed();
|
280
280
|
});
|
281
281
|
|
282
|
-
fillInTheGapsOverImageTextPage.tests.
|
283
|
-
|
282
|
+
fillInTheGapsOverImageTextPage.tests.verifyColorPopupSelectColorTitle();
|
283
|
+
|
284
284
|
fillInTheGapsOverImageTextPage.tests.verifySaturationAndOpacityGradientPalette('rgb(0, 0, 46)');
|
285
285
|
|
286
286
|
fillInTheGapsOverImageTextPage.tests.verifyColorHuePaletteAndHexInputField('rgb(0, 0, 255)', '#00002E');
|
@@ -294,7 +294,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
294
294
|
});
|
295
295
|
|
296
296
|
it('When the user modifies the selected color in the color popup and clicks on \'Cancel\' button, then the popup should close, the color block should not change and the modifications in the color popup should not persist', () => {
|
297
|
-
|
297
|
+
fillInTheGapsOverImageTextPage.steps.selectInsertedTextBox(0);
|
298
298
|
fillInTheGapsOverImageTextPage.steps.clickOnTextColorButton();
|
299
299
|
fillInTheGapsOverImageTextPage.steps.clickOnEditColorButton()
|
300
300
|
fillInTheGapsOverImageTextPage.steps.addInputToHexInputField('#00002E');
|
@@ -351,7 +351,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
351
351
|
//failed due to https://redmine.zeuslearning.com/issues/560585
|
352
352
|
fillInTheGapsOverImageTextPage.tests.verifyFillImageToCanvasPreviewTabFunctionality();
|
353
353
|
});
|
354
|
-
|
354
|
+
|
355
355
|
describe('Canvas width, Canvas height, Image alternative text - Edit tab canvas section functionality', () => {
|
356
356
|
abortEarlySetup();
|
357
357
|
before(() => {
|
@@ -379,29 +379,29 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
379
379
|
});
|
380
380
|
|
381
381
|
it('When the user has uploaded canvas image, then switching to the preview tab should display canvas image with same dimensions', () => {
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
382
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
383
|
+
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploadedInPreviewTab();
|
384
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.canvasImageInPreviewTab(), 'visible');
|
385
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasWidthInPreviewTab(768);
|
386
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasHeightInPreviewTab(432);
|
387
387
|
});
|
388
388
|
|
389
389
|
it('When user updates width and height in edit tab, then updated changes should be reflected in preview tab', () => {
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
390
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
391
|
+
fillInTheGapsOverImageTextPage.steps.unlockAspectRatio();
|
392
|
+
fillInTheGapsOverImageTextPage.steps.updateCanvasWidth(800);
|
393
|
+
fillInTheGapsOverImageTextPage.steps.updateCanvasHeight(450);
|
394
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
395
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasWidthInPreviewTab(800);
|
396
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasHeightInPreviewTab(450);
|
397
397
|
});
|
398
398
|
|
399
399
|
it('When user resets image dimensions in edit tab, then updated changes should be reflected in preview tab', () => {
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
400
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
401
|
+
fillInTheGapsOverImageTextPage.steps.resetDimensions();
|
402
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
403
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasWidthInPreviewTab(768);
|
404
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasHeightInPreviewTab(432);
|
405
405
|
});
|
406
406
|
|
407
407
|
fillInTheGapsOverImageTextPage.tests.verifyImageAlternativeTextPreviewTabFunctionality();
|
@@ -14,123 +14,123 @@ describe('Fill In the gaps with text \'Correct response condition\' checkboxes',
|
|
14
14
|
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
15
15
|
fillInTheGapsTextPage.steps.allotPoints(10);
|
16
16
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
17
|
-
|
17
|
+
//fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
18
18
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
19
19
|
});
|
20
20
|
|
21
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with incorrect casing then full points should be awarded and when user
|
21
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with incorrect casing then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
22
22
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'floWer is diSplayed' }]);
|
23
23
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
24
|
-
fillInTheGapsTextPage.steps.
|
24
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
25
25
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
26
26
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
27
27
|
});
|
28
28
|
|
29
|
-
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with incorrect casing then zero points should be awarded and when user
|
29
|
+
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with incorrect casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
30
30
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
31
31
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Case sensitive');
|
32
32
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
33
33
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayed' }]);
|
34
34
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
35
|
-
fillInTheGapsTextPage.steps.
|
35
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
36
36
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
37
37
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
38
38
|
});
|
39
39
|
|
40
|
-
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with correct casing then full points should be awarded and when user
|
40
|
+
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with correct casing then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
41
41
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
42
42
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
43
43
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
44
|
-
fillInTheGapsTextPage.steps.
|
44
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
45
45
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
46
46
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
47
47
|
});
|
48
48
|
|
49
|
-
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user
|
49
|
+
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
50
50
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
51
51
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
52
52
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
53
53
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayed in this image' }]);
|
54
54
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
55
|
-
fillInTheGapsTextPage.steps.
|
55
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
56
56
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
57
57
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
58
58
|
});
|
59
59
|
|
60
|
-
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which does not include the answer but with correct casing then zero points should be awarded and when user
|
60
|
+
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which does not include the answer but with correct casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
61
61
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
62
62
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'This image has Flower' }]);
|
63
63
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
64
|
-
fillInTheGapsTextPage.steps.
|
64
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
65
65
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
66
66
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
67
67
|
});
|
68
68
|
|
69
|
-
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with correct casing then full points should be awarded and when user
|
69
|
+
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with correct casing then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
70
70
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
71
71
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
72
72
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
73
|
-
fillInTheGapsTextPage.steps.
|
73
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
74
74
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
75
75
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
76
76
|
});
|
77
77
|
|
78
|
-
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and incorrect casing then zero points should be awarded and when user
|
78
|
+
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and incorrect casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
79
79
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
80
80
|
fillInTheGapsTextPage.steps.uncheckConditionalCheckbox('Validate if answer is included in the response');
|
81
81
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore extra spaces');
|
82
82
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
83
83
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' flower is Displayed ' }]);
|
84
84
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
85
|
-
fillInTheGapsTextPage.steps.
|
85
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
86
86
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
87
87
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
88
88
|
});
|
89
89
|
|
90
|
-
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces in between answer and with correct casing then zero points should be awarded and when user
|
90
|
+
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces in between answer and with correct casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
91
91
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
92
92
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flo wer is displayed' }]);
|
93
93
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
94
|
-
fillInTheGapsTextPage.steps.
|
94
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
95
95
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
96
96
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
97
97
|
});
|
98
98
|
|
99
|
-
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and correct casing then full points should be awarded and when user
|
99
|
+
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and correct casing then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
100
100
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
101
101
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
102
102
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
103
|
-
fillInTheGapsTextPage.steps.
|
103
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
104
104
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
105
105
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
106
106
|
});
|
107
107
|
|
108
|
-
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and incorrect casing then zero points should be awarded and when user
|
108
|
+
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and incorrect casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
109
109
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
110
110
|
fillInTheGapsTextPage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
|
111
111
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
112
112
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
113
113
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayes' }]);
|
114
114
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
115
|
-
fillInTheGapsTextPage.steps.
|
115
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
116
116
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
117
117
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
118
118
|
});
|
119
119
|
|
120
|
-
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having multiple letter mistake and correct casing then zero points should be awarded and when user
|
120
|
+
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having multiple letter mistake and correct casing then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
121
121
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
122
122
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flowrr is displayes' }]);
|
123
123
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
124
|
-
fillInTheGapsTextPage.steps.
|
124
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
125
125
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
126
126
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
127
127
|
});
|
128
128
|
|
129
|
-
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and correct casing then full points should be awarded and when user
|
129
|
+
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and correct casing then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
130
130
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
131
131
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayes' }]);
|
132
132
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
133
|
-
fillInTheGapsTextPage.steps.
|
133
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
134
134
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
135
135
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
136
136
|
});
|
@@ -144,52 +144,52 @@ describe('Fill In the gaps with text \'Correct response condition\' checkboxes',
|
|
144
144
|
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
145
145
|
fillInTheGapsTextPage.steps.allotPoints(10);
|
146
146
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
147
|
-
|
147
|
+
//fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
148
148
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
149
149
|
});
|
150
150
|
|
151
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with a sentence which includes the answer then zero points should be awarded and when user
|
151
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with a sentence which includes the answer then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
152
152
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
153
153
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
154
|
-
fillInTheGapsTextPage.steps.
|
154
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
155
155
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
156
156
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
157
157
|
});
|
158
158
|
|
159
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which does not include the answer then zero points should be awarded and when user
|
159
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which does not include the answer then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
160
160
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
161
161
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
162
162
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
163
163
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Image contains fruit' }]);
|
164
164
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
165
|
-
fillInTheGapsTextPage.steps.
|
165
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
166
166
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
167
167
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
168
168
|
});
|
169
169
|
|
170
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes a part of the answer then zero points should be awarded and when user
|
170
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes a part of the answer then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
171
171
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
172
172
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'This image contains flower' }]);
|
173
173
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
174
|
-
fillInTheGapsTextPage.steps.
|
174
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
175
175
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
176
176
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
177
177
|
});
|
178
178
|
|
179
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes the answer then full points should be awarded and when user
|
179
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes the answer then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
180
180
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
181
181
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
182
182
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
183
|
-
fillInTheGapsTextPage.steps.
|
183
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
184
184
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
185
185
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
186
186
|
});
|
187
187
|
|
188
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with the exact answer then full points should be awarded and when user
|
188
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with the exact answer then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
189
189
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
190
190
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
191
191
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
192
|
-
fillInTheGapsTextPage.steps.
|
192
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
193
193
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
194
194
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
195
195
|
});
|
@@ -203,72 +203,72 @@ describe('Fill In the gaps with text \'Correct response condition\' checkboxes',
|
|
203
203
|
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
204
204
|
fillInTheGapsTextPage.steps.allotPoints(10);
|
205
205
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
206
|
-
|
206
|
+
//fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
207
207
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
208
208
|
});
|
209
209
|
|
210
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with extra spaces before and after the correct answer then zero points should be awarded and when user
|
210
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with extra spaces before and after the correct answer then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
211
211
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
212
212
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
213
|
-
fillInTheGapsTextPage.steps.
|
213
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
214
214
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
215
215
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
216
216
|
});
|
217
217
|
|
218
|
-
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces in between the correct answer then zero points should be awarded and when user
|
218
|
+
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces in between the correct answer then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
219
219
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
220
220
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore extra spaces');
|
221
221
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
222
222
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is dis played' }]);
|
223
223
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
224
|
-
fillInTheGapsTextPage.steps.
|
224
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
225
225
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
226
226
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
227
227
|
});
|
228
228
|
|
229
|
-
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces before and after the correct answer then full points should be awarded and when user
|
229
|
+
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces before and after the correct answer then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
230
230
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
231
231
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
232
232
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
233
|
-
fillInTheGapsTextPage.steps.
|
233
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
234
234
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
235
235
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
236
236
|
});
|
237
237
|
|
238
|
-
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user
|
238
|
+
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
239
239
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
240
240
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
241
241
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
242
|
-
fillInTheGapsTextPage.steps.
|
242
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
243
243
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
244
244
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
245
245
|
});
|
246
246
|
|
247
|
-
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces in between the correct answer with single letter mistake then zero points should be awarded and when user
|
247
|
+
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces in between the correct answer with single letter mistake then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
248
248
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
249
249
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
250
250
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
251
251
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flo wer is displayes' }]);
|
252
252
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
253
|
-
fillInTheGapsTextPage.steps.
|
253
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
254
254
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
255
255
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
256
256
|
});
|
257
257
|
|
258
|
-
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces and multiple letter mistake then zero points should be awarded and when user
|
258
|
+
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces and multiple letter mistake then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
259
259
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
260
260
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Fkower is dispkayed ' }]);
|
261
261
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
262
|
-
fillInTheGapsTextPage.steps.
|
262
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
263
263
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
264
264
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
265
265
|
});
|
266
266
|
|
267
|
-
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces before and after the correct answer with single letter mistake then full points should be awarded and when user
|
267
|
+
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces before and after the correct answer with single letter mistake then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
268
268
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
269
269
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayes ' }]);
|
270
270
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
271
|
-
fillInTheGapsTextPage.steps.
|
271
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
272
272
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
273
273
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
274
274
|
});
|
@@ -282,43 +282,43 @@ describe('Fill In the gaps with text \'Correct response condition\' checkboxes',
|
|
282
282
|
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
283
283
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
284
284
|
fillInTheGapsTextPage.steps.allotPoints(10);
|
285
|
-
|
285
|
+
//fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
286
286
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
287
287
|
});
|
288
288
|
|
289
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with single letter mistake then zero points should be awarded and when user
|
289
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with single letter mistake then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
290
290
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayes' }]);
|
291
291
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
292
|
-
fillInTheGapsTextPage.steps.
|
292
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
293
293
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
294
294
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
295
295
|
});
|
296
296
|
|
297
|
-
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with multiple letter mistakes then zero points should be awarded and when user
|
297
|
+
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with multiple letter mistakes then zero points should be awarded and when user switches to \'Grading view\', red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
298
298
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
299
299
|
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
300
300
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
301
301
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Floeer is displayes' }]);
|
302
302
|
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
303
|
-
fillInTheGapsTextPage.steps.
|
303
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
304
304
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
305
305
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
306
306
|
});
|
307
307
|
|
308
|
-
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with single letter mistake then full points should be awarded and when user
|
308
|
+
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with single letter mistake then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
309
309
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
310
310
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Floeer is displayed' }]);
|
311
311
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
312
|
-
fillInTheGapsTextPage.steps.
|
312
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
313
313
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
314
314
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
315
315
|
});
|
316
316
|
|
317
|
-
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user
|
317
|
+
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user switches to \'Grading view\', green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
318
318
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
319
319
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
320
320
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
321
|
-
fillInTheGapsTextPage.steps.
|
321
|
+
fillInTheGapsTextPage.steps.switchToGradingView();
|
322
322
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
323
323
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
324
324
|
});
|
@@ -215,7 +215,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
215
215
|
it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect text container should get deducted from the awarded points', () => {
|
216
216
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
217
217
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Seed' }, { responseIndex: 2, responseText: 'Branch' }]);
|
218
|
-
fillInTheGapsTextPage.steps.verifyPreviewScore(
|
218
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(6.34, 20);
|
219
219
|
});
|
220
220
|
|
221
221
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -234,6 +234,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
234
234
|
|
235
235
|
//Penalty points for each incorrect text container - Specify points for each incorrect text container
|
236
236
|
it('When the user has set penalty scoring to \'Penalty points for each incorrect text container\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points for the incorrect and empty dropzone', () => {
|
237
|
+
fillInTheGapsTextPage.steps.expandPenaltyScoringDropdown();
|
237
238
|
fillInTheGapsTextPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect text container');
|
238
239
|
fillInTheGapsTextPage.steps.allotPenaltyPointsForEachIncorrectTextContainer(4);
|
239
240
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
@@ -45,7 +45,7 @@ describe('Create Item page - Fill in the gaps with text: Style and layout custom
|
|
45
45
|
});
|
46
46
|
|
47
47
|
describe('Fill color - Edit tab', () => {
|
48
|
-
const modifiedColor = 'rgb(
|
48
|
+
const modifiedColor = 'rgb(121, 61, 61)'
|
49
49
|
abortEarlySetup();
|
50
50
|
before(() => {
|
51
51
|
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
@@ -81,7 +81,7 @@ describe('Create Item page - Fill in the gaps with text: Style and layout custom
|
|
81
81
|
});
|
82
82
|
|
83
83
|
describe('Fill color - Preview tab', () => {
|
84
|
-
const modifiedColor = 'rgb(
|
84
|
+
const modifiedColor = 'rgb(121, 61, 61)'
|
85
85
|
abortEarlySetup();
|
86
86
|
before(() => {
|
87
87
|
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|