itemengine-cypress-automation 1.0.278 → 1.0.280-RepoUpdate13thJan-133bc9f.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +7 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +10 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +11 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/EditItem/editItem.ts +133 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +214 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +228 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +242 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +237 -0
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +239 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +212 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +366 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +306 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +243 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +242 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +289 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +284 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +238 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +279 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +641 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +278 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +228 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +234 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +237 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +134 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +138 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +263 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +166 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +193 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +17 -0
- package/cypress/pages/components/equationEditorFlyout.js +1 -1
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +5 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +40 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/createItemPage.js +38 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +45 -3
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +35 -2
- package/cypress/pages/listOrderingPage.js +11 -11
- package/cypress/pages/matchingPage.js +31 -4
- package/cypress/pages/multipleSelectionPage.js +17 -2
- package/cypress/pages/readingRulerPage.js +5 -3
- package/cypress/pages/singleSelectionPage.js +3 -0
- package/cypress/pages/textEntryMathPage.js +19 -5
- package/package.json +1 -1
@@ -0,0 +1,133 @@
|
|
1
|
+
import { multipleSelectionPage, readingRulerPage, singleSelectionPage } from '../../../pages'
|
2
|
+
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
3
|
+
|
4
|
+
describe('Edit Question and edit item', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Edit question', () => {
|
10
|
+
before(() => {
|
11
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
12
|
+
cy.barsPreLoaderWait();
|
13
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
14
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
15
|
+
multipleSelectionPage.steps.allotPoints(20);
|
16
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
17
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
18
|
+
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
19
|
+
});
|
20
|
+
|
21
|
+
it('When user edits the question instructions, then the changes should be saved correctly', () => {
|
22
|
+
multipleSelectionPage.steps.editItem(1);
|
23
|
+
multipleSelectionPage.steps.clearQuestionInstructionsInputField();
|
24
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
25
|
+
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
26
|
+
multipleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Edit question instructions');
|
27
|
+
});
|
28
|
+
|
29
|
+
it('When user edits the options, then the changes should be saved correctly', () => {
|
30
|
+
multipleSelectionPage.steps.editItem(1);
|
31
|
+
multipleSelectionPage.steps.editOptionInputField(0, 'Edit option input field');
|
32
|
+
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
33
|
+
multipleSelectionPage.steps.verifyOptionInputFieldText(0, 'Edit option input field');
|
34
|
+
options.slice(1).forEach((option, index) => {
|
35
|
+
multipleSelectionPage.steps.verifyOptionInputFieldText(index + 1, option);
|
36
|
+
});
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When user edits the points, then the changes should be saved correctly', () => {
|
40
|
+
multipleSelectionPage.steps.editItem(1);
|
41
|
+
multipleSelectionPage.steps.allotPoints(10);
|
42
|
+
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
43
|
+
multipleSelectionPage.steps.verifyPointsValue('10');
|
44
|
+
});
|
45
|
+
|
46
|
+
it('When user edits the correct answers, then the changes should be saved correctly', () => {
|
47
|
+
multipleSelectionPage.steps.editItem(1);
|
48
|
+
multipleSelectionPage.steps.uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
49
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(2);
|
50
|
+
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
51
|
+
multipleSelectionPage.steps.switchToPreviewTab();
|
52
|
+
multipleSelectionPage.steps.switchToGradingView();
|
53
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
|
54
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
55
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
|
56
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
57
|
+
});
|
58
|
+
|
59
|
+
it('User should be able to add a new question upon saving an item', () => {
|
60
|
+
multipleSelectionPage.steps.switchToEditTab();
|
61
|
+
multipleSelectionPage.steps.clickOnAddQuestion();
|
62
|
+
multipleSelectionPage.steps.selectQuestionType('single selection');
|
63
|
+
multipleSelectionPage.steps.verifyCreateQuestionPageQuestionTypeHeader('Single selection');
|
64
|
+
});
|
65
|
+
|
66
|
+
it('When user adds all the necessary details and clicks on save question, then the question should be saved successfully', () => {
|
67
|
+
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('This is a newly added question');
|
68
|
+
singleSelectionPage.steps.allotPoints(20);
|
69
|
+
singleSelectionPage.steps.addInputToOptionsInputField(options);
|
70
|
+
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
|
71
|
+
singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
72
|
+
});
|
73
|
+
|
74
|
+
it('The saved questions should be displayed in the list of questions', () => {
|
75
|
+
singleSelectionPage.steps.verifyQuestionTitle(0, 'Multiple selection');
|
76
|
+
singleSelectionPage.steps.verifyQuestionTitle(1, 'Single selection');
|
77
|
+
});
|
78
|
+
});
|
79
|
+
|
80
|
+
describe('Edit resource', () => {
|
81
|
+
before(() => {
|
82
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
83
|
+
readingRulerPage.steps.clickOnSaveQuestionButton();
|
84
|
+
});
|
85
|
+
|
86
|
+
it('When user edits the resource, then the changes should be saved correctly', () => {
|
87
|
+
readingRulerPage.steps.editItem(0);
|
88
|
+
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
89
|
+
readingRulerPage.steps.selectColorBlock(1);
|
90
|
+
readingRulerPage.steps.addInputToDefaultNumberOfLinesInputField(2);
|
91
|
+
readingRulerPage.steps.addInputToOpacityInputField(50);
|
92
|
+
readingRulerPage.steps.clickOnSaveQuestionButton();
|
93
|
+
});
|
94
|
+
|
95
|
+
it('When user edits the resource, then the changes should be saved correctly', () => {
|
96
|
+
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
97
|
+
readingRulerPage.steps.verifyReadingRulerVisibilityButtonLabelPreviewTab('Hide');
|
98
|
+
readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(1);
|
99
|
+
readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab(0.5);
|
100
|
+
readingRulerPage.steps.verifySizeOfReadingRulerInPreviewTab('Line focus', 2);
|
101
|
+
});
|
102
|
+
});
|
103
|
+
|
104
|
+
describe('Single selection and Reading ruler - Edit item', () => {
|
105
|
+
before(() => {
|
106
|
+
singleSelectionPage.steps.navigateToCreateQuestion('single selection');
|
107
|
+
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
108
|
+
singleSelectionPage.steps.addInputToOptionsInputField(options);
|
109
|
+
singleSelectionPage.steps.allotPoints(20);
|
110
|
+
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
|
111
|
+
singleSelectionPage.steps.clickOnSaveQuestionButton();
|
112
|
+
readingRulerPage.steps.clickOnAddResource();
|
113
|
+
readingRulerPage.steps.selectResourceType('reading ruler');
|
114
|
+
readingRulerPage.steps.clickOnSaveQuestionButton();
|
115
|
+
});
|
116
|
+
|
117
|
+
it('The user should be able to edit the item', () => {
|
118
|
+
singleSelectionPage.steps.editItem(0);
|
119
|
+
singleSelectionPage.steps.clearQuestionInstructionsInputField();
|
120
|
+
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
121
|
+
singleSelectionPage.steps.clickOnSaveQuestionButton();
|
122
|
+
singleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Edit question instructions');
|
123
|
+
});
|
124
|
+
|
125
|
+
it('User should be able to edit the resource', () => {
|
126
|
+
singleSelectionPage.steps.editItem(2);
|
127
|
+
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
128
|
+
readingRulerPage.steps.clickOnSaveQuestionButton();
|
129
|
+
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
130
|
+
readingRulerPage.steps.verifyReadingRulerVisibilityButtonLabelPreviewTab('Hide');
|
131
|
+
});
|
132
|
+
});
|
133
|
+
});
|
@@ -54,7 +54,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
54
54
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Branch': 2 });
|
55
55
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
56
56
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
57
|
-
fillInTheGapsDragAndDropPage.steps.
|
57
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
58
58
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
59
59
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
60
60
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
@@ -62,7 +62,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
62
62
|
/*cy.log('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options and clicks on \'Check answer\' button, then incorrect icon should be displayed besides the dropzone incorrect response and correct icon should be displayed beside the correct response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
63
63
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
64
64
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
65
|
-
fillInTheGapsDragAndDropPage.steps.
|
65
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
66
66
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
67
67
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
68
68
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -73,7 +73,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
73
73
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 1, 'Stem': 2 })
|
74
74
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
75
75
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
76
|
-
fillInTheGapsDragAndDropPage.steps.
|
76
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
77
77
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
78
78
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -81,7 +81,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
81
81
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
82
82
|
/*cy.log('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete and clicks on \'Check answer\' button, then no icon should be displayed besides the incomplete and correct icon should be displayed beside the correct response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
83
83
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
84
|
-
fillInTheGapsDragAndDropPage.steps.
|
84
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
85
85
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
87
87
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -22,7 +22,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
22
22
|
fillInTheGapsDragAndDropPage.steps.addAlternativeAnswerAccordion(1);
|
23
23
|
fillInTheGapsDragAndDropPage.steps.allotPoints(20);
|
24
24
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Stem': 1, 'Seed': 2 });
|
25
|
-
|
25
|
+
//fillInTheGapsDragAndDropPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
26
26
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
27
27
|
});
|
28
28
|
|
@@ -79,7 +79,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
79
79
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
80
80
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
81
81
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
82
|
-
fillInTheGapsDragAndDropPage.steps.
|
82
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
85
85
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -87,7 +87,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
87
87
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
88
88
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
89
89
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
90
|
-
fillInTheGapsDragAndDropPage.steps.
|
90
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
93
93
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
99
99
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
100
100
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
101
101
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
102
|
-
fillInTheGapsDragAndDropPage.steps.
|
102
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
105
105
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -107,7 +107,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
107
107
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
108
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
109
109
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
110
|
-
fillInTheGapsDragAndDropPage.steps.
|
110
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
113
113
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -121,7 +121,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
121
121
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
123
123
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
124
|
-
fillInTheGapsDragAndDropPage.steps.
|
124
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
127
127
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -129,7 +129,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
129
129
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
131
131
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
132
|
-
fillInTheGapsDragAndDropPage.steps.
|
132
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
134
134
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
135
135
|
});
|
@@ -160,16 +160,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
160
160
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
161
161
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
162
162
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
164
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
164
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
167
167
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
168
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
169
169
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
170
170
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
172
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
172
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
174
174
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
175
175
|
});
|
@@ -180,16 +180,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
180
180
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
181
181
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
182
182
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
184
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
184
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
187
187
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
188
188
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
189
189
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
190
190
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
192
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
192
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
194
194
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
195
195
|
});
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
78
78
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
|
-
fillInTheGapsDragAndDropPage.steps.
|
81
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -86,7 +86,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
87
87
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
88
88
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.
|
89
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
90
90
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
98
98
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
99
99
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
100
100
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
101
|
-
fillInTheGapsDragAndDropPage.steps.
|
101
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
102
102
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -106,7 +106,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
106
106
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
107
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
108
108
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
109
|
-
fillInTheGapsDragAndDropPage.steps.
|
109
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
110
110
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
120
120
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
121
121
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
123
|
-
fillInTheGapsDragAndDropPage.steps.
|
123
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
124
124
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -128,7 +128,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
128
128
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
129
129
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
131
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
132
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
134
134
|
});
|
@@ -159,16 +159,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
159
159
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
160
160
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
161
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
162
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
162
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
164
164
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
168
168
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
169
169
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
170
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
170
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
174
174
|
});
|
@@ -179,16 +179,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
179
179
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
180
180
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
181
181
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
182
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
182
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
184
184
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
188
188
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
189
189
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
190
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
190
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
192
192
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
194
194
|
});
|
@@ -143,7 +143,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
143
143
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
144
144
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
145
145
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
146
|
-
fillInTheGapsDragAndDropPage.steps.
|
146
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
147
147
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
148
148
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
149
149
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -151,7 +151,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
151
151
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
152
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
153
153
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
154
|
-
fillInTheGapsDragAndDropPage.steps.
|
154
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
155
155
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
156
156
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
157
157
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -163,7 +163,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
163
163
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
164
164
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
165
165
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
166
|
-
fillInTheGapsDragAndDropPage.steps.
|
166
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
167
167
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
168
168
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
169
169
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -171,7 +171,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
171
171
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
172
172
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
173
173
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
174
|
-
fillInTheGapsDragAndDropPage.steps.
|
174
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
175
175
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
176
176
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
177
177
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -185,7 +185,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
185
185
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
187
187
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
188
|
-
fillInTheGapsDragAndDropPage.steps.
|
188
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
189
189
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
190
190
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
191
191
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -193,7 +193,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
193
193
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
194
194
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
195
195
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
196
|
-
fillInTheGapsDragAndDropPage.steps.
|
196
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
197
197
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
198
198
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
199
199
|
});
|
@@ -224,16 +224,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
224
224
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
225
225
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
226
226
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
227
|
-
fillInTheGapsDragAndDropPage.steps.
|
228
|
-
fillInTheGapsDragAndDropPage.steps.
|
227
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
228
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
229
229
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
230
230
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
231
231
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
232
232
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
233
233
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
234
234
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
235
|
-
fillInTheGapsDragAndDropPage.steps.
|
236
|
-
fillInTheGapsDragAndDropPage.steps.
|
235
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
236
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
237
237
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
238
238
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
239
239
|
});
|
@@ -244,16 +244,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
244
244
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
245
245
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
246
246
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
247
|
-
fillInTheGapsDragAndDropPage.steps.
|
248
|
-
fillInTheGapsDragAndDropPage.steps.
|
247
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
248
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
249
249
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
250
250
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
251
251
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
252
252
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
253
253
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
254
254
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
255
|
-
fillInTheGapsDragAndDropPage.steps.
|
256
|
-
fillInTheGapsDragAndDropPage.steps.
|
255
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
256
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
257
257
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
258
258
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
259
259
|
});
|