itemengine-cypress-automation 1.0.278-revert-134-updatedRepo12thDec-5aacd81.0 → 1.0.278
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +11 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +5 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +7 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +6 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +6 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +4 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/toolSettings.js +8 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +6 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +3 -4
- package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +4 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +2 -3
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +5 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +3 -0
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +6 -3
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +23 -1
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +476 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +129 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +7 -5
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +384 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
- package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +19 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
- package/cypress/pages/components/essayResponseCommonComponents.js +6 -5
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +6 -2
- package/cypress/pages/components/numberLineCommonComponent.js +12 -5
- package/cypress/pages/components/playbackControlsBaseComponent.js +5 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/drawingResponsePage.js +18 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -6
- package/cypress/pages/gridFillPage.js +2 -3
- package/cypress/pages/listOrderingPage.js +19 -12
- package/cypress/pages/matchingPage.js +16 -2
- package/cypress/pages/textEntryMathPage.js +715 -3
- package/cypress/pages/textEntryMathWithImagePage.js +133 -5
- package/package.json +1 -1
@@ -1,5 +1,7 @@
|
|
1
1
|
import { textEntryMathPage } from "../../../pages";
|
2
|
+
import { equationEditorFlyout } from "../../../pages/components";
|
2
3
|
|
4
|
+
const arrNoSetAnswer = ['Response is true', 'Expanded form', 'Factored form', 'Simplified version'];
|
3
5
|
const evaluationMethods = [
|
4
6
|
{
|
5
7
|
method: 'Symbols are equivalent',
|
@@ -37,6 +39,12 @@ const evaluationMethods = [
|
|
37
39
|
thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
|
38
40
|
additionalOptions: []
|
39
41
|
},
|
42
|
+
{
|
43
|
+
method: 'Factored form',
|
44
|
+
decimalSeparator: ['Dot', 'Comma'],
|
45
|
+
thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
|
46
|
+
additionalOptions: []
|
47
|
+
},
|
40
48
|
{
|
41
49
|
method: 'Simplified version',
|
42
50
|
decimalSeparator: ['Dot', 'Comma'],
|
@@ -51,6 +59,10 @@ const evaluationMethods = [
|
|
51
59
|
}
|
52
60
|
];
|
53
61
|
|
62
|
+
const filteredMethods = evaluationMethods.filter(method =>
|
63
|
+
method.decimalSeparator.length > 0 && method.thousandsSeparator.length > 0
|
64
|
+
);
|
65
|
+
|
54
66
|
describe('Custom Settings Separators for Text Entry Math', () => {
|
55
67
|
before(() => {
|
56
68
|
cy.loginAs('admin');
|
@@ -104,4 +116,468 @@ describe('Custom Settings Separators for Text Entry Math', () => {
|
|
104
116
|
}
|
105
117
|
});
|
106
118
|
});
|
119
|
+
|
120
|
+
filteredMethods.forEach(method => {
|
121
|
+
describe(`\'Decimal separator\' and \'Thousands separator\' - ${method.method}`, () => {
|
122
|
+
before(() => {
|
123
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
124
|
+
cy.barsPreLoaderWait();
|
125
|
+
textEntryMathPage.steps.addResponseArea();
|
126
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
127
|
+
textEntryMathPage.steps.allotPoints(20);
|
128
|
+
textEntryMathPage.steps.selectEvaluationMethod(`${method.method}`);
|
129
|
+
if (!arrNoSetAnswer.includes(`${method.method}`)) {
|
130
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
131
|
+
equationEditorFlyout.steps.clearAll();
|
132
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('29999.1234');
|
133
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
134
|
+
}
|
135
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
136
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
137
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
138
|
+
});
|
139
|
+
|
140
|
+
//decimal separator - dot
|
141
|
+
it('When Dot is selected as \'Decimal separator\' and user attempts with dot as the \'Decimal separator\' then it should be treated as correct', () => {
|
142
|
+
textEntryMathPage.steps.verifySelectedStateOfDecimalSeparator('Dot');
|
143
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
144
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
145
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
|
146
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
147
|
+
textEntryMathPage.steps.switchToGradingView();
|
148
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
149
|
+
cy.wait(1000);
|
150
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
151
|
+
});
|
152
|
+
|
153
|
+
it('When Dot is selected as \'Decimal separator\' and user attempts with comma as the \'Decimal separator\' then it should be treated as incorrect', () => {
|
154
|
+
textEntryMathPage.steps.switchToEditTab();
|
155
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
156
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
157
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
|
158
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
159
|
+
textEntryMathPage.steps.switchToGradingView();
|
160
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
161
|
+
cy.wait(1000);
|
162
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
163
|
+
});
|
164
|
+
|
165
|
+
//decimal separator - dot, thousands separator - none
|
166
|
+
it('When Dot is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
167
|
+
textEntryMathPage.steps.switchToEditTab();
|
168
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
169
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
170
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
|
171
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
172
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
173
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
|
174
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
175
|
+
textEntryMathPage.steps.switchToGradingView();
|
176
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
177
|
+
cy.wait(1000);
|
178
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
179
|
+
});
|
180
|
+
|
181
|
+
it('When Dot is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with comma as \'Thousands separator\' then it should be treated as incorrect', () => {
|
182
|
+
textEntryMathPage.steps.switchToEditTab();
|
183
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
184
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
185
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
|
186
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
187
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
188
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
|
189
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
190
|
+
textEntryMathPage.steps.switchToGradingView();
|
191
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
192
|
+
cy.wait(1000);
|
193
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
194
|
+
});
|
195
|
+
|
196
|
+
it('When Dot is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
|
197
|
+
textEntryMathPage.steps.switchToEditTab();
|
198
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
199
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
200
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
|
201
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
202
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
203
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29 999.1234');
|
204
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
205
|
+
textEntryMathPage.steps.switchToGradingView();
|
206
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
207
|
+
cy.wait(1000);
|
208
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
209
|
+
});
|
210
|
+
|
211
|
+
//decimal separator - dot, thousands separator - comma or space
|
212
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Comma or space\' as \'Thousands separator\' and attempts with comma as \'Thousands separator\' then it should be treated as correct', () => {
|
213
|
+
textEntryMathPage.steps.switchToEditTab();
|
214
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
215
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
216
|
+
textEntryMathPage.steps.selectThousandSeparatorOption(1);
|
217
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma or space');
|
218
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
219
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
220
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
|
221
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
222
|
+
textEntryMathPage.steps.switchToGradingView();
|
223
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
224
|
+
cy.wait(1000);
|
225
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
226
|
+
});
|
227
|
+
|
228
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Comma or space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
229
|
+
textEntryMathPage.steps.switchToEditTab();
|
230
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
231
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
232
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma or space');
|
233
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
234
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
235
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
|
236
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
237
|
+
textEntryMathPage.steps.switchToGradingView();
|
238
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
239
|
+
cy.wait(1000);
|
240
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
241
|
+
});
|
242
|
+
|
243
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Comma or space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
|
244
|
+
textEntryMathPage.steps.switchToEditTab();
|
245
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
246
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
247
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma or space');
|
248
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
249
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
250
|
+
cy.wait(2000);
|
251
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999.1234');
|
252
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
253
|
+
textEntryMathPage.steps.switchToGradingView();
|
254
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
255
|
+
cy.wait(1000);
|
256
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
257
|
+
});
|
258
|
+
|
259
|
+
//decimal separator - dot, thousands separator - comma
|
260
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Comma\' as \'Thousands separator\' and attempts with comma as \'Thousands separator\' then it should be treated as correct', () => {
|
261
|
+
textEntryMathPage.steps.switchToEditTab();
|
262
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
263
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
264
|
+
textEntryMathPage.steps.selectThousandSeparatorOption(2);
|
265
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma');
|
266
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
267
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
268
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
|
269
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
270
|
+
textEntryMathPage.steps.switchToGradingView();
|
271
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
272
|
+
cy.wait(1000);
|
273
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
274
|
+
});
|
275
|
+
|
276
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Comma\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
277
|
+
textEntryMathPage.steps.switchToEditTab();
|
278
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
279
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
280
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma');
|
281
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
282
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
283
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
|
284
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
285
|
+
textEntryMathPage.steps.switchToGradingView();
|
286
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
287
|
+
cy.wait(1000);
|
288
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
289
|
+
});
|
290
|
+
|
291
|
+
//Remove skip after https://weldnorthed.atlassian.net/browse/IEI-4682 is resolved
|
292
|
+
it.skip('When Dot is selected as \'Decimal separator\' and user selects \'Comma\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
|
293
|
+
textEntryMathPage.steps.switchToEditTab();
|
294
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
295
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
296
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Comma');
|
297
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
298
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
299
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999.1234');
|
300
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
301
|
+
textEntryMathPage.steps.switchToGradingView();
|
302
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
303
|
+
cy.wait(1000);
|
304
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
305
|
+
});
|
306
|
+
|
307
|
+
//decimal separator - dot, thousands separator - space
|
308
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
|
309
|
+
textEntryMathPage.steps.switchToEditTab();
|
310
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
311
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
312
|
+
textEntryMathPage.steps.selectThousandSeparatorOption(3);
|
313
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
|
314
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
315
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
316
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999.1234');
|
317
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
318
|
+
textEntryMathPage.steps.switchToGradingView();
|
319
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
320
|
+
cy.wait(1000);
|
321
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
322
|
+
});
|
323
|
+
|
324
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
325
|
+
textEntryMathPage.steps.switchToEditTab();
|
326
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
327
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
328
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
|
329
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
330
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
331
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
|
332
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
333
|
+
textEntryMathPage.steps.switchToGradingView();
|
334
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
335
|
+
cy.wait(1000);
|
336
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
337
|
+
});
|
338
|
+
|
339
|
+
it('When Dot is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with comma as \'Thousands separator\' then it should be treated as incorrect', () => {
|
340
|
+
textEntryMathPage.steps.switchToEditTab();
|
341
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
342
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
343
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
|
344
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
345
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
346
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29,999.1234');
|
347
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
348
|
+
textEntryMathPage.steps.switchToGradingView();
|
349
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
350
|
+
cy.wait(1000);
|
351
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
352
|
+
});
|
353
|
+
|
354
|
+
//decimal separator - comma
|
355
|
+
it('When user selects Comma as \'Decimal separator\' and user attempts with comma as the \'Decimal separator\' then it should be treated as correct', () => {
|
356
|
+
textEntryMathPage.steps.switchToEditTab();
|
357
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
358
|
+
if (!arrNoSetAnswer.includes(`${method.method}`)) {
|
359
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
360
|
+
equationEditorFlyout.steps.clearAll();
|
361
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('29999,1234');
|
362
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
363
|
+
}
|
364
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
365
|
+
textEntryMathPage.steps.selectDecimalSeparatorOption('Comma');
|
366
|
+
textEntryMathPage.steps.verifySelectedStateOfDecimalSeparator('Comma');
|
367
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
368
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
369
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
|
370
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
371
|
+
textEntryMathPage.steps.switchToGradingView();
|
372
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
373
|
+
cy.wait(1000);
|
374
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
375
|
+
});
|
376
|
+
|
377
|
+
it('When Comma is selected as \'Decimal separator\' and user attempts with dot as the \'Decimal separator\' then it should be treated as incorrect', () => {
|
378
|
+
textEntryMathPage.steps.switchToEditTab();
|
379
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
380
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
381
|
+
textEntryMathPage.steps.selectDecimalSeparatorOption('Comma');
|
382
|
+
textEntryMathPage.steps.verifySelectedStateOfDecimalSeparator('Comma');
|
383
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
384
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
385
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999.1234');
|
386
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
387
|
+
textEntryMathPage.steps.switchToGradingView();
|
388
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
389
|
+
cy.wait(1000);
|
390
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
391
|
+
});
|
392
|
+
|
393
|
+
//decimal separator - comma, thousands separator - none
|
394
|
+
it('When Comma is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
395
|
+
textEntryMathPage.steps.switchToEditTab();
|
396
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
397
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
398
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
|
399
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
400
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
401
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
|
402
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
403
|
+
textEntryMathPage.steps.switchToGradingView();
|
404
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
405
|
+
cy.wait(1000);
|
406
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
407
|
+
});
|
408
|
+
|
409
|
+
it('When Comma is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with dot as \'Thousands separator\' then it should be treated as incorrect', () => {
|
410
|
+
textEntryMathPage.steps.switchToEditTab();
|
411
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
412
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
413
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
|
414
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
415
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
416
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
|
417
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
418
|
+
textEntryMathPage.steps.switchToGradingView();
|
419
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
420
|
+
cy.wait(1000);
|
421
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
422
|
+
});
|
423
|
+
|
424
|
+
//Remove skip after https://weldnorthed.atlassian.net/browse/IEI-4682 is resolved
|
425
|
+
it.skip('When Comma is selected as \'Decimal separator\' and None is selected as \'Thousands separator\' and user attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
|
426
|
+
textEntryMathPage.steps.switchToEditTab();
|
427
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
428
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
429
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('None');
|
430
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
431
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
432
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
|
433
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
434
|
+
textEntryMathPage.steps.switchToGradingView();
|
435
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
436
|
+
cy.wait(1000);
|
437
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
438
|
+
});
|
439
|
+
|
440
|
+
//decimal separator - comma, thousands separator - dot or space
|
441
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Dot or space\' as \'Thousands separator\' and attempts with dot as \'Thousands separator\' then it should be treated as correct', () => {
|
442
|
+
textEntryMathPage.steps.switchToEditTab();
|
443
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
444
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
445
|
+
textEntryMathPage.steps.selectThousandSeparatorOption(1);
|
446
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot or space');
|
447
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
448
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
449
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
|
450
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
451
|
+
textEntryMathPage.steps.switchToGradingView();
|
452
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
453
|
+
cy.wait(1000);
|
454
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
455
|
+
});
|
456
|
+
|
457
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Dot or space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
458
|
+
textEntryMathPage.steps.switchToEditTab();
|
459
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
460
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
461
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot or space');
|
462
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
463
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
464
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
|
465
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
466
|
+
textEntryMathPage.steps.switchToGradingView();
|
467
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
468
|
+
cy.wait(1000);
|
469
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
470
|
+
});
|
471
|
+
|
472
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Dot or space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
|
473
|
+
textEntryMathPage.steps.switchToEditTab();
|
474
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
475
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
476
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot or space');
|
477
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
478
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
479
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
|
480
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
481
|
+
textEntryMathPage.steps.switchToGradingView();
|
482
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
483
|
+
cy.wait(1000);
|
484
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
485
|
+
});
|
486
|
+
|
487
|
+
//decimal separator - comma, thousands separator - dot
|
488
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Dot\' as \'Thousands separator\' and attempts with dot as \'Thousands separator\' then it should be treated as correct', () => {
|
489
|
+
textEntryMathPage.steps.switchToEditTab();
|
490
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
491
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
492
|
+
textEntryMathPage.steps.selectThousandSeparatorOption(2);
|
493
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot');
|
494
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
495
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
496
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
|
497
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
498
|
+
textEntryMathPage.steps.switchToGradingView();
|
499
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
500
|
+
cy.wait(1000);
|
501
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
502
|
+
});
|
503
|
+
|
504
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Dot\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
505
|
+
textEntryMathPage.steps.switchToEditTab();
|
506
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
507
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
508
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot');
|
509
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
510
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
511
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
|
512
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
513
|
+
textEntryMathPage.steps.switchToGradingView();
|
514
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
515
|
+
cy.wait(1000);
|
516
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
517
|
+
});
|
518
|
+
|
519
|
+
//Remove skip after https://weldnorthed.atlassian.net/browse/IEI-4682 is resolved
|
520
|
+
it.skip('When Comma is selected as \'Decimal separator\' and user selects \'Dot\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as incorrect', () => {
|
521
|
+
textEntryMathPage.steps.switchToEditTab();
|
522
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
523
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
524
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Dot');
|
525
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
526
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
527
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
|
528
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
529
|
+
textEntryMathPage.steps.switchToGradingView();
|
530
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
531
|
+
cy.wait(1000);
|
532
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
533
|
+
});
|
534
|
+
|
535
|
+
//decimal separator - comma, thousands separator - space
|
536
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with space as \'Thousands separator\' then it should be treated as correct', () => {
|
537
|
+
textEntryMathPage.steps.switchToEditTab();
|
538
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
539
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
540
|
+
textEntryMathPage.steps.selectThousandSeparatorOption(3);
|
541
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
|
542
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
543
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
544
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29\ 999,1234');
|
545
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
546
|
+
textEntryMathPage.steps.switchToGradingView();
|
547
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
548
|
+
cy.wait(1000);
|
549
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
550
|
+
});
|
551
|
+
|
552
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with no \'Thousands separator\' then it should be treated as correct', () => {
|
553
|
+
textEntryMathPage.steps.switchToEditTab();
|
554
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
555
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
556
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
|
557
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
558
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
559
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29999,1234');
|
560
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
561
|
+
textEntryMathPage.steps.switchToGradingView();
|
562
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
563
|
+
cy.wait(1000);
|
564
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
565
|
+
});
|
566
|
+
|
567
|
+
it('When Comma is selected as \'Decimal separator\' and user selects \'Space\' as \'Thousands separator\' and attempts with dot as \'Thousands separator\' then it should be treated as incorrect', () => {
|
568
|
+
textEntryMathPage.steps.switchToEditTab();
|
569
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
570
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
571
|
+
textEntryMathPage.steps.verifySelectedStateOfThousandsSeparator('Space');
|
572
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
573
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
574
|
+
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '29.999,1234');
|
575
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
576
|
+
textEntryMathPage.steps.switchToGradingView();
|
577
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
578
|
+
cy.wait(1000);
|
579
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
580
|
+
});
|
581
|
+
});
|
582
|
+
});
|
107
583
|
});
|
@@ -92,7 +92,7 @@ describe('Create item page - Text entry math: Question instructions, Add structu
|
|
92
92
|
textEntryMathPage.steps.switchToEditTab();
|
93
93
|
textEntryMathPage.steps.deleteAResponseArea(0);
|
94
94
|
textEntryMathPage.steps.deleteAResponseArea(0);
|
95
|
-
utilities.verifyElementVisibilityState(textEntryMathPage.errorMessage(), '
|
95
|
+
utilities.verifyElementVisibilityState(textEntryMathPage.errorMessage(), 'notExist');
|
96
96
|
});
|
97
97
|
|
98
98
|
textEntryMathPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -90,7 +90,7 @@ describe('Create question page - Text Entry Math: Equation Editor functionality'
|
|
90
90
|
cy.log('Adding an equation to preview input field')
|
91
91
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['add', 'five', 'equalTo', 'one'] }]);
|
92
92
|
equationEditorFlyout.steps.clickOnOkButton();
|
93
|
-
textEntryMathPage.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1
|
93
|
+
textEntryMathPage.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
|
94
94
|
});
|
95
95
|
|
96
96
|
textEntryMathPage.tests.editEquationInPreviewTab('text entry math');
|
@@ -0,0 +1,129 @@
|
|
1
|
+
import { textEntryMathPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
describe('Create Item page - Text Entry Math: Style and layout customization', () => {
|
4
|
+
before(() => {
|
5
|
+
cy.loginAs('admin');
|
6
|
+
});
|
7
|
+
|
8
|
+
describe('Style and layout customization accordion', () => {
|
9
|
+
abortEarlySetup();
|
10
|
+
before(() => {
|
11
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
12
|
+
cy.barsPreLoaderWait();
|
13
|
+
});
|
14
|
+
|
15
|
+
textEntryMathPage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
|
16
|
+
});
|
17
|
+
|
18
|
+
describe('Style and layout customization accordion contents', () => {
|
19
|
+
abortEarlySetup();
|
20
|
+
before(() => {
|
21
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
22
|
+
cy.barsPreLoaderWait();
|
23
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
24
|
+
});
|
25
|
+
|
26
|
+
textEntryMathPage.tests.verifyStyleAndLayoutCustomizationAccordionContent('add structure');
|
27
|
+
});
|
28
|
+
|
29
|
+
describe('Fill color - Edit tab', () => {
|
30
|
+
abortEarlySetup();
|
31
|
+
before(() => {
|
32
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
33
|
+
cy.barsPreLoaderWait();
|
34
|
+
textEntryMathPage.steps.addResponseArea();
|
35
|
+
textEntryMathPage.steps.addResponseArea();
|
36
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
37
|
+
});
|
38
|
+
|
39
|
+
textEntryMathPage.tests.verifyFillColorFunctionalityEditTab('add structure');
|
40
|
+
});
|
41
|
+
|
42
|
+
describe('Fill color - Preview tab', () => {
|
43
|
+
abortEarlySetup();
|
44
|
+
before(() => {
|
45
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
46
|
+
cy.barsPreLoaderWait();
|
47
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
48
|
+
textEntryMathPage.steps.addResponseArea();
|
49
|
+
textEntryMathPage.steps.addResponseArea();
|
50
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
51
|
+
});
|
52
|
+
|
53
|
+
textEntryMathPage.tests.verifyFillColorFunctionalityPreviewTab('add structure');
|
54
|
+
});
|
55
|
+
|
56
|
+
describe('Border color - Edit tab', () => {
|
57
|
+
abortEarlySetup();
|
58
|
+
before(() => {
|
59
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
60
|
+
cy.barsPreLoaderWait();
|
61
|
+
textEntryMathPage.steps.addResponseArea();
|
62
|
+
textEntryMathPage.steps.addResponseArea();
|
63
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
64
|
+
});
|
65
|
+
|
66
|
+
textEntryMathPage.tests.verifyBorderColorFunctionalityEditTab('add structure');
|
67
|
+
});
|
68
|
+
|
69
|
+
describe('Border color - Preview tab', () => {
|
70
|
+
abortEarlySetup();
|
71
|
+
before(() => {
|
72
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
73
|
+
cy.barsPreLoaderWait();
|
74
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
75
|
+
textEntryMathPage.steps.addResponseArea();
|
76
|
+
textEntryMathPage.steps.addResponseArea();
|
77
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
78
|
+
});
|
79
|
+
|
80
|
+
textEntryMathPage.tests.verifyBorderColorFunctionalityPreviewTab('add structure');
|
81
|
+
});
|
82
|
+
|
83
|
+
describe('Color popup functionality', () => {
|
84
|
+
abortEarlySetup();
|
85
|
+
before(() => {
|
86
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
87
|
+
cy.barsPreLoaderWait();
|
88
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
89
|
+
});
|
90
|
+
|
91
|
+
textEntryMathPage.tests.verifyEditColorPopupFunctionality('add structure');
|
92
|
+
});
|
93
|
+
|
94
|
+
describe('Color popup - Updating the selected color', () => {
|
95
|
+
abortEarlySetup();
|
96
|
+
before(() => {
|
97
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
98
|
+
cy.barsPreLoaderWait();
|
99
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
100
|
+
});
|
101
|
+
|
102
|
+
textEntryMathPage.tests.verifyColorPopupUpdatingSelectedColorFunctionality();
|
103
|
+
});
|
104
|
+
|
105
|
+
describe('Color popup - \'Cancel\' and \'Ok\' buttons', () => {
|
106
|
+
abortEarlySetup();
|
107
|
+
before(() => {
|
108
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
109
|
+
cy.barsPreLoaderWait();
|
110
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
111
|
+
});
|
112
|
+
|
113
|
+
textEntryMathPage.tests.verifyColorPopUpCancelOkButtonFunctionality();
|
114
|
+
});
|
115
|
+
|
116
|
+
describe('Border style - Preview tab', () => {
|
117
|
+
abortEarlySetup();
|
118
|
+
before(() => {
|
119
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
120
|
+
cy.barsPreLoaderWait();
|
121
|
+
textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
122
|
+
textEntryMathPage.steps.addResponseArea();
|
123
|
+
textEntryMathPage.steps.addResponseArea();
|
124
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
125
|
+
});
|
126
|
+
|
127
|
+
textEntryMathPage.tests.verifyBorderStylePreviewTab('add structure');
|
128
|
+
});
|
129
|
+
});
|