itemengine-cypress-automation 1.0.93 → 1.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/editTabBasic.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/previewTabContent.smoke.js +1 -0
- package/cypress/e2e/ILC/DesmosGraphing/studentViewSettings.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +13 -13
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +0 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +1 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +5 -7
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +9 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.js +24 -43
- package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +1 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -6
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/FillInTheGapsOverImageDragAndDropScoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +12 -7
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +8 -9
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +5 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +6 -7
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -2
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +7 -7
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1 -1
- package/cypress/pages/components/additionalSettingsPanel.js +2 -2
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/createCustomCategoryFlyout.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +2 -2
- package/cypress/pages/components/essayResponseCommonComponents.js +5 -2
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/measuringToolComponent.js +2 -1
- package/cypress/pages/desmosGraphingPage.js +3 -3
- package/cypress/pages/desmosToolPage.js +8 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +16 -9
- package/cypress/pages/drawingResponsePage.js +21 -38
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +9 -10
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +1 -2
- package/cypress/pages/multipleSelectionPage.js +1 -0
- package/cypress/pages/protractorPage.js +3 -4
- package/cypress/pages/rulerPage.js +9 -5
- package/cypress/pages/singleSelectionPage.js +5 -1
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +2 -2
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos four function calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
22
23
|
break;
|
23
24
|
case 'Item view':
|
24
25
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos geometry tool');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolSidebarButton(), 'visible');
|
22
23
|
break;
|
23
24
|
case 'Item view':
|
24
25
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos graphing calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTextArea(), 'exist');
|
22
23
|
break;
|
23
24
|
case 'Item view':
|
24
25
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos matrix calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
22
23
|
break;
|
23
24
|
case 'Item view':
|
24
25
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos scientific calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
22
23
|
break;
|
23
24
|
case 'Item view':
|
24
25
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -40,6 +40,7 @@ describe('Create Item page - Desmos graphing: Question instructions, edit tab co
|
|
40
40
|
});
|
41
41
|
|
42
42
|
it('User should be able to perform actions on the on the \'Graphing calculator\' and should yield expected results', () => {
|
43
|
+
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolKeypadButton(), 'visible');
|
43
44
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadButton();
|
44
45
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('5');
|
45
46
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('Squared');
|
@@ -29,6 +29,7 @@ describe('Create item page - Desmos: Grading view, Correct answer view contents'
|
|
29
29
|
.then(($refID) => {
|
30
30
|
itemReferenceID = $refID;
|
31
31
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
32
|
+
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolKeypadButton(), 'visible');
|
32
33
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadButton();
|
33
34
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('5');
|
34
35
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('Squared');
|
@@ -19,6 +19,7 @@ describe('Create item page - Desmos graphing: Preview contents', () => {
|
|
19
19
|
cy.log('Navigating to Fill in the gaps over image - text question type');
|
20
20
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
21
21
|
cy.barsPreLoaderWait();
|
22
|
+
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolKeypadButton(), 'visible');
|
22
23
|
desmosGraphingPage.steps.addQuestionInstructions();
|
23
24
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadButton();
|
24
25
|
desmosGraphingPage.steps.clickOnDesmosToolKeypadKeys('5');
|
@@ -88,6 +88,7 @@ describe('Create Item page - Desmos graphing: Student view settings', () => {
|
|
88
88
|
desmosGraphingPage.steps.switchToEditTab();
|
89
89
|
desmosGraphingPage.steps.checkHideExpressionListCheckbox();
|
90
90
|
desmosGraphingPage.steps.switchToPreviewTab();
|
91
|
+
utilities.verifyElementVisibilityState(desmosGraphingPage.previewTabDesmosToolKeypadButton(), 'visible');
|
91
92
|
desmosGraphingPage.steps.verifyPreviewTabExpressionListPanelHidden();
|
92
93
|
});
|
93
94
|
|
@@ -122,11 +123,11 @@ describe('Create Item page - Desmos graphing: Student view settings', () => {
|
|
122
123
|
desmosGraphingPage.steps.verifyDesmosGraphingHeightInputField('500');
|
123
124
|
});
|
124
125
|
|
125
|
-
it('\'Aspect ratio\' and \'Reset dimension\' icons should be displayed and by default aspect ratio should be unlocked and reset dimension should be
|
126
|
+
it('\'Aspect ratio\' and \'Reset dimension\' icons should be displayed and by default aspect ratio should be unlocked and reset dimension should be enabled', () => {
|
126
127
|
utilities.verifyElementVisibilityState(desmosGraphingPage.buttonAspectRatio(), 'visible');
|
127
128
|
utilities.verifyElementVisibilityState(desmosGraphingPage.buttonResetDimensions(), 'visible');
|
128
129
|
desmosGraphingPage.steps.verifyButtonAspectRatioUnlocked();
|
129
|
-
desmosGraphingPage.steps.
|
130
|
+
desmosGraphingPage.steps.verifyButtonResetDimensionsEnabled();
|
130
131
|
});
|
131
132
|
|
132
133
|
it('The width and height of the graphing tool should be 500 by 500 pixels', () => {
|
@@ -12,7 +12,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
12
12
|
dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
|
13
13
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
14
14
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('4');
|
15
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, '
|
15
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
16
16
|
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
17
17
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
18
18
|
});
|
@@ -23,7 +23,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
23
23
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
24
24
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
25
25
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
|
26
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['
|
26
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
27
27
|
});
|
28
28
|
|
29
29
|
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, 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', () => {
|
@@ -33,7 +33,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
33
33
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
34
34
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
35
35
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
36
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['
|
36
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
37
37
|
});
|
38
38
|
|
39
39
|
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', () => {
|
@@ -46,12 +46,12 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
46
46
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
47
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
48
48
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
49
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['
|
49
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
50
50
|
});
|
51
51
|
|
52
52
|
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', () => {
|
53
53
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
54
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Platypus': 2, '
|
54
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 })
|
55
55
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
|
56
56
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
57
57
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
@@ -60,12 +60,12 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
60
60
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
61
61
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
62
62
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
63
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['
|
63
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
64
64
|
});
|
65
65
|
|
66
66
|
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', () => {
|
67
67
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
68
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, '
|
68
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4, 'Flying squirrel': 4 });
|
69
69
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
|
70
70
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
71
71
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
@@ -82,8 +82,8 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
82
82
|
//Need to check once https://redmine.zeuslearning.com/issues/558925 is resolved
|
83
83
|
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 be displayed along with numeration', () => {
|
84
84
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
85
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromNthGroupInDropzonePreviewTab(3, { 'Bat': 0 })
|
86
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, '
|
85
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromNthGroupInDropzonePreviewTab(3, { optionText: 'Bat', dropzoneIndex: 0 })
|
86
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
87
87
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
|
88
88
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
89
89
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
@@ -92,8 +92,8 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
92
92
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
93
93
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
94
94
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
95
|
-
dragAndDropIntoCategoriesPage.steps.
|
96
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['
|
95
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
|
96
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
|
97
97
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
98
98
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
99
99
|
cy.log('When the user attempts the question with the common option from another group then the user should be awarded and clicks on \'Check answer\' button, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
@@ -104,14 +104,14 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
104
104
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
105
105
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
106
106
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
107
|
-
dragAndDropIntoCategoriesPage.steps.
|
107
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
|
108
108
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
109
109
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
110
110
|
});
|
111
111
|
|
112
112
|
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
113
113
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
114
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, '
|
114
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
115
115
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(20, 20);
|
116
116
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
117
117
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
@@ -21,7 +21,6 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
21
21
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
|
22
22
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
23
23
|
dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
24
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
24
|
});
|
26
25
|
|
27
26
|
//Penalty points for the entire question
|
@@ -108,7 +107,6 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
108
107
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
|
109
108
|
dragAndDropIntoCategoriesPage.steps.allotPoints(1);
|
110
109
|
dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
111
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
112
110
|
});
|
113
111
|
|
114
112
|
it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
|
@@ -172,7 +170,6 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
172
170
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
|
173
171
|
dragAndDropIntoCategoriesPage.steps.allotPoints(1.65);
|
174
172
|
dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
175
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
176
173
|
});
|
177
174
|
|
178
175
|
it('When the user sets \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.5 and less than 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
|
@@ -328,10 +328,10 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
328
328
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
329
329
|
});
|
330
330
|
|
331
|
-
it('\'Maximum capacity per dropzone\' label and dropdown should be displayed. By default the \'
|
331
|
+
it('\'Maximum capacity per dropzone\' label and dropdown should be displayed. By default the \'None\' should be the selected option in the \'Maximum capacity per dropzone\' dropdown', () => {
|
332
332
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneLabel(), 'Maximum capacity per dropzone');
|
333
333
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneLabel(), 'visible');
|
334
|
-
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneDropdown(), '
|
334
|
+
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneDropdown(), 'None');
|
335
335
|
});
|
336
336
|
|
337
337
|
it(`When the user expands the \'Maximum capacity per dropzone\' dropdown, a list of ${defaultListOptions.length} options - ${defaultListOptions.join(',')} should be displayed`, () => {
|
@@ -346,10 +346,10 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
346
346
|
'font-size': css.fontSize.default,
|
347
347
|
'font-weight': css.fontWeight.regular,
|
348
348
|
'background-color': css.color.liTextSelectedBg
|
349
|
-
})
|
349
|
+
});
|
350
350
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.maxCapacityPerDropzoneDropdownListOptions(defaultListOptions[0]), {
|
351
351
|
'background-color': css.color.transparent
|
352
|
-
})
|
352
|
+
});
|
353
353
|
});
|
354
354
|
|
355
355
|
it('Accessibility of \'Maximum capacity per dropzone\' dropdown in active state', { tags: 'a11y' }, () => {
|
@@ -363,7 +363,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
363
363
|
dragAndDropIntoCategoriesPage.steps.verifyMaxCapacityPerDropzoneListOptions(['None', '1', '2', '3', '4', '5', '6', '7']);
|
364
364
|
});
|
365
365
|
|
366
|
-
it('When the user selects
|
366
|
+
it('When the user selects a finite number of options value from the \'Maximum capacity per dropzone\' dropdown, then the user should only be able to set options in a dropzone in the specify correct answer section according to the selected option', () => {
|
367
367
|
cy.log('Pre step: Adding input to the empty options input field')
|
368
368
|
dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(2, 'Whale');
|
369
369
|
dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(3, 'Parrot');
|
@@ -371,13 +371,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
371
371
|
dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(5, 'Ostrich');
|
372
372
|
dragAndDropIntoCategoriesPage.steps.enterTextInOptionInputField(6, 'Squirrel');
|
373
373
|
|
374
|
-
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
375
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('None');
|
376
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Parrot': 1, 'Ostrich': 1, 'Whale': 1 });
|
377
|
-
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfSpecifyCorrectAnswerSection(1, ['Parrot', 'Ostrich', 'Whale']);
|
378
|
-
});
|
379
|
-
|
380
|
-
it('When the user selects a finite number of options value from the \'Maximum capacity per dropzone\' dropdown, then the user should only be able to set options in a dropzone in the specify correct answer section according to the selected option', () => {
|
381
374
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
382
375
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
383
376
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 0, 'Squirrel': 0 });
|
@@ -416,10 +409,16 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
416
409
|
it('Accessibility of \'Show students the dropzone limits\' checkbox - checked state', { tags: 'a11y' }, () => {
|
417
410
|
cy.checkAccessibility(dragAndDropIntoCategoriesPage.showStudentsDropzoneLimitsCheckbox().parents('[data-ngie-testid="show-students-the-dropzone-limits-checkbox"]'));
|
418
411
|
});
|
412
|
+
|
413
|
+
it('When the user selects \'None\' from the \'Maximum capacity per dropzone\' dropdown, then the user should be able to set n number of options in a dropzone in the specify correct answer section', () => {
|
414
|
+
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
415
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('None');
|
416
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Parrot': 1, 'Ostrich': 1, 'Whale': 1 });
|
417
|
+
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfSpecifyCorrectAnswerSection(1, ['Parrot', 'Ostrich', 'Whale']);
|
418
|
+
});
|
419
419
|
});
|
420
420
|
|
421
421
|
describe('Maximum capacity per dropzone and Show students the dropzone limits: Preview tab', () => {
|
422
|
-
const defaultListOptions = ['None', '1', '2']
|
423
422
|
abortEarlySetup();
|
424
423
|
before(() => {
|
425
424
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
@@ -429,14 +428,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
429
428
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
430
429
|
});
|
431
430
|
|
432
|
-
it('When the user selects \'None\' from the \'Maximum capacity per dropzone\' dropdown, then the user should be able to set n number of options in a dropzone in the preview tab', () => {
|
433
|
-
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
434
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('None');
|
435
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
436
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Parrot': 1, 'Ostrich': 1, 'Whale': 1 });
|
437
|
-
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Parrot', 'Ostrich', 'Whale']);
|
438
|
-
});
|
439
|
-
|
440
431
|
it('When the user selects a finite number of options value from the \'Maximum capacity per dropzone\' dropdown, then the user should only be able to drop options in a dropzone in the preview tab according to the selected option', () => {
|
441
432
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
442
433
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
@@ -456,5 +447,14 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
456
447
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
457
448
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.maxLimitInEachDropzoneHelpText(), 'Maximum answers in each dropzone:\n2');
|
458
449
|
});
|
450
|
+
|
451
|
+
it('When the user selects \'None\' from the \'Maximum capacity per dropzone\' dropdown, then the user should be able to set n number of options in a dropzone in the preview tab', () => {
|
452
|
+
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
453
|
+
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
454
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('None');
|
455
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
456
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Parrot': 1, 'Ostrich': 1, 'Whale': 1 });
|
457
|
+
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Parrot', 'Ostrich', 'Whale']);
|
458
|
+
});
|
459
459
|
});
|
460
460
|
});
|
@@ -74,9 +74,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
74
74
|
groupTitleArray.forEach((groupTitle, groupIndex) => {
|
75
75
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedOptionsTitlePreviewTab(groupIndex, groupTitle);
|
76
76
|
});
|
77
|
-
|
78
|
-
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInPreviewTab(index, options);
|
79
|
-
});
|
77
|
+
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(optionsArray);
|
80
78
|
});
|
81
79
|
|
82
80
|
it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of group containers as well as the options inside the group should change', () => {
|
@@ -5,7 +5,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
5
5
|
const css = Cypress.env('css');
|
6
6
|
const defaultStrokeLineThicknessOptions = ['5px', '10px', '15px', '20px', '25px'];
|
7
7
|
const thickness = ['5', '10', '15', '20', '25'];
|
8
|
-
const lineTypeOptions = ['
|
8
|
+
const lineTypeOptions = ['basic line', 'dashed line', 'dotted line', 'single arrow line', 'double arrow line'];
|
9
9
|
const fontSizeDropdownOptions = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
|
10
10
|
const fontSizes = ['12px', '14px', '16px', '18px', '22px', '26px'];
|
11
11
|
const lineTypeOptionsTooltip = ['Line', 'Dashed', 'Dotted', 'Single arrow', 'Double arrow'];
|
@@ -94,7 +94,7 @@ describe('Drawing response - Additional settings', () => {
|
|
94
94
|
'border': `1px solid ${css.color.figDefaultComponentBorder}`
|
95
95
|
});
|
96
96
|
cy.log('Css of stroke color');
|
97
|
-
utilities.verifyCSS(drawingResponsePage.additionalSettingsStrokeImage().eq(0).find('[data-name="Stroke Thickness 5px]'), {
|
97
|
+
utilities.verifyCSS(drawingResponsePage.additionalSettingsStrokeImage().eq(0).find('[data-name="Stroke Thickness 5px"]'), {
|
98
98
|
'fill': css.color.tooltipBg
|
99
99
|
});
|
100
100
|
cy.log('Css of selected icon');
|
@@ -108,7 +108,6 @@ describe('Drawing response - Additional settings', () => {
|
|
108
108
|
});
|
109
109
|
});
|
110
110
|
|
111
|
-
//Failing due to https://redmine.zeuslearning.com/issues/555345
|
112
111
|
describe('Additional settings: Default stroke/line thickness - Preview tab', () => {
|
113
112
|
abortEarlySetup();
|
114
113
|
before(() => {
|
@@ -120,7 +119,7 @@ describe('Drawing response - Additional settings', () => {
|
|
120
119
|
});
|
121
120
|
|
122
121
|
it('When the stroke/line thickness is set to 5px by default then the stroke thickness in secondary toolbar should be also be set to 5px in the preview tab', () => {
|
123
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('
|
122
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Stroke thickness');
|
124
123
|
drawingResponsePage.steps.verifySelectedOptionFromSecondaryOptionPopup(0);
|
125
124
|
});
|
126
125
|
|
@@ -130,7 +129,7 @@ describe('Drawing response - Additional settings', () => {
|
|
130
129
|
drawingResponsePage.steps.selectStrokeLineThicknessTypeOption(defaultStrokeLineThicknessOptions[1]);
|
131
130
|
drawingResponsePage.steps.switchToPreviewTab();
|
132
131
|
drawingResponsePage.steps.selectPreviewTabToolbarOption('Line');
|
133
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('
|
132
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Stroke thickness');
|
134
133
|
drawingResponsePage.steps.verifySelectedOptionFromSecondaryOptionPopup(1);
|
135
134
|
});
|
136
135
|
});
|
@@ -202,7 +201,6 @@ describe('Drawing response - Additional settings', () => {
|
|
202
201
|
});
|
203
202
|
});
|
204
203
|
|
205
|
-
//Failing due to https://redmine.zeuslearning.com/issues/555345
|
206
204
|
describe('Additional settings: Set line type - Preview tab', () => {
|
207
205
|
abortEarlySetup();
|
208
206
|
before(() => {
|
@@ -214,7 +212,7 @@ describe('Drawing response - Additional settings', () => {
|
|
214
212
|
});
|
215
213
|
|
216
214
|
it('When all line type buttons are selected by default then all the line type options should be displayed in secondary toolbar in the preview tab', () => {
|
217
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line
|
215
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line type');
|
218
216
|
lineTypeOptions.forEach((lineType, index) => {
|
219
217
|
drawingResponsePage.steps.verifySecondaryPopupLineType(lineType, index)
|
220
218
|
});
|
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
|
5
5
|
const css = Cypress.env('css');
|
6
|
-
const defaultToolbarAndControlOptions = ['Select', '
|
6
|
+
const defaultToolbarAndControlOptions = ['Select', 'Scribble', 'Line', 'Curved line', 'Capture image', 'Insert image', 'Text', 'Point eraser', 'Bring to front', 'Sent to back', 'Duplicate', 'Undo', 'Redo', 'Full screen', 'Clear all'];
|
7
7
|
const patterns = ['Grid', 'Lines', 'Dots', 'Circular', 'Graph', 'Quadrant'];
|
8
8
|
const orientationOptions = ['Portrait', 'Landscape', 'Square'];
|
9
9
|
const imageAlternativeText = ['Grid pattern of evenly spaced horizontal and vertical lines', 'Line pattern of evenly spaced horizontal lines', 'Dot pattern of evenly spaced horizontal and vertical dots', 'Circular pattern of evenly spaced concentric circles', 'Graph pattern of evenly spaced horizontal and vertical lines', 'Quadrant pattern of evenly spaced horizontal and vertical lines'];
|
@@ -143,9 +143,9 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
|
|
143
143
|
.verifyTooltip('Locked aspect ratio');
|
144
144
|
});
|
145
145
|
|
146
|
-
it('When the user hovers over the \'Reset
|
146
|
+
it('When the user hovers over the \'Reset canvas size\' button, a tooltip \'Reset canvas size\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
147
147
|
drawingResponsePage.resetDimensionsButton()
|
148
|
-
.verifyTooltip('Reset
|
148
|
+
.verifyTooltip('Reset canvas size');
|
149
149
|
});
|
150
150
|
|
151
151
|
it('Accessibility of enabled reset dimension button', { tags: 'a11y' }, () => {
|
@@ -15,7 +15,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
15
15
|
before(() => {
|
16
16
|
cy.loginAs('admin');
|
17
17
|
});
|
18
|
-
|
18
|
+
|
19
19
|
describe('Customize special characters', () => {
|
20
20
|
abortEarlySetup();
|
21
21
|
before(() => {
|
@@ -442,16 +442,19 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
442
442
|
});
|
443
443
|
|
444
444
|
it('When the user has modified contents in the \'Stroke/font color\' section in the edit tab, the updates should be displayed in the \'Stroke/font color\' popup in the preview tab', () => {
|
445
|
+
cy.log('Pre-step: Selecting polygon toolbar option')
|
446
|
+
drawingResponsePage.steps.selectToolbarOptionsAndControlsFormattingOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`]);
|
445
447
|
drawingResponsePage.steps.switchToPreviewTab();
|
446
|
-
drawingResponsePage.steps.selectPreviewTabToolbarOption(`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[
|
447
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Stroke
|
448
|
+
drawingResponsePage.steps.selectPreviewTabToolbarOption(`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`);
|
449
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Stroke color');
|
448
450
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(255, 0, 0)');
|
449
451
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(0, 133, 89)');
|
450
452
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(2, 'rgb(128, 25, 0)');
|
451
453
|
drawingResponsePage.steps.verifyNoColorOptionFromSecondaryOptionPopup(3);
|
452
|
-
cy.log('Post-step: Closing stroke color color popup
|
454
|
+
cy.log('Post-step: Closing stroke color color popup, switching to edit tab and deselecting polygon toolbar option');
|
453
455
|
drawingResponsePage.steps.closeSecondaryPopup();
|
454
456
|
drawingResponsePage.steps.switchToEditTab();
|
457
|
+
drawingResponsePage.steps.deselectToolbarOptionsAndControlsFormattingOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`]);
|
455
458
|
});
|
456
459
|
|
457
460
|
it('When the user adds upto 10 color blocks, then the add[+] color block should get disabled when 10 blocks have been added.', () => {
|
@@ -542,7 +545,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
542
545
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
543
546
|
cy.barsPreLoaderWait();
|
544
547
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
545
|
-
drawingResponsePage.steps.selectToolbarOptionsAndControlsFormattingOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}
|
548
|
+
drawingResponsePage.steps.selectToolbarOptionsAndControlsFormattingOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`]);
|
546
549
|
});
|
547
550
|
|
548
551
|
it('When the \'Fill color\' is not selected in the additional options section, \'Default fill colors\' label should be displayed along with a color block with color - \'#00E0FF\'', () => {
|
@@ -625,7 +628,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
625
628
|
it('When the user has modified contents in the \'Fill color\' section in the edit tab, the updates should be displayed in the \'Fill color\' popup in the preview tab', () => {
|
626
629
|
drawingResponsePage.steps.switchToPreviewTab();
|
627
630
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[11].displayName}`);
|
628
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Fill
|
631
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Fill color');
|
629
632
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(0, 'rgb(255, 0, 0)');
|
630
633
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(1, 'rgb(6, 255, 172)');
|
631
634
|
drawingResponsePage.steps.verifyCSSOfSecondaryOptionPopupOptions(2, 'rgb(255, 90, 51)');
|
@@ -61,7 +61,8 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
61
61
|
utilities.verifyElementVisibilityState(drawingResponsePage.toolBarOptionsLabel(), 'visible');
|
62
62
|
});
|
63
63
|
|
64
|
-
|
64
|
+
//TODO- Update as per https://redmine.zeuslearning.com/issues/560558
|
65
|
+
it(`A total of ${toolbarOptions.length} toolbar options should be displayed in the \'Toolbar options\' section. By default, first 8 toolbar options should be selected in the \'Toolbar options\' section`, () => {
|
65
66
|
toolbarOptions.forEach((toolbarOption) => {
|
66
67
|
utilities.verifyElementVisibilityState(drawingResponsePage.toolbarOptionsAndControlsFormattingOptionsTiles(toolbarOption.displayName), 'visible');
|
67
68
|
});
|
@@ -86,7 +87,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
86
87
|
|
87
88
|
it('When user deselects all control options, then error message should not be displayed', () => {
|
88
89
|
controlsOptions.forEach((controlsOption) => {
|
89
|
-
drawingResponsePage.steps.
|
90
|
+
drawingResponsePage.steps.deselectToolbarOptionsAndControlsFormattingOptionsTiles(controlsOption);
|
90
91
|
});
|
91
92
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
92
93
|
});
|
@@ -97,7 +98,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
97
98
|
|
98
99
|
it('When user deselects all toolbar options, then an error message should be displayed - \'Error: Please select a Toolbar option.\'', () => {
|
99
100
|
toolbarOptions.forEach((toolbarOption) => {
|
100
|
-
drawingResponsePage.steps.
|
101
|
+
drawingResponsePage.steps.deselectToolbarOptionsAndControlsFormattingOptionsTiles(toolbarOption.displayName);
|
101
102
|
});
|
102
103
|
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please select a Toolbar option.');
|
103
104
|
});
|
@@ -175,7 +176,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
175
176
|
});
|
176
177
|
|
177
178
|
it(`By default ${drawingToolbarOptionsAndAdditionalOptions.additionalOptionsTooltip.slice(0, 5).join(' ')} additional options should be displayed in the Additional options section`, () => {
|
178
|
-
drawingToolbarOptionsAndAdditionalOptions.
|
179
|
+
drawingToolbarOptionsAndAdditionalOptions.additionalOptions.slice(0, 5).forEach((additionalOption) => {
|
179
180
|
utilities.verifyElementVisibilityState(drawingResponsePage.additionalOptionsTiles(additionalOption), 'visible');
|
180
181
|
});
|
181
182
|
});
|
@@ -220,7 +221,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
220
221
|
it('When user selects a toolbar option, then its corresponding secondary toolbar options and their customization options and their sections should be displayed', () => {
|
221
222
|
cy.log('Pre-step: De-select all toolbar options');
|
222
223
|
toolbarOptions.forEach((toolbarOption) => {
|
223
|
-
drawingResponsePage.steps.
|
224
|
+
drawingResponsePage.steps.deselectToolbarOptionsAndControlsFormattingOptionsTiles(toolbarOption.displayName);
|
224
225
|
});
|
225
226
|
toolbarOptions.forEach((toolbarOption) => {
|
226
227
|
drawingResponsePage.steps.selectEditTabToolbarOptions([`${toolbarOption.displayName}`]);
|
@@ -272,7 +273,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
272
273
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeMathCharactersLabel(), 'notExist');
|
273
274
|
}
|
274
275
|
|
275
|
-
drawingResponsePage.steps.
|
276
|
+
drawingResponsePage.steps.deselectToolbarOptionsAndControlsFormattingOptionsTiles(`${toolbarOption.displayName}`);
|
276
277
|
});
|
277
278
|
});
|
278
279
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { correctAnswerViewPage, drawingResponsePage, itemPreviewPage, studentViewPage } from "../../../pages";
|
1
|
+
import { correctAnswerViewPage, desmosGraphingPage, drawingResponsePage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
2
|
import { gradingViewPage } from "../../../pages";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
@@ -14,7 +14,7 @@ describe('Create item page - Drawing Response: Header section and Saving questio
|
|
14
14
|
cy.barsPreLoaderWait();
|
15
15
|
});
|
16
16
|
|
17
|
-
drawingResponsePage.tests.verifyCreateQuestionPageQuestionTypeHeader('Drawing
|
17
|
+
drawingResponsePage.tests.verifyCreateQuestionPageQuestionTypeHeader('Drawing response');
|
18
18
|
});
|
19
19
|
|
20
20
|
describe('Tabs section', () => {
|