itemengine-cypress-automation 1.0.128 → 1.0.131-updateILCrepo6March-02c78d1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +210 -0
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +91 -0
- package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +392 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +152 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +196 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +195 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +288 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +141 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +413 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +218 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +163 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +83 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +653 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +180 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabScoringSection.js +229 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +90 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/switchingCasesBetweenOptionsLayout.js +50 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +204 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +204 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +298 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingPenaltyScoring.js +63 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +111 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +231 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsBasic.js +90 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +232 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +231 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsBasic.js +138 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +186 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +214 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +161 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +328 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +144 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabScoringSection.js +250 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +74 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +188 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +1 -52
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +3 -211
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +39 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -50
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/conditionalCheckboxScoring.js +325 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +1 -146
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +300 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +78 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +265 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/responseAnswersAndAcceptedStudentInput.js +56 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +40 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +249 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +64 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +128 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +889 -0
- package/cypress/e2e/ILC/Graphing/checkAnswerFunctionalityForAllViews.smoke.js +168 -0
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +203 -0
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +222 -0
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +349 -0
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +132 -0
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +35 -7
- package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +213 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +41 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +377 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +161 -0
- package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +250 -0
- package/cypress/e2e/migration/migration.js +4 -41
- package/cypress/e2e/migration/migration10.js +6 -43
- package/cypress/e2e/migration/migration2.js +6 -43
- package/cypress/e2e/migration/migration3.js +6 -43
- package/cypress/e2e/migration/migration4.js +6 -43
- package/cypress/e2e/migration/migration5.js +6 -43
- package/cypress/e2e/migration/migration6.js +6 -43
- package/cypress/e2e/migration/migration7.js +6 -43
- package/cypress/e2e/migration/migration8.js +6 -43
- package/cypress/e2e/migration/migration9.js +6 -43
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/fixtures/theme/ilc.json +6 -1
- package/cypress/fixtures/uploadResponseFileType.js +5 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +13 -13
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +24 -6
- package/cypress/pages/components/draggableOptionContainer.js +1 -0
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +42 -4
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +149 -5
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +954 -77
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +2 -1
- package/cypress/pages/contentBlocksPage.js +515 -0
- package/cypress/pages/drawingResponsePage.js +2 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +359 -3
- package/cypress/pages/fillInTheGapsDropdownPage.js +21 -1
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +5 -57
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +3 -24
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -435
- package/cypress/pages/fillInTheGapsTextPage.js +9 -2
- package/cypress/pages/graphingPage.js +484 -0
- package/cypress/pages/index.js +4 -1
- package/cypress/pages/simpleCalculatorPage.js +310 -0
- package/cypress/pages/uploadResponsePage.js +260 -92
- package/cypress/support/commands.js +33 -1
- package/package.json +2 -2
- package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +0 -242
- package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +0 -99
- package/cypress/e2e/ILC/Passage/passageEditTab.js +0 -241
- package/cypress/e2e/ILC/Passage/passageHeaderSection.js +0 -73
- package/cypress/e2e/ILC/Passage/passagePreviewTab.js +0 -246
@@ -1,6 +1,5 @@
|
|
1
1
|
import { fillInTheGapsOverImageTextPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
3
|
const css = Cypress.env('css');
|
5
4
|
|
6
5
|
describe('Create item page - Fill in the gaps over image with text: Set limit section', () => {
|
@@ -16,6 +15,10 @@ describe('Create item page - Fill in the gaps over image with text: Set limit se
|
|
16
15
|
});
|
17
16
|
|
18
17
|
fillInTheGapsOverImageTextPage.tests.verifySetLimitSectionContents();
|
18
|
+
|
19
|
+
fillInTheGapsOverImageTextPage.tests.verifySetLimitSectionErrorConditionsForMinAndMaxCharacterInputFields();
|
20
|
+
|
21
|
+
fillInTheGapsOverImageTextPage.tests.verifySetLimitSectionForNoneOption();
|
19
22
|
});
|
20
23
|
|
21
24
|
// TODO after https://redmine.zeuslearning.com/issues/556897 gets resolved
|
@@ -29,7 +32,23 @@ describe('Create item page - Fill in the gaps over image with text: Set limit se
|
|
29
32
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
|
30
33
|
});
|
31
34
|
|
32
|
-
|
35
|
+
it('When maximum character limit input field value is 50 then maximum character limit should be 50 in the specify correct answer section', () => {
|
36
|
+
fillInTheGapsOverImageTextPage.steps.verifyMaximumCharacterLimitInputField(50);
|
37
|
+
fillInTheGapsOverImageTextPage.steps.verifyMaximumCharacterLimit(0, 50);
|
38
|
+
});
|
39
|
+
|
40
|
+
it('When the user updates the maximum character limit input field value then maximum character limit should update in the specify correct answer section', () => {
|
41
|
+
fillInTheGapsOverImageTextPage.steps.setMaximumLimit(10);
|
42
|
+
fillInTheGapsOverImageTextPage.steps.verifyMaximumCharacterLimit(0, 10);
|
43
|
+
});
|
44
|
+
|
45
|
+
it('User should able to enter characters in the answer input field', () => {
|
46
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }]);
|
47
|
+
});
|
48
|
+
|
49
|
+
fillInTheGapsOverImageTextPage.tests.verifyMaximumCharacterLimitWarningConditionsSpecifyCorrectAnswerSection();
|
50
|
+
|
51
|
+
fillInTheGapsOverImageTextPage.tests.verifyMinimumCharacterLimitWarningConditionsSpecifyCorrectAnswerSection();
|
33
52
|
});
|
34
53
|
|
35
54
|
describe('fill in the gaps over image with text: Set limit section : Preview tab functionality', () => {
|
@@ -43,6 +62,23 @@ describe('Create item page - Fill in the gaps over image with text: Set limit se
|
|
43
62
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
44
63
|
});
|
45
64
|
|
46
|
-
|
65
|
+
it('When maximum character limit input field value is 50 then maximum character limit should be 50 in the preview tab', () => {
|
66
|
+
fillInTheGapsOverImageTextPage.steps.verifyMaximumCharacterLimitInPreviewTab(0, 50);
|
67
|
+
});
|
68
|
+
|
69
|
+
it('When the user updates the maximum character limit input field value then maximum character limit should update in the preview tab', () => {
|
70
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
71
|
+
fillInTheGapsOverImageTextPage.steps.setMaximumLimit(10);
|
72
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
73
|
+
fillInTheGapsOverImageTextPage.steps.verifyMaximumCharacterLimitInPreviewTab(0, 10);
|
74
|
+
});
|
75
|
+
|
76
|
+
it('User should able to enter characters in the response field', () => {
|
77
|
+
fillInTheGapsOverImageTextPage.steps.addTextInAnswerInputFieldsPreviewTab(0, 'Flower');
|
78
|
+
});
|
79
|
+
|
80
|
+
fillInTheGapsOverImageTextPage.tests.verifyMaximumCharacterLimitWarningConditionsPreviewTab();
|
81
|
+
|
82
|
+
fillInTheGapsOverImageTextPage.tests.verifyMinimumCharacterLimitWarningConditionsPreviewTab();
|
47
83
|
});
|
48
84
|
});
|
@@ -20,14 +20,7 @@ describe('Create item page - Fill in the gaps over image - text - Special charac
|
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
});
|
22
22
|
|
23
|
-
|
24
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.specialCharactersLabel(), 'visible');
|
25
|
-
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.specialCharactersLabel(), 'Special characters');
|
26
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.enableSpecialCharactersLabel(), 'visible');
|
27
|
-
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.enableSpecialCharactersLabel(), 'Enable special characters');
|
28
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.enableSpecialCharactersCheckbox(), 'exist');
|
29
|
-
fillInTheGapsOverImageTextPage.steps.verifyEnableSpecialCharactersCheckboxUnchecked();
|
30
|
-
});
|
23
|
+
fillInTheGapsOverImageTextPage.tests.verifyEnableSpecialCharactersCheckboxDefaultState();
|
31
24
|
|
32
25
|
it('When the user checks the \'Enable special characters\' checkbox, \'Group by language\' and \'Show only custom special characters\' labels and radio buttons should be displayed. By default \'Group by language\' radio button should be checked', () => {
|
33
26
|
fillInTheGapsOverImageTextPage.steps.checkEnableSpecialCharactersCheckbox();
|
@@ -15,6 +15,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
15
15
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
16
16
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
17
17
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
18
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
18
19
|
});
|
19
20
|
|
20
21
|
fillInTheGapsOverImageTextPage.tests.verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents('fill in the gaps over image with text');
|
@@ -22,7 +23,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
22
23
|
fillInTheGapsOverImageTextPage.tests.verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Correct');
|
23
24
|
});
|
24
25
|
|
25
|
-
describe('Specify correct answer section - \'
|
26
|
+
describe('Specify correct answer section - \'Alternative\' accordion', () => {
|
26
27
|
abortEarlySetup();
|
27
28
|
before(() => {
|
28
29
|
cy.log('Navigating to fill in the gaps over image with text question type');
|
@@ -31,6 +32,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
31
32
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
32
33
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
33
34
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
35
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
34
36
|
});
|
35
37
|
|
36
38
|
fillInTheGapsOverImageTextPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('fill in the gaps over image text');
|
@@ -11,55 +11,16 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
11
11
|
describe('Student view settings : Spell check - Edit tab functionality', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
cy.log('Navigating to drawing response question type');
|
15
14
|
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
16
15
|
cy.barsPreLoaderWait();
|
17
16
|
});
|
18
17
|
|
19
|
-
|
20
|
-
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.spellCheckLabel(), 'Spell check');
|
21
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.spellCheckLabel(), 'visible');
|
22
|
-
fillInTheGapsOverImageTextPage.steps.verifySpellCheckCheckboxUnchecked();
|
23
|
-
});
|
24
|
-
|
25
|
-
it('CSS of \'Spell check\' section - unchecked state', { tags: 'css' }, () => {
|
26
|
-
utilities.verifyCSS(fillInTheGapsOverImageTextPage.spellCheckLabel(), {
|
27
|
-
'color': css.color.labelText,
|
28
|
-
'font-size': css.fontSize.normal,
|
29
|
-
'font-weight': css.fontWeight.regular
|
30
|
-
});
|
31
|
-
utilities.verifyCSS(fillInTheGapsOverImageTextPage.spellCheckCheckbox().parent().find('svg'), {
|
32
|
-
'fill': css.color.uncheckedCheckbox
|
33
|
-
});
|
34
|
-
});
|
35
|
-
|
36
|
-
it('Accessibility of \'Spell check\' section - unchecked state', { tags: 'a11y' }, () => {
|
37
|
-
cy.checkAccessibility(fillInTheGapsOverImageTextPage.spellCheckLabel().parents('.student-view-settings-container'));
|
38
|
-
});
|
39
|
-
|
40
|
-
it('User should be able to check \'Spell check\' checkbox', () => {
|
41
|
-
fillInTheGapsOverImageTextPage.steps.checkSpellCheckCheckbox();
|
42
|
-
});
|
43
|
-
|
44
|
-
it('CSS of \'Spell check\' section - checked state', { tags: 'css' }, () => {
|
45
|
-
utilities.verifyCSS(fillInTheGapsOverImageTextPage.spellCheckCheckbox().parent('.icon-checkbox-selected').find('.checkbox-icon-border-rect'), {
|
46
|
-
'fill': css.color.activeButtons
|
47
|
-
});
|
48
|
-
});
|
49
|
-
|
50
|
-
it('Accessibility of \'Spell check\' section - checked state', { tags: 'a11y' }, () => {
|
51
|
-
cy.checkAccessibility(fillInTheGapsOverImageTextPage.spellCheckLabel());
|
52
|
-
});
|
53
|
-
|
54
|
-
it('User should be able to uncheck \'Spell check\' checkbox', () => {
|
55
|
-
fillInTheGapsOverImageTextPage.steps.uncheckSpellCheckCheckbox();
|
56
|
-
});
|
18
|
+
fillInTheGapsOverImageTextPage.tests.verifySpellCheckEditTabContents();
|
57
19
|
});
|
58
20
|
|
59
21
|
describe('Student view settings : Spell check - Preview tab functionality', () => {
|
60
22
|
abortEarlySetup();
|
61
23
|
before(() => {
|
62
|
-
cy.log('Navigating to drawing response question type');
|
63
24
|
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
64
25
|
cy.barsPreLoaderWait();
|
65
26
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
@@ -68,16 +29,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
68
29
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
69
30
|
});
|
70
31
|
|
71
|
-
|
72
|
-
fillInTheGapsOverImageTextPage.steps.verifySpellCheckOfResponseFieldPreviewTabDisabled(0);
|
73
|
-
});
|
74
|
-
|
75
|
-
it('When the \'Spell check\' functionality is enabled, the response field should have \'spellcheck\' attribute set as \'true\' in the preview tab', () => {
|
76
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
77
|
-
fillInTheGapsOverImageTextPage.steps.checkSpellCheckCheckbox();
|
78
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
79
|
-
fillInTheGapsOverImageTextPage.steps.verifySpellCheckOfResponseFieldPreviewTabEnabled(0);
|
80
|
-
});
|
32
|
+
fillInTheGapsOverImageTextPage.tests.verifySpellCheckFunctionalityPreviewTab();
|
81
33
|
});
|
82
34
|
|
83
35
|
describe('Allow students to check answer: Edit tab', () => {
|
@@ -0,0 +1,325 @@
|
|
1
|
+
import { fillInTheGapsTextPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Fill In the gaps with text \'Correct response condition\' checkboxes', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('\'Case sensitive\' checkbox', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
15
|
+
fillInTheGapsTextPage.steps.allotPoints(10);
|
16
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
17
|
+
fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
18
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
19
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
22
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'floWer is diSplayed' }]);
|
23
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
24
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
25
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
26
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
27
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
30
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
31
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Case sensitive');
|
32
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
33
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayed' }]);
|
34
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
35
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
36
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
37
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
38
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
41
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
42
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
43
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
44
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
45
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
46
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
47
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
50
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
51
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
52
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
53
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayed in this image' }]);
|
54
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
55
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
56
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
57
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
58
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
61
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
62
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'This image has Flower' }]);
|
63
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
64
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
65
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
66
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
67
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
70
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
71
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
72
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
73
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
74
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
75
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
76
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
79
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
80
|
+
fillInTheGapsTextPage.steps.uncheckConditionalCheckbox('Validate if answer is included in the response');
|
81
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore extra spaces');
|
82
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
83
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' flower is Displayed ' }]);
|
84
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
85
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
86
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
87
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
88
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
91
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
92
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flo wer is displayed' }]);
|
93
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
94
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
95
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
96
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
97
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
100
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
101
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
102
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
103
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
104
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
105
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
106
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
109
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
110
|
+
fillInTheGapsTextPage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
|
111
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
112
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
113
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayes' }]);
|
114
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
115
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
116
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
117
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
118
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
121
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
122
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flowrr is displayes' }]);
|
123
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
124
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
125
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
126
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
127
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
130
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
131
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayes' }]);
|
132
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
133
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
134
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
135
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
136
|
+
});
|
137
|
+
});
|
138
|
+
|
139
|
+
describe('\'Validate if answer is included in the response\' checkbox', () => {
|
140
|
+
abortEarlySetup();
|
141
|
+
before(() => {
|
142
|
+
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
143
|
+
cy.barsPreLoaderWait();
|
144
|
+
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
145
|
+
fillInTheGapsTextPage.steps.allotPoints(10);
|
146
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
147
|
+
fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
148
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
149
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
152
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
153
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
154
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
155
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
156
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
157
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
160
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
161
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
162
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
163
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Image contains fruit' }]);
|
164
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
165
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
166
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
167
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
168
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
171
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
172
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'This image contains flower' }]);
|
173
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
174
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
175
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
176
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
177
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
180
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
181
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
182
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
183
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
184
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
185
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
186
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
189
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
190
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
191
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
192
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
193
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
194
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
195
|
+
});
|
196
|
+
});
|
197
|
+
|
198
|
+
describe('\'Ignore extra spaces\' checkbox', () => {
|
199
|
+
abortEarlySetup();
|
200
|
+
before(() => {
|
201
|
+
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
202
|
+
cy.barsPreLoaderWait();
|
203
|
+
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
204
|
+
fillInTheGapsTextPage.steps.allotPoints(10);
|
205
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
206
|
+
fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
207
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
208
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
211
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
212
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
213
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
214
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
215
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
216
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
219
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
220
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore extra spaces');
|
221
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
222
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is dis played' }]);
|
223
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
224
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
225
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
226
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
227
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
230
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
231
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
232
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
233
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
234
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
235
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
236
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
239
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
240
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
241
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
242
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
243
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
244
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
245
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
248
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
249
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
250
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
251
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flo wer is displayes' }]);
|
252
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
253
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
254
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
255
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
256
|
+
});
|
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
259
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
260
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Fkower is dispkayed ' }]);
|
261
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
262
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
263
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
264
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
265
|
+
});
|
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
268
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
269
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayes ' }]);
|
270
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
271
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
272
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
273
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
274
|
+
});
|
275
|
+
});
|
276
|
+
|
277
|
+
describe('\'Ignore single letter mistake\' checkbox', () => {
|
278
|
+
abortEarlySetup();
|
279
|
+
before(() => {
|
280
|
+
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
281
|
+
cy.barsPreLoaderWait();
|
282
|
+
fillInTheGapsTextPage.steps.deleteAResponseArea(0);
|
283
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
284
|
+
fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
285
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
286
|
+
});
|
287
|
+
|
288
|
+
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
289
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayes' }]);
|
290
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
291
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
292
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
293
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
294
|
+
});
|
295
|
+
|
296
|
+
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 clicks on \'Check answer\' button, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
297
|
+
fillInTheGapsTextPage.steps.switchToEditTab();
|
298
|
+
fillInTheGapsTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
299
|
+
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
300
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Floeer is displayes' }]);
|
301
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(0, 10);
|
302
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
303
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
304
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
305
|
+
});
|
306
|
+
|
307
|
+
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
308
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
309
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Floeer is displayed' }]);
|
310
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
311
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
312
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
313
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
314
|
+
});
|
315
|
+
|
316
|
+
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 clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
317
|
+
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
318
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
319
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(10, 10);
|
320
|
+
fillInTheGapsTextPage.steps.checkAnswer();
|
321
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
322
|
+
fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
323
|
+
});
|
324
|
+
});
|
325
|
+
});
|