itemengine-cypress-automation 1.0.158-migrationScripts-2432c9a.0 → 1.0.158
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +49 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -8
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +7 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +11 -8
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +5 -5
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +10 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -4
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +4 -4
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +1 -0
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +53 -0
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +302 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettingsBasic.js +146 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +83 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +18 -22
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettingsBasic.js +146 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +83 -0
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +6 -0
- package/cypress/fixtures/evaluationMethodsAndCustomSettings.js +1 -1
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +6 -0
- package/cypress/pages/components/commonComponents.js +2 -1
- package/cypress/pages/components/createCustomCategoryFlyout.js +0 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -4
- package/cypress/pages/components/gridQuestionCommonComponent.js +29 -1
- package/cypress/pages/components/imageCanvasComponent.js +3 -3
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +3 -4
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +10 -0
- package/cypress/pages/graphingPage.js +4 -4
- package/cypress/pages/index.js +0 -3
- package/cypress/pages/matchingPage.js +166 -10
- package/cypress/pages/multipleSelectionGridPage.js +10 -2
- package/cypress/pages/rulerPage.js +12 -12
- package/cypress/pages/singleSelectionGridPage.js +10 -2
- package/cypress/pages/textEntryMathPage.js +2 -1
- package/package.json +2 -2
- package/cypress/pages/listMatchingPage.js +0 -1514
- package/cypress/pages/listMatchingScoring.js +0 -2547
- package/cypress/pages/passagePage.js +0 -436
@@ -106,7 +106,7 @@ describe('Create Item page - Audio response: Customize playback controls', () =>
|
|
106
106
|
});
|
107
107
|
});
|
108
108
|
|
109
|
-
describe('Controls for playback- Play', () => {
|
109
|
+
describe('Controls for playback - Play', () => {
|
110
110
|
abortEarlySetup();
|
111
111
|
before(() => {
|
112
112
|
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
@@ -13,6 +13,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
13
13
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
14
14
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('4');
|
15
15
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
16
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
16
17
|
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
17
18
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
18
19
|
});
|
@@ -34,6 +35,12 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
34
35
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
35
36
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
36
37
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
38
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
39
|
+
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')
|
40
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
41
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
42
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
43
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
37
44
|
});
|
38
45
|
|
39
46
|
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -47,6 +54,15 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
47
54
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
48
55
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
49
56
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
57
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
58
|
+
cy.log('When the user has attempted the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response,, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
59
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
60
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
61
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
62
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
63
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
64
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
65
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
50
66
|
});
|
51
67
|
|
52
68
|
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -61,6 +77,16 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
61
77
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
62
78
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
63
79
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
80
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
81
|
+
cy.log('When the user has attempted the question partially correct with all the cells correctly attempted but one cell incomplete 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')
|
82
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
83
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
84
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
85
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
86
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
87
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
88
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
89
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
64
90
|
});
|
65
91
|
|
66
92
|
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed', () => {
|
@@ -77,9 +103,20 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
77
103
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
78
104
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
79
105
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
106
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
|
+
cy.log('When the user has attempted the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
108
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
109
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
110
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
111
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
112
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
113
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
114
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
115
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
116
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
117
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
80
118
|
});
|
81
119
|
|
82
|
-
//Need to check once https://redmine.zeuslearning.com/issues/558925 is resolved
|
83
120
|
it('When the user attempts question with the common option from another group and all other correct options then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed', () => {
|
84
121
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
85
122
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromNthGroupInDropzonePreviewTab(3, { optionText: 'Bat', dropzoneIndex: 0 })
|
@@ -123,5 +160,16 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
123
160
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
124
161
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
125
162
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
163
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
164
|
+
cy.log('When the user has attempted the question correctly 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')
|
165
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
166
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
167
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
168
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
169
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
170
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
171
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
172
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
173
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
126
174
|
});
|
127
175
|
});
|
@@ -214,7 +214,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
214
214
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
215
215
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
216
216
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
217
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['
|
217
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
218
218
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
219
219
|
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')
|
220
220
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -48,14 +48,7 @@ describe('Create Item Page: drag and drop into categories: Preview tab', () => {
|
|
48
48
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.optionsContainerPreviewTab(), 'visible');
|
49
49
|
});
|
50
50
|
|
51
|
-
|
52
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 4, 'Whale': 4 });
|
53
|
-
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
54
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.incorrectOptionWrapper(), 'notExist');
|
55
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.correctOptionWrapper(), 'notExist');
|
56
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.correctIncorrectStatusMessageText(), 'notExist');
|
57
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
58
|
-
});
|
51
|
+
dragAndDropIntoCategoriesPage.tests.verifyGradingViewRadioButtonDisabledStateForManuallyScored();
|
59
52
|
});
|
60
53
|
|
61
54
|
describe('Question Preview: Non scored', () => {
|
@@ -120,20 +120,20 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
120
120
|
};
|
121
121
|
});
|
122
122
|
|
123
|
-
it('When the user unchecks the \'Set first row cells as heading\' checkbox and adds a column, then the added column should have
|
123
|
+
it('When the user unchecks the \'Set first row cells as heading\' checkbox and adds a column, then the newly added column should have all cells set as \'Dropzone\'', () => {
|
124
124
|
cy.log('Pre-step: Decreasing number of rows and columns to 5');
|
125
125
|
dragAndDropIntoCategoriesPage.steps.addInputToRowInputStepper(5);
|
126
126
|
dragAndDropIntoCategoriesPage.steps.addInputToColumnInputStepper(5);
|
127
127
|
dragAndDropIntoCategoriesPage.steps.uncheckSetFirstRowCellsAsHeadingCheckbox();
|
128
128
|
dragAndDropIntoCategoriesPage.steps.increaseColumnInputStepperCount(1);
|
129
129
|
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(4, 'Heading');
|
130
|
-
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(5, '
|
130
|
+
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(5, 'Dropzone');
|
131
131
|
for (let cellIndex = 11; cellIndex < 30; cellIndex += 6) {
|
132
132
|
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(cellIndex, 'Dropzone');
|
133
133
|
};
|
134
134
|
});
|
135
135
|
|
136
|
-
it('When the user unchecks the \'Set first column cells as heading\' checkbox and adds a row, then the added row should have all
|
136
|
+
it('When the user unchecks the \'Set first column cells as heading\' checkbox and adds a row, then the newly added row should have all cells set as \'Dropzone\'', () => {
|
137
137
|
dragAndDropIntoCategoriesPage.steps.uncheckSetFirstColumnCellsAsHeadingCheckbox();
|
138
138
|
dragAndDropIntoCategoriesPage.steps.increaseRowInputStepperCount(1);
|
139
139
|
for (let cellIndex = 30; cellIndex < 36; cellIndex++) {
|
@@ -412,12 +412,12 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
412
412
|
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(9, 'Heading');
|
413
413
|
});
|
414
414
|
|
415
|
-
it('When first column cells are set as heading and user unchecks the \'Set first column cells as heading\' checkbox, then the
|
415
|
+
it('When first column cells are set as heading and user unchecks the \'Set first column cells as heading\' checkbox, then all the cells of first column should remain as \'Heading\'', () => {
|
416
416
|
dragAndDropIntoCategoriesPage.steps.uncheckSetFirstColumnCellsAsHeadingCheckbox();
|
417
417
|
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(0, 'Heading');
|
418
|
-
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(3, '
|
419
|
-
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(6, '
|
420
|
-
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(9, '
|
418
|
+
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(3, 'Heading');
|
419
|
+
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(6, 'Heading');
|
420
|
+
dragAndDropIntoCategoriesPage.steps.verifySpecifyColumnsAndRowsSectionCellProperty(9, 'Heading');
|
421
421
|
});
|
422
422
|
|
423
423
|
//TODO - Modify when https://redmine.zeuslearning.com/issues/556747 is resolved
|
@@ -62,7 +62,7 @@ describe('Create item page - Drag and drop into categories: Minimum scoring, Pen
|
|
62
62
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.penaltyPointsForEachIncorrectOptionOrDropzoneLabel(), {
|
63
63
|
'color': css.color.labels,
|
64
64
|
'font-size': css.fontSize.normal,
|
65
|
-
'font-weight': css.fontWeight.
|
65
|
+
'font-weight': css.fontWeight.regular
|
66
66
|
});
|
67
67
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.penaltyPointsForIncorrectDropzoneInputField(), {
|
68
68
|
'color': css.color.text,
|
@@ -94,10 +94,10 @@ describe('Create item page - Drag and drop into categories: Minimum scoring, Pen
|
|
94
94
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromPenaltyScoringDropdown(penaltyPerCorrectOptionScoringTypeArray[0]);
|
95
95
|
});
|
96
96
|
|
97
|
-
it('When the user selects \'Penalty points for each incorrect option\' from the penalty scoring dropdown, then a penalty points detail section with an input field and \'Penalty points for each incorrect option\' label should be displayed and the input field should be
|
97
|
+
it('When the user selects \'Penalty points for each incorrect option\' from the penalty scoring dropdown, then a penalty points detail section with an input field and \'Penalty points for each incorrect option\' label should be displayed and the input field should be empty', () => {
|
98
98
|
dragAndDropIntoCategoriesPage.steps.expandPenaltyScoringDropdown();
|
99
99
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromPenaltyScoringDropdown(penaltyPerCorrectOptionScoringTypeArray[2]);
|
100
|
-
dragAndDropIntoCategoriesPage.steps.verifyPenaltyPointsForEachIncorrectOption(
|
100
|
+
dragAndDropIntoCategoriesPage.steps.verifyPenaltyPointsForEachIncorrectOption('');
|
101
101
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.penaltyPointsForEachIncorrectOptionOrDropzoneLabel(), 'Penalty points for each incorrect option');
|
102
102
|
});
|
103
103
|
|
@@ -109,7 +109,7 @@ describe('Create item page - Drag and drop into categories: Minimum scoring, Pen
|
|
109
109
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.penaltyPointsForEachIncorrectOptionOrDropzoneLabel(), {
|
110
110
|
'color': css.color.labels,
|
111
111
|
'font-size': css.fontSize.normal,
|
112
|
-
'font-weight': css.fontWeight.
|
112
|
+
'font-weight': css.fontWeight.regular
|
113
113
|
});
|
114
114
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.penaltyPointsForIncorrectOptionInputField(), {
|
115
115
|
'color': css.color.text,
|
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
let animals = [['Bat', 'Platypus', 'Panda', 'Zebra'],
|
4
4
|
['Peacock', 'Falcon', 'Eagle', 'Tiger'],
|
5
5
|
['Parrot', 'Lion', 'Whale', 'Elephant'],
|
6
|
-
['Giraffe', '
|
6
|
+
['Giraffe', 'Bat', 'Ostrich', 'Flying squirrel']
|
7
7
|
];
|
8
8
|
let groupTitles = ['Group A', 'Group B', 'Group C', 'Group D'];
|
9
9
|
|
@@ -22,7 +22,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
22
22
|
});
|
23
23
|
|
24
24
|
views.forEach((view) => {
|
25
|
-
describe(
|
25
|
+
describe(`Primary toolbar options for ${view}`, { tags: 'smoke' }, () => {
|
26
26
|
abortEarlySetup();
|
27
27
|
before(() => {
|
28
28
|
switch (view) {
|
@@ -168,6 +168,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
168
168
|
});
|
169
169
|
|
170
170
|
it('When the user tries to upload an image an image more than 5mb then an error should be displayed \'The following files were rejected *filename* is too large. The maximum file size is 5MB\'', () => {
|
171
|
+
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[0].displayName);
|
171
172
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
172
173
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
173
174
|
drawingResponsePage.steps.verifyImageContainerErrorMessage('20mbFile.png');
|
@@ -235,7 +236,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
235
236
|
});
|
236
237
|
|
237
238
|
it('The \'Spanish\' category accordion should display all its symbols', () => {
|
238
|
-
|
239
|
+
// Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
|
240
|
+
// drawingResponsePage.steps.verifySpecialCharactersPopupCategorySymbols(0, specialCharacters[0].symbols);
|
239
241
|
});
|
240
242
|
|
241
243
|
it('When user clicks on the expanded \'Spanish\' category accordion, then the accordion should be collapsed.', () => {
|
@@ -247,7 +249,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
247
249
|
for (let index = 1; index < specialCharacters.length; index++) {
|
248
250
|
drawingResponsePage.steps.clickOnSpecialCharactersCategoryAccordion(index);
|
249
251
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryAccordionIsExpanded(index);
|
250
|
-
|
252
|
+
//Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
|
253
|
+
// drawingResponsePage.steps.verifySpecialCharactersPopupCategorySymbols(index, specialCharacters[index].symbols);
|
251
254
|
};
|
252
255
|
});
|
253
256
|
|
@@ -257,7 +260,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
257
260
|
});
|
258
261
|
|
259
262
|
it('When user clicks on any category icon, then the category flyout should stay open', () => {
|
260
|
-
drawingResponsePage.steps.clickOnCharacterPopupSymbol(
|
263
|
+
drawingResponsePage.steps.clickOnCharacterPopupSymbol(specialCharacters[0].symbols[0]);
|
261
264
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
262
265
|
});
|
263
266
|
|
@@ -729,7 +732,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
729
732
|
it('User should be able to make changes in the color picker pallette and the changes should be reflected in the selected color box', () => {
|
730
733
|
colorPopupComponent.steps.clickInColorSaturationPalette();
|
731
734
|
drawingResponsePage.steps.verifySelectedColorBlock('rgb(120, 60, 60)');
|
732
|
-
colorPopupComponent.steps.verifySaturationPaletteColor('rgb(
|
735
|
+
colorPopupComponent.steps.verifySaturationPaletteColor('rgb(119, 60, 60)');
|
733
736
|
colorPopupComponent.steps.verifyHuePaletteColor('rgb(255, 0, 0)');
|
734
737
|
});
|
735
738
|
|
@@ -899,7 +902,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
899
902
|
it('User should be able to make changes in the color picker pallette and the changes should be reflected in the selected color box', () => {
|
900
903
|
colorPopupComponent.steps.clickInColorSaturationPalette();
|
901
904
|
drawingResponsePage.steps.verifySelectedColorBlock('rgb(120, 60, 60)');
|
902
|
-
colorPopupComponent.steps.verifySaturationPaletteColor('rgb(
|
905
|
+
colorPopupComponent.steps.verifySaturationPaletteColor('rgb(119, 60, 60)');
|
903
906
|
colorPopupComponent.steps.verifyHuePaletteColor('rgb(255, 0, 0)');
|
904
907
|
});
|
905
908
|
|
@@ -940,10 +943,10 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
940
943
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(0, 224, 255)');
|
941
944
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(6, 255, 172)');
|
942
945
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(2, 'rgb(255, 90, 51)');
|
943
|
-
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(3, 'rgb(
|
946
|
+
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(3, 'rgb(119, 60, 60)');
|
944
947
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(4, 'rgb(255, 255, 255)');
|
945
948
|
drawingResponsePage.steps.verifyNoColorOptionFromSecondaryOptionPopup(4);
|
946
|
-
drawingResponsePage.steps.verifySelectedColorBlock('rgb(
|
949
|
+
drawingResponsePage.steps.verifySelectedColorBlock('rgb(119, 60, 60)');
|
947
950
|
});
|
948
951
|
|
949
952
|
it('CSS of color popup contents', { tags: 'css' }, () => {
|
@@ -165,8 +165,8 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
165
165
|
});
|
166
166
|
|
167
167
|
it('Title of the flyout should be \'Custom Category\'', () => {
|
168
|
-
utilities.verifyInnerText(createCustomCategoryFlyout.
|
169
|
-
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.
|
168
|
+
utilities.verifyInnerText(createCustomCategoryFlyout.dialogBoxTitle(), 'Custom category');
|
169
|
+
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.dialogBoxTitle(), 'visible');
|
170
170
|
});
|
171
171
|
|
172
172
|
it('\'Category Name\' and \'Category Icon\' labels along with input fields should be displayed in the flyout. Their input fields should be blank by default', () => {
|
@@ -233,7 +233,7 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
233
233
|
it('CSS of Custom category flyout', { tags: 'css' }, () => {
|
234
234
|
cy.log('Pre-step: Opening create custom category flyout');
|
235
235
|
createCustomCategoryFlyout.steps.openCreateCustomCategoryFlyout();
|
236
|
-
utilities.verifyCSS(createCustomCategoryFlyout.
|
236
|
+
utilities.verifyCSS(createCustomCategoryFlyout.dialogBoxTitle(), {
|
237
237
|
'color': css.color.flyoutTitle,
|
238
238
|
'font-size': css.fontSize.heading,
|
239
239
|
'font-weight': css.fontWeight.bold
|
@@ -505,8 +505,8 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
505
505
|
it('When user clicks on Edit button under an added Custom category, the Custom category flyout should open', () => {
|
506
506
|
essayResponsePage.steps.editCategoryInEquationEditorSectionEditTab('Custom category with name and icon.');
|
507
507
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
508
|
-
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.
|
509
|
-
utilities.verifyInnerText(createCustomCategoryFlyout.
|
508
|
+
utilities.verifyElementVisibilityState(createCustomCategoryFlyout.dialogBoxTitle(), 'visible');
|
509
|
+
utilities.verifyInnerText(createCustomCategoryFlyout.dialogBoxTitle(), 'Custom category');
|
510
510
|
});
|
511
511
|
|
512
512
|
it('The Category name and Category icon should be prefilled and selected symbols should be displayed', () => {
|
@@ -98,7 +98,8 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
98
98
|
it('\'Cancel\' button should be displayed in the popup and when user clicks on it then the popup should close', () => {
|
99
99
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonCancel(), 'visible');
|
100
100
|
essayResponsePage.steps.clickOnHyperLinkDialogBoxCancelButton();
|
101
|
-
utilities.verifyElementVisibilityState(essayResponsePage.
|
101
|
+
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonOk(), 'notExist');
|
102
|
+
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonCancel(), 'notExist');
|
102
103
|
});
|
103
104
|
});
|
104
105
|
|
@@ -79,7 +79,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Specify correc
|
|
79
79
|
fillInTheGapsDragAndDropPage.steps.allotPoints(5);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.deleteAlternativeAnswerAccordion(1);
|
81
81
|
fillInTheGapsDragAndDropPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
|
82
|
-
fillInTheGapsDragAndDropPage.steps.verifyAlternativeAnswerAccordionLabel(
|
82
|
+
fillInTheGapsDragAndDropPage.steps.verifyAlternativeAnswerAccordionLabel(0);
|
83
83
|
});
|
84
84
|
|
85
85
|
it('When the user deletes an option assigned as correct in the correct accordion then the correct accordion should be in the expanded state', () => {
|
@@ -148,11 +148,6 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
148
148
|
fillInTheGapsDropdownPage.steps.verifyDisabledDropdownInSpecifyCorrectAnswerSection(0);
|
149
149
|
});
|
150
150
|
|
151
|
-
it('When the user has not added any options, on hovering over the dropdown, a tooltip \'Please add options\' should be displayed and on focusing away from the dropdown, the tooltip should disappear', () => {
|
152
|
-
utilities.getNthElement(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0)
|
153
|
-
.verifyTooltip('Please add options');
|
154
|
-
});
|
155
|
-
|
156
151
|
it('CSS of specify correct answer section disabled dropdown', { tags: 'css' }, () => {
|
157
152
|
utilities.verifyCSS(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), {
|
158
153
|
'opacity': '1',
|
@@ -14,6 +14,7 @@ describe('Create Item page - Fill in the gaps with dropdown: Specify correct ans
|
|
14
14
|
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
15
15
|
cy.barsPreLoaderWait();
|
16
16
|
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
17
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown);
|
17
18
|
});
|
18
19
|
|
19
20
|
fillInTheGapsDropdownPage.tests.verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents('fill in the gaps with dropdown');
|
@@ -60,7 +60,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
60
60
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyActiveStateOfDraggableOptionInSpecifyCorrectAnswerSection(0);
|
61
61
|
cy.log('checking default state of unselected option(s)')
|
62
62
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfUnselectedDraggableOptionsInSpecifyCorrectAnswerSection([1, 2, 3]);
|
63
|
-
cy.log('checking inactive state of all
|
63
|
+
cy.log('checking inactive state of all dropzone');
|
64
64
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
|
65
65
|
});
|
66
66
|
|
@@ -85,7 +85,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
85
85
|
fillInTheGapsOverImageDragAndDropPage.steps.clickOnDraggableOptionInSpecifyCorrectAnswerSection('Petals');
|
86
86
|
cy.log('Checking default state of deselected option')
|
87
87
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDraggableOptionsInSpecifyCorrectAnswerSection();
|
88
|
-
cy.log('checking inactive state of all
|
88
|
+
cy.log('checking inactive state of all dropzone');
|
89
89
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
|
90
90
|
});
|
91
91
|
|
@@ -230,7 +230,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
230
230
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyActiveStateOfDraggableOptionInPreviewTab(0);
|
231
231
|
cy.log('checking default state of unselected option(s)')
|
232
232
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfUnselectedDraggableOptionsInPreviewTab([1, 2, 3]);
|
233
|
-
cy.log('checking inactive state of all
|
233
|
+
cy.log('checking inactive state of all dropzone');
|
234
234
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
235
235
|
});
|
236
236
|
|
@@ -258,7 +258,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
258
258
|
fillInTheGapsOverImageDragAndDropPage.steps.clickOnDraggableOptionInPreviewTab('Petals');
|
259
259
|
cy.log('Checking default state of deselected option')
|
260
260
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDraggableOptionsInPreviewTab();
|
261
|
-
cy.log('checking inactive state of all
|
261
|
+
cy.log('checking inactive state of all dropzone');
|
262
262
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
263
263
|
});
|
264
264
|
|
@@ -387,7 +387,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
387
387
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyActiveStateOfDraggableOptionInSpecifyCorrectAnswerSection(0);
|
388
388
|
cy.log('checking default state of unselected option(s)')
|
389
389
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfUnselectedDraggableOptionsInSpecifyCorrectAnswerSection([1, 2, 3]);
|
390
|
-
cy.log('checking inactive state of all
|
390
|
+
cy.log('checking inactive state of all dropzone');
|
391
391
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
|
392
392
|
});
|
393
393
|
|
@@ -409,7 +409,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
409
409
|
fillInTheGapsOverImageDragAndDropPage.steps.clickOnDraggableOptionInSpecifyCorrectAnswerSection('Petals');
|
410
410
|
cy.log('Checking default state of deselected option')
|
411
411
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDraggableOptionsInSpecifyCorrectAnswerSection();
|
412
|
-
cy.log('checking inactive state of all
|
412
|
+
cy.log('checking inactive state of all dropzone');
|
413
413
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
|
414
414
|
});
|
415
415
|
|
@@ -479,8 +479,8 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
479
479
|
});
|
480
480
|
|
481
481
|
it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
|
482
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
483
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
482
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropGroupedOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
|
483
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropGroupedOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
|
484
484
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
|
485
485
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(1, groupedOptions[1]);
|
486
486
|
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 'Error: Please set a correct answer.');
|
@@ -565,7 +565,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
565
565
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyActiveStateOfDraggableOptionInPreviewTab(0);
|
566
566
|
cy.log('checking default state of unselected option(s)')
|
567
567
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfUnselectedDraggableOptionsInPreviewTab([1, 2, 3]);
|
568
|
-
cy.log('checking inactive state of all
|
568
|
+
cy.log('checking inactive state of all dropzone');
|
569
569
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
570
570
|
});
|
571
571
|
|
@@ -593,7 +593,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
|
|
593
593
|
fillInTheGapsOverImageDragAndDropPage.steps.clickOnDraggableOptionInPreviewTab('Petals');
|
594
594
|
cy.log('Checking default state of deselected option')
|
595
595
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDraggableOptionsInPreviewTab();
|
596
|
-
cy.log('checking inactive state of all
|
596
|
+
cy.log('checking inactive state of all dropzone');
|
597
597
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
598
598
|
});
|
599
599
|
|
@@ -87,7 +87,7 @@ describe('Create Item page - Fill in the gaps over image with drag and drop: Spe
|
|
87
87
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(5);
|
88
88
|
fillInTheGapsOverImageDragAndDropPage.steps.deleteAlternativeAnswerAccordion(1);
|
89
89
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
|
90
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyAlternativeAnswerAccordionLabel(
|
90
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyAlternativeAnswerAccordionLabel(0);
|
91
91
|
});
|
92
92
|
|
93
93
|
it('When the user deletes an option assigned as correct in the correct accordion then the correct accordion should be in the expanded state', () => {
|
@@ -167,11 +167,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
167
167
|
fillInTheGapsOverImageDropdownPage.steps.verifyDisabledDropdownInSpecifyCorrectAnswerSection(0);
|
168
168
|
});
|
169
169
|
|
170
|
-
it('When the user has not added any options, on hovering over the dropdown, a tooltip \'Please add options\' should be displayed and on focusing away from the dropdown, the tooltip should disappear', () => {
|
171
|
-
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0)
|
172
|
-
.verifyTooltip('Please add options');
|
173
|
-
});
|
174
|
-
|
175
170
|
it('CSS of specify correct answer section disabled dropdown', { tags: 'css' }, () => {
|
176
171
|
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), {
|
177
172
|
'opacity': '1',
|
@@ -19,6 +19,7 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Specify cor
|
|
19
19
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
20
20
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
21
21
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
22
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown);
|
22
23
|
});
|
23
24
|
|
24
25
|
fillInTheGapsOverImageDropdownPage.tests.verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents('fill in the gaps over image - dropdown');
|
@@ -438,7 +438,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
438
438
|
graphingPage.graphLabelInputField()
|
439
439
|
.verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
|
440
440
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
441
|
-
'
|
441
|
+
'color': css.color.correctAnswer
|
442
442
|
});
|
443
443
|
});
|
444
444
|
|
@@ -455,7 +455,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
455
455
|
graphingPage.graphLabelInputField()
|
456
456
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
457
457
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
458
|
-
'
|
458
|
+
'color': css.color.incorrectAnswer
|
459
459
|
});
|
460
460
|
});
|
461
461
|
|
@@ -472,7 +472,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
472
472
|
graphingPage.graphLabelInputField()
|
473
473
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
474
474
|
utilities.verifyCSS(graphingPage.graphLabelInputField(), {
|
475
|
-
'
|
475
|
+
'color': css.color.incorrectAnswer
|
476
476
|
});
|
477
477
|
});
|
478
478
|
});
|
@@ -277,14 +277,14 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
|
|
277
277
|
graphingPage.steps.verifyYTickIntervalInputFieldValue('1');
|
278
278
|
});
|
279
279
|
|
280
|
-
it('\'Display axis label, Remove ticks, Show tick labels, Min arrow, Max arrow, Display comma for thousand separator\' checkbox with labels should be displayed for X axis and by default all should be checked', () => {
|
280
|
+
it('\'Display axis label, Remove ticks, Show tick labels, Min arrow, Max arrow, Display comma for thousand separator\' checkbox with labels should be displayed for X axis and by default all should be checked except Display axis label', () => {
|
281
281
|
utilities.verifyElementVisibilityState(graphingPage.xDisplayAxisLabel(), 'visible');
|
282
282
|
utilities.verifyElementVisibilityState(graphingPage.xRemoveTicksLabel(), 'visible');
|
283
283
|
utilities.verifyElementVisibilityState(graphingPage.xShowTicksLabelsLabel(), 'visible');
|
284
284
|
utilities.verifyElementVisibilityState(graphingPage.xMinArrowLabel(), 'visible');
|
285
285
|
utilities.verifyElementVisibilityState(graphingPage.xMaxArrowLabel(), 'visible');
|
286
286
|
utilities.verifyElementVisibilityState(graphingPage.xDisplayCommaForThousandSeparatorLabel(), 'visible');
|
287
|
-
graphingPage.steps.
|
287
|
+
graphingPage.steps.verifyXDisplayAxisCheckboxUnchecked();
|
288
288
|
graphingPage.steps.verifyXRemoveTicksCheckboxChecked();
|
289
289
|
graphingPage.steps.verifyXShowTicksLabelCheckboxChecked();
|
290
290
|
graphingPage.steps.verifyXMinArrowCheckboxChecked();
|
@@ -292,14 +292,14 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
|
|
292
292
|
graphingPage.steps.verifyXDisplayCommaForThousandSeparatorCheckboxChecked();
|
293
293
|
});
|
294
294
|
|
295
|
-
it('\'Display axis label, Remove ticks, Show tick labels, Min arrow, Max arrow, Display comma for thousand separator\' checkbox with labels should be displayed for Y axis and by default all should be checked', () => {
|
295
|
+
it('\'Display axis label, Remove ticks, Show tick labels, Min arrow, Max arrow, Display comma for thousand separator\' checkbox with labels should be displayed for Y axis and by default all should be checked except Display axis label', () => {
|
296
296
|
utilities.verifyElementVisibilityState(graphingPage.yDisplayAxisLabel(), 'visible');
|
297
297
|
utilities.verifyElementVisibilityState(graphingPage.yRemoveTicksLabel(), 'visible');
|
298
298
|
utilities.verifyElementVisibilityState(graphingPage.yShowTicksLabelsLabel(), 'visible');
|
299
299
|
utilities.verifyElementVisibilityState(graphingPage.yMinArrowLabel(), 'visible');
|
300
300
|
utilities.verifyElementVisibilityState(graphingPage.yMaxArrowLabel(), 'visible');
|
301
301
|
utilities.verifyElementVisibilityState(graphingPage.yDisplayCommaForThousandSeparatorLabel(), 'visible');
|
302
|
-
graphingPage.steps.
|
302
|
+
graphingPage.steps.verifyYDisplayAxisCheckboxUnchecked();
|
303
303
|
graphingPage.steps.verifyYRemoveTicksCheckboxChecked();
|
304
304
|
graphingPage.steps.verifyYShowTicksLabelCheckboxChecked();
|
305
305
|
graphingPage.steps.verifyYMinArrowCheckboxChecked();
|
@@ -100,13 +100,13 @@ describe('Create item page - Grid fill: Scoring section', () => {
|
|
100
100
|
});
|
101
101
|
|
102
102
|
it('When user unselects the shaded cell in specify correct answer section, then points per response should get updated accordingly', () => {
|
103
|
-
gridFillPage.steps.unselectCellSpecifyCorrectAnswerSection(
|
104
|
-
gridFillPage.steps.verifyPointsPerResponseScore(
|
103
|
+
gridFillPage.steps.unselectCellSpecifyCorrectAnswerSection(0, 1);
|
104
|
+
gridFillPage.steps.verifyPointsPerResponseScore(6);
|
105
105
|
});
|
106
106
|
|
107
107
|
it('When user selects the shaded cell in specify correct answer section then points per response should get updated accordingly', () => {
|
108
108
|
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(1, 3);
|
109
|
-
gridFillPage.steps.verifyPointsPerResponseScore(
|
109
|
+
gridFillPage.steps.verifyPointsPerResponseScore(3);
|
110
110
|
});
|
111
111
|
|
112
112
|
it('When the user switches to \'All or nothing\' scoring, then the Points on response label and score should not be displayed and the points displayed in \'Points\' input field should remain unchanged', () => {
|
@@ -120,7 +120,7 @@ describe('Create item page - Grid fill: Scoring section', () => {
|
|
120
120
|
gridFillPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
121
121
|
utilities.verifyElementVisibilityState(gridFillPage.pointsPerResponseLabel(), 'visible');
|
122
122
|
utilities.verifyInnerText(gridFillPage.pointsPerResponseLabel(), 'Points per response:');
|
123
|
-
gridFillPage.steps.verifyPointsPerResponseScore(
|
123
|
+
gridFillPage.steps.verifyPointsPerResponseScore(4.5);
|
124
124
|
});
|
125
125
|
|
126
126
|
it('CSS of \'Points:\' label and its displayed score', { tags: 'css' }, () => {
|
@@ -27,6 +27,7 @@ describe('Create Item page - Grid fill : Grid layout', () => {
|
|
27
27
|
gridFillPage.steps.verifyOpenTheGridSelectorDropdownCollapsed();
|
28
28
|
});
|
29
29
|
|
30
|
+
//Failing due to https://redmine.zeuslearning.com/issues/565285
|
30
31
|
it('When user clicks on \'Open the grid selector\' dropdown then grid selector should be displayed and it should have 20 columns and 20 rows', () => {
|
31
32
|
gridFillPage.steps.expandOpenTheGridSelectorDropdown();
|
32
33
|
utilities.verifyElementVisibilityState(gridFillPage.gridInOpenTheGridSelectorDropdownContainer(), 'visible');
|
@@ -29,8 +29,8 @@ describe('Create item page - Grid fill: Student view settings', () => {
|
|
29
29
|
});
|
30
30
|
|
31
31
|
it('When user tries to enter a value more than total cells of grid selected in grid layout, then value should reset to maximum cell count', () => {
|
32
|
-
gridFillPage.steps.
|
33
|
-
gridFillPage.steps.
|
32
|
+
gridFillPage.steps.verifyColumnsInputStepperCountInputFieldValue(5);
|
33
|
+
gridFillPage.steps.verifyRowsInputStepperCountInputFieldValue(3);
|
34
34
|
gridFillPage.steps.enterTextInMaxSelectedCellInputField(16);
|
35
35
|
gridFillPage.steps.VerifyTextInMaxSelectedCellInputField(15);
|
36
36
|
});
|