itemengine-cypress-automation 1.0.342-save-as-you-go-updates-184015f.0 → 1.0.343-IEI-5600-IEI-5708-9440b5e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +16 -4
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
- package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
- package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +0 -20
- package/cypress/pages/components/createQuestionBasePage.js +0 -7
- package/cypress/pages/components/defaultToolDropdown.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
- package/cypress/pages/desmos3DGraphingPage.js +4 -149
- package/cypress/pages/desmosGeometryPage.js +4 -184
- package/cypress/pages/graphingPage.js +4 -26
- package/cypress/pages/gridFillPage.js +6 -16
- package/cypress/pages/listOrderingPage.js +1 -32
- package/cypress/pages/matchingPage.js +7 -26
- package/cypress/pages/numberLineLabelPage.js +0 -26
- package/cypress/pages/numberLinePage.js +0 -15
- package/cypress/pages/textEntryMathPage.js +0 -21
- package/cypress/pages/thinkSpherePage.js +316 -5
- package/cypress/pages/uploadResponsePage.js +1 -2
- package/cypress/pages/videoResponsePage.js +0 -3
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +13 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
@@ -1,5 +1,5 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
|
-
import { commonComponents, createQuestionBasePage, questionInstructionsComponent, additionalSettingsPanel, scoringSectionBaseEditTab, additionalSettingsAccessibilitySectionComponent, studentViewSettingsLabelComponent, hideExpressionListComponent
|
2
|
+
import { commonComponents, createQuestionBasePage, questionInstructionsComponent, additionalSettingsPanel, scoringSectionBaseEditTab, additionalSettingsAccessibilitySectionComponent, studentViewSettingsLabelComponent, hideExpressionListComponent } from "./components";
|
3
3
|
import { desmosToolComponent } from "./components/desmosToolComponent";
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
|
@@ -10,7 +10,7 @@ const selectors = {
|
|
10
10
|
...additionalSettingsPanel,
|
11
11
|
...questionInstructionsComponent,
|
12
12
|
desmosGraphingTool: () => cy.get('[id*="desmos-graph-tool"]'),
|
13
|
-
desmosGraphingToolExpressionPanel: () => cy.get('.dcg-exppanel-container'),
|
13
|
+
desmosGraphingToolExpressionPanel: () => cy.get('[id*="desmos-graph-tool"] .dcg-exppanel-container.dcg-add-shadow'),
|
14
14
|
studentViewSettingsLabel: () => cy.get('[class*="StudentViewWrapper"]'),
|
15
15
|
hideExpressionListLabel: () => cy.get('[data-ngie-testid="hide-expression-list-checkbox"] .MuiFormControlLabel-label'),
|
16
16
|
hideExpressionListCheckbox: () => cy.get('[data-ngie-testid="hide-expression-list-checkbox"] input'),
|
@@ -36,18 +36,6 @@ const selectors = {
|
|
36
36
|
errorMessage: () => cy.get('.error-text-message'),
|
37
37
|
resourceLinkPreviewTitle: () => cy.get('[class*="DesmosGraphingstyles__ResourceLinkPreviewLabel"]'),
|
38
38
|
desmosComponent: () => cy.get('[class*="DesmosGraphingstyles__DesmosComponentWrapper"]'),
|
39
|
-
desmosComponentGradingView: () => cy.get('[class*="DesmosGraphingPreviewstyles__DesmosWrapper"]'),
|
40
|
-
widthLabel: () => cy.get('[class*="StudentViewSettingsstyles__LabelInputWrapper"]').eq(0),
|
41
|
-
heightLabel: () => cy.get('[class*="StudentViewSettingsstyles__LabelInputWrapper"]').eq(1),
|
42
|
-
lockUnlockAspectRatioButton: () => cy.get('[class*="StudentViewSettingsstyles__LockIconWrapper"] button'),
|
43
|
-
resetButton: () => cy.get('[class*="StudentViewSettingsstyles__ResetIconWrapper"] button'),
|
44
|
-
desmosResourceCanvasEditTab: () => cy.get('[id*="desmos-geometry-tool"]'),
|
45
|
-
desmosResourceCanvasPreviewTab: () => cy.get('[class*="DesmosGraphingPreviewstyles__DesmosPreview"]'),
|
46
|
-
widthInputField: () => cy.get('[class*="StudentViewSettingsstyles__DimensionWrapper"] .text-input-field input').eq(0),
|
47
|
-
heightInputField: () => cy.get('[class*="StudentViewSettingsstyles__DimensionWrapper"] .text-input-field input').eq(1),
|
48
|
-
addIconDesmos: () => cy.get('.dcg-add-expression-container .dcg-icon-plus'),
|
49
|
-
expressionInputField: () => cy.get('.dcg-action-newmath'),
|
50
|
-
editIconPencil: () => cy.get('.icon-pencil'),
|
51
39
|
}
|
52
40
|
|
53
41
|
const steps = {
|
@@ -57,7 +45,6 @@ const steps = {
|
|
57
45
|
...additionalSettingsPanel.steps,
|
58
46
|
...questionInstructionsComponent.steps,
|
59
47
|
...commonComponents.steps,
|
60
|
-
...toolSettingsComponent.steps,
|
61
48
|
verifyHideExpressionListCheckboxUnchecked: () => {
|
62
49
|
desmosGeometryPage.hideExpressionListCheckbox()
|
63
50
|
.should('not.be.checked');
|
@@ -275,162 +262,10 @@ const steps = {
|
|
275
262
|
},
|
276
263
|
clearInputToInsertResourceLinkInputField: () => {
|
277
264
|
desmosGeometryPage.insertResourceLinkInputField()
|
278
|
-
.
|
279
|
-
desmosGeometryPage.insertResourceLinkInputField()
|
280
|
-
.type('{selectall}{backspace}')
|
265
|
+
.clear();
|
281
266
|
cy.get('body')
|
282
267
|
.click();
|
283
268
|
},
|
284
|
-
verifyLockedStateOfLockUnlockAspectRatioButton: () => {
|
285
|
-
desmosGeometryPage.lockUnlockAspectRatioButton()
|
286
|
-
.should('have.attr', 'aria-label', 'Locked aspect ratio');
|
287
|
-
},
|
288
|
-
verifyUnlockedStateOfLockUnlockAspectRatioButton: () => {
|
289
|
-
desmosGeometryPage.lockUnlockAspectRatioButton()
|
290
|
-
.should('have.attr', 'aria-label', 'Unlocked aspect ratio');
|
291
|
-
},
|
292
|
-
/**
|
293
|
-
* @description add input to width input field
|
294
|
-
* @param {number} width Width to be set for geoGebra resource
|
295
|
-
*/
|
296
|
-
addInputToWidthInputField: (width) => {
|
297
|
-
desmosGeometryPage.widthInputField()
|
298
|
-
.clear()
|
299
|
-
.type(width)
|
300
|
-
.blur();
|
301
|
-
utilities.verifyInputFieldValue(desmosGeometryPage.widthInputField(), width);
|
302
|
-
},
|
303
|
-
/**
|
304
|
-
* @description add input to height input field
|
305
|
-
* @param {number} height Height to be set for geoGebra resource
|
306
|
-
*/
|
307
|
-
addInputToHeightInputField: (height) => {
|
308
|
-
desmosGeometryPage.heightInputField()
|
309
|
-
.clear()
|
310
|
-
.type(height)
|
311
|
-
.blur();
|
312
|
-
utilities.verifyInputFieldValue(desmosGeometryPage.heightInputField(), height);
|
313
|
-
},
|
314
|
-
/**
|
315
|
-
* Verify width of geoGebra resource canvas in edit tab
|
316
|
-
* @param {number} width Width of geoGebra resource canvas in edit tab
|
317
|
-
*/
|
318
|
-
verifyCanvasWidthEditTab: (width) => {
|
319
|
-
utilities.verifyCSS(desmosGeometryPage.desmosResourceCanvasEditTab(), {
|
320
|
-
'width': `${width}px`
|
321
|
-
});
|
322
|
-
},
|
323
|
-
/**
|
324
|
-
* Verify height of geoGebra resource canvas in edit tab
|
325
|
-
* @param {number} height Height of geoGebra resource canvas in edit tab
|
326
|
-
*/
|
327
|
-
verifyCanvasHeightEditTab: (height) => {
|
328
|
-
utilities.verifyCSS(desmosGeometryPage.desmosResourceCanvasEditTab(), {
|
329
|
-
'height': `${height}px`
|
330
|
-
});
|
331
|
-
},
|
332
|
-
clickOnResetButton: () => {
|
333
|
-
desmosGeometryPage.resetButton()
|
334
|
-
.click();
|
335
|
-
},
|
336
|
-
clickOnLockUnlockAspectRatioButton: () => {
|
337
|
-
desmosGeometryPage.lockUnlockAspectRatioButton()
|
338
|
-
.click();
|
339
|
-
},
|
340
|
-
/**
|
341
|
-
* Verify width of geoGebra resource canvas in preview tab
|
342
|
-
* @param {number} width Width of geoGebra resource canvas in preview tab
|
343
|
-
*/
|
344
|
-
verifyCanvasWidthPreviewTab: (width) => {
|
345
|
-
utilities.verifyCSS(desmosGeometryPage.desmosResourceCanvasPreviewTab(), {
|
346
|
-
'width': `${width}px`
|
347
|
-
});
|
348
|
-
},
|
349
|
-
/**
|
350
|
-
* Verify height of geoGebra resource canvas in preview tab
|
351
|
-
* @param {number} height Height of geoGebra resource canvas in preview tab
|
352
|
-
*/
|
353
|
-
verifyCanvasHeightPreviewTab: (height) => {
|
354
|
-
utilities.verifyCSS(desmosGeometryPage.desmosResourceCanvasPreviewTab(), {
|
355
|
-
'height': `${height}px`
|
356
|
-
});
|
357
|
-
},
|
358
|
-
/**
|
359
|
-
* @param {number} width holds value of width attribute
|
360
|
-
* @description function updates width in input field
|
361
|
-
*/
|
362
|
-
updateWidth: (width) => {
|
363
|
-
desmosGeometryPage.widthInputField()
|
364
|
-
.clear()
|
365
|
-
.type(width);
|
366
|
-
},
|
367
|
-
/**
|
368
|
-
* @param {number} width holds value of width attribute
|
369
|
-
* @description function verifies width in input field
|
370
|
-
*/
|
371
|
-
verifyWidth: (width) => {
|
372
|
-
desmosGeometryPage.widthInputField()
|
373
|
-
.should('have.value', width);
|
374
|
-
},
|
375
|
-
/**
|
376
|
-
* @param {number} height holds value of height attribute
|
377
|
-
* @description function updates height in input field
|
378
|
-
*/
|
379
|
-
updateHeight: (height) => {
|
380
|
-
desmosGeometryPage.heightInputField()
|
381
|
-
.clear()
|
382
|
-
.type(height);
|
383
|
-
},
|
384
|
-
/**
|
385
|
-
* @param {number} height holds value of height attribute
|
386
|
-
* @description function verifies height in input field
|
387
|
-
*/
|
388
|
-
verifyHeight: (height) => {
|
389
|
-
desmosGeometryPage.heightInputField()
|
390
|
-
.should('have.value', height);
|
391
|
-
},
|
392
|
-
/**
|
393
|
-
* @description Types a mathematical expression in the Desmos expression input field
|
394
|
-
* @param {string} expression The mathematical expression to type
|
395
|
-
*/
|
396
|
-
typeExpression: (expression) => {
|
397
|
-
desmosGeometryPage.expressionInputField()
|
398
|
-
.click();
|
399
|
-
desmosGeometryPage.expressionInputField()
|
400
|
-
.type(expression);
|
401
|
-
},
|
402
|
-
/**
|
403
|
-
* @description Verifies that the specified expression is not present in the Desmos expression field
|
404
|
-
* @param {string} expression The expression that should not be present
|
405
|
-
*/
|
406
|
-
verifyExpressionNotPresent: (expression) => {
|
407
|
-
desmosGeometryPage.expressionInputField()
|
408
|
-
.should('not.contain', expression);
|
409
|
-
},
|
410
|
-
editQuestionItemView: () => {
|
411
|
-
desmosGeometryPage.editIconPencil()
|
412
|
-
.click();
|
413
|
-
},
|
414
|
-
verifyFontSizeDropdown: (fontSize) => {
|
415
|
-
desmosGeometryPage.fontSizeDropdown()
|
416
|
-
.should('have.text', fontSize);
|
417
|
-
},
|
418
|
-
verifyTeacherGuidelinesInputField: (text) => {
|
419
|
-
desmosGeometryPage.additionalSettingsTeacherGuidelinesInputField()
|
420
|
-
.should('have.text', text);
|
421
|
-
},
|
422
|
-
verifySampleAnswerInputField: (text) => {
|
423
|
-
desmosGeometryPage.additionalSettingsSampleAnswerInputField()
|
424
|
-
.should('have.text', text);
|
425
|
-
},
|
426
|
-
verifyAcknowledgementsInputField: (text) => {
|
427
|
-
desmosGeometryPage.additionalSettingsAcknowledgementsInputField()
|
428
|
-
.should('have.text', text);
|
429
|
-
},
|
430
|
-
verifyFlagThisItemNonAccessibleCheckboxIsChecked: () => {
|
431
|
-
desmosGeometryPage.flagNonAccessibleCheckbox()
|
432
|
-
.should('be.checked');
|
433
|
-
},
|
434
269
|
}
|
435
270
|
|
436
271
|
const tests = {
|
@@ -450,7 +285,7 @@ const tests = {
|
|
450
285
|
utilities.verifyElementVisibilityState(desmosToolComponent.previewTabDesmosToolKeypadButton(), 'exist');
|
451
286
|
});
|
452
287
|
},
|
453
|
-
|
288
|
+
|
454
289
|
verifyErrorMessageCSSAndA11y: () => {
|
455
290
|
it('CSS of error message', { tags: 'css' }, () => {
|
456
291
|
utilities.verifyCSS(desmosGeometryPage.errorMessage(), {
|
@@ -463,21 +298,6 @@ const tests = {
|
|
463
298
|
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
464
299
|
cy.checkAccessibility(commonComponents.nextGenCreateItemWrapper());
|
465
300
|
});
|
466
|
-
},
|
467
|
-
|
468
|
-
verifyQuestionInstructionsInputFieldPreviewTab: () => {
|
469
|
-
it('When user has not entered any text in the Question instructions input field in the \'Edit\' tab then nothing should be displayed in the \'Preview\' tab', () => {
|
470
|
-
createQuestionBasePage.steps.switchToPreviewTab();
|
471
|
-
//Failing due to https://redmine.zeuslearning.com/issues/553382
|
472
|
-
utilities.verifyTextContent(questionInstructionsComponent.questionInstructionsText(), '')
|
473
|
-
});
|
474
|
-
|
475
|
-
it('When the user specifies question instructions, then the added question instructions should be displayed in the \'Preview\' tab', () => {
|
476
|
-
createQuestionBasePage.steps.switchToEditTab();
|
477
|
-
questionInstructionsComponent.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
478
|
-
createQuestionBasePage.steps.switchToPreviewTab();
|
479
|
-
utilities.verifyTextContent(questionInstructionsComponent.questionInstructionsTextPreviewTab(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
480
|
-
});
|
481
301
|
}
|
482
302
|
}
|
483
303
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
2
|
import { questionInstructionsComponent, createQuestionBasePage, scoringSectionBaseEditTab, autoScoredScoringPreviewTab, autoScoredStudentViewSettings, autoScoredSpecifyCorrectAnswerSection, commonComponents, backgroundImageUploadComponent, imageCanvasComponent, opacityComponent, autoScoredScoringSectionMultiResponseType, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, toolsAndControlsComponent, resetPopupComponent, defaultToolDropdown } from "./components";
|
3
|
-
import { createItemPage } from "./createItemPage";
|
4
3
|
const css = Cypress.env('css');
|
5
4
|
|
6
5
|
const selectors = {
|
@@ -263,7 +262,6 @@ const steps = {
|
|
263
262
|
...toolsAndControlsComponent.steps,
|
264
263
|
...resetPopupComponent.steps,
|
265
264
|
...defaultToolDropdown.steps,
|
266
|
-
...createItemPage.steps,
|
267
265
|
|
268
266
|
//Edit tab
|
269
267
|
checkPatternBackground: () => {
|
@@ -1769,27 +1767,7 @@ const steps = {
|
|
1769
1767
|
verifyAcceptRepeatedPointsToggleChecked: () => {
|
1770
1768
|
graphingPage.acceptRepeatedPointsToggle()
|
1771
1769
|
.should('have.attr', 'aria-pressed', 'true');
|
1772
|
-
}
|
1773
|
-
|
1774
|
-
verifyAnswerStatusBannerNotExist: () => {
|
1775
|
-
graphingPage.correctIncorrectStatusMessageText()
|
1776
|
-
.should('not.exist');
|
1777
|
-
},
|
1778
|
-
|
1779
|
-
verifyAnswerStatusBannerExist: () => {
|
1780
|
-
graphingPage.correctIncorrectStatusMessageText()
|
1781
|
-
.should('be.visible');
|
1782
|
-
},
|
1783
|
-
|
1784
|
-
verifyCorrectAnswerSectionExist: () => {
|
1785
|
-
graphingPage.correctAnswerLabel()
|
1786
|
-
.should('be.visible');
|
1787
|
-
},
|
1788
|
-
|
1789
|
-
verifyCorrectAnswerSectionNotExist: () => {
|
1790
|
-
graphingPage.correctAnswerLabel()
|
1791
|
-
.should('not.exist');
|
1792
|
-
},
|
1770
|
+
}
|
1793
1771
|
}
|
1794
1772
|
|
1795
1773
|
const tests = {
|
@@ -1828,12 +1806,12 @@ const tests = {
|
|
1828
1806
|
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
1829
1807
|
});
|
1830
1808
|
|
1831
|
-
it(`When the user resets the graph in the ${accordionName} accordion, error message should
|
1809
|
+
it(`When the user resets the graph in the ${accordionName} accordion, error message not should be thrown`, () => {
|
1832
1810
|
graphingPage.graphControlOptionSpecifyCorrectAnswer('Reset')
|
1833
1811
|
.click();
|
1834
1812
|
graphingPage.resetPopupConfirmResetButton()
|
1835
1813
|
.click();
|
1836
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist')
|
1814
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist')
|
1837
1815
|
if (accordionName == 'Correct') {
|
1838
1816
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1839
1817
|
.within(() => {
|
@@ -1847,7 +1825,7 @@ const tests = {
|
|
1847
1825
|
};
|
1848
1826
|
});
|
1849
1827
|
|
1850
|
-
it('
|
1828
|
+
it('User should be able to plot on the graph', () => {
|
1851
1829
|
graphingPage.steps.selectGraphToolOptionSpecifyCorrectAnswer('Circle');
|
1852
1830
|
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
1853
1831
|
graphingPage.steps.verifyPointsPlottedOnSpecifyCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
@@ -174,8 +174,7 @@ const selectors = {
|
|
174
174
|
correctAnswerLabel: () => cy.get('[class*="GridFillResponsestyles__CorrectAnswerLabel"]'),
|
175
175
|
warningMessageContainer: () => cy.get('.disabled-wrapper-cls'),
|
176
176
|
warningMessage: () => cy.get('.disabled-wrapper-cls [class*="DisabledTextWrapper"]'),
|
177
|
-
resetButton: () => cy.get('[class*="reset-color-wrapper"] button')
|
178
|
-
scoringTypeLabelPreviewTab: () => cy.get('[class*="ScoringPreviewBandstyles__ScoreWrapper"]'),
|
177
|
+
resetButton: () => cy.get('[class*="reset-color-wrapper"] button')
|
179
178
|
}
|
180
179
|
|
181
180
|
const steps = {
|
@@ -2851,15 +2850,6 @@ const steps = {
|
|
2851
2850
|
scoringSectionBaseEditTab.pointsInputField()
|
2852
2851
|
.eq(0)
|
2853
2852
|
.should('have.value', points)
|
2854
|
-
},
|
2855
|
-
|
2856
|
-
/**
|
2857
|
-
* @param {String} ScoringType - Scoring Type to check label with.
|
2858
|
-
* @description - It will check the parameter scoring type string with the scoring type on top left of tab.
|
2859
|
-
*/
|
2860
|
-
checkScoringLabel: (scoringType) => {
|
2861
|
-
autoScoredScoringPreviewTab.scoringTypeLabelPreviewTab()
|
2862
|
-
.should('have.text', scoringType);
|
2863
2853
|
}
|
2864
2854
|
}
|
2865
2855
|
|
@@ -2927,15 +2917,16 @@ const tests = {
|
|
2927
2917
|
'background-color': css.color.gridCellHoverStateBg
|
2928
2918
|
});
|
2929
2919
|
utilities.hoverAwayFromElement(utilities.getNthElement(gridFillPage.cellInSpecifyCorrectAnswerSection(), 9));
|
2920
|
+
utilities.triggerMouseout(utilities.getNthElement(gridFillPage.cellInSpecifyCorrectAnswerSection(), 9));
|
2930
2921
|
});
|
2931
2922
|
|
2932
2923
|
it('User should be able to select the cells of the grid by clicking on them', () => {
|
2933
2924
|
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
2934
2925
|
});
|
2935
2926
|
|
2936
|
-
it(`When user deselect all the cells in the grid in the ${accordionName} accordion,
|
2927
|
+
it(`When user deselect all the cells in the grid in the ${accordionName} accordion, error message and error icons should not be displayed on \'${accordionName}\' accordion`, () => {
|
2937
2928
|
gridFillPage.steps.deselectCellSpecifyCorrectAnswerSection(0, 0);
|
2938
|
-
|
2929
|
+
gridFillPage.steps.verifyErrorMessageIsNotDisplayed();
|
2939
2930
|
if (accordionName == 'Correct') {
|
2940
2931
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
2941
2932
|
.within(() => {
|
@@ -2989,10 +2980,9 @@ const tests = {
|
|
2989
2980
|
utilities.verifyInputFieldValue(gridFillPage.cellShadeCountInputField(), '6');
|
2990
2981
|
});
|
2991
2982
|
|
2992
|
-
it(`When user clears the value in \'Cell shade count\' input field, then
|
2983
|
+
it(`When user clears the value in \'Cell shade count\' input field, then error message should not be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
|
2993
2984
|
gridFillPage.steps.clearCellShadeCountInputField();
|
2994
|
-
|
2995
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
2985
|
+
gridFillPage.steps.verifyErrorMessageIsNotDisplayed();
|
2996
2986
|
});
|
2997
2987
|
|
2998
2988
|
it('CSS of \'Cell shade count\' input field error message', { tags: 'css' }, () => {
|
@@ -40,7 +40,6 @@ const selectors = {
|
|
40
40
|
questionDropdownBorderPreviewTab: () => cy.get('[class*="ListOrderingResponsestyles__DroppableDiv"]'),
|
41
41
|
//grading view and correct answer view
|
42
42
|
optionGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionTextWrapper"]'),
|
43
|
-
correctIncorrectStatusMessageText: () => cy.get('[class*="AnswerStatusText"]'),
|
44
43
|
optionWrapperGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionsWrapper"]'),
|
45
44
|
//Orientation and layout
|
46
45
|
orderingLayoutLabel: () => cy.get('.list-ordering-order-layout .options-label'),
|
@@ -106,7 +105,6 @@ const selectors = {
|
|
106
105
|
optionOrientationSeparateList: () => cy.get('[class*="ClozeWithDragAndDropstyles__DraggableItemsGrid"]'),
|
107
106
|
specifyCorrectAnswerSectionMyListLabel: () => cy.get('[class*="ReorderAsSeparatestyles__TitleContainer"]'),
|
108
107
|
outerBorderPreviewSeparateList: () => cy.get('[class*="ReorderAsSeparatestyles__ReorderSeparateWrapper"]'),
|
109
|
-
emptyDropzoneList: () => cy.get('[class*="ClozeWithDragAndDropstyles__PlaceHolderDiv"]:not(:has(*))'),
|
110
108
|
|
111
109
|
//Style and layout
|
112
110
|
optionsLabel: () => cy.get('.draggable-options-label'),
|
@@ -1534,15 +1532,6 @@ const steps = {
|
|
1534
1532
|
.click();
|
1535
1533
|
},
|
1536
1534
|
|
1537
|
-
clickAndResetDropOptionSeperateList: (optionsText) => {
|
1538
|
-
listOrderingPage.dropzoneSeperateList()
|
1539
|
-
.contains(optionsText)
|
1540
|
-
.click();
|
1541
|
-
listOrderingPage.emptyDropzoneList()
|
1542
|
-
.first()
|
1543
|
-
.click();
|
1544
|
-
},
|
1545
|
-
|
1546
1535
|
clickAndUnDropOptionSeperateList: (optionsText) => {
|
1547
1536
|
listOrderingPage.dropzoneSeperateList()
|
1548
1537
|
.contains(optionsText)
|
@@ -1772,27 +1761,7 @@ const steps = {
|
|
1772
1761
|
optionsTextArray.forEach((option, optionIndex) => {
|
1773
1762
|
utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.optionsInputFieldInQuestionPreviewTab(), optionIndex * 2), option);
|
1774
1763
|
});
|
1775
|
-
}
|
1776
|
-
|
1777
|
-
verifyAnswerStatusBannerNotExist: () => {
|
1778
|
-
listOrderingPage.correctIncorrectStatusMessageText()
|
1779
|
-
.should('not.exist');
|
1780
|
-
},
|
1781
|
-
|
1782
|
-
verifyAnswerStatusBannerExist: () => {
|
1783
|
-
listOrderingPage.correctIncorrectStatusMessageText()
|
1784
|
-
.should('be.visible');
|
1785
|
-
},
|
1786
|
-
|
1787
|
-
verifyCorrectAnswerSectionExist: () => {
|
1788
|
-
listOrderingPage.correctAnswersLabel()
|
1789
|
-
.should('be.visible');
|
1790
|
-
},
|
1791
|
-
|
1792
|
-
verifyCorrectAnswerSectionNotExist: () => {
|
1793
|
-
listOrderingPage.correctAnswersLabel()
|
1794
|
-
.should('not.exist');
|
1795
|
-
},
|
1764
|
+
}
|
1796
1765
|
}
|
1797
1766
|
|
1798
1767
|
const tests = {
|
@@ -194,7 +194,6 @@ const selectors = {
|
|
194
194
|
connectorLineTypeLabel: () => cy.get('[class*="__SubSectionLabel"]').eq(2),
|
195
195
|
connectorLine: () => cy.get('[class*="ClozeWithDragAndDropstyles__ShowIconWrapper"]:visible'),
|
196
196
|
optionsInputFieldInQuestionPreviewTab: () => cy.get('.draggable-selected-item'),
|
197
|
-
correctAnswerSection: () => cy.get('[class*=CorrectAnswerWrapperDND]'),
|
198
197
|
}
|
199
198
|
|
200
199
|
const steps = {
|
@@ -2649,27 +2648,7 @@ const steps = {
|
|
2649
2648
|
optionsTextArray.forEach((option, optionIndex) => {
|
2650
2649
|
utilities.verifyTextContent(utilities.getNthElement(matchingPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
|
2651
2650
|
});
|
2652
|
-
}
|
2653
|
-
|
2654
|
-
verifyAnswerStatusBannerNotExist: () => {
|
2655
|
-
matchingPage.correctIncorrectAnswerLabel()
|
2656
|
-
.should('not.exist');
|
2657
|
-
},
|
2658
|
-
|
2659
|
-
verifyAnswerStatusBannerExist: () => {
|
2660
|
-
matchingPage.correctIncorrectAnswerLabel()
|
2661
|
-
.should('be.visible');
|
2662
|
-
},
|
2663
|
-
|
2664
|
-
verifyCorrectAnswerSectionExist: () => {
|
2665
|
-
matchingPage.correctAnswerSection()
|
2666
|
-
.should('be.visible');
|
2667
|
-
},
|
2668
|
-
|
2669
|
-
verifyCorrectAnswerSectionNotExist: () => {
|
2670
|
-
matchingPage.correctAnswerSection()
|
2671
|
-
.should('not.exist');
|
2672
|
-
},
|
2651
|
+
}
|
2673
2652
|
}
|
2674
2653
|
|
2675
2654
|
const tests = {
|
@@ -2781,7 +2760,7 @@ const tests = {
|
|
2781
2760
|
.eq(inputFieldIndex)
|
2782
2761
|
.click()
|
2783
2762
|
.blur();
|
2784
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
2763
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
2785
2764
|
});
|
2786
2765
|
|
2787
2766
|
it('User should be able to enter text in options input field', () => {
|
@@ -3082,13 +3061,14 @@ const tests = {
|
|
3082
3061
|
matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Petals', dropzoneIndex: 0 }]);
|
3083
3062
|
});
|
3084
3063
|
|
3085
|
-
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion,
|
3064
|
+
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion, \'Error: Please set a correct answer.\' error message should be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
|
3086
3065
|
matchingPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
|
3087
|
-
commonComponents.
|
3066
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible')
|
3067
|
+
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
3088
3068
|
if (accordionName == 'Correct') {
|
3089
3069
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
3090
3070
|
.within(() => {
|
3091
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
3071
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
|
3092
3072
|
});
|
3093
3073
|
} else {
|
3094
3074
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
@@ -3098,6 +3078,7 @@ const tests = {
|
|
3098
3078
|
};
|
3099
3079
|
});
|
3100
3080
|
|
3081
|
+
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|
3101
3082
|
|
3102
3083
|
it('CSS of the dropzone border', { tags: 'css' }, () => {
|
3103
3084
|
utilities.verifyCSS(matchingPage.dropzoneSpecifyCorrectAnswerSection().eq(0), {
|
@@ -36,7 +36,6 @@ const selectors = {
|
|
36
36
|
draggableLabelsPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .label-tool'),
|
37
37
|
labelContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .items-container'),
|
38
38
|
numberLinePointPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find('svg ellipse[display="inline"]:visible'),
|
39
|
-
correctIncorrectStatusMessageText: () => cy.get('[class*="NumberLinestyles__CorrectIncorrectWrapper"]'),
|
40
39
|
|
41
40
|
//Correct answer section
|
42
41
|
numberLineCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg').eq(2),
|
@@ -297,17 +296,6 @@ const steps = {
|
|
297
296
|
numberLineLabelPage.labelContainerSpecifyCorrectAnswer()
|
298
297
|
.click({ force: true });
|
299
298
|
},
|
300
|
-
/**
|
301
|
-
* This function clicks and drops the label back in the container for previewTab
|
302
|
-
* @param {string} label to be clicked and dropped
|
303
|
-
*/
|
304
|
-
clickAndDropLabelInContainerPreviewTab: (label) => {
|
305
|
-
numberLineLabelPage.draggableLabelsPreviewTab()
|
306
|
-
.contains(label)
|
307
|
-
.click();
|
308
|
-
numberLineLabelPage.labelContainerPreviewTab()
|
309
|
-
.click({ force: true });
|
310
|
-
},
|
311
299
|
|
312
300
|
/**
|
313
301
|
* This function verifies plotted points on the number line on the Edit tab.
|
@@ -653,20 +641,6 @@ const steps = {
|
|
653
641
|
utilities.verifyElementVisibilityState(numberLineLabelPage.numberLineCorrectAnswerSection(), 'notExist');
|
654
642
|
},
|
655
643
|
|
656
|
-
verifyCorrectAnswerSectionExist: () => {
|
657
|
-
utilities.verifyElementVisibilityState(numberLineLabelPage.numberLineCorrectAnswerSection(), 'exist');
|
658
|
-
},
|
659
|
-
|
660
|
-
verifyAnswerStatusBannerNotExist: () => {
|
661
|
-
numberLineLabelPage.correctIncorrectStatusMessageText()
|
662
|
-
.should('not.exist');
|
663
|
-
},
|
664
|
-
|
665
|
-
verifyAnswerStatusBannerExist: () => {
|
666
|
-
numberLineLabelPage.correctIncorrectStatusMessageText()
|
667
|
-
.should('be.visible');
|
668
|
-
},
|
669
|
-
|
670
644
|
/**
|
671
645
|
* @param {number} points - The points to be allotted.
|
672
646
|
* @description - Allots points in the scoring section.
|
@@ -56,7 +56,6 @@ const selectors = {
|
|
56
56
|
return cy.get('[class*="question-preview-wrapper"] [class*="ControlsWrapper"] button')
|
57
57
|
}
|
58
58
|
},
|
59
|
-
correctIncorrectStatusMessageText: () => cy.get('[class*="NumberLinestyles__CorrectIncorrectWrapper"]'),
|
60
59
|
|
61
60
|
//Correct answer section
|
62
61
|
numberLineCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg:visible').eq(1),
|
@@ -759,20 +758,6 @@ const steps = {
|
|
759
758
|
utilities.verifyElementVisibilityState(numberLinePage.numberLineCorrectAnswerSection(), 'notExist');
|
760
759
|
},
|
761
760
|
|
762
|
-
verifyCorrectAnswerSectionExist: () => {
|
763
|
-
utilities.verifyElementVisibilityState(numberLinePage.numberLineCorrectAnswerSection(), 'exist');
|
764
|
-
},
|
765
|
-
|
766
|
-
verifyAnswerStatusBannerNotExist: () => {
|
767
|
-
numberLinePage.correctIncorrectStatusMessageText()
|
768
|
-
.should('not.exist');
|
769
|
-
},
|
770
|
-
|
771
|
-
verifyAnswerStatusBannerExist: () => {
|
772
|
-
numberLinePage.correctIncorrectStatusMessageText()
|
773
|
-
.should('be.visible');
|
774
|
-
},
|
775
|
-
|
776
761
|
/**
|
777
762
|
* @param {("correct" | "incorrect")} answerStatus - The status of the answer.
|
778
763
|
* @description Verifies the visibility and content of the correct/incorrect answer label block.
|
@@ -1385,26 +1385,6 @@ const steps = {
|
|
1385
1385
|
expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection: (index) => {
|
1386
1386
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(index);
|
1387
1387
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(index);
|
1388
|
-
},
|
1389
|
-
|
1390
|
-
verifyAnswerStatusBannerNotExist: () => {
|
1391
|
-
textEntryMathPage.correctIncorrectStatusMessageText()
|
1392
|
-
.should('not.exist');
|
1393
|
-
},
|
1394
|
-
|
1395
|
-
verifyAnswerStatusBannerExist: () => {
|
1396
|
-
textEntryMathPage.correctIncorrectStatusMessageText()
|
1397
|
-
.should('be.visible');
|
1398
|
-
},
|
1399
|
-
|
1400
|
-
verifyCorrectAnswerSectionExist: () => {
|
1401
|
-
textEntryMathPage.correctAnswersLabel()
|
1402
|
-
.should('be.visible');
|
1403
|
-
},
|
1404
|
-
|
1405
|
-
verifyCorrectAnswerSectionNotExist: () => {
|
1406
|
-
textEntryMathPage.correctAnswersLabel()
|
1407
|
-
.should('not.exist');
|
1408
1388
|
}
|
1409
1389
|
}
|
1410
1390
|
|
@@ -1422,7 +1402,6 @@ const tests = {
|
|
1422
1402
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
1423
1403
|
...equationEditorSectionCommonComponent.tests,
|
1424
1404
|
...styleAndLayoutCustomizationAccordionComponent.tests,
|
1425
|
-
...createQuestionBasePage.tests,
|
1426
1405
|
/**
|
1427
1406
|
* Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
|
1428
1407
|
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|