itemengine-cypress-automation 1.0.284-IEI-4866-bc2c255.0 → 1.0.284-applitools-38637bb.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/Gzip/gzip.js +7 -7
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +36 -26
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +14 -4
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
- 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 +6 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +9 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +10 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +35 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
- 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/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 +15 -6
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +16 -6
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +15 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +12 -3
- 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/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 +14 -5
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -3
- 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/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 +14 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +14 -6
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -193
- 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 +13 -4
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +13 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +12 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +12 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +18 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/applitools.config.js +14 -0
- package/cypress/pages/audioPlayerPage.js +4 -4
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +0 -17
- package/cypress/pages/components/equationEditorFlyout.js +1 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -5
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -41
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/createItemPage.js +1 -38
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -45
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -35
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +7 -34
- package/cypress/pages/multipleSelectionPage.js +2 -17
- package/cypress/pages/numberLineLabelPage.js +3 -3
- package/cypress/pages/readingRulerPage.js +3 -5
- package/cypress/pages/singleSelectionPage.js +2 -5
- package/cypress/pages/textEntryMathPage.js +5 -19
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
- package/cypress/e2e/ILC/EditItem/editItem.ts +0 -133
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +0 -214
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +0 -228
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +0 -242
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +0 -245
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +0 -237
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +0 -239
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +0 -212
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +0 -366
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +0 -306
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -243
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -242
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -289
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -284
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -238
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -279
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +0 -641
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -278
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -228
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -234
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -237
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -134
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -138
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +0 -263
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -166
@@ -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,23 +561,6 @@ 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
|
-
|
581
564
|
/**
|
582
565
|
* Selects options for all question stems in the preview tab.
|
583
566
|
* @param {Object[]} rowsAndColumns - An array of objects containing row and column indices.
|
@@ -671,29 +654,6 @@ const steps = {
|
|
671
654
|
});
|
672
655
|
},
|
673
656
|
|
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
|
-
|
697
657
|
verifyCorrectAnswerSectionNotExists: () => {
|
698
658
|
utilities.verifyElementVisibilityState(gridQuestionCommonComponent.correctAnswersSectionLabel(), 'notExist');
|
699
659
|
},
|
@@ -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,9 +30,7 @@ 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"]')
|
34
|
-
editItemButton: () => cy.get('.icon-pencil'),
|
35
|
-
pointsValue: () => cy.get('[class*="PreviewTabstyles__PointsValue"]')
|
33
|
+
noPreviewText: () => cy.get('[class*="__NoPreview"]')
|
36
34
|
}
|
37
35
|
|
38
36
|
const steps = {
|
@@ -574,41 +572,6 @@ const steps = {
|
|
574
572
|
expect(panelWidth + sectionWidth).to.be.closeTo(itemWidth, 1);
|
575
573
|
});
|
576
574
|
});
|
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);
|
612
575
|
}
|
613
576
|
}
|
614
577
|
|
@@ -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,48 +105,6 @@ 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
|
-
|
150
108
|
/**
|
151
109
|
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
152
110
|
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
@@ -250,7 +208,7 @@ const steps = {
|
|
250
208
|
fillInTheGapsDragAndDropPage.optionContainerOptionsPreviewTab()
|
251
209
|
.find('[role="math"]')
|
252
210
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
253
|
-
|
211
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
254
212
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
255
213
|
},
|
256
214
|
|
@@ -275,7 +233,7 @@ const steps = {
|
|
275
233
|
.eq(optionIndex)
|
276
234
|
.find('[role="math"]')
|
277
235
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
278
|
-
|
236
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
279
237
|
},
|
280
238
|
|
281
239
|
/**
|
@@ -95,7 +95,6 @@ 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')
|
99
98
|
}
|
100
99
|
|
101
100
|
const steps = {
|
@@ -187,34 +186,6 @@ const steps = {
|
|
187
186
|
});
|
188
187
|
},
|
189
188
|
|
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
|
-
|
218
189
|
/**
|
219
190
|
* Verifies the correct answer responses without enumeration.
|
220
191
|
* @param {string[]} correctAnswerArray - An array of correct answer responses to verify.
|
@@ -365,7 +336,7 @@ const steps = {
|
|
365
336
|
fillInTheGapsOverImageDragAndDropPage.optionContainerOptionsPreviewTab()
|
366
337
|
.find('[role="math"]')
|
367
338
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
368
|
-
|
339
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
369
340
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
370
341
|
},
|
371
342
|
|
@@ -390,7 +361,7 @@ const steps = {
|
|
390
361
|
.eq(optionIndex)
|
391
362
|
.find('[role="math"]')
|
392
363
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
393
|
-
|
364
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
394
365
|
},
|
395
366
|
|
396
367
|
/**
|
@@ -432,10 +403,6 @@ const steps = {
|
|
432
403
|
});
|
433
404
|
},
|
434
405
|
|
435
|
-
verifyVisibilityOfCorrectAnswerLabel: ()=>{
|
436
|
-
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
437
|
-
},
|
438
|
-
|
439
406
|
/**
|
440
407
|
* @description Verifies the absence of a correct/incorrect option icon for a specified option in the Preview Tab.
|
441
408
|
* @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,7 +100,8 @@ 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'),
|
103
|
+
correctAnswersOptions: () => cy.get('.match-list-drag-and-drop .question-text-wrapper'),
|
104
|
+
correctAnswersWrapper: () => cy.get('.match-list-drag-and-drop'),
|
104
105
|
correctAnswersOptionContainer: () => cy.get('.draggable-selected-option'),
|
105
106
|
gradingViewOption: () => cy.get('.item-content-wrapper'),
|
106
107
|
questionBorderPreviewTab: () => cy.get('[class*="ClozeWithDragAndDropstyles__WrapperDiv"]'),
|
@@ -673,18 +674,6 @@ const steps = {
|
|
673
674
|
});
|
674
675
|
},
|
675
676
|
|
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
|
-
|
688
677
|
clickAndDropOptionInOptionsContainerInPreviewTab: (optionText) => {
|
689
678
|
matchingPage.dropzonePreviewTab()
|
690
679
|
.contains(optionText)
|
@@ -768,7 +757,7 @@ const steps = {
|
|
768
757
|
.eq(optionIndex)
|
769
758
|
.find('[role="math"]')
|
770
759
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
771
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
760
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
772
761
|
},
|
773
762
|
|
774
763
|
/**
|
@@ -805,7 +794,7 @@ const steps = {
|
|
805
794
|
.eq(optionIndex)
|
806
795
|
.find('[role="math"]')
|
807
796
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
808
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
797
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
809
798
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
810
799
|
},
|
811
800
|
|
@@ -841,7 +830,7 @@ const steps = {
|
|
841
830
|
.eq(optionIndex)
|
842
831
|
.find('[role="math"]')
|
843
832
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
844
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
833
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
845
834
|
},
|
846
835
|
|
847
836
|
verifyDropzoneNumeration: () => {
|
@@ -880,18 +869,6 @@ const steps = {
|
|
880
869
|
});
|
881
870
|
},
|
882
871
|
|
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
|
-
|
895
872
|
/**
|
896
873
|
* @description Verifies the incorrect option icon for a specified dropzone in the Preview Tab.
|
897
874
|
* @param {number} dropzoneIndex - The index of the dropzone to verify.
|
@@ -965,7 +942,7 @@ const steps = {
|
|
965
942
|
correctAnswerArray.forEach((correctAnswerGroup, index) => {
|
966
943
|
utilities.verifyTextContent(utilities.getNthElement(matchingPage.correctAnswersNumeration(), index), index + 1);
|
967
944
|
correctAnswerGroup.forEach((answerOption, optionIndex) => {
|
968
|
-
utilities.verifyTextContent(utilities.getNthElement(matchingPage.
|
945
|
+
utilities.verifyTextContent(utilities.getNthElement(matchingPage.correctAnswersWrapper(), index).find('.question-text-wrapper').eq(optionIndex), answerOption);
|
969
946
|
});
|
970
947
|
});
|
971
948
|
},
|
@@ -985,10 +962,6 @@ const steps = {
|
|
985
962
|
}
|
986
963
|
},
|
987
964
|
|
988
|
-
verifyCorrectAnswerSectionLabel: () => {
|
989
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
990
|
-
},
|
991
|
-
|
992
965
|
verifyCorrectAnswerSectionNotExists: () => {
|
993
966
|
utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
|
994
967
|
},
|
@@ -3062,7 +3035,7 @@ const tests = {
|
|
3062
3035
|
} else {
|
3063
3036
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
3064
3037
|
.within(() => {
|
3065
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
3038
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
|
3066
3039
|
});
|
3067
3040
|
};
|
3068
3041
|
});
|
@@ -6,8 +6,6 @@ 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";
|
11
9
|
const css = Cypress.env('css');
|
12
10
|
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'];
|
13
11
|
|
@@ -32,7 +30,6 @@ const selectors = {
|
|
32
30
|
...ckEditorInsertTableComponent,
|
33
31
|
...ckEditorInsertImageComponent,
|
34
32
|
...ckEditorLinkComponent,
|
35
|
-
...createItemPage,
|
36
33
|
//Specify correct answer section
|
37
34
|
optionWrapperSpecifyCorrectAnswerSection: () => cy.get('.mcq-option-wrapper'),
|
38
35
|
optionsText: () => cy.get('.mcq-label'),
|
@@ -101,8 +98,6 @@ const steps = {
|
|
101
98
|
...ckEditorInsertTableComponent.steps,
|
102
99
|
...ckEditorInsertImageComponent.steps,
|
103
100
|
...ckEditorLinkComponent.steps,
|
104
|
-
...createItemPage.steps,
|
105
|
-
...selectQuestionResourceToolPage.steps,
|
106
101
|
/**
|
107
102
|
* Verifies the contents of an option wrapper in the 'Specify correct answer' section for multiple selection questions.
|
108
103
|
* @param {number} optionIndex - The index of the option wrapper to be verified.
|
@@ -373,7 +368,7 @@ const steps = {
|
|
373
368
|
.eq(index)
|
374
369
|
.find('[role="math"]')
|
375
370
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
376
|
-
|
371
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
377
372
|
},
|
378
373
|
|
379
374
|
/**
|
@@ -420,7 +415,7 @@ const steps = {
|
|
420
415
|
.eq(index)
|
421
416
|
.find('[role="math"]')
|
422
417
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
423
|
-
|
418
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
424
419
|
},
|
425
420
|
|
426
421
|
checkOptionsWrapperInSpecifyCorrectAnswerSection: (optionIndex) => {
|
@@ -845,16 +840,6 @@ const steps = {
|
|
845
840
|
verifyCorrectAnswerSectionNotExist: () => {
|
846
841
|
multipleSelectionPage.correctAnswerSectionWrapper()
|
847
842
|
.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)
|
858
843
|
}
|
859
844
|
}
|
860
845
|
|
@@ -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,6 +1,5 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
2
|
import { createQuestionBasePage, additionalSettingsPanel, colorPopupComponent } from "./components";
|
3
|
-
import { createItemPage } from "./createItemPage";
|
4
3
|
import { dialogBoxBase } from "./dialogBoxBase";
|
5
4
|
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
6
5
|
const css = Cypress.env('css');
|
@@ -56,7 +55,6 @@ const steps = {
|
|
56
55
|
...additionalSettingsPanel.steps,
|
57
56
|
...dialogBoxBase.steps,
|
58
57
|
...selectQuestionResourceToolPage.steps,
|
59
|
-
...createItemPage.steps,
|
60
58
|
|
61
59
|
verifyDisplayButtonToStudentCheckboxIsChecked: () => {
|
62
60
|
readingRulerPage.displayButtonToStudentCheckbox()
|
@@ -294,9 +292,9 @@ const steps = {
|
|
294
292
|
},
|
295
293
|
|
296
294
|
/**
|
297
|
-
|
298
|
-
|
299
|
-
|
295
|
+
* Verifies the resize buttons in the preview tab based on the specified ruler style.
|
296
|
+
* @param {'Line focus'| 'Overlay mask'| 'Drag handle'} style - The style of the ruler
|
297
|
+
*/
|
300
298
|
verifyRulerButtonsInPreviewTab: (style) => {
|
301
299
|
switch (style) {
|
302
300
|
case 'Line focus':
|
@@ -1,7 +1,6 @@
|
|
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";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
|
7
6
|
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'];
|
@@ -19,7 +18,6 @@ const selectors = {
|
|
19
18
|
...autoScoredScoringPreviewTab,
|
20
19
|
...randomizeOptionsComponent,
|
21
20
|
...lockUnlockOptionComponent,
|
22
|
-
...createItemPage,
|
23
21
|
optionsRadioButton: () => cy.get('input[type="radio"]'),
|
24
22
|
optionsRadioButtonForSpecifyCorrectAnswer: () => cy.get('.radio-option-wrapper:visible input[type="radio"]'),
|
25
23
|
editTabOptionsWrapper: () => cy.get('.edit-mcq-option-wrapper'),
|
@@ -56,7 +54,6 @@ const steps = {
|
|
56
54
|
...equationEditorFlyout.steps,
|
57
55
|
...randomizeOptionsComponent.steps,
|
58
56
|
...lockUnlockOptionComponent.steps,
|
59
|
-
...createItemPage.steps,
|
60
57
|
/**
|
61
58
|
* Verifies the contents of an option wrapper in the 'Specify correct answer' section for single selection questions.
|
62
59
|
* @param {number} optionIndex - The index of the option wrapper to be verified.
|
@@ -346,7 +343,7 @@ const steps = {
|
|
346
343
|
.eq(index)
|
347
344
|
.find('[role="math"]')
|
348
345
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
349
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
346
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
350
347
|
},
|
351
348
|
|
352
349
|
/**
|
@@ -393,7 +390,7 @@ const steps = {
|
|
393
390
|
.eq(index)
|
394
391
|
.find('[role="math"]')
|
395
392
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
396
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
393
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
397
394
|
},
|
398
395
|
|
399
396
|
/**
|
@@ -44,7 +44,6 @@ 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'),
|
48
47
|
evaluationContainer: (evaluationMethodTitle = null) => {
|
49
48
|
if (evaluationMethodTitle) {
|
50
49
|
return cy.get(`.evaluation-styled-card`).contains(evaluationMethodTitle)
|
@@ -361,23 +360,15 @@ const steps = {
|
|
361
360
|
/**
|
362
361
|
* Select evaluation method
|
363
362
|
* @param {string} evaluationMethodTitle Title of evaluation method
|
364
|
-
* @param {number} index index of evolution method
|
365
363
|
*/
|
366
364
|
selectEvaluationMethod: (evaluationMethodTitle) => {
|
367
|
-
|
368
|
-
|
369
|
-
.contains(evaluationMethodTitle)
|
370
|
-
.click();
|
371
|
-
} else {
|
372
|
-
textEntryMathPage.evaluationCard()
|
373
|
-
.contains(evaluationMethodTitle)
|
374
|
-
.click();
|
375
|
-
}
|
365
|
+
textEntryMathPage.evaluationContainer(evaluationMethodTitle)
|
366
|
+
.click();
|
376
367
|
textEntryMathPage.steps.verifyEvaluationMethodActiveState(evaluationMethodTitle);
|
377
368
|
},
|
378
369
|
|
379
370
|
clickOnAddEvaluationButton: () => {
|
380
|
-
|
371
|
+
textEntryMathPage.addEvaluationButton()
|
381
372
|
.click();
|
382
373
|
},
|
383
374
|
|
@@ -976,9 +967,8 @@ const steps = {
|
|
976
967
|
.should('have.attr', 'aria-expanded', 'false');
|
977
968
|
},
|
978
969
|
|
979
|
-
focusInLayoutInputField: (
|
970
|
+
focusInLayoutInputField: () => {
|
980
971
|
textEntryMathPage.inputFieldLayoutAccordion()
|
981
|
-
.eq(index)
|
982
972
|
.click();
|
983
973
|
},
|
984
974
|
|
@@ -1340,10 +1330,6 @@ const steps = {
|
|
1340
1330
|
utilities.verifyCSS(utilities.getNthElement(textEntryMathPage.answerInputFieldPreviewTab(), responseAreaIndex), {
|
1341
1331
|
'border-style': styleName
|
1342
1332
|
});
|
1343
|
-
},
|
1344
|
-
|
1345
|
-
verifyCorrectIncorrectStatusMessageTextNotExist: () => {
|
1346
|
-
utilities.verifyElementVisibilityState(textEntryMathPage.correctIncorrectStatusMessageText(), 'notExist');
|
1347
1333
|
}
|
1348
1334
|
}
|
1349
1335
|
|
@@ -1462,7 +1448,7 @@ const tests = {
|
|
1462
1448
|
});
|
1463
1449
|
|
1464
1450
|
it('User should be able to select a different evaluation method', () => {
|
1465
|
-
textEntryMathPage.steps.selectEvaluationMethod(evaluationMethods[3].name
|
1451
|
+
textEntryMathPage.steps.selectEvaluationMethod(evaluationMethods[3].name);
|
1466
1452
|
});
|
1467
1453
|
},
|
1468
1454
|
|
@@ -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,6 +5,7 @@ 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';
|
8
9
|
//import addContext from "mochawesome/addContext";
|
9
10
|
|
10
11
|
const randomUser = (j, username, i) => ({
|
@@ -154,6 +155,16 @@ Cypress.Commands.add('learnosityLoaderWait', () => {
|
|
154
155
|
.should('be.visible');
|
155
156
|
});
|
156
157
|
|
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
|
+
|
157
168
|
Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
|
158
169
|
iePage.questionAndResourceWrapper()
|
159
170
|
.then((elements) => {
|