itemengine-cypress-automation 1.0.143-migrationScripts-d059d60.0 → 1.0.143
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +104 -0
- package/cypress/e2e/ILC/ContentBlocks/additionalSection.js +92 -0
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +11 -1
- package/cypress/e2e/ILC/ContentBlocks/previewTab.js +91 -0
- package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +3 -3
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorEditTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorEditTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorEditTabBasicSection.js +3 -2
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +0 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +124 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +0 -9
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +17 -17
- package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +83 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +32 -30
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +25 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +40 -41
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories1.js +249 -99
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories2.js +118 -187
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsBasic.js +138 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsForDropdowns.js +309 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +181 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettingsBasic.js +132 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +143 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +345 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +49 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +25 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +251 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +49 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsBasic.js +93 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +215 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/textContainerSettings.js +219 -0
- package/cypress/e2e/ILC/GeoGebraTools/3DGraphingCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/3DGraphingCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/casCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/casCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/geometryCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/geometryCalculatorPreviewTabContents.smoke.js +76 -0
- package/cypress/e2e/ILC/GeoGebraTools/graphingCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/graphingCalculatorPreviewTabContents.smoke.js +73 -0
- package/cypress/e2e/ILC/GeoGebraTools/probablityCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/probablityCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/scientificCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/scientificCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +10 -8
- package/cypress/e2e/ILC/GeogebraActivity/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -2
- package/cypress/e2e/ILC/GeogebraActivity/headerSection.js +2 -1
- package/cypress/e2e/ILC/GeogebraActivity/insertResourceLink.js +318 -0
- package/cypress/e2e/ILC/GeogebraActivity/previewTabContent.smoke.js +2 -1
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +15 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +280 -0
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +136 -0
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +205 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +106 -0
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +79 -0
- package/cypress/e2e/ILC/MultipleSelection/additionalSettingsBasic.js +108 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +251 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +180 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/additionalSettings.js +48 -56
- package/cypress/e2e/ILC/SingleSelection/additionalSettingsBasic.js +107 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +251 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +180 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +4 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +93 -68
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +59 -52
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +59 -52
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +61 -50
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +65 -51
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +55 -46
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +6 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +11 -9
- package/cypress/e2e/ILC/TextEntryMathWithImage/checkAnswerFunctionalityForAllViews.smoke.js +4 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +4 -2
- package/cypress/e2e/ILC/UploadResponse/additionalSettingsBasic.js +85 -0
- package/cypress/e2e/ILC/UploadResponse/editTabScoringSection.js +12 -12
- package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +1 -1
- package/cypress/fixtures/constants.js +2 -0
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1114 -1511
- package/cypress/fixtures/theme/ilc.json +7 -1
- package/cypress/pages/audioResponsePage.js +26 -2
- package/cypress/pages/components/additionalSettingsAccessibilitySectionComponent.js +1 -0
- package/cypress/pages/components/additionalSettingsPanel.js +3 -10
- package/cypress/pages/components/ariaLabelSectionComponent.js +84 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -2
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/createCustomCategoryFlyout.js +2 -2
- package/cypress/pages/components/createQuestionBasePage.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -0
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/editCategoryFlyout.js +9 -10
- package/cypress/pages/components/equationEditorFlyout.js +20 -11
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +167 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +149 -6
- package/cypress/pages/components/gradingViewEnumerationComponent.js +151 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +390 -0
- package/cypress/pages/components/imageCanvasComponent.js +25 -1
- package/cypress/pages/components/index.js +5 -1
- package/cypress/pages/components/placeholderTextSectionComponent.js +110 -0
- package/cypress/pages/components/responseAreaSettingsPopupComponent.js +2 -2
- package/cypress/pages/contentBlocksPage.js +60 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +4 -17
- package/cypress/pages/essayResponsePage.js +14 -11
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +15 -0
- package/cypress/pages/fillInTheGapsDropdownPage.js +121 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +70 -3
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +33 -3
- package/cypress/pages/fillInTheGapsTextPage.js +81 -4
- package/cypress/pages/geoGebraActivityPage.js +75 -11
- package/cypress/pages/geoGebraToolsPage.js +292 -0
- package/cypress/pages/graphingPage.js +2 -1
- package/cypress/pages/gridFillPage.js +713 -0
- package/cypress/pages/index.js +3 -1
- package/cypress/pages/multipleSelectionGridPage.js +71 -317
- package/cypress/pages/multipleSelectionPage.js +2 -1
- package/cypress/pages/selectQuestionResourceToolPage.js +13 -2
- package/cypress/pages/singleSelectionGridPage.js +78 -329
- package/cypress/pages/singleSelectionPage.js +2 -1
- package/cypress/pages/textEntryMathPage.js +24 -6
- package/cypress/pages/textEntryMathWithImagePage.js +1 -1
- package/cypress/pages/uploadResponsePage.js +4 -3
- package/package.json +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +0 -43
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -642
@@ -36,12 +36,12 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
36
36
|
|
37
37
|
it('The name of the category should be displayed in the flyout with a checked checkbox', () => {
|
38
38
|
utilities.verifyElementVisibilityState(editCategoryFlyout.categoryLabel(), 'visible');
|
39
|
-
utilities.verifyInnerText(editCategoryFlyout.categoryLabel(), `${equationEditorCategoriesAndSymbols['
|
39
|
+
utilities.verifyInnerText(editCategoryFlyout.categoryLabel(), `${equationEditorCategoriesAndSymbols['general'].displayName}`);
|
40
40
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
41
41
|
});
|
42
42
|
|
43
|
-
it(`All the ${equationEditorCategoriesAndSymbols['
|
44
|
-
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['
|
43
|
+
it(`All the ${equationEditorCategoriesAndSymbols['general'].displayName} characters should be displayed and should be in selected state`, () => {
|
44
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols);
|
45
45
|
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedState(symbolsArray);
|
46
46
|
editCategoryFlyout.steps.verifyCategoryCharactersDragIconAndTitle(symbolsArray);
|
47
47
|
});
|
@@ -126,7 +126,7 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
126
126
|
});
|
127
127
|
|
128
128
|
it('When user deselects any one character by clicking on it then the category checkbox should be in partially checked state', () => {
|
129
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.
|
129
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel);
|
130
130
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsPartiallyChecked();
|
131
131
|
});
|
132
132
|
|
@@ -173,7 +173,10 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
173
173
|
|
174
174
|
it('When user clicks on all the selected characters then the category checkbox should get unchecked', () => {
|
175
175
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
176
|
-
editCategoryFlyout.steps.
|
176
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.questionMark);
|
177
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.cents);
|
178
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.dollar);
|
179
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.colonRatio);
|
177
180
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsUnchecked();
|
178
181
|
});
|
179
182
|
|
@@ -197,7 +200,7 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
197
200
|
});
|
198
201
|
|
199
202
|
it('When user de-selects any character by clicking on it then the Reset button should get enabled', () => {
|
200
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
203
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
201
204
|
utilities.verifyElementNotDisabled(editCategoryFlyout.buttonReset());
|
202
205
|
});
|
203
206
|
|
@@ -219,22 +222,22 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
219
222
|
});
|
220
223
|
|
221
224
|
it('When user de-selects characters and re-selects them then the Reset button should be disabled', () => {
|
222
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
223
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
224
|
-
editCategoryFlyout.steps.selectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
225
|
-
editCategoryFlyout.steps.selectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
225
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
226
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`)
|
227
|
+
editCategoryFlyout.steps.selectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
228
|
+
editCategoryFlyout.steps.selectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`)
|
226
229
|
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset())
|
227
230
|
});
|
228
231
|
|
229
232
|
it('When user edits and saves the category then on opening the same Edit category flyout the \'Reset\' button should be disabled and the previously Saved changes should be displayed', () => {
|
230
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
231
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
233
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
234
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`);
|
232
235
|
editCategoryFlyout.steps.clickOnSaveButton();
|
233
236
|
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
234
237
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
235
238
|
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset());
|
236
|
-
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.
|
237
|
-
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.
|
239
|
+
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
240
|
+
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
238
241
|
editCategoryFlyout.categoryCharacters()
|
239
242
|
.then(($symbols) => {
|
240
243
|
for (let index = 0; index < $symbols.length - 2; index++) {
|
@@ -254,8 +257,8 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
254
257
|
});
|
255
258
|
|
256
259
|
it('When user edits a category and clicks on Cancel button then the flyout should close and the changes should not be saved', () => {
|
257
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
258
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
260
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
261
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`);
|
259
262
|
editCategoryFlyout.steps.clickOnCancelButton();
|
260
263
|
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
261
264
|
editCategoryFlyout.steps.openEditCategoryFlyout()
|
@@ -263,21 +266,22 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
263
266
|
});
|
264
267
|
|
265
268
|
it('When user edits a category and saves it then the changes should be displayed in the Equation editor flyout', () => {
|
266
|
-
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['
|
267
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.
|
269
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols);
|
270
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.questionMark.ariaLabel}`)
|
268
271
|
editCategoryFlyout.steps.clickOnSaveButton();
|
269
272
|
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
270
|
-
essayResponsePage.steps.switchToPreviewTab()
|
273
|
+
essayResponsePage.steps.switchToPreviewTab();
|
271
274
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
275
|
+
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('General');
|
272
276
|
equationEditorFlyout.steps.verifyEquationEditorCharacterWithoutFirstCharacter(symbolsArray);
|
273
277
|
equationEditorFlyout.steps.clickOnEquationEditorCancelButton();
|
274
278
|
});
|
275
279
|
|
276
280
|
it('When user re-visits the Edit category flyout the changes should be displayed', () => {
|
277
|
-
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['
|
281
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols)
|
278
282
|
essayResponsePage.steps.switchToEditTab()
|
279
283
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
280
|
-
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.
|
284
|
+
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
281
285
|
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedState(symbolsArray);
|
282
286
|
});
|
283
287
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { equationEditorCategoriesAndSymbols } from "../../../fixtures/equationEditorCategoriesAndSymbols ";
|
2
|
-
import {
|
2
|
+
import { createCustomCategoryFlyout } from "../../../pages/components";
|
3
3
|
import { equationEditorFlyout } from "../../../pages/components/equationEditorFlyout";
|
4
4
|
import { essayResponsePage } from "../../../pages/essayResponsePage";
|
5
5
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
@@ -7,7 +7,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
7
7
|
const css = Cypress.env('css');
|
8
8
|
const grepTags = Cypress.env('grepTags');
|
9
9
|
|
10
|
-
const defaultSelectedCategories = ['
|
10
|
+
const defaultSelectedCategories = ['Numpad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices'];
|
11
11
|
const allCategories = Object.values(equationEditorCategoriesAndSymbols)
|
12
12
|
|
13
13
|
describe('Create question page - Essay Response: Equation Editor functionality', () => {
|
@@ -38,23 +38,23 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
38
38
|
|
39
39
|
it('Ok button should be displayed at the bottom of the flyout', () => {
|
40
40
|
utilities.verifyElementVisibilityState(equationEditorFlyout.buttonOk(), 'visible');
|
41
|
-
utilities.verifyInnerText(equationEditorFlyout.buttonOk(), '
|
41
|
+
utilities.verifyInnerText(equationEditorFlyout.buttonOk(), 'OK');
|
42
42
|
});
|
43
43
|
|
44
|
-
it('Equation Editor input field should be displayed and should have cursor
|
44
|
+
it('Equation Editor input field should be displayed and when user focuses in the input field should have cursor', () => {
|
45
45
|
equationEditorFlyout.steps.verifyDefaultEquationEditorInputFieldWithCursor();
|
46
46
|
});
|
47
47
|
|
48
48
|
it('All the default selected categories in the \'Equation Editor\' section should be displayed and first category must be selected by default in the \'Equation Editor\' flyout', () => {
|
49
49
|
equationEditorFlyout.steps.verifyEquationEditorCategoryTiles(defaultSelectedCategories);
|
50
|
-
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor('
|
50
|
+
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(equationEditorCategoriesAndSymbols['numPad'].displayName);
|
51
51
|
});
|
52
52
|
|
53
53
|
it('CSS of \'Equation Editor\' flyout', { tags: 'css' }, () => {
|
54
54
|
utilities.verifyCSS(equationEditorFlyout.dialogBoxTitle(), {
|
55
55
|
'color': css.color.flyoutTitle,
|
56
56
|
'font-size': css.fontSize.heading,
|
57
|
-
'font-weight': css.fontWeight.
|
57
|
+
'font-weight': css.fontWeight.bold
|
58
58
|
});
|
59
59
|
cy.log('CSS of selected category')
|
60
60
|
utilities.getNthElement(equationEditorFlyout.categoryTab(), 0)
|
@@ -74,18 +74,18 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
74
74
|
utilities.getNthElement(equationEditorFlyout.categoryTab(), 0)
|
75
75
|
.within(() => {
|
76
76
|
utilities.verifyCSS(equationEditorFlyout.categoryTabTitle(), {
|
77
|
-
'color': css.color.
|
77
|
+
'color': css.color.activeButtons,
|
78
78
|
'font-size': css.fontSize.small,
|
79
79
|
'font-weight': css.fontWeight.regular
|
80
80
|
});
|
81
81
|
utilities.verifyCSS(equationEditorFlyout.categoryTabIcon(), {
|
82
|
-
'color': css.color.
|
82
|
+
'color': css.color.activeButtons,
|
83
83
|
'font-size': css.fontSize.default,
|
84
84
|
'font-weight': css.fontWeight.regular
|
85
85
|
});
|
86
86
|
});
|
87
87
|
utilities.verifyCSS(equationEditorFlyout.previewInputField(), {
|
88
|
-
'background-color': css.color.
|
88
|
+
'background-color': css.color.defaultBackground
|
89
89
|
});
|
90
90
|
utilities.verifyCSS(equationEditorFlyout.buttonCancel(), {
|
91
91
|
'color': css.color.secondaryBtn,
|
@@ -101,8 +101,9 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
101
101
|
});
|
102
102
|
});
|
103
103
|
|
104
|
+
//Failing due to https://redmine.zeuslearning.com/issues/564678
|
104
105
|
it('Accessibility of \'Equation Editor\' flyout', { tags: 'a11y' }, () => {
|
105
|
-
cy.checkAccessibility(equationEditorFlyout.dialogBox())
|
106
|
+
cy.checkAccessibility(equationEditorFlyout.dialogBox());
|
106
107
|
});
|
107
108
|
|
108
109
|
it('Cancel button should be displayed in the flyout and when user clicks the \'Cancel\' button then the flyout should close', () => {
|
@@ -121,7 +122,10 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
121
122
|
cy.barsPreLoaderWait();
|
122
123
|
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
123
124
|
essayResponsePage.steps.selectCustomizedFormattingOption(['Equation Editor']);
|
124
|
-
essayResponsePage.steps.deselectCategoryInEquationEditorSectionEditTab('
|
125
|
+
essayResponsePage.steps.deselectCategoryInEquationEditorSectionEditTab(equationEditorCategoriesAndSymbols['algebra'].displayName);
|
126
|
+
essayResponsePage.steps.deselectCategoryInEquationEditorSectionEditTab(equationEditorCategoriesAndSymbols['geo'].displayName);
|
127
|
+
essayResponsePage.steps.deselectCategoryInEquationEditorSectionEditTab(equationEditorCategoriesAndSymbols['compare'].displayName);
|
128
|
+
essayResponsePage.steps.deselectCategoryInEquationEditorSectionEditTab(equationEditorCategoriesAndSymbols['matrices'].displayName);
|
125
129
|
essayResponsePage.steps.switchToPreviewTab();
|
126
130
|
});
|
127
131
|
|
@@ -132,9 +136,9 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
132
136
|
});
|
133
137
|
|
134
138
|
it('When the selected number of equation categories do not fit the dialog box width then \'Next button\' and \'Previous button\' should be displayed in the equation editor flyout', () => {
|
135
|
-
cy.log('Pre step: Switch to Edit tab and select
|
139
|
+
cy.log('Pre step: Switch to Edit tab and select categories from the Equation Editor section')
|
136
140
|
essayResponsePage.steps.switchToEditTab();
|
137
|
-
essayResponsePage.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['
|
141
|
+
essayResponsePage.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['algebra'].displayName}`, `${equationEditorCategoriesAndSymbols['matrices'].displayName}`, `${equationEditorCategoriesAndSymbols['geo'].displayName}`, `${equationEditorCategoriesAndSymbols['compare'].displayName}`, `${equationEditorCategoriesAndSymbols['calculus'].displayName}`, `${equationEditorCategoriesAndSymbols['trig'].displayName}`, `${equationEditorCategoriesAndSymbols['delimiters'].displayName}`, `${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols['measurement'].displayName}`, `${equationEditorCategoriesAndSymbols['setNotation'].displayName}`]);
|
138
142
|
cy.log('Switching to Preview tab')
|
139
143
|
essayResponsePage.steps.switchToPreviewTab()
|
140
144
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
@@ -209,8 +213,9 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
209
213
|
essayResponsePage.steps.verifyDefaultCategoriesDisplayedInEquationEditorSectionEditTab();
|
210
214
|
});
|
211
215
|
|
216
|
+
//Failing due to https://redmine.zeuslearning.com/issues/564604
|
212
217
|
it('When user hovers on a category with a long name, then a tooltip should be displayed.', () => {
|
213
|
-
let categoriesWithTooltip = [`${equationEditorCategoriesAndSymbols['
|
218
|
+
let categoriesWithTooltip = [`${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols['measurement'].displayName}`, `${equationEditorCategoriesAndSymbols['otherSymbols'].displayName}`];
|
214
219
|
essayResponsePage.steps.verifyTooltipsOfCategoryTilesInEquationEditorSectionEditTab(categoriesWithTooltip);
|
215
220
|
});
|
216
221
|
|
@@ -225,7 +230,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
225
230
|
utilities.verifyCSS(utilities.getNthElement(essayResponsePage.equationEditorSectionCategories(), 0), {
|
226
231
|
'background-color': css.color.activeButtons
|
227
232
|
});
|
228
|
-
utilities.
|
233
|
+
utilities.getNthElement(essayResponsePage.equationEditorSectionCategories(), 0)
|
229
234
|
.within(() => {
|
230
235
|
utilities.verifyCSS(essayResponsePage.equationEditorSectionCategoryLabel(), {
|
231
236
|
'color': css.color.primaryBtn,
|
@@ -243,7 +248,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
243
248
|
utilities.verifyCSS(utilities.getNthElement(essayResponsePage.equationEditorSectionCategories(), 12), {
|
244
249
|
'background-color': css.color.primaryBtn
|
245
250
|
});
|
246
|
-
utilities.
|
251
|
+
utilities.getNthElement(essayResponsePage.equationEditorSectionCategories(), 12)
|
247
252
|
.within(() => {
|
248
253
|
utilities.verifyCSS(essayResponsePage.equationEditorSectionCategoryLabel(), {
|
249
254
|
'color': css.color.secondaryBtn,
|
@@ -257,26 +262,25 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
257
262
|
});
|
258
263
|
|
259
264
|
it('Accessibility of selected and deselected category', { tags: 'a11y' }, () => {
|
260
|
-
cy.checkAccessibility(essayResponsePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['
|
265
|
+
cy.checkAccessibility(essayResponsePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`).parents('[class*="DraggableItemsGrid"]'))
|
261
266
|
});
|
262
267
|
|
263
268
|
it('User should be able select and deselect a category and it should be reflected in the Equation Editor flyout and the first category should be selected by default', () => {
|
264
269
|
cy.log('Selecting and deselecting a category')
|
265
|
-
essayResponsePage.steps.deselectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['
|
266
|
-
essayResponsePage.steps.selectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['
|
270
|
+
essayResponsePage.steps.deselectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
271
|
+
essayResponsePage.steps.selectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['greek'].displayName}`);
|
267
272
|
cy.log('Switching to Preview tab')
|
268
273
|
essayResponsePage.steps.switchToPreviewTab();
|
269
274
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
270
|
-
equationEditorFlyout.steps.verifyCategoryNotDisplayedInEquationEditor(`${equationEditorCategoriesAndSymbols['
|
271
|
-
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['basic'].displayName}`);
|
275
|
+
equationEditorFlyout.steps.verifyCategoryNotDisplayedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
272
276
|
equationEditorFlyout.steps.clickOnEquationEditorButtonNext()
|
273
|
-
equationEditorFlyout.steps.verifyCategoryIsDisplayedInEquationEditor(`${equationEditorCategoriesAndSymbols['
|
277
|
+
equationEditorFlyout.steps.verifyCategoryIsDisplayedInEquationEditor(`${equationEditorCategoriesAndSymbols['greek'].displayName}`);
|
274
278
|
});
|
275
279
|
|
276
280
|
it('On deselecting all the categories an error message should be displayed \'Error: Please select a category.\' and the preview tab Equation Editor flyout should be empty', () => {
|
277
281
|
cy.log('Pre step: Switching to Edit tab')
|
278
282
|
essayResponsePage.steps.switchToEditTab();
|
279
|
-
essayResponsePage.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['
|
283
|
+
essayResponsePage.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${equationEditorCategoriesAndSymbols['primary'].displayName}`, `${equationEditorCategoriesAndSymbols['general'].displayName}`, `${equationEditorCategoriesAndSymbols['common'].displayName}`, `${equationEditorCategoriesAndSymbols['algebra'].displayName}`, `${equationEditorCategoriesAndSymbols['geo'].displayName}`, `${equationEditorCategoriesAndSymbols['compare'].displayName}`, `${equationEditorCategoriesAndSymbols['matrices'].displayName}`, `${equationEditorCategoriesAndSymbols['greek'].displayName}`]);
|
280
284
|
utilities.verifyInnerText(essayResponsePage.selectACategoryErrorMessage(), 'Error: Please select a category.');
|
281
285
|
cy.log('Switching to Preview tab')
|
282
286
|
essayResponsePage.steps.switchToPreviewTab();
|
@@ -302,7 +306,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
302
306
|
});
|
303
307
|
|
304
308
|
it('When user selects any category then the error message should disappear', () => {
|
305
|
-
essayResponsePage.steps.selectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['
|
309
|
+
essayResponsePage.steps.selectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
306
310
|
utilities.verifyElementVisibilityState(essayResponsePage.selectACategoryErrorMessage(), 'notExist');
|
307
311
|
});
|
308
312
|
|
@@ -311,7 +315,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
311
315
|
essayResponsePage.steps.deselectCustomizedFormattingOption(['Equation Editor']);
|
312
316
|
utilities.verifyElementVisibilityState(essayResponsePage.equationEditorSection(), 'notExist');
|
313
317
|
essayResponsePage.steps.selectCustomizedFormattingOption(['Equation Editor']);
|
314
|
-
essayResponsePage.steps.verifySelectedCategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['
|
318
|
+
essayResponsePage.steps.verifySelectedCategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
315
319
|
deselectedCategoriesArray.forEach((categoryName) => {
|
316
320
|
essayResponsePage.steps.verifyDeselectedCategoryInEquationEditorSectionEditTab(categoryName);
|
317
321
|
});
|
@@ -333,9 +337,8 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
333
337
|
});
|
334
338
|
|
335
339
|
it('When user enters an equation in the Preview input field the word count should increase by 1 and the entered equation should have focus', () => {
|
336
|
-
cy.log('Adding an equation using
|
337
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName:
|
338
|
-
{ categoryName: `${equationEditorCategoriesAndSymbols['greek'].displayName}`, symbolAriaLabel: [`${equationEditorCategoriesAndSymbols.greek.symbols.piUpper.ariaLabel}`] }]);
|
340
|
+
cy.log('Adding an equation using Primary and Greek category')
|
341
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'primary', symbolName: ['cents', 'dollar', 'colonRatio'] }, { categoryName: 'numPad', symbolName: ['one'] }]);
|
339
342
|
cy.log('Clicking on Ok button to add the equation to Preview input field and checking word count')
|
340
343
|
equationEditorFlyout.steps.clickOnOkButton();
|
341
344
|
essayResponsePage.steps.verifyWordCount(1);
|
@@ -345,7 +348,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
345
348
|
cy.log('Prestep: Clicking on Equation editor button')
|
346
349
|
essayResponsePage.steps.enterInputInResponseField('{rightarrow}');
|
347
350
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
348
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName:
|
351
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'common', symbolName: ['plusMinus', 'muchLessThan'] }]);
|
349
352
|
equationEditorFlyout.steps.clickOnOkButton();
|
350
353
|
essayResponsePage.steps.verifyWordCount(1);
|
351
354
|
});
|
@@ -353,7 +356,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
353
356
|
it('When user enters another equation in the preview input field after adding a space the word count should increase by 1', () => {
|
354
357
|
essayResponsePage.steps.enterInputInResponseField('{rightarrow} ');
|
355
358
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
356
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName:
|
359
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['add', 'two'] }]);
|
357
360
|
equationEditorFlyout.steps.clickOnOkButton();
|
358
361
|
essayResponsePage.steps.verifyWordCount(2);
|
359
362
|
});
|
@@ -376,11 +379,9 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
376
379
|
essayResponsePage.steps.switchToPreviewTab();
|
377
380
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
378
381
|
cy.log('Adding an equation to preview input field')
|
379
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName:
|
380
|
-
equationEditorFlyout.steps.enterTextAtInputFieldCursor('a');
|
381
|
-
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['b', 'c', 'd']);
|
382
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['add', 'five', 'equalTo', 'one'] }]);
|
382
383
|
equationEditorFlyout.steps.clickOnOkButton();
|
383
|
-
essayResponsePage.steps.verifyResponseFieldEquationText(0, '
|
384
|
+
essayResponsePage.steps.verifyResponseFieldEquationText(0, 'x+5=1');
|
384
385
|
});
|
385
386
|
|
386
387
|
it('When user double clicks on an added equation in preview input field, the Equation editor flyout should open', () => {
|
@@ -389,23 +390,21 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
389
390
|
});
|
390
391
|
|
391
392
|
it(`In the equation editor flyout the ${allCategories[0].displayName} should be selected by default and the Equation editor input field should be prefilled with the added equation`, () => {
|
392
|
-
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['
|
393
|
-
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), '
|
393
|
+
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
394
|
+
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1');
|
394
395
|
});
|
395
396
|
|
396
397
|
it('When user clicks on Cancel button the equation should be displayed in the preview input field without any changes', () => {
|
397
398
|
equationEditorFlyout.steps.clickOnEquationEditorCancelButton();
|
398
|
-
essayResponsePage.steps.verifyResponseFieldEquationText(0, '
|
399
|
+
essayResponsePage.steps.verifyResponseFieldEquationText(0, 'x+5=1');
|
399
400
|
});
|
400
401
|
|
401
402
|
it('When user edits the added equation and clicks on Ok button, the edited equation should be displayed in the preview input field', () => {
|
402
403
|
essayResponsePage.steps.openResponseFieldEquationContainerEquationEditor(0);
|
403
404
|
equationEditorFlyout.steps.enterTextInPreviewInputField('{backspace}{backspace}');
|
404
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName:
|
405
|
-
equationEditorFlyout.steps.enterTextAtInputFieldCursor('a{rightarrow}');
|
406
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: `${equationEditorCategoriesAndSymbols['delimiters'].displayName}`, symbolAriaLabel: [`${equationEditorCategoriesAndSymbols.delimiters.symbols.singleSquareClose.ariaLabel}`] }]);
|
405
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['multiply', 'zero'] }]);
|
407
406
|
equationEditorFlyout.steps.clickOnOkButton();
|
408
|
-
essayResponsePage.steps.verifyResponseFieldEquationText(0, '
|
407
|
+
essayResponsePage.steps.verifyResponseFieldEquationText(0, 'x+5×0');
|
409
408
|
});
|
410
409
|
});
|
411
410
|
}
|