itemengine-cypress-automation 1.0.155-migrationScripts-86e4c95.0 → 1.0.155
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +6 -6
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +34 -29
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +20 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +5 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +0 -8
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +39 -35
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +8 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +475 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +669 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +1 -1
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +0 -11
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +204 -0
- package/cypress/e2e/ILC/GridFill/gridLayoutEditTabFunctionality.js +229 -0
- package/cypress/e2e/ILC/GridFill/gridLayoutPreviewTabFunctionality.js +219 -0
- package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/Matching/headerSection.js +82 -0
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +93 -0
- package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +3 -0
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +8 -10
- package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +16 -25
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +403 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +363 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +393 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +377 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +373 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +0 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +27 -8
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +15 -34
- package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -15
- package/cypress/e2e/ILC/ShortTextResponseNew/specifyCorrectAnswerSection.js +4 -4
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +4 -2
- package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +183 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +185 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +263 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +233 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +205 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +233 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +214 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +213 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +21 -17
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +25 -25
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +20 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +2 -3
- package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +2 -2
- package/cypress/fixtures/fillColorDefaultProperties.js +35 -0
- package/cypress/fixtures/theme/ilc.json +2 -1
- package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +4 -1
- package/cypress/pages/components/colorPopupComponent.js +6 -3
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +47 -12
- package/cypress/pages/components/gridQuestionCommonComponent.js +0 -81
- package/cypress/pages/components/imageCanvasComponent.js +10 -8
- package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/essayResponsePage.js +4 -4
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +34 -23
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +0 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +26 -4
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +0 -29
- package/cypress/pages/graphingPage.js +26 -16
- package/cypress/pages/gridFillPage.js +1610 -90
- package/cypress/pages/matchingPage.js +164 -20
- package/cypress/pages/multipleSelectionGridPage.js +82 -2
- package/cypress/pages/multipleSelectionPage.js +7 -2
- package/cypress/pages/rulerPage.js +3 -8
- package/cypress/pages/shortTextResponsePage.js +13 -0
- package/cypress/pages/simpleCalculatorPage.js +8 -0
- package/cypress/pages/singleSelectionGridPage.js +58 -2
- package/cypress/pages/textEntryMathPage.js +58 -11
- package/cypress/pages/uploadResponsePage.js +4 -2
- package/package.json +2 -2
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionAdditionalSettings.js +0 -835
- package/cypress/e2e/ILC/SingleSelection/singleSelectionAdditionalSettings.js +0 -469
@@ -90,6 +90,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
90
90
|
break;
|
91
91
|
case 'Grading view':
|
92
92
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
93
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploadedInPreviewTab();
|
93
94
|
break;
|
94
95
|
}
|
95
96
|
});
|
@@ -73,6 +73,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Check answ
|
|
73
73
|
break;
|
74
74
|
case 'Student view':
|
75
75
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
76
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploadedInPreviewTab();
|
76
77
|
break;
|
77
78
|
}
|
78
79
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
-
import { commonComponents
|
2
|
+
import { commonComponents } from "../../../pages/components";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
5
|
const css = Cypress.env('css');
|
@@ -48,12 +48,13 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
48
48
|
it('When user clicks on the \'Delete\' option button then the respective options input field should get deleted and option numeration should change accordingly', () => {
|
49
49
|
cy.log('Pre step: Adding text in all option input fields')
|
50
50
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
51
|
-
const optionsAfterDeleting = optionsForDropdown.filter((el) => el !==
|
51
|
+
const optionsAfterDeleting = optionsForDropdown.filter((el) => el !== optionsForDropdown[1]);
|
52
52
|
fillInTheGapsOverImageDropdownPage.steps.deleteOption(1);
|
53
|
-
utilities.verifyElementCount(
|
53
|
+
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.optionWrapper(), 3);
|
54
54
|
cy.log('Verifying the input text given to input fields after deletion of 2nd option')
|
55
55
|
optionsAfterDeleting.forEach((inputFieldText, optionIndex) => {
|
56
|
-
utilities.
|
56
|
+
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownOptionsInputField(), optionIndex)
|
57
|
+
.should('have.value', inputFieldText);
|
57
58
|
});
|
58
59
|
});
|
59
60
|
|
@@ -65,10 +66,18 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
65
66
|
|
66
67
|
fillInTheGapsOverImageDropdownPage.tests.verifyDisabledDeleteButtonTooltip();
|
67
68
|
|
68
|
-
|
69
|
+
it('When user adds an option using \'Add Option\' button then the added option input field should be displayed and option numeration should increment', () => {
|
70
|
+
let initialOptionCount;
|
71
|
+
fillInTheGapsOverImageDropdownPage.steps.getOptionCount().then((count) => {
|
72
|
+
initialOptionCount = count;
|
73
|
+
fillInTheGapsOverImageDropdownPage.steps.addOption();
|
74
|
+
fillInTheGapsOverImageDropdownPage.steps.getOptionCount().should('eq', initialOptionCount + 1);
|
75
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyOptionsContents(initialOptionCount);
|
76
|
+
});
|
77
|
+
});
|
69
78
|
|
70
79
|
it('When user focus in and out of any of the \'Options\' input field without typing anything, an error message should be thrown', () => {
|
71
|
-
fillInTheGapsOverImageDropdownPage.steps.focusInAndFocusOutOfDropdownOptionInputField();
|
80
|
+
fillInTheGapsOverImageDropdownPage.steps.focusInAndFocusOutOfDropdownOptionInputField(2);
|
72
81
|
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Option is required.');
|
73
82
|
});
|
74
83
|
|
@@ -80,7 +89,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
80
89
|
fillInTheGapsOverImageDropdownPage.tests.verifyEnabledDeleteButtonAndTooltip();
|
81
90
|
|
82
91
|
it('When user add another response area to the image, another dropdown options tab \'Dropdown 2\' should be added and it should not be in selected state', () => {
|
83
|
-
|
92
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea();
|
93
|
+
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownOptionsTab(), 1), 'Dropdown 2');
|
84
94
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsTabIsSelected(0);
|
85
95
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsTabIsNotSelected(1);
|
86
96
|
});
|
@@ -89,7 +99,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
89
99
|
fillInTheGapsOverImageDropdownPage.steps.navigateToDropdownOptionsTab(1);
|
90
100
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsTabIsSelected(1);
|
91
101
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsTabIsNotSelected(0);
|
92
|
-
for (let index = 0; index <
|
102
|
+
for (let index = 0; index < 4; index++) {
|
93
103
|
fillInTheGapsOverImageDropdownPage.steps.verifyOptionsContents(index);
|
94
104
|
};
|
95
105
|
});
|
@@ -142,6 +152,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
142
152
|
});
|
143
153
|
});
|
144
154
|
|
155
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566910
|
145
156
|
describe('Dropdown options in Specify correct answer section', () => {
|
146
157
|
abortEarlySetup();
|
147
158
|
before(() => {
|
@@ -239,6 +250,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
239
250
|
});
|
240
251
|
});
|
241
252
|
|
253
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566910
|
242
254
|
describe('Dropdown options in preview tab', () => {
|
243
255
|
abortEarlySetup();
|
244
256
|
before(() => {
|
@@ -123,7 +123,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
123
123
|
});
|
124
124
|
|
125
125
|
it('When user clicks on clear all in canvas, then dropdowns in specify correct answer should disappear', () => {
|
126
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
126
|
+
fillInTheGapsOverImageDropdownPage.steps.clearAllCanvas();
|
127
127
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), 'notExist');
|
128
128
|
});
|
129
129
|
});
|
@@ -295,7 +295,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
295
295
|
|
296
296
|
it('When user clicks on \'Clear all\' button, then all dropdowns should be deleted in preview tab', () => {
|
297
297
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
298
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
298
|
+
fillInTheGapsOverImageDropdownPage.steps.clearAllCanvas();
|
299
299
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
300
300
|
fillInTheGapsOverImageDropdownPage.steps.verifyTextBoxNotExistInPreviewTab();
|
301
301
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 'notExist');
|
@@ -29,6 +29,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: Minimum sco
|
|
29
29
|
before(() => {
|
30
30
|
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
31
31
|
cy.barsPreLoaderWait();
|
32
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
33
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
34
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
35
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
32
36
|
fillInTheGapsOverImageDropdownPage.steps.allotPoints(10);
|
33
37
|
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
34
38
|
});
|
@@ -8,6 +8,7 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Specify cor
|
|
8
8
|
cy.loginAs('admin');
|
9
9
|
});
|
10
10
|
|
11
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566913
|
11
12
|
describe('Specify correct answer section - Header and \'Correct\' accordion', () => {
|
12
13
|
abortEarlySetup();
|
13
14
|
before(() => {
|
@@ -3,7 +3,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
|
6
|
-
const
|
6
|
+
const textContainerPointerStyles = ['none', 'bottom', 'bottom right', 'right', 'top right', 'top', 'top left', 'left', 'bottom left'];
|
7
7
|
|
8
8
|
describe('Create item page - Fill in the gaps: Question instructions, Options section', () => {
|
9
9
|
before(() => {
|
@@ -123,7 +123,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
123
123
|
});
|
124
124
|
|
125
125
|
it('When user clicks on clear all in canvas, then response accordions in specified correct answer should disappear', () => {
|
126
|
-
fillInTheGapsOverImageTextPage.steps.
|
126
|
+
fillInTheGapsOverImageTextPage.steps.clearAllCanvas();
|
127
127
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.responseAccordion(), 'notExist');
|
128
128
|
});
|
129
129
|
});
|
@@ -178,7 +178,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
178
178
|
|
179
179
|
it('When user clicks on \'Clear all\' button, then all text containers should be deleted in preview tab', () => {
|
180
180
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
181
|
-
fillInTheGapsOverImageTextPage.steps.
|
181
|
+
fillInTheGapsOverImageTextPage.steps.clearAllCanvas();
|
182
182
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
183
183
|
fillInTheGapsOverImageTextPage.steps.verifyTextBoxNotExistInPreviewTab();
|
184
184
|
fillInTheGapsOverImageTextPage.steps.verifyTextContainerNotExistInPreviewTab();
|
@@ -87,8 +87,9 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
87
87
|
|
88
88
|
fillInTheGapsOverImageTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
|
89
89
|
|
90
|
-
it('When no points are entered in the points input field, then points per response should
|
91
|
-
|
90
|
+
it('When no points are entered in the points input field, then points per response should be displayed on the response accordion with value 0', () => {
|
91
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 0);
|
92
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 0);
|
92
93
|
});
|
93
94
|
|
94
95
|
it('When the user gives a score input to \'Points\' input field, then the score should be equally divided and displayed on each response tab with a \'Points:\' label', () => {
|
@@ -183,8 +184,8 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
183
184
|
|
184
185
|
it('When the user has switched to \'Partial - different weights\' scoring, then the correct answer tab points input field should not be displayed and individual empty points input field should be displayed in each response accordion', () => {
|
185
186
|
utilities.verifyElementCount(fillInTheGapsOverImageTextPage.pointsInputField(), 2);
|
186
|
-
fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0,
|
187
|
-
fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1,
|
187
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0, 0);
|
188
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1, 0);
|
188
189
|
});
|
189
190
|
|
190
191
|
it('User should be able to set points in the \'Points\' input fields', () => {
|
@@ -31,6 +31,10 @@ describe('Create item page - Fill in the gaps over image with text: Minimum scor
|
|
31
31
|
cy.barsPreLoaderWait();
|
32
32
|
fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
33
33
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
34
|
+
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
35
|
+
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
36
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
37
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
34
38
|
});
|
35
39
|
|
36
40
|
fillInTheGapsOverImageTextPage.tests.verifyPenaltyScoringDropdown(penaltyScoringTypeArray);
|
@@ -7,7 +7,8 @@ describe('Create item page - Fill in the gaps over image with text: Set limit se
|
|
7
7
|
cy.loginAs('admin');
|
8
8
|
});
|
9
9
|
|
10
|
-
|
10
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566928
|
11
|
+
describe('Fill in the gaps over image with text: Set limit section - Edit tab contents', () => {
|
11
12
|
abortEarlySetup();
|
12
13
|
before(() => {
|
13
14
|
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
@@ -46,12 +47,13 @@ describe('Create item page - Fill in the gaps over image with text: Set limit se
|
|
46
47
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }]);
|
47
48
|
});
|
48
49
|
|
50
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566930
|
49
51
|
fillInTheGapsOverImageTextPage.tests.verifyMaximumCharacterLimitWarningConditionsSpecifyCorrectAnswerSection();
|
50
52
|
|
51
53
|
fillInTheGapsOverImageTextPage.tests.verifyMinimumCharacterLimitWarningConditionsSpecifyCorrectAnswerSection();
|
52
54
|
});
|
53
55
|
|
54
|
-
describe('
|
56
|
+
describe('Fill in the gaps over image with text: Set limit section : Preview tab functionality', () => {
|
55
57
|
abortEarlySetup();
|
56
58
|
before(() => {
|
57
59
|
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
@@ -79,6 +81,7 @@ describe('Create item page - Fill in the gaps over image with text: Set limit se
|
|
79
81
|
|
80
82
|
fillInTheGapsOverImageTextPage.tests.verifyMaximumCharacterLimitWarningConditionsPreviewTab();
|
81
83
|
|
84
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566930
|
82
85
|
fillInTheGapsOverImageTextPage.tests.verifyMinimumCharacterLimitWarningConditionsPreviewTab();
|
83
86
|
});
|
84
87
|
});
|
@@ -173,8 +173,8 @@ describe('Fill In the gaps with text - Additional settings : Placeholder text, G
|
|
173
173
|
|
174
174
|
it('When the user sets aria label, then in the answer input fields of the specify correct answer section, the aria labels should not change', () => {
|
175
175
|
fillInTheGapsTextPage.steps.enterTextInAriaLabelInputField(0, 'Add answer for response 1');
|
176
|
-
fillInTheGapsTextPage.steps.verifyAnswerInputFieldAriaLabelSpecifyCorrectAnswerSection(0, '
|
177
|
-
fillInTheGapsTextPage.steps.verifyAnswerInputFieldAriaLabelSpecifyCorrectAnswerSection(1, '
|
176
|
+
fillInTheGapsTextPage.steps.verifyAnswerInputFieldAriaLabelSpecifyCorrectAnswerSection(0, 'Enter answer');
|
177
|
+
fillInTheGapsTextPage.steps.verifyAnswerInputFieldAriaLabelSpecifyCorrectAnswerSection(1, 'Enter answer');
|
178
178
|
});
|
179
179
|
});
|
180
180
|
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with text: Question instructions,
|
|
78
78
|
fillInTheGapsTextPage.steps.verifyResponseAreaContents(2);
|
79
79
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldSpecifyCorrectAnswerSection(), 3);
|
80
80
|
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsTextPage.responseAccordionLabel(), 2), 'Response 3');
|
81
|
-
fillInTheGapsTextPage.steps.
|
81
|
+
fillInTheGapsTextPage.steps.expandAdditionalSettings();
|
82
82
|
utilities.verifyElementCount(fillInTheGapsTextPage.ariaLabelInputField(), 3);
|
83
83
|
});
|
84
84
|
|
@@ -74,7 +74,8 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
|
|
74
74
|
fillInTheGapsTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
|
75
75
|
|
76
76
|
it('When no points are entered in the points input field, then points per response should not be displayed on the response accordion', () => {
|
77
|
-
|
77
|
+
fillInTheGapsTextPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 0);
|
78
|
+
fillInTheGapsTextPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 0);
|
78
79
|
});
|
79
80
|
|
80
81
|
it('When the user gives a score input to \'Points\' input field, then the score should be equally divided and displayed on each response tab with a \'Points:\' label', () => {
|
@@ -161,8 +162,8 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
|
|
161
162
|
|
162
163
|
it('When the user has switched to \'Partial - different weights\' scoring, then the correct answer tab points input field should not be displayed and individual empty points input field should be displayed in each response accordion', () => {
|
163
164
|
utilities.verifyElementCount(fillInTheGapsTextPage.pointsInputField(), 2);
|
164
|
-
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0,
|
165
|
-
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1,
|
165
|
+
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0, 0);
|
166
|
+
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1, 0);
|
166
167
|
});
|
167
168
|
|
168
169
|
it('User should be able to set points in the \'Points\' input fields', () => {
|
package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js
CHANGED
@@ -24,6 +24,7 @@ describe('Create item page - Fill in the gaps with text: Minimum scoring, Penalt
|
|
24
24
|
fillInTheGapsTextPage.tests.verifyMinimumPointsFieldErrorState();
|
25
25
|
});
|
26
26
|
|
27
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566943
|
27
28
|
describe('Scoring section: Penalty scoring - Edit tab', () => {
|
28
29
|
abortEarlySetup();
|
29
30
|
before(() => {
|
@@ -30,14 +30,6 @@ describe('Create item page - Fill in the gaps with text - Special characters sec
|
|
30
30
|
|
31
31
|
fillInTheGapsTextPage.tests.verifyShowOnlyCustomSpecialCharactersEditTabContent();
|
32
32
|
|
33
|
-
it('When the user specifies custom special characters, then on clicking on the \'Preview\' hyperlink, only the specified custom special characters should be displayed in the popup', () => {
|
34
|
-
fillInTheGapsTextPage.steps.addInputToCustomSpecialCharactersInputField(`${customSpecialCharacters.join('')}`);
|
35
|
-
fillInTheGapsTextPage.steps.clickOnCustomizeSpecialCharactersPreviewButton();
|
36
|
-
fillInTheGapsTextPage.steps.verifyCustomSpecialCharactersDisplayedInPreviewPopupEditTab(customSpecialCharacters);
|
37
|
-
cy.log('Post-step: Closing preview popup')
|
38
|
-
dialogBoxBase.steps.closeWarningPopup();
|
39
|
-
});
|
40
|
-
|
41
33
|
it('CSS of special characters section', { tags: 'css' }, () => {
|
42
34
|
utilities.verifyCSS(fillInTheGapsTextPage.specialCharactersLabel(), {
|
43
35
|
'color': css.color.labels,
|
@@ -17,7 +17,7 @@ describe('Create item page - GeoGebra activity: Additional Settings accordion',
|
|
17
17
|
geoGebraActivityPage.steps.navigateToCreateQuestion('GeoGebra activity');
|
18
18
|
cy.barsPreLoaderWait();
|
19
19
|
});
|
20
|
-
geoGebraActivityPage.tests.
|
20
|
+
geoGebraActivityPage.tests.verifyAdditionalSettingsAccordionProperties();
|
21
21
|
});
|
22
22
|
|
23
23
|
describe('Additional settings: Font size contents', () => {
|
@@ -41,8 +41,8 @@ describe('Graphing: Add background shapes section', () => {
|
|
41
41
|
});
|
42
42
|
|
43
43
|
it('\'X axis label\' and \'Y axis label\' should be displayed', () => {
|
44
|
-
utilities.verifyInnerText(graphingPage.
|
45
|
-
utilities.verifyInnerText(graphingPage.
|
44
|
+
utilities.verifyInnerText(graphingPage.xAxisLabelGraphEditTab(), 'X axis label');
|
45
|
+
utilities.verifyInnerText(graphingPage.yAxisLabelGraphEditTab(), 'Y axis label');
|
46
46
|
});
|
47
47
|
|
48
48
|
it('X max and X min labels with input fields should be displayed and by default the input fields should have value \'10\' and \'-10\' respectively', () => {
|
@@ -78,7 +78,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
78
78
|
});
|
79
79
|
|
80
80
|
it('The input field should be prefilled with \'Graph title\' and the user should be able to edit it', () => {
|
81
|
-
|
81
|
+
graphingPage.steps.verifyTextInTitlePopupAddLabelInputField('Graph title');
|
82
82
|
});
|
83
83
|
|
84
84
|
it('When the user edits the graph title and clicks on \'Cancel\' button then the changes should not be displayed in the background section graph and \'Specify correct answer\' section graph', () => {
|
@@ -90,7 +90,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
90
90
|
|
91
91
|
it('When the user clicks on the \'Graph title\' then the original text should be displayed in the popup', () => {
|
92
92
|
graphingPage.steps.clickOnGraphTitle();
|
93
|
-
|
93
|
+
graphingPage.steps.verifyTextInTitlePopupAddLabelInputField('Graph title');
|
94
94
|
});
|
95
95
|
|
96
96
|
it('When the user clicks on \'Save\' after updating the input field the updated label should be displayed in the background section graph and \'Specify correct answer\' section graph', () => {
|
@@ -111,7 +111,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
111
111
|
});
|
112
112
|
|
113
113
|
it('The input field should be prefilled with \'X axis label\' and the user should be able to edit it', () => {
|
114
|
-
|
114
|
+
graphingPage.steps.verifyTextInTitlePopupAddLabelInputField('X axis label');
|
115
115
|
});
|
116
116
|
|
117
117
|
it('When the user edits the x axis label and clicks on \'Cancel\' button then the changes should not be displayed in the background section graph and \'Specify correct answer\' section graph', () => {
|
@@ -123,7 +123,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
123
123
|
|
124
124
|
it('When the user clicks on the \'X axis label\' then the original text should be displayed in the popup', () => {
|
125
125
|
graphingPage.steps.clickOnXAxisLabel();
|
126
|
-
|
126
|
+
graphingPage.steps.verifyTextInTitlePopupAddLabelInputField('X axis label');
|
127
127
|
});
|
128
128
|
|
129
129
|
it('When the user clicks on \'Save\' after updating the input field the updated label should be displayed in the background section graph and \'Specify correct answer\' section graph', () => {
|
@@ -144,7 +144,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
144
144
|
});
|
145
145
|
|
146
146
|
it('The input field should be prefilled with \'Y axis label\' and the user should be able to edit it', () => {
|
147
|
-
|
147
|
+
graphingPage.steps.verifyTextInTitlePopupAddLabelInputField('Y axis label');
|
148
148
|
});
|
149
149
|
|
150
150
|
it('When the user edits the Y axis label and clicks on \'Cancel\' button then the changes should not be displayed in the background section graph and \'Specify correct answer\' section graph', () => {
|
@@ -156,7 +156,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
156
156
|
|
157
157
|
it('When the user clicks on the \'Y axis label\' then the original text should be displayed in the popup', () => {
|
158
158
|
graphingPage.steps.clickOnYAxisLabel();
|
159
|
-
|
159
|
+
graphingPage.steps.verifyTextInTitlePopupAddLabelInputField('Y axis label');
|
160
160
|
});
|
161
161
|
|
162
162
|
it('When the user clicks on \'Save\' after updating the input field the updated label should be displayed in the background section graph and \'Specify correct answer\' section graph', () => {
|
@@ -169,20 +169,20 @@ describe('Graphing: Add background shapes section', () => {
|
|
169
169
|
//X max and X min
|
170
170
|
it('When X max and X min values are 10 and -10 respectively then on the X axis should range from (-9, 9) in the background section graph and \'Specify correct answer\' section graph', () => {
|
171
171
|
graphingPage.steps.verifyXMaxInputFieldValue('10');
|
172
|
-
graphingPage.steps.
|
173
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
174
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
175
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
176
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
172
|
+
graphingPage.steps.verifyXMinInputFieldValue('-10');
|
173
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('10'), 'exist');
|
174
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('11'), 'notExist');
|
175
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('10'), 'exist');
|
176
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('11'), 'notExist');
|
177
177
|
});
|
178
178
|
|
179
179
|
it('When the user updates the value of X max and X min then on the X axis should range change accordingly in the background section graph and \'Specify correct answer\' section graph', () => {
|
180
180
|
graphingPage.steps.enterTextInXMaxInputField('11');
|
181
181
|
graphingPage.steps.enterTextInXMinInputField('-11');
|
182
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
183
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
184
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
185
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
182
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('11'), 'exist');
|
183
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('12'), 'notExist');
|
184
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('11'), 'exist');
|
185
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('12'), 'notExist');
|
186
186
|
cy.log('Post step: Resetting X axis values')
|
187
187
|
graphingPage.steps.enterTextInXMaxInputField('10');
|
188
188
|
graphingPage.steps.enterTextInXMinInputField('-10');
|
@@ -191,20 +191,20 @@ describe('Graphing: Add background shapes section', () => {
|
|
191
191
|
//Y max and Y min
|
192
192
|
it('When Y max and Y min values are 10 and -10 respectively then on the Y axis should range from (-9, 9) in the background section graph and \'Specify correct answer\' section graph', () => {
|
193
193
|
graphingPage.steps.verifyYMaxInputFieldValue('10');
|
194
|
-
graphingPage.steps.
|
195
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
196
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
197
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
198
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
194
|
+
graphingPage.steps.verifyYMinInputFieldValue('-10');
|
195
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('10'), 'exist');
|
196
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('11'), 'notExist');
|
197
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('10'), 'exist');
|
198
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('11'), 'notExist');
|
199
199
|
});
|
200
200
|
|
201
201
|
it('When the user updates the value of Y max and Y min then on the Y axis should range change accordingly in the background section graph and \'Specify correct answer\' section graph', () => {
|
202
202
|
graphingPage.steps.enterTextInYMaxInputField('11');
|
203
203
|
graphingPage.steps.enterTextInYMinInputField('-11');
|
204
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
205
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('
|
206
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
207
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('
|
204
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('11'), 'exist');
|
205
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphEditTab('12'), 'notExist');
|
206
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('11'), 'exist');
|
207
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphSpecifyCorrectAnswerSection('12'), 'notExist');
|
208
208
|
});
|
209
209
|
});
|
210
210
|
|
@@ -217,6 +217,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
217
217
|
|
218
218
|
//Graph title
|
219
219
|
it('When the user edits the graph title and clicks on \'Cancel\' button then the changes should not be displayed in the preview tab graph', () => {
|
220
|
+
graphingPage.steps.clickOnGraphTitle();
|
220
221
|
graphingPage.steps.enterTextInTitlePopupAddLabelInputField('Edit graph title');
|
221
222
|
graphingPage.steps.clickOnTitlePopupCancelButton();
|
222
223
|
graphingPage.steps.switchToPreviewTab();
|
@@ -225,6 +226,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
225
226
|
|
226
227
|
it('When the user clicks on \'Save\' after updating the input field the updated label should be displayed in the preview tab graph', () => {
|
227
228
|
graphingPage.steps.switchToEditTab();
|
229
|
+
graphingPage.steps.clickOnGraphTitle();
|
228
230
|
graphingPage.steps.enterTextInTitlePopupAddLabelInputField('Edit graph title');
|
229
231
|
graphingPage.steps.clickOnTitlePopupCancelButton();
|
230
232
|
graphingPage.steps.switchToPreviewTab();
|
@@ -234,6 +236,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
234
236
|
//X axis
|
235
237
|
it('When the user edits the x axis label and clicks on \'Cancel\' button then the changes should not be displayed in the preview tab graph', () => {
|
236
238
|
graphingPage.steps.switchToEditTab();
|
239
|
+
graphingPage.steps.clickOnXAxisLabel();
|
237
240
|
graphingPage.steps.enterTextInTitlePopupAddLabelInputField('Edit x axis title');
|
238
241
|
graphingPage.steps.clickOnTitlePopupCancelButton();
|
239
242
|
graphingPage.steps.switchToPreviewTab();
|
@@ -252,6 +255,7 @@ describe('Graphing: Add background shapes section', () => {
|
|
252
255
|
//Y axis
|
253
256
|
it('When the user edits the y axis label and clicks on \'Cancel\' button then the changes should not be displayed in the preview tab graph', () => {
|
254
257
|
graphingPage.steps.switchToEditTab();
|
258
|
+
graphingPage.steps.clickOnYAxisLabel();
|
255
259
|
graphingPage.steps.enterTextInTitlePopupAddLabelInputField('Edit y axis title');
|
256
260
|
graphingPage.steps.clickOnTitlePopupCancelButton();
|
257
261
|
graphingPage.steps.switchToPreviewTab();
|
@@ -269,8 +273,8 @@ describe('Graphing: Add background shapes section', () => {
|
|
269
273
|
|
270
274
|
//X max and X min
|
271
275
|
it('When X max and X min values are 10 and -10 respectively then on the X axis should range from (-9, 9) in the preview tab graph', () => {
|
272
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
273
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
276
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('10'), 'exist');
|
277
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('11'), 'notExist');
|
274
278
|
});
|
275
279
|
|
276
280
|
it('When the user updates the value of X max and X min then on the X axis should range change accordingly in the preview tab graph', () => {
|
@@ -278,8 +282,8 @@ describe('Graphing: Add background shapes section', () => {
|
|
278
282
|
graphingPage.steps.enterTextInXMaxInputField('11');
|
279
283
|
graphingPage.steps.enterTextInXMinInputField('-11');
|
280
284
|
graphingPage.steps.switchToPreviewTab();
|
281
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
282
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
285
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('11'), 'exist');
|
286
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('12'), 'notExist');
|
283
287
|
graphingPage.steps.switchToEditTab();
|
284
288
|
cy.log('Post step: Resetting X axis values')
|
285
289
|
graphingPage.steps.enterTextInXMaxInputField('10');
|
@@ -289,10 +293,10 @@ describe('Graphing: Add background shapes section', () => {
|
|
289
293
|
//Y max and Y min
|
290
294
|
it('When Y max and Y min values are 10 and -10 respectively then on the Y axis should range from (-9, 9) in the preview tab graph', () => {
|
291
295
|
graphingPage.steps.verifyYMaxInputFieldValue('10');
|
292
|
-
graphingPage.steps.
|
296
|
+
graphingPage.steps.verifyYMinInputFieldValue('-10');
|
293
297
|
graphingPage.steps.switchToPreviewTab();
|
294
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
295
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
298
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('10'), 'exist');
|
299
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('11'), 'notExist');
|
296
300
|
});
|
297
301
|
|
298
302
|
it('When the user updates the value of Y max and Y min then on the Y axis should range change accordingly in the preview tab graph', () => {
|
@@ -300,8 +304,8 @@ describe('Graphing: Add background shapes section', () => {
|
|
300
304
|
graphingPage.steps.enterTextInYMaxInputField('11');
|
301
305
|
graphingPage.steps.enterTextInYMinInputField('-11');
|
302
306
|
graphingPage.steps.switchToPreviewTab();
|
303
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
304
|
-
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('
|
307
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('11'), 'exist');
|
308
|
+
utilities.verifyElementVisibilityState(graphingPage.textOnGraphPreviewTab('12'), 'notExist');
|
305
309
|
});
|
306
310
|
});
|
307
311
|
});
|
@@ -17,7 +17,7 @@ describe('Create item page - Graphing: Additional Settings accordion', () => {
|
|
17
17
|
cy.barsPreLoaderWait();
|
18
18
|
});
|
19
19
|
|
20
|
-
graphingPage.tests.
|
20
|
+
graphingPage.tests.verifyAdditionalSettingsAccordionProperties();
|
21
21
|
});
|
22
22
|
|
23
23
|
describe('Additional settings: Font size contents', () => {
|
@@ -166,10 +166,12 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
|
|
166
166
|
graphingPage.steps.expandGridOptionsAccordion();
|
167
167
|
});
|
168
168
|
|
169
|
-
it('\'Snap to grid\' checkbox and label should be displayed and by default the checkbox should be
|
169
|
+
it('\'Snap to grid\' checkbox and label should be displayed and by default the checkbox should be checked', () => {
|
170
170
|
utilities.verifyInnerText(graphingPage.snapToGridLabel(), 'Snap to grid');
|
171
171
|
utilities.verifyElementVisibilityState(graphingPage.snapToGridCheckbox(), 'exist');
|
172
|
-
graphingPage.steps.
|
172
|
+
graphingPage.steps.verifySnapToCheckboxIsChecked();
|
173
|
+
cy.log('Post step: Unchecking snap to grid to check x and Y tolerance functionality')
|
174
|
+
graphingPage.steps.uncheckSnapToGridCheckbox();
|
173
175
|
});
|
174
176
|
|
175
177
|
it('\'X tolerance\' and \'Y tolerance\' label along with input field should be displayed and by default 0 should be displayed in the input field', () => {
|
@@ -359,10 +361,10 @@ describe('Graphing: Layout section - Edit tab and preview tab tool options', ()
|
|
359
361
|
//Snap to grid
|
360
362
|
it('When snap to grid is unchecked user should be able to plot decimal points on the graph in \'Specify correct answer\' section and background section graph', () => {
|
361
363
|
graphingPage.steps.uncheckSnapToGridCheckbox();
|
362
|
-
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2.5, xRange: 20, y:
|
363
|
-
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 2.5, xRange: 20, y:
|
364
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 3.5, xRange: 20, y:
|
365
|
-
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3.5, xRange: 20, y:
|
364
|
+
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2.5, xRange: 20, y: 2.5, yRange: 20 }]);
|
365
|
+
graphingPage.steps.verifyPointsPlottedOnEditTabGraph([{ x: 2.5, xRange: 20, y: 2.5, yRange: 20 }]);
|
366
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 3.5, xRange: 20, y: 3.5, yRange: 20 }]);
|
367
|
+
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 3.5, xRange: 20, y: 3.5, yRange: 20 }]);
|
366
368
|
});
|
367
369
|
|
368
370
|
it('When the user checks snap to grid checkbox then the X and Y tolerance should become disabled and the user should not be able to plot decimal points', () => {
|