itemengine-cypress-automation 1.0.283-applitools-caab082.0 → 1.0.283
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -36
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -14
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -18
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -16
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -18
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -17
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -18
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -16
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +7 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +10 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +11 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -16
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -35
- package/cypress/e2e/ILC/EditItem/editItem.ts +133 -0
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +214 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -16
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +228 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +242 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +237 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -17
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -16
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -15
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +239 -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/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +212 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -20
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +366 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -13
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -14
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -13
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +306 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +243 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +242 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +289 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +284 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +238 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +279 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +641 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +278 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +228 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +234 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +237 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +134 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +138 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +263 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +166 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -24
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -15
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +193 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +12 -22
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -14
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -17
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -17
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -12
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -12
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -17
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -12
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -19
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/pages/audioPlayerPage.js +4 -4
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +17 -0
- package/cypress/pages/components/equationEditorFlyout.js +1 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +5 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +41 -1
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/createItemPage.js +38 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +45 -3
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +35 -2
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +34 -7
- package/cypress/pages/multipleSelectionPage.js +17 -2
- package/cypress/pages/numberLineLabelPage.js +3 -3
- package/cypress/pages/readingRulerPage.js +5 -3
- package/cypress/pages/singleSelectionPage.js +5 -2
- package/cypress/pages/textEntryMathPage.js +19 -5
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -479,7 +479,7 @@ const steps = {
|
|
479
479
|
utilities.getNthElement(gridQuestionCommonComponent.tableCell(), column)
|
480
480
|
.find('[role="math"]')
|
481
481
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
482
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
482
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
483
483
|
});
|
484
484
|
});
|
485
485
|
},
|
@@ -561,6 +561,23 @@ const steps = {
|
|
561
561
|
});
|
562
562
|
},
|
563
563
|
|
564
|
+
/**
|
565
|
+
* Unselects options in the preview tab.
|
566
|
+
* @param {Object} position - The position of the option button.
|
567
|
+
* @param {number} position.row - The row index (zero-based) in the preview tab.
|
568
|
+
* @param {number} position.column - The column index (zero-based) of the option button in the preview tab.
|
569
|
+
*/
|
570
|
+
unselectOptionsInPreviewTab: ({ row, column }) => {
|
571
|
+
gridQuestionCommonComponent.gridPreviewTab().within(() => {
|
572
|
+
utilities.getNthElement(gridQuestionCommonComponent.tableRow(), row)
|
573
|
+
.within(() => {
|
574
|
+
utilities.getNthElement(gridQuestionCommonComponent.optionsButton(), column)
|
575
|
+
.click()
|
576
|
+
.should('not.have.class', 'selected');
|
577
|
+
});
|
578
|
+
});
|
579
|
+
},
|
580
|
+
|
564
581
|
/**
|
565
582
|
* Selects options for all question stems in the preview tab.
|
566
583
|
* @param {Object[]} rowsAndColumns - An array of objects containing row and column indices.
|
@@ -654,6 +671,29 @@ const steps = {
|
|
654
671
|
});
|
655
672
|
},
|
656
673
|
|
674
|
+
/**
|
675
|
+
* Verifies correct answer responses for multiple rows and columns.
|
676
|
+
* @param {Array<{row: number, column: number}>} rowsAndColumns - An array of objects containing row and column indices.
|
677
|
+
* @returns {void}
|
678
|
+
*/
|
679
|
+
verifyBlankAnswerResponseCorrectAnswerSection: (rowsAndColumns) => {
|
680
|
+
rowsAndColumns.forEach(({ row, column }) => {
|
681
|
+
gridQuestionCommonComponent.correctAnswerGrid()
|
682
|
+
.within(() => {
|
683
|
+
utilities.getNthElement(gridQuestionCommonComponent.tableRow(), row)
|
684
|
+
.within(() => {
|
685
|
+
utilities.getNthElement(gridQuestionCommonComponent.optionsButton(), column)
|
686
|
+
.should('not.have.class', 'selected');
|
687
|
+
utilities.getNthElement(gridQuestionCommonComponent.optionsButton(), column)
|
688
|
+
.within(() => {
|
689
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'notExist');
|
690
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'notExist');
|
691
|
+
});
|
692
|
+
});
|
693
|
+
})
|
694
|
+
});
|
695
|
+
},
|
696
|
+
|
657
697
|
verifyCorrectAnswerSectionNotExists: () => {
|
658
698
|
utilities.verifyElementVisibilityState(gridQuestionCommonComponent.correctAnswersSectionLabel(), 'notExist');
|
659
699
|
},
|
@@ -183,7 +183,7 @@ const steps = {
|
|
183
183
|
.eq(index)
|
184
184
|
.find('[data-widget="ngie_equation"]')
|
185
185
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
186
|
-
|
186
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
187
187
|
},
|
188
188
|
|
189
189
|
/**
|
@@ -30,7 +30,9 @@ const selectors = {
|
|
30
30
|
selectedSectionUnderline: () => cy.get('[class*="MuiTabs-indicator"]').eq(1),
|
31
31
|
sectionsNumber1Label: () => cy.get('.tablist-numbered-label').eq(0),
|
32
32
|
sectionsNumber2Label: () => cy.get('.tablist-numbered-label').eq(1),
|
33
|
-
noPreviewText: () => cy.get('[class*="__NoPreview"]')
|
33
|
+
noPreviewText: () => cy.get('[class*="__NoPreview"]'),
|
34
|
+
editItemButton: () => cy.get('.icon-pencil'),
|
35
|
+
pointsValue: () => cy.get('[class*="PreviewTabstyles__PointsValue"]')
|
34
36
|
}
|
35
37
|
|
36
38
|
const steps = {
|
@@ -572,6 +574,41 @@ const steps = {
|
|
572
574
|
expect(panelWidth + sectionWidth).to.be.closeTo(itemWidth, 1);
|
573
575
|
});
|
574
576
|
});
|
577
|
+
},
|
578
|
+
|
579
|
+
/**
|
580
|
+
* @param {number} index of the question
|
581
|
+
* @description this function is used to click on edit item button
|
582
|
+
*/
|
583
|
+
editItem: (index) => {
|
584
|
+
createItemPage.editItemButton()
|
585
|
+
.eq(index)
|
586
|
+
.click();
|
587
|
+
},
|
588
|
+
|
589
|
+
/**
|
590
|
+
* @param {string} pointsValue points of the question
|
591
|
+
* @description this function is used to verify points value
|
592
|
+
*/
|
593
|
+
verifyPointsValue: (pointsValue) => {
|
594
|
+
utilities.verifyInnerText(createItemPage.pointsValue(), pointsValue)
|
595
|
+
},
|
596
|
+
|
597
|
+
/**
|
598
|
+
* @param {string} questionType The type of question
|
599
|
+
* @description this function is used to verify the question type header
|
600
|
+
*/
|
601
|
+
verifyCreateQuestionPageQuestionTypeHeader: (questionType) => {
|
602
|
+
utilities.verifyInnerText(createItemPage.createQuestionPageQuestionTypeHeader(), questionType);
|
603
|
+
},
|
604
|
+
|
605
|
+
/**
|
606
|
+
* @param {number} index of the question
|
607
|
+
* @param {string} questionType
|
608
|
+
* @description this function is used to verify the question
|
609
|
+
*/
|
610
|
+
verifyQuestionTitle: (index, questionType) => {
|
611
|
+
utilities.verifyInnerText(utilities.getNthElement(createItemPage.questionTitle(), index), questionType);
|
575
612
|
}
|
576
613
|
}
|
577
614
|
|
@@ -820,7 +820,7 @@ const steps = {
|
|
820
820
|
.eq(optionIndex)
|
821
821
|
.find('[role="math"]')
|
822
822
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
823
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
823
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
824
824
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
825
825
|
});
|
826
826
|
},
|
@@ -33,7 +33,7 @@ const selectors = {
|
|
33
33
|
//Specify correct answer section
|
34
34
|
dropzoneSpecifyCorrectAnswerSection: () => cy.get('[class="droppable-area"] [role="button"]'),
|
35
35
|
optionContainerOptionsSpecifyCorrectAnswerSection: () => cy.get('.draggable-selected-item'),
|
36
|
-
optionsContainerSpecifyCorrectAnswerSection: () => cy.get('.draggable-wrapper'),
|
36
|
+
optionsContainerSpecifyCorrectAnswerSection: () => cy.get('.draggable-wrapper'),
|
37
37
|
addAlternateButtonSpecifyCorrectAnswer: () => cy.get('.alternate-option-btn-wrapper button'),
|
38
38
|
selectedAlternateAnswerCountSpecifyCorrectAnswer: () => cy.get('.selected-option-wrapper'),
|
39
39
|
alternateAnswerPopup: () => cy.get('.alternate-option-popup-wrapper'),
|
@@ -105,6 +105,48 @@ const steps = {
|
|
105
105
|
});
|
106
106
|
},
|
107
107
|
|
108
|
+
/**
|
109
|
+
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
110
|
+
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
111
|
+
*/
|
112
|
+
clickAndDropOptionInDropzoneWithIndexSpecifyCorrectAnswerSection: (optionsObject) => {
|
113
|
+
Object.entries(optionsObject).forEach(([index, dropzoneIndex]) => {
|
114
|
+
fillInTheGapsDragAndDropPage.optionContainerOptionsSpecifyCorrectAnswerSection()
|
115
|
+
.eq(index)
|
116
|
+
.click();
|
117
|
+
fillInTheGapsDragAndDropPage.dropzoneSpecifyCorrectAnswerSection()
|
118
|
+
.eq(dropzoneIndex)
|
119
|
+
.click({ force: true });
|
120
|
+
});
|
121
|
+
},
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
125
|
+
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
126
|
+
*/
|
127
|
+
clickAndDropOptionOutsideDropzoneWithIndexPreviewTab: (dropzoneIndex) => {
|
128
|
+
fillInTheGapsDragAndDropPage.dropzonePreviewTab()
|
129
|
+
.eq(dropzoneIndex)
|
130
|
+
.click();
|
131
|
+
cy.get('.option-drag-and-drop')
|
132
|
+
.click({ force: true });
|
133
|
+
},
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
137
|
+
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
138
|
+
*/
|
139
|
+
clickAndDropOptionWithIndexInDropzonePreviewTab: (optionsObject) => {
|
140
|
+
Object.entries(optionsObject).forEach(([index, dropzoneIndex]) => {
|
141
|
+
fillInTheGapsDragAndDropPage.optionContainerOptionsPreviewTab()
|
142
|
+
.eq(index)
|
143
|
+
.click();
|
144
|
+
fillInTheGapsDragAndDropPage.dropzonePreviewTab()
|
145
|
+
.eq(dropzoneIndex)
|
146
|
+
.click({ force: true });
|
147
|
+
});
|
148
|
+
},
|
149
|
+
|
108
150
|
/**
|
109
151
|
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
110
152
|
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
@@ -208,7 +250,7 @@ const steps = {
|
|
208
250
|
fillInTheGapsDragAndDropPage.optionContainerOptionsPreviewTab()
|
209
251
|
.find('[role="math"]')
|
210
252
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
211
|
-
|
253
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
212
254
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
213
255
|
},
|
214
256
|
|
@@ -233,7 +275,7 @@ const steps = {
|
|
233
275
|
.eq(optionIndex)
|
234
276
|
.find('[role="math"]')
|
235
277
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
236
|
-
|
278
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
237
279
|
},
|
238
280
|
|
239
281
|
/**
|
@@ -95,6 +95,7 @@ const selectors = {
|
|
95
95
|
dropzoneNumerationBox: () => cy.get('.answer-numeration-number-box'),
|
96
96
|
correctAnswerResponseWrapperWithoutEnumeration: () => cy.get('.dnd-correct-answer-wrapper [class*="ResponseDropZonestyles__ResponseWrapper"]'),
|
97
97
|
responseAreaPreviewTab: () => cy.get('[class*="ResponseDropZonestyles__ResponseWrapper"] .cell'),
|
98
|
+
droppedOptionPreviewTab: () => cy.get('.response-dropped')
|
98
99
|
}
|
99
100
|
|
100
101
|
const steps = {
|
@@ -186,6 +187,34 @@ const steps = {
|
|
186
187
|
});
|
187
188
|
},
|
188
189
|
|
190
|
+
/**
|
191
|
+
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
192
|
+
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
193
|
+
*/
|
194
|
+
clickAndDropOptionWithIndexInDropzonePreviewTab: (optionsObject) => {
|
195
|
+
Object.entries(optionsObject).forEach(([index, dropzoneIndex]) => {
|
196
|
+
fillInTheGapsOverImageDragAndDropPage.optionContainerOptionsPreviewTab()
|
197
|
+
.eq(index)
|
198
|
+
.click();
|
199
|
+
fillInTheGapsOverImageDragAndDropPage.dropzonePreviewTab()
|
200
|
+
.eq(dropzoneIndex)
|
201
|
+
.click({ force: true });
|
202
|
+
});
|
203
|
+
},
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
207
|
+
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
208
|
+
*/
|
209
|
+
clickAndDropOptionOutsideDropzoneWithIndexPreviewTab: (droppedIndex) => {
|
210
|
+
fillInTheGapsOverImageDragAndDropPage.droppedOptionPreviewTab()
|
211
|
+
.eq(droppedIndex)
|
212
|
+
.click();
|
213
|
+
cy.get('.option-drag-and-drop')
|
214
|
+
.click();
|
215
|
+
},
|
216
|
+
|
217
|
+
|
189
218
|
/**
|
190
219
|
* Verifies the correct answer responses without enumeration.
|
191
220
|
* @param {string[]} correctAnswerArray - An array of correct answer responses to verify.
|
@@ -336,7 +365,7 @@ const steps = {
|
|
336
365
|
fillInTheGapsOverImageDragAndDropPage.optionContainerOptionsPreviewTab()
|
337
366
|
.find('[role="math"]')
|
338
367
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
339
|
-
|
368
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
340
369
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
341
370
|
},
|
342
371
|
|
@@ -361,7 +390,7 @@ const steps = {
|
|
361
390
|
.eq(optionIndex)
|
362
391
|
.find('[role="math"]')
|
363
392
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
364
|
-
|
393
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
365
394
|
},
|
366
395
|
|
367
396
|
/**
|
@@ -403,6 +432,10 @@ const steps = {
|
|
403
432
|
});
|
404
433
|
},
|
405
434
|
|
435
|
+
verifyVisibilityOfCorrectAnswerLabel: ()=>{
|
436
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
437
|
+
},
|
438
|
+
|
406
439
|
/**
|
407
440
|
* @description Verifies the absence of a correct/incorrect option icon for a specified option in the Preview Tab.
|
408
441
|
* @param {number} optionIndex - The index of the option to verify.
|
@@ -1719,7 +1719,7 @@ const steps = {
|
|
1719
1719
|
verifyCorrectIncorrectIconsNotExistListOrderingReorderAsSeparate: () => {
|
1720
1720
|
utilities.verifyElementVisibilityState(listOrderingPage.correctIconNew(), 'notExist');
|
1721
1721
|
utilities.verifyElementVisibilityState(listOrderingPage.incorrectIconNew(), 'notExist');
|
1722
|
-
}
|
1722
|
+
},
|
1723
1723
|
}
|
1724
1724
|
|
1725
1725
|
const tests = {
|
@@ -100,8 +100,7 @@ const selectors = {
|
|
100
100
|
dropdownNumeration: () => cy.get('[class*="ResponseDropdownComponentstyles__NumerationDiv"]'),
|
101
101
|
correctAnswersNumeration: () => cy.get('.answer-numeration-number-box'),
|
102
102
|
correctAnswerResponseWrapper: () => cy.get('[class*="ClozeWithDragAndDropstyles__AnswerCell"]'),
|
103
|
-
correctAnswersOptions: () => cy.get('.match-list-drag-and-drop
|
104
|
-
correctAnswersWrapper: () => cy.get('.match-list-drag-and-drop'),
|
103
|
+
correctAnswersOptions: () => cy.get('.match-list-drag-and-drop'),
|
105
104
|
correctAnswersOptionContainer: () => cy.get('.draggable-selected-option'),
|
106
105
|
gradingViewOption: () => cy.get('.item-content-wrapper'),
|
107
106
|
questionBorderPreviewTab: () => cy.get('[class*="ClozeWithDragAndDropstyles__WrapperDiv"]'),
|
@@ -674,6 +673,18 @@ const steps = {
|
|
674
673
|
});
|
675
674
|
},
|
676
675
|
|
676
|
+
/**
|
677
|
+
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
678
|
+
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
679
|
+
*/
|
680
|
+
clickAndDropOptionOutsideDropzoneWithIndexPreviewTab: (dropzoneIndex) => {
|
681
|
+
matchingPage.dropzonePreviewTab()
|
682
|
+
.eq(dropzoneIndex)
|
683
|
+
.click();
|
684
|
+
cy.get('.option-drag-and-drop')
|
685
|
+
.click({ force: true });
|
686
|
+
},
|
687
|
+
|
677
688
|
clickAndDropOptionInOptionsContainerInPreviewTab: (optionText) => {
|
678
689
|
matchingPage.dropzonePreviewTab()
|
679
690
|
.contains(optionText)
|
@@ -757,7 +768,7 @@ const steps = {
|
|
757
768
|
.eq(optionIndex)
|
758
769
|
.find('[role="math"]')
|
759
770
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
760
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
771
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
761
772
|
},
|
762
773
|
|
763
774
|
/**
|
@@ -794,7 +805,7 @@ const steps = {
|
|
794
805
|
.eq(optionIndex)
|
795
806
|
.find('[role="math"]')
|
796
807
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
797
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
808
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
798
809
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
799
810
|
},
|
800
811
|
|
@@ -830,7 +841,7 @@ const steps = {
|
|
830
841
|
.eq(optionIndex)
|
831
842
|
.find('[role="math"]')
|
832
843
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
833
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
844
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
834
845
|
},
|
835
846
|
|
836
847
|
verifyDropzoneNumeration: () => {
|
@@ -869,6 +880,18 @@ const steps = {
|
|
869
880
|
});
|
870
881
|
},
|
871
882
|
|
883
|
+
/**
|
884
|
+
* Verifies the correct option icon for a specified dropzone in the Preview Tab for blank answer response.
|
885
|
+
* @param {number} dropzoneIndex - The index of the dropzone to verify.
|
886
|
+
*/
|
887
|
+
verifyCorrectOptionIconForEmptyOption: (dropzoneIndex) => {
|
888
|
+
matchingPage.dropzonePreviewTab()
|
889
|
+
.eq(dropzoneIndex)
|
890
|
+
.within(() => {
|
891
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'exist');
|
892
|
+
});
|
893
|
+
},
|
894
|
+
|
872
895
|
/**
|
873
896
|
* @description Verifies the incorrect option icon for a specified dropzone in the Preview Tab.
|
874
897
|
* @param {number} dropzoneIndex - The index of the dropzone to verify.
|
@@ -942,7 +965,7 @@ const steps = {
|
|
942
965
|
correctAnswerArray.forEach((correctAnswerGroup, index) => {
|
943
966
|
utilities.verifyTextContent(utilities.getNthElement(matchingPage.correctAnswersNumeration(), index), index + 1);
|
944
967
|
correctAnswerGroup.forEach((answerOption, optionIndex) => {
|
945
|
-
utilities.verifyTextContent(utilities.getNthElement(matchingPage.
|
968
|
+
utilities.verifyTextContent(utilities.getNthElement(matchingPage.correctAnswersOptions(), index).find('.question-text-wrapper').eq(optionIndex), answerOption);
|
946
969
|
});
|
947
970
|
});
|
948
971
|
},
|
@@ -962,6 +985,10 @@ const steps = {
|
|
962
985
|
}
|
963
986
|
},
|
964
987
|
|
988
|
+
verifyCorrectAnswerSectionLabel: () => {
|
989
|
+
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
990
|
+
},
|
991
|
+
|
965
992
|
verifyCorrectAnswerSectionNotExists: () => {
|
966
993
|
utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
|
967
994
|
},
|
@@ -3035,7 +3062,7 @@ const tests = {
|
|
3035
3062
|
} else {
|
3036
3063
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
3037
3064
|
.within(() => {
|
3038
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
3065
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
3039
3066
|
});
|
3040
3067
|
};
|
3041
3068
|
});
|
@@ -6,6 +6,8 @@ import { ckEditorEquationEditorComponent } from "../pages/components/ckEditorEqu
|
|
6
6
|
import { ckEditorInsertTableComponent } from "../pages/components/ckEditorInsertTableComponent"
|
7
7
|
import { ckEditorInsertImageComponent } from "./components/ckEditorInsertImageComponent";
|
8
8
|
import { ckEditorLinkComponent } from "../pages/components/ckEditorLinkComponent"
|
9
|
+
import { createItemPage } from "./createItemPage";
|
10
|
+
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
9
11
|
const css = Cypress.env('css');
|
10
12
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
11
13
|
|
@@ -30,6 +32,7 @@ const selectors = {
|
|
30
32
|
...ckEditorInsertTableComponent,
|
31
33
|
...ckEditorInsertImageComponent,
|
32
34
|
...ckEditorLinkComponent,
|
35
|
+
...createItemPage,
|
33
36
|
//Specify correct answer section
|
34
37
|
optionWrapperSpecifyCorrectAnswerSection: () => cy.get('.mcq-option-wrapper'),
|
35
38
|
optionsText: () => cy.get('.mcq-label'),
|
@@ -98,6 +101,8 @@ const steps = {
|
|
98
101
|
...ckEditorInsertTableComponent.steps,
|
99
102
|
...ckEditorInsertImageComponent.steps,
|
100
103
|
...ckEditorLinkComponent.steps,
|
104
|
+
...createItemPage.steps,
|
105
|
+
...selectQuestionResourceToolPage.steps,
|
101
106
|
/**
|
102
107
|
* Verifies the contents of an option wrapper in the 'Specify correct answer' section for multiple selection questions.
|
103
108
|
* @param {number} optionIndex - The index of the option wrapper to be verified.
|
@@ -368,7 +373,7 @@ const steps = {
|
|
368
373
|
.eq(index)
|
369
374
|
.find('[role="math"]')
|
370
375
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
371
|
-
|
376
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
372
377
|
},
|
373
378
|
|
374
379
|
/**
|
@@ -415,7 +420,7 @@ const steps = {
|
|
415
420
|
.eq(index)
|
416
421
|
.find('[role="math"]')
|
417
422
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
418
|
-
|
423
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
419
424
|
},
|
420
425
|
|
421
426
|
checkOptionsWrapperInSpecifyCorrectAnswerSection: (optionIndex) => {
|
@@ -840,6 +845,16 @@ const steps = {
|
|
840
845
|
verifyCorrectAnswerSectionNotExist: () => {
|
841
846
|
multipleSelectionPage.correctAnswerSectionWrapper()
|
842
847
|
.should('not.exist');
|
848
|
+
},
|
849
|
+
|
850
|
+
/**
|
851
|
+
* Verifies the input field text value of an option in the feedback scale options accordion.
|
852
|
+
* @param {number} optionAccordionIndex - The index of the option accordion.
|
853
|
+
* @param {string} text - The expected text value of the input field.
|
854
|
+
* @returns {void}
|
855
|
+
*/
|
856
|
+
verifyOptionInputFieldText: (optionAccordionIndex, text) => {
|
857
|
+
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.optionsText(), optionAccordionIndex), text)
|
843
858
|
}
|
844
859
|
}
|
845
860
|
|
@@ -205,7 +205,7 @@ const steps = {
|
|
205
205
|
.eq(index)
|
206
206
|
.find('[role="math"]')
|
207
207
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
208
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
208
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
209
209
|
},
|
210
210
|
|
211
211
|
/**
|
@@ -362,7 +362,7 @@ const steps = {
|
|
362
362
|
.eq(index)
|
363
363
|
.find('[role="math"]')
|
364
364
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
365
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
365
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
366
366
|
},
|
367
367
|
|
368
368
|
/**
|
@@ -417,7 +417,7 @@ const steps = {
|
|
417
417
|
.eq(index)
|
418
418
|
.find('[role="math"]')
|
419
419
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
420
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
420
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
421
421
|
},
|
422
422
|
|
423
423
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
2
|
import { createQuestionBasePage, additionalSettingsPanel, colorPopupComponent } from "./components";
|
3
|
+
import { createItemPage } from "./createItemPage";
|
3
4
|
import { dialogBoxBase } from "./dialogBoxBase";
|
4
5
|
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
5
6
|
const css = Cypress.env('css');
|
@@ -55,6 +56,7 @@ const steps = {
|
|
55
56
|
...additionalSettingsPanel.steps,
|
56
57
|
...dialogBoxBase.steps,
|
57
58
|
...selectQuestionResourceToolPage.steps,
|
59
|
+
...createItemPage.steps,
|
58
60
|
|
59
61
|
verifyDisplayButtonToStudentCheckboxIsChecked: () => {
|
60
62
|
readingRulerPage.displayButtonToStudentCheckbox()
|
@@ -292,9 +294,9 @@ const steps = {
|
|
292
294
|
},
|
293
295
|
|
294
296
|
/**
|
295
|
-
|
296
|
-
|
297
|
-
|
297
|
+
* Verifies the resize buttons in the preview tab based on the specified ruler style.
|
298
|
+
* @param {'Line focus'| 'Overlay mask'| 'Drag handle'} style - The style of the ruler
|
299
|
+
*/
|
298
300
|
verifyRulerButtonsInPreviewTab: (style) => {
|
299
301
|
switch (style) {
|
300
302
|
case 'Line focus':
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import constants from "../fixtures/constants";
|
2
2
|
import utilities from "../support/helpers/utilities";
|
3
3
|
import { additionalSettingsPanel, createQuestionBasePage, mcqAdditionalSettingsBase, scoringSectionBaseEditTab, autoScoredSpecifyCorrectAnswerSection, optionsWrapperComponent, commonComponents, autoScoredScoringPreviewTab, autoScoredStudentViewSettings, ckEditorToolbar, equationEditorFlyout, randomizeOptionsComponent, lockUnlockOptionComponent, questionInstructionsComponent, additionalSettingsAccessibilitySectionComponent } from "./components";
|
4
|
+
import { createItemPage } from "./createItemPage";
|
4
5
|
const css = Cypress.env('css');
|
5
6
|
|
6
7
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
@@ -18,6 +19,7 @@ const selectors = {
|
|
18
19
|
...autoScoredScoringPreviewTab,
|
19
20
|
...randomizeOptionsComponent,
|
20
21
|
...lockUnlockOptionComponent,
|
22
|
+
...createItemPage,
|
21
23
|
optionsRadioButton: () => cy.get('input[type="radio"]'),
|
22
24
|
optionsRadioButtonForSpecifyCorrectAnswer: () => cy.get('.radio-option-wrapper:visible input[type="radio"]'),
|
23
25
|
editTabOptionsWrapper: () => cy.get('.edit-mcq-option-wrapper'),
|
@@ -54,6 +56,7 @@ const steps = {
|
|
54
56
|
...equationEditorFlyout.steps,
|
55
57
|
...randomizeOptionsComponent.steps,
|
56
58
|
...lockUnlockOptionComponent.steps,
|
59
|
+
...createItemPage.steps,
|
57
60
|
/**
|
58
61
|
* Verifies the contents of an option wrapper in the 'Specify correct answer' section for single selection questions.
|
59
62
|
* @param {number} optionIndex - The index of the option wrapper to be verified.
|
@@ -343,7 +346,7 @@ const steps = {
|
|
343
346
|
.eq(index)
|
344
347
|
.find('[role="math"]')
|
345
348
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
346
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
349
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
347
350
|
},
|
348
351
|
|
349
352
|
/**
|
@@ -390,7 +393,7 @@ const steps = {
|
|
390
393
|
.eq(index)
|
391
394
|
.find('[role="math"]')
|
392
395
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
393
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
396
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
394
397
|
},
|
395
398
|
|
396
399
|
/**
|
@@ -44,6 +44,7 @@ const selectors = {
|
|
44
44
|
//Evaluation tab
|
45
45
|
evaluationTab: () => cy.get('[data-ngie-testid*="evaluation"][data-ngie-testid*="tab"]'),
|
46
46
|
evaluationTabCloseButton: () => cy.get('.styled-close-button[aria-label*="Evaluation"]'),
|
47
|
+
evaluationCard: () => cy.get('.evaluation-styled-card'),
|
47
48
|
evaluationContainer: (evaluationMethodTitle = null) => {
|
48
49
|
if (evaluationMethodTitle) {
|
49
50
|
return cy.get(`.evaluation-styled-card`).contains(evaluationMethodTitle)
|
@@ -360,15 +361,23 @@ const steps = {
|
|
360
361
|
/**
|
361
362
|
* Select evaluation method
|
362
363
|
* @param {string} evaluationMethodTitle Title of evaluation method
|
364
|
+
* @param {number} index index of evolution method
|
363
365
|
*/
|
364
366
|
selectEvaluationMethod: (evaluationMethodTitle) => {
|
365
|
-
|
366
|
-
.
|
367
|
+
if (index !== null) {
|
368
|
+
utilities.getNthElement(textEntryMathPage.evaluationCard(), index)
|
369
|
+
.contains(evaluationMethodTitle)
|
370
|
+
.click();
|
371
|
+
} else {
|
372
|
+
textEntryMathPage.evaluationCard()
|
373
|
+
.contains(evaluationMethodTitle)
|
374
|
+
.click();
|
375
|
+
}
|
367
376
|
textEntryMathPage.steps.verifyEvaluationMethodActiveState(evaluationMethodTitle);
|
368
377
|
},
|
369
378
|
|
370
379
|
clickOnAddEvaluationButton: () => {
|
371
|
-
textEntryMathPage.addEvaluationButton()
|
380
|
+
utilities.getNthElement(textEntryMathPage.addEvaluationButton(), index)
|
372
381
|
.click();
|
373
382
|
},
|
374
383
|
|
@@ -967,8 +976,9 @@ const steps = {
|
|
967
976
|
.should('have.attr', 'aria-expanded', 'false');
|
968
977
|
},
|
969
978
|
|
970
|
-
focusInLayoutInputField: () => {
|
979
|
+
focusInLayoutInputField: (index = 0) => {
|
971
980
|
textEntryMathPage.inputFieldLayoutAccordion()
|
981
|
+
.eq(index)
|
972
982
|
.click();
|
973
983
|
},
|
974
984
|
|
@@ -1330,6 +1340,10 @@ const steps = {
|
|
1330
1340
|
utilities.verifyCSS(utilities.getNthElement(textEntryMathPage.answerInputFieldPreviewTab(), responseAreaIndex), {
|
1331
1341
|
'border-style': styleName
|
1332
1342
|
});
|
1343
|
+
},
|
1344
|
+
|
1345
|
+
verifyCorrectIncorrectStatusMessageTextNotExist: () => {
|
1346
|
+
utilities.verifyElementVisibilityState(textEntryMathPage.correctIncorrectStatusMessageText(), 'notExist');
|
1333
1347
|
}
|
1334
1348
|
}
|
1335
1349
|
|
@@ -1448,7 +1462,7 @@ const tests = {
|
|
1448
1462
|
});
|
1449
1463
|
|
1450
1464
|
it('User should be able to select a different evaluation method', () => {
|
1451
|
-
textEntryMathPage.steps.selectEvaluationMethod(evaluationMethods[3].name);
|
1465
|
+
textEntryMathPage.steps.selectEvaluationMethod(evaluationMethods[3].name, 3);
|
1452
1466
|
});
|
1453
1467
|
},
|
1454
1468
|
|
@@ -248,7 +248,7 @@ const steps = {
|
|
248
248
|
textSelectionPage.questionTextWrapperPreviewTab()
|
249
249
|
.find('span[role="math"]')
|
250
250
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
251
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
251
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
252
252
|
},
|
253
253
|
|
254
254
|
verifyLinkInPreviewTab: () => {
|
@@ -5,7 +5,6 @@ import 'cypress-file-upload';
|
|
5
5
|
import { iePage } from './migrationHelpers/verifyIeQuestionData';
|
6
6
|
import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
|
7
7
|
require('cy-verify-downloads').addCustomCommand();
|
8
|
-
import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
|
9
8
|
//import addContext from "mochawesome/addContext";
|
10
9
|
|
11
10
|
const randomUser = (j, username, i) => ({
|
@@ -155,16 +154,6 @@ Cypress.Commands.add('learnosityLoaderWait', () => {
|
|
155
154
|
.should('be.visible');
|
156
155
|
});
|
157
156
|
|
158
|
-
Cypress.Commands.add('startApplitools', () => {
|
159
|
-
cy.eyesOpen({
|
160
|
-
apiKey,
|
161
|
-
serverUrl,
|
162
|
-
browser,
|
163
|
-
appName: 'Applitools Demo - ILC',
|
164
|
-
testName: Cypress.currentTest.title,
|
165
|
-
});
|
166
|
-
});
|
167
|
-
|
168
157
|
Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
|
169
158
|
iePage.questionAndResourceWrapper()
|
170
159
|
.then((elements) => {
|