itemengine-cypress-automation 1.0.194-packageUpdate1-2424cfe.0 → 1.0.195-15thMayUpdates-cc82cc7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +6 -6
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +4 -4
- package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +4 -4
- package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +27 -12
- package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +7 -7
- package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +9 -8
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +7 -7
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +11 -9
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +1 -0
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +2 -2
- package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +4 -6
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +3 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +6 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +6 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +2 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -3
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +4 -3
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +6 -5
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +6 -5
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +3 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/Matching/additionalSettings.js +4 -4
- package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +3 -3
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +4 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +0 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +78 -86
- package/cypress/e2e/ILC/MultipleSelection/checkAnswerFunctionalityForAllViews.smoke.js +1 -6
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +12 -12
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +9 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +9 -21
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +6 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +2 -2
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +5 -5
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +2 -2
- package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +12 -21
- package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -13
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +5 -4
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +30 -30
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/manuallyAndNonScored.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -2
- package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +9 -9
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -5
- package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +19 -19
- package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsCompactRecorderStyle.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsStandardRecorderStyle.js +8 -8
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +2 -2
- package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosScientificCalculatorEditTabBasicSection.js +6 -6
- package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ThirdPartyQuestions/DesmosGraphing/additionalSettings.js +5 -7
- package/cypress/e2e/ThirdPartyQuestions/DesmosGraphing/studentViewSettings.js +6 -33
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/3DGraphingCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/3DGraphingCalculatorPreviewTabContents.smoke.js +2 -2
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/casCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/casCalculatorPreviewTabContents.smoke.js +1 -1
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/geometryCalculatorEditTabBasicSection.js +4 -4
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/geometryCalculatorPreviewTabContents.smoke.js +2 -2
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/graphingCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/graphingCalculatorPreviewTabContents.smoke.js +2 -2
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/probablityCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/probablityCalculatorPreviewTabContents.smoke.js +1 -1
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorEditTabBasicSection.js +3 -3
- package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorPreviewTabContents.smoke.js +2 -2
- package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/additionalSettings.js +4 -4
- package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/headerSection.js +0 -2
- package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/insertResourceLink.js +1 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
- package/cypress/fixtures/theme/ilc.json +8 -2
- package/cypress/fixtures/uploads/sample1.txt +4 -0
- package/cypress/fixtures/uploads/sample2.txt +13 -0
- package/cypress/fixtures/uploads/sample300kb.txt +1 -0
- package/cypress/pages/audioPlayerPage.js +3 -2
- package/cypress/pages/chartsLinePage.js +2 -1
- package/cypress/pages/components/ariaLabelSectionComponent.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/components/colorPopupComponent.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +2 -2
- package/cypress/pages/components/editCategoryFlyout.js +26 -17
- package/cypress/pages/components/enableOuterBorderComponent.js +5 -5
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
- package/cypress/pages/components/imageCanvasComponent.js +14 -8
- package/cypress/pages/components/layoutSectionComponent.js +1 -1
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/numberLineCommonComponent.js +2 -2
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +1 -0
- package/cypress/pages/desmosGraphingPage.js +1 -1
- package/cypress/pages/desmosToolPage.js +16 -4
- package/cypress/pages/drawingResponsePage.js +3 -3
- package/cypress/pages/essayResponsePage.js +1 -0
- package/cypress/pages/feedbackScalePage.js +13 -3
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -11
- package/cypress/pages/geoGebraActivityPage.js +12 -3
- package/cypress/pages/geoGebraToolsPage.js +1 -1
- package/cypress/pages/graphingPage.js +7 -8
- package/cypress/pages/matchingPage.js +8 -12
- package/cypress/pages/multipleSelectionPage.js +35 -1
- package/cypress/pages/numberLineLabelPage.js +1 -1
- package/cypress/pages/numberLinePage.js +36 -8
- package/cypress/pages/rulerPage.js +0 -6
- package/cypress/pages/selectQuestionResourceToolPage.js +0 -4
- package/cypress/pages/singleSelectionPage.js +1 -2
- package/cypress/pages/uploadResponsePage.js +2 -2
- package/cypress/pages/videoResponsePage.js +11 -11
- package/package.json +1 -1
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +0 -366
- package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +0 -41
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingForAllViews.smoke.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingGroupedScoring.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/manuallyAndNonScored.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/UploadResponse/{uploadResponseEditTabBasicSections.js → editTabBasicSection.js} +0 -0
- /package/cypress/e2e/ILC/UploadResponse/{uploadResponseHeaderSection.js → headerSection.js} +0 -0
- /package/cypress/e2e/ILC/UploadResponse/{uplodResponsePreviewUploadedFileProperties.js → uploadedFileProperties.js} +0 -0
@@ -118,7 +118,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
118
118
|
audioPlayerPage.steps.verifyImageAndAltTextInAudioOverviewPreviewTab();
|
119
119
|
});
|
120
120
|
|
121
|
-
it('When the user adds an equation in the audio overview input field using the
|
121
|
+
it('When the user adds an equation in the audio overview input field using the equation editor option from ckEditor toolbar, the equation should be displayed in the preview tab', () => {
|
122
122
|
audioPlayerPage.steps.switchToEditTab();
|
123
123
|
audioPlayerPage.steps.clearAudioOverviewInputField();
|
124
124
|
audioPlayerPage.steps.focusInAudioOverviewInputField();
|
@@ -129,7 +129,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
129
129
|
audioPlayerPage.steps.verifyEquationInAudioOverviewPreviewTab();
|
130
130
|
});
|
131
131
|
|
132
|
-
it('When the user adds a link in the audio overview input field using the
|
132
|
+
it('When the user adds a link in the audio overview input field using the link option from ckEditor toolbar, the link should be displayed in the preview tab', () => {
|
133
133
|
audioPlayerPage.steps.switchToEditTab();
|
134
134
|
audioPlayerPage.steps.clearAudioOverviewInputField();
|
135
135
|
audioPlayerPage.steps.focusInAudioOverviewInputField();
|
@@ -139,7 +139,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
139
139
|
audioPlayerPage.steps.verifyLinkInAudioOverviewPreviewTab();
|
140
140
|
});
|
141
141
|
|
142
|
-
it('When the user adds a bold text in the audio overview input field
|
142
|
+
it('When the user adds a bold text in the audio overview input field, the bold text should be displayed in the preview tab', () => {
|
143
143
|
audioPlayerPage.steps.switchToEditTab();
|
144
144
|
audioPlayerPage.steps.clearAudioOverviewInputField();
|
145
145
|
audioPlayerPage.steps.focusInAudioOverviewInputField();
|
@@ -528,7 +528,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
528
528
|
audioPlayerPage.steps.closeTranscriptModal();
|
529
529
|
});
|
530
530
|
|
531
|
-
it('When the user adds an equation in the transcript input field using the
|
531
|
+
it('When the user adds an equation in the transcript input field using the equation editor option from ckEditor toolbar, the equation should be displayed in the preview tab', () => {
|
532
532
|
audioPlayerPage.steps.switchToEditTab();
|
533
533
|
audioPlayerPage.steps.clearTranscriptInputField();
|
534
534
|
audioPlayerPage.steps.focusInTranscriptInputField();
|
@@ -541,7 +541,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
541
541
|
audioPlayerPage.steps.closeTranscriptModal();
|
542
542
|
});
|
543
543
|
|
544
|
-
it('When the user adds a link in the transcript input field using the
|
544
|
+
it('When the user adds a link in the transcript input field using the link option from ckEditor toolbar, the link should be displayed in the preview tab', () => {
|
545
545
|
audioPlayerPage.steps.switchToEditTab();
|
546
546
|
audioPlayerPage.steps.clearTranscriptInputField();
|
547
547
|
audioPlayerPage.steps.focusInTranscriptInputField();
|
@@ -553,7 +553,7 @@ describe('Audio player: Audio overview and Transcript section', () => {
|
|
553
553
|
audioPlayerPage.steps.closeTranscriptModal();
|
554
554
|
});
|
555
555
|
|
556
|
-
it('When the user adds a bold text in the transcript input field
|
556
|
+
it('When the user adds a bold text in the transcript input field, the bold text should be displayed in the preview tab', () => {
|
557
557
|
audioPlayerPage.steps.switchToEditTab();
|
558
558
|
audioPlayerPage.steps.clearTranscriptInputField();
|
559
559
|
audioPlayerPage.steps.focusInTranscriptInputField();
|
@@ -237,7 +237,7 @@ describe('Bar audio player style: Preview tab functionality', () => {
|
|
237
237
|
audioPlayerPage.steps.switchToPreviewTab();
|
238
238
|
});
|
239
239
|
|
240
|
-
it('When the user hovers over the \'Backward\' button, a tooltip \'Backward
|
240
|
+
it('When the user hovers over the \'Backward\' button, a tooltip \'Backward by 10s\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
241
241
|
audioPlayerPage.backwardButton()
|
242
242
|
.verifyTooltip('Backward by 10s');
|
243
243
|
});
|
@@ -320,7 +320,7 @@ describe('Bar audio player style: Preview tab functionality', () => {
|
|
320
320
|
abortEarlySetup();
|
321
321
|
before(() => {
|
322
322
|
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
323
|
-
audioPlayerPage.steps.
|
323
|
+
audioPlayerPage.steps.uploadAudioFile('uploads/sample.mp3');
|
324
324
|
audioPlayerPage.steps.switchToPreviewTab();
|
325
325
|
});
|
326
326
|
|
@@ -372,7 +372,7 @@ describe('Bar audio player style: Preview tab functionality', () => {
|
|
372
372
|
});
|
373
373
|
audioPlayerPage.pinsPanelAddPinButton()
|
374
374
|
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
375
|
-
utilities.verifyCSS(audioPlayerPage.pinsPanelTimeLabel()
|
375
|
+
utilities.verifyCSS(audioPlayerPage.pinsPanelTimeLabel(), {
|
376
376
|
'color': css.color.labels,
|
377
377
|
'font-size': css.fontSize.normal,
|
378
378
|
'font-weight': css.fontWeight.semibold
|
@@ -428,7 +428,7 @@ describe('Bar audio player style: Preview tab functionality', () => {
|
|
428
428
|
audioPlayerPage.steps.verifyMaximumAndMinimumValueOfMinutesTimeInputField(0, 0);
|
429
429
|
audioPlayerPage.steps.verifyMaximumAndMinimumValueOfSecondsTimeInputField(0, 45);
|
430
430
|
audioPlayerPage.steps.switchToEditTab();
|
431
|
-
audioPlayerPage.steps.
|
431
|
+
audioPlayerPage.steps.uploadAudioFile('uploads/sample1.mp3');
|
432
432
|
utilities.verifyTextContent(audioPlayerPage.uploadedFileNameLabel(), 'sample1.mp3');
|
433
433
|
audioPlayerPage.steps.switchToPreviewTab();
|
434
434
|
audioPlayerPage.steps.resetQuestionPreview(); //Added as audio does not load when quickly switched to preview tab
|
@@ -333,14 +333,14 @@ describe('Compact audio player style - Default : Preview tab functionality', ()
|
|
333
333
|
audioPlayerPage.steps.waitForPlaybackToBegin();
|
334
334
|
});
|
335
335
|
|
336
|
-
it('When the user hovers over the \'Backward\' button, a tooltip \'Backward
|
336
|
+
it('When the user hovers over the \'Backward\' button, a tooltip \'Backward by 10s\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
337
337
|
audioPlayerPage.backwardButton()
|
338
|
-
.verifyTooltip('Backward
|
338
|
+
.verifyTooltip('Backward by 10s');
|
339
339
|
});
|
340
340
|
|
341
|
-
it('When the user hovers over the \'Forward\' button, a tooltip \'Forward
|
341
|
+
it('When the user hovers over the \'Forward\' button, a tooltip \'Forward by 10s\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
342
342
|
audioPlayerPage.forwardButton()
|
343
|
-
.verifyTooltip('Forward
|
343
|
+
.verifyTooltip('Forward by 10s');
|
344
344
|
});
|
345
345
|
|
346
346
|
it('CSS of \'Backward\' and \'Forward\' button in default and hover state', { tags: 'css' }, () => {
|
@@ -168,12 +168,12 @@ describe('Create Item page - Audio player: Customize player layout settings', ()
|
|
168
168
|
audioPlayerPage.steps.startPlayback();
|
169
169
|
audioPlayerPage.steps.waitForPlaybackToBegin();
|
170
170
|
audioPlayerPage.steps.addWaitToPlayAudio(3000);
|
171
|
-
utilities.
|
171
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
|
172
172
|
audioPlayerPage.steps.pausePlayback();
|
173
173
|
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:04', '00:10');
|
174
174
|
});
|
175
175
|
|
176
|
-
it('In standard mode, when the pause option is deselected the pause button should be
|
176
|
+
it('In standard mode, when the pause option is deselected the pause button should not be displayed in the preview tab', () => {
|
177
177
|
cy.log('Pre-step: Switching to Edit tab');
|
178
178
|
audioPlayerPage.steps.switchToEditTab();
|
179
179
|
audioPlayerPage.steps.deselectPlayerLayoutSettingButton('Pause');
|
@@ -181,11 +181,18 @@ describe('Create Item page - Audio player: Customize player layout settings', ()
|
|
181
181
|
audioPlayerPage.steps.switchToPreviewTab();
|
182
182
|
audioPlayerPage.steps.startPlayback();
|
183
183
|
audioPlayerPage.steps.waitForPlaybackToBegin();
|
184
|
-
audioPlayerPage.steps.addWaitToPlayAudio(
|
185
|
-
utilities.
|
184
|
+
audioPlayerPage.steps.addWaitToPlayAudio(2000);
|
185
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|
186
|
+
});
|
187
|
+
|
188
|
+
it('In standard mode, when the pause option is deselected and audio is in playback state, then the enabled play button should be displayed and upon clicking on it the audio playback should restart', () => {
|
189
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
190
|
+
utilities.verifyElementNotDisabled(audioPlayerPage.playbackPlayButton());
|
191
|
+
audioPlayerPage.steps.startPlayback();
|
192
|
+
audioPlayerPage.steps.waitForPlaybackToBegin();
|
186
193
|
});
|
187
194
|
|
188
|
-
it('In bar mode, when the \'Pause\' option is selected the pause button should be
|
195
|
+
it('In bar mode, when the \'Pause\' option is selected the pause button should be displayed in the preview tab', () => {
|
189
196
|
audioPlayerPage.steps.switchToEditTab();
|
190
197
|
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Bar');
|
191
198
|
audioPlayerPage.steps.selectPlayerLayoutSettingButton('Pause');
|
@@ -193,12 +200,12 @@ describe('Create Item page - Audio player: Customize player layout settings', ()
|
|
193
200
|
audioPlayerPage.steps.startPlayback();
|
194
201
|
audioPlayerPage.steps.waitForPlaybackToBegin();
|
195
202
|
audioPlayerPage.steps.addWaitToPlayAudio(3000);
|
196
|
-
utilities.
|
203
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
|
197
204
|
audioPlayerPage.steps.pausePlayback();
|
198
205
|
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:04', '00:10');
|
199
206
|
});
|
200
207
|
|
201
|
-
it('In bar mode, when the pause option is deselected the pause button should be
|
208
|
+
it('In bar mode, when the pause option is deselected the pause button should not be displayed in the preview tab', () => {
|
202
209
|
cy.log('Pre-step: Switching to Edit tab');
|
203
210
|
audioPlayerPage.steps.switchToEditTab();
|
204
211
|
audioPlayerPage.steps.deselectPlayerLayoutSettingButton('Pause');
|
@@ -206,8 +213,15 @@ describe('Create Item page - Audio player: Customize player layout settings', ()
|
|
206
213
|
audioPlayerPage.steps.switchToPreviewTab();
|
207
214
|
audioPlayerPage.steps.startPlayback();
|
208
215
|
audioPlayerPage.steps.waitForPlaybackToBegin();
|
209
|
-
audioPlayerPage.steps.addWaitToPlayAudio(
|
210
|
-
utilities.
|
216
|
+
audioPlayerPage.steps.addWaitToPlayAudio(2000);
|
217
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|
218
|
+
});
|
219
|
+
|
220
|
+
it('In bar mode, when the pause option is deselected and audio is in playback state, then the enabled play button should be displayed and upon clicking on it the audio playback should restart', () => {
|
221
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
222
|
+
utilities.verifyElementNotDisabled(audioPlayerPage.playbackPlayButton());
|
223
|
+
audioPlayerPage.steps.startPlayback();
|
224
|
+
audioPlayerPage.steps.waitForPlaybackToBegin();
|
211
225
|
});
|
212
226
|
|
213
227
|
it('In compact mode, when the pause option is selected the pause button should be enabled in the preview tab', () => {
|
@@ -225,7 +239,7 @@ describe('Create Item page - Audio player: Customize player layout settings', ()
|
|
225
239
|
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:04', '00:10');
|
226
240
|
});
|
227
241
|
|
228
|
-
it('In compact mode, when the pause option is deselected the pause button should be
|
242
|
+
it('In compact mode, when the pause option is deselected, then the player toolbar pause and play button should not be displayed in the preview tab', () => {
|
229
243
|
cy.log('Pre-step: Switching to Edit tab');
|
230
244
|
audioPlayerPage.steps.switchToEditTab();
|
231
245
|
audioPlayerPage.steps.deselectPlayerLayoutSettingButton('Pause');
|
@@ -233,8 +247,9 @@ describe('Create Item page - Audio player: Customize player layout settings', ()
|
|
233
247
|
audioPlayerPage.steps.switchToPreviewTab();
|
234
248
|
audioPlayerPage.steps.clickOnPlayButton();
|
235
249
|
audioPlayerPage.steps.waitForPlaybackToBegin();
|
236
|
-
audioPlayerPage.steps.addWaitToPlayAudio(
|
237
|
-
utilities.
|
250
|
+
audioPlayerPage.steps.addWaitToPlayAudio(2000);
|
251
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|
252
|
+
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'notExist');
|
238
253
|
});
|
239
254
|
});
|
240
255
|
|
@@ -27,7 +27,7 @@ describe('Standard audio player style: Edit tab contents and preview tab functio
|
|
27
27
|
utilities.verifyInnerText(audioPlayerPage.compactStyleToggleButtonLabel(), 'Compact');
|
28
28
|
utilities.verifyElementVisibilityState(audioPlayerPage.compactStyleToggleButton(), 'visible');
|
29
29
|
audioPlayerPage.steps.verifyAudioPlayerStyleToggleButtonIsNotSelected('Standard');
|
30
|
-
audioPlayerPage.steps.
|
30
|
+
audioPlayerPage.steps.verifyAudioPlayerStyleToggleButtonIsSelected('Bar');
|
31
31
|
audioPlayerPage.steps.verifyAudioPlayerStyleToggleButtonIsNotSelected('Compact');
|
32
32
|
});
|
33
33
|
|
@@ -408,14 +408,14 @@ describe('Standard audio player style: Edit tab contents and preview tab functio
|
|
408
408
|
audioPlayerPage.steps.switchToPreviewTab();
|
409
409
|
});
|
410
410
|
|
411
|
-
it('When the user hovers over the \'Backward\' button, a tooltip \'Backward
|
411
|
+
it('When the user hovers over the \'Backward\' button, a tooltip \'Backward by 10s\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
412
412
|
audioPlayerPage.backwardButton()
|
413
|
-
.verifyTooltip('Backward
|
413
|
+
.verifyTooltip('Backward by 10s');
|
414
414
|
});
|
415
415
|
|
416
|
-
it('When the user hovers over the \'Forward\' button, a tooltip \'Forward
|
416
|
+
it('When the user hovers over the \'Forward\' button, a tooltip \'Forward by 10s\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
417
417
|
audioPlayerPage.forwardButton()
|
418
|
-
.verifyTooltip('Forward
|
418
|
+
.verifyTooltip('Forward by 10s');
|
419
419
|
});
|
420
420
|
|
421
421
|
it('CSS of \'Backward\' and \'Forward\' button in default and hover state', { tags: 'css' }, () => {
|
@@ -491,7 +491,7 @@ describe('Standard audio player style: Edit tab contents and preview tab functio
|
|
491
491
|
abortEarlySetup();
|
492
492
|
before(() => {
|
493
493
|
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
494
|
-
audioPlayerPage.steps.
|
494
|
+
audioPlayerPage.steps.uploadAudioFile('uploads/sample.mp3');
|
495
495
|
audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Standard');
|
496
496
|
audioPlayerPage.steps.switchToPreviewTab();
|
497
497
|
});
|
@@ -600,7 +600,7 @@ describe('Standard audio player style: Edit tab contents and preview tab functio
|
|
600
600
|
audioPlayerPage.steps.verifyMaximumAndMinimumValueOfMinutesTimeInputField(0, 0);
|
601
601
|
audioPlayerPage.steps.verifyMaximumAndMinimumValueOfSecondsTimeInputField(0, 45);
|
602
602
|
audioPlayerPage.steps.switchToEditTab();
|
603
|
-
audioPlayerPage.steps.
|
603
|
+
audioPlayerPage.steps.uploadAudioFile('uploads/sample1.mp3');
|
604
604
|
utilities.verifyTextContent(audioPlayerPage.uploadedFileNameLabel(), 'sample1.mp3');
|
605
605
|
audioPlayerPage.steps.switchToPreviewTab();
|
606
606
|
audioPlayerPage.steps.resetQuestionPreview(); //Added as audio does not load when quickly switched to preview tab
|
@@ -81,7 +81,7 @@ describe('Audio player: Edit tab', () => {
|
|
81
81
|
});
|
82
82
|
|
83
83
|
it('When the user adds the audio file and file upload is inprogress, file name and progress bar should be displayed below \'File name\' label. Progress bar should disappear once file is uploaded', () => {
|
84
|
-
audioPlayerPage.steps.
|
84
|
+
audioPlayerPage.steps.attachFile('uploads/sample.mp3');
|
85
85
|
utilities.verifyElementVisibilityState(audioPlayerPage.audioFileUploadProgressBar(), 'visible');
|
86
86
|
utilities.verifyInnerText(audioPlayerPage.uploadedFileNameLabel(), 'sample.mp3');
|
87
87
|
utilities.verifyElementVisibilityState(audioPlayerPage.uploadedFileNameLabel(), 'visible');
|
@@ -262,7 +262,7 @@ describe('Create Item page - Audio response: Customize playback controls', () =>
|
|
262
262
|
});
|
263
263
|
|
264
264
|
it('In standard mode, when the \'Seek\' option is deselected, the progress bar should not have a slider handle and waveform should not have cursor if user hover on it and user should not be able to seek the audio from the progress bar and waveform', () => {
|
265
|
-
let actualAudioSeekedInPercent =
|
265
|
+
let actualAudioSeekedInPercent = 15
|
266
266
|
cy.log('Pre-step: Switching to Edit tab, deselecting \'Seek\' button, switching back to Preview tab and saving a record response');
|
267
267
|
audioResponsePage.steps.switchToEditTab();
|
268
268
|
audioResponsePage.steps.deselectControlsForPlaybackSeekButton();
|
@@ -317,7 +317,7 @@ describe('Create Item page - Audio response: Customize playback controls', () =>
|
|
317
317
|
});
|
318
318
|
|
319
319
|
it('In compact mode, when \'Seek\' option is deselected, on hover the progress bar should not have a slider handle and waveform should not have cursor if user hover on it and user should not able to change the play pointer position on the progress bar and waveform', () => {
|
320
|
-
let actualAudioSeekedInPercent =
|
320
|
+
let actualAudioSeekedInPercent = 15
|
321
321
|
cy.log('Pre-step : Switching to Edit tab, deselecting \'Seek\' and switching back to Preview tab and saving a recording response');
|
322
322
|
audioResponsePage.steps.switchToEditTab();
|
323
323
|
audioResponsePage.steps.deselectControlsForPlaybackSeekButton();
|
@@ -238,6 +238,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
238
238
|
break;
|
239
239
|
case 'Student view':
|
240
240
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
241
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabBar(), 'visible');
|
241
242
|
break;
|
242
243
|
default:
|
243
244
|
throw new Error('Invalid view');
|
@@ -449,7 +450,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
449
450
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
450
451
|
});
|
451
452
|
|
452
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
453
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
453
454
|
cy.log('Pre-step: Reset the chart');
|
454
455
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
455
456
|
chartsBarPage.steps.confirmReset();
|
@@ -485,7 +486,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
485
486
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
486
487
|
});
|
487
488
|
|
488
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
489
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
489
490
|
cy.log('Reset the chart');
|
490
491
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
491
492
|
chartsBarPage.steps.confirmReset();
|
@@ -520,7 +521,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
520
521
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
521
522
|
});
|
522
523
|
|
523
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
524
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
524
525
|
cy.log('Reset the chart');
|
525
526
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
526
527
|
chartsBarPage.steps.confirmReset();
|
@@ -556,7 +557,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
556
557
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
557
558
|
});
|
558
559
|
|
559
|
-
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled'
|
560
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled', () => {
|
560
561
|
cy.log('Pre-step: Reset the chart');
|
561
562
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
562
563
|
chartsBarPage.steps.confirmReset();
|
@@ -574,10 +575,10 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
574
575
|
//Reset button
|
575
576
|
it('When the user clicks on Reset button then reset popup should be displayed', () => {
|
576
577
|
cy.log('Pre-step: Editing the graph');
|
577
|
-
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0,
|
578
|
-
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 1,
|
579
|
-
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2,
|
580
|
-
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3,
|
578
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 20, range: 20 });
|
579
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 1, value: 2, range: 20 });
|
580
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 0, range: 20 });
|
581
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 6, range: 20 });
|
581
582
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
582
583
|
utilities.verifyElementVisibilityState(chartsBarPage.dialogBox(), 'visible');
|
583
584
|
});
|
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
|
6
|
-
const previewContentViews = ['Question preview'];
|
6
|
+
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
8
|
var itemReferenceID = "";
|
9
9
|
|
@@ -90,7 +90,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
90
90
|
});
|
91
91
|
});
|
92
92
|
|
93
|
-
describe('Enable outer border : Edit tab', () => {
|
93
|
+
describe('Enable outer border for question : Edit tab', () => {
|
94
94
|
abortEarlySetup();
|
95
95
|
before(() => {
|
96
96
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
@@ -100,7 +100,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
100
100
|
dragAndDropIntoCategoriesPage.tests.verifyEnableOuterBorderContents();
|
101
101
|
});
|
102
102
|
|
103
|
-
describe('Enable outer border : Preview tab', () => {
|
103
|
+
describe('Enable outer border for question : Preview tab', () => {
|
104
104
|
abortEarlySetup();
|
105
105
|
before(() => {
|
106
106
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
@@ -108,7 +108,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
108
108
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
109
109
|
});
|
110
110
|
|
111
|
-
it('When the
|
111
|
+
it('When the "Enable outer border for question" checkbox is in checked state, an outer border over the question preview should be visible', () => {
|
112
112
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.tableOuterBorder(), 'visible');
|
113
113
|
});
|
114
114
|
|
@@ -118,22 +118,22 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
118
118
|
});
|
119
119
|
});
|
120
120
|
|
121
|
-
it('When the user unchecks the
|
121
|
+
it('When the user unchecks the "Enable outer border for question" checkbox, then the outer border over the question preview should not be displayed', () => {
|
122
122
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
123
123
|
dragAndDropIntoCategoriesPage.steps.uncheckEnableOuterBorderCheckbox();
|
124
124
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab()
|
125
125
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.tableOuterBorder(), 'notExist');
|
126
126
|
});
|
127
127
|
|
128
|
-
it('CSS of
|
128
|
+
it('CSS of "Enable outer border for question" checkbox - unchecked state', { tags: 'css' }, () => {
|
129
129
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
130
130
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.enableOuterBorderCheckbox().parent().find('svg'), {
|
131
131
|
'fill': css.color.uncheckedCheckbox
|
132
132
|
});
|
133
133
|
});
|
134
134
|
|
135
|
-
it('Accessibility of
|
136
|
-
cy.checkAccessibility(dragAndDropIntoCategoriesPage.enableOuterBorderCheckbox().parents('[data-ngie-testid="enable-outer-border-checkbox"]'));
|
135
|
+
it('Accessibility of "Enable outer border for question" checkbox - unchecked state', { tags: 'a11y' }, () => {
|
136
|
+
cy.checkAccessibility(dragAndDropIntoCategoriesPage.enableOuterBorderCheckbox().parents('[data-ngie-testid="enable-outer-border-for-question-checkbox"]'));
|
137
137
|
});
|
138
138
|
});
|
139
139
|
|
@@ -208,7 +208,7 @@ describe('Drawing response - Additional settings', () => {
|
|
208
208
|
});
|
209
209
|
|
210
210
|
it('When all line type buttons are selected by default then all the line type options should be displayed in secondary toolbar in the preview tab', () => {
|
211
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line
|
211
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line Type');
|
212
212
|
lineTypeOptionsPreviewTab.forEach((lineType, index) => {
|
213
213
|
drawingResponsePage.steps.verifySecondaryPopupLineType(lineType, index)
|
214
214
|
});
|
@@ -220,7 +220,7 @@ describe('Drawing response - Additional settings', () => {
|
|
220
220
|
drawingResponsePage.steps.unselectSetLineTypeOption(lineTypeOptionsEditTab[1]);
|
221
221
|
drawingResponsePage.steps.switchToPreviewTab();
|
222
222
|
drawingResponsePage.steps.selectPreviewTabToolbarOption('Line');
|
223
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line
|
223
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line Type');
|
224
224
|
//Need to add step once https://redmine.zeuslearning.com/issues/555345 is fixed
|
225
225
|
});
|
226
226
|
});
|
@@ -350,7 +350,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
350
350
|
utilities.verifyElementVisibilityState(drawingResponsePage.editTabColorPickerPopupCancelButton(), 'visible');
|
351
351
|
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupCancelButton(), 'Cancel');
|
352
352
|
utilities.verifyElementVisibilityState(drawingResponsePage.editTabColorPickerPopupOkButton(), 'visible');
|
353
|
-
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupOkButton(), '
|
353
|
+
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupOkButton(), 'Ok');
|
354
354
|
colorPopupComponent.steps.verifySelectedColorBlock('rgb(0, 112, 128)');
|
355
355
|
colorPopupComponent.steps.verifyHexValue('#007080');
|
356
356
|
});
|
@@ -524,7 +524,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
524
524
|
utilities.verifyElementVisibilityState(drawingResponsePage.editTabColorPickerPopupCancelButton(), 'visible');
|
525
525
|
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupCancelButton(), 'Cancel');
|
526
526
|
utilities.verifyElementVisibilityState(drawingResponsePage.editTabColorPickerPopupOkButton(), 'visible');
|
527
|
-
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupOkButton(), '
|
527
|
+
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupOkButton(), 'Ok');
|
528
528
|
colorPopupComponent.steps.verifySelectedColorBlock('rgb(0, 224, 255)');
|
529
529
|
colorPopupComponent.steps.verifyHexValue('#00E0FF');
|
530
530
|
});
|
@@ -43,7 +43,7 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
43
43
|
it(`All the ${equationEditorCategoriesAndSymbols['general'].displayName} characters should be displayed and should be in selected state`, () => {
|
44
44
|
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols);
|
45
45
|
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedState(symbolsArray);
|
46
|
-
editCategoryFlyout.steps.
|
46
|
+
editCategoryFlyout.steps.verifyCategoryCharactersDragIcon();
|
47
47
|
});
|
48
48
|
|
49
49
|
it('Reset button should be displayed in the flyout', () => {
|
@@ -173,15 +173,17 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
173
173
|
|
174
174
|
it('When user clicks on all the selected characters then the category checkbox should get unchecked', () => {
|
175
175
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
176
|
-
editCategoryFlyout.steps.
|
177
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.cents);
|
178
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.dollar);
|
179
|
-
editCategoryFlyout.steps.deselectCategoryCharacters(
|
176
|
+
editCategoryFlyout.steps.deselectCategoryCharacter('QuestionMark selected');
|
177
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel);
|
178
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel);
|
179
|
+
editCategoryFlyout.steps.deselectCategoryCharacters('colon');
|
180
180
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsUnchecked();
|
181
181
|
});
|
182
182
|
|
183
183
|
it('When user clicks on all the de-selected characters the category checkbox should get checked', () => {
|
184
|
-
|
184
|
+
for (let i = 3; i < 0; i--) {
|
185
|
+
editCategoryFlyout.steps.selectCategoryCharactersUsingIndex(i);
|
186
|
+
}
|
185
187
|
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
186
188
|
});
|
187
189
|
});
|
@@ -267,7 +269,7 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
267
269
|
|
268
270
|
it('When user edits a category and saves it then the changes should be displayed in the Equation editor flyout', () => {
|
269
271
|
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols);
|
270
|
-
editCategoryFlyout.steps.
|
272
|
+
editCategoryFlyout.steps.deselectCategoryCharacter('QuestionMark selected');
|
271
273
|
editCategoryFlyout.steps.clickOnSaveButton();
|
272
274
|
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
273
275
|
essayResponsePage.steps.switchToPreviewTab();
|
@@ -281,8 +283,8 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
281
283
|
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['general'].symbols)
|
282
284
|
essayResponsePage.steps.switchToEditTab()
|
283
285
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
284
|
-
editCategoryFlyout.
|
285
|
-
editCategoryFlyout.steps.
|
286
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.categoryCharacters('QuestionMark not-selected'), 'exist');
|
287
|
+
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedStateForEditedCategory(symbolsArray);
|
286
288
|
});
|
287
289
|
});
|
288
290
|
});
|
@@ -213,7 +213,6 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
213
213
|
essayResponsePage.steps.verifyDefaultCategoriesDisplayedInEquationEditorSectionEditTab();
|
214
214
|
});
|
215
215
|
|
216
|
-
//Failing due to https://redmine.zeuslearning.com/issues/564604
|
217
216
|
it('When user hovers on a category with a long name, then a tooltip should be displayed.', () => {
|
218
217
|
let categoriesWithTooltip = [`${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols['measurement'].displayName}`, `${equationEditorCategoriesAndSymbols['otherSymbols'].displayName}`];
|
219
218
|
essayResponsePage.steps.verifyTooltipsOfCategoryTilesInEquationEditorSectionEditTab(categoriesWithTooltip);
|
@@ -155,6 +155,7 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
155
155
|
});
|
156
156
|
});
|
157
157
|
|
158
|
+
//Failing due https://weldnorthed.atlassian.net/browse/IEI-2433
|
158
159
|
if (!grepTags || !grepTags.includes('smoke')) {
|
159
160
|
describe('Bold, Italic, Underline, Strikethrough formatting options - Preview tab', () => {
|
160
161
|
abortEarlySetup();
|
@@ -98,7 +98,7 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
98
98
|
it('\'Cancel\' button should be displayed in the popup and when user clicks on it then the popup should close', () => {
|
99
99
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonCancel(), 'visible');
|
100
100
|
essayResponsePage.steps.clickOnHyperLinkDialogBoxCancelButton();
|
101
|
-
utilities.verifyElementVisibilityState(essayResponsePage.
|
101
|
+
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogBoxWrapper(), 'notExist');
|
102
102
|
});
|
103
103
|
});
|
104
104
|
|
@@ -301,8 +301,8 @@ describe('Create item page: Feedback scale - Numbers feedback scale style - Edit
|
|
301
301
|
colorPopupComponent.steps.clickOnOkButton();
|
302
302
|
feedbackScalePage.steps.switchToPreviewTab();
|
303
303
|
feedbackScalePage.steps.clickOnNumberFeedbackButton(1);
|
304
|
-
feedbackScalePage.steps.
|
305
|
-
feedbackScalePage.steps.
|
304
|
+
feedbackScalePage.steps.verifyFeedbackNumberButtonSelectedState(1);
|
305
|
+
feedbackScalePage.steps.verifyFeedbackNumberButtonSelectedStateColor(1, modifiedColor);
|
306
306
|
});
|
307
307
|
});
|
308
308
|
});
|
@@ -347,16 +347,14 @@ describe('Create item page: Feedback scale - Text feedback scale style - Edit an
|
|
347
347
|
});
|
348
348
|
|
349
349
|
it('When the user deletes an option accordion, then the remaining options should get updated accordingly, the count in the options stepper input field should also update accordingly', () => {
|
350
|
-
feedbackScalePage.steps.deleteOptionAccordion(
|
351
|
-
for (let index = 0; index <
|
350
|
+
feedbackScalePage.steps.deleteOptionAccordion(2);
|
351
|
+
for (let index = 0; index < 2; index++) {
|
352
352
|
feedbackScalePage.steps.verifyOptionsAccordionProperties(index, { optionLabel: `Option ${index + 1}\n:\n${optionsTextArray[index]}`, Points: `${index + 1}` });
|
353
353
|
};
|
354
|
-
feedbackScalePage.steps.verifyCountInOptionsStepperInputField(
|
354
|
+
feedbackScalePage.steps.verifyCountInOptionsStepperInputField(2);
|
355
355
|
});
|
356
356
|
|
357
357
|
it('When the user only keeps two option accordions and deletes all the other options, the decrease stepper count button in the option stepper input field should get disabled and the delete icon buttons on the two option accordions should also get disabled', () => {
|
358
|
-
feedbackScalePage.steps.deleteOptionAccordion(3);
|
359
|
-
feedbackScalePage.steps.deleteOptionAccordion(2);
|
360
358
|
utilities.verifyElementDisabled(feedbackScalePage.optionsStepperDecreaseButton());
|
361
359
|
utilities.verifyElementDisabled(feedbackScalePage.deleteOptionAccordionButton());
|
362
360
|
});
|
@@ -504,7 +502,7 @@ describe('Create item page: Feedback scale - Text feedback scale style - Edit an
|
|
504
502
|
feedbackScalePage.steps.expandDefaultTextDropdown();
|
505
503
|
feedbackScalePage.steps.selectOptionFromDefaultTextDropdown(defaultTextDropdownArray[1][1]);
|
506
504
|
for (let index = 0; index < 4; index++) {
|
507
|
-
feedbackScalePage.steps.verifyColorSectionListItemContents(index, { label: `${index + 1}.`, colorBlock:
|
505
|
+
feedbackScalePage.steps.verifyColorSectionListItemContents(index, { label: `${index + 1}.`, colorBlock: defaultColorBlocks2[index] });
|
508
506
|
};
|
509
507
|
});
|
510
508
|
|
@@ -12,6 +12,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown settings',
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
15
|
+
fillInTheGapsDropdownPage.steps.selectUserSpecifiedWidthToggleButton();
|
15
16
|
cy.barsPreLoaderWait();
|
16
17
|
});
|
17
18
|
|
@@ -119,6 +120,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown settings',
|
|
119
120
|
before(() => {
|
120
121
|
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
121
122
|
cy.barsPreLoaderWait();
|
123
|
+
fillInTheGapsDropdownPage.steps.selectUserSpecifiedWidthToggleButton();
|
122
124
|
fillInTheGapsDropdownPage.steps.clickOnResponseAreaSettingsButton(0);
|
123
125
|
});
|
124
126
|
|
@@ -155,6 +157,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown settings',
|
|
155
157
|
before(() => {
|
156
158
|
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
157
159
|
cy.barsPreLoaderWait();
|
160
|
+
fillInTheGapsDropdownPage.steps.selectUserSpecifiedWidthToggleButton();
|
158
161
|
fillInTheGapsDropdownPage.steps.clickOnResponseAreaSettingsButton(0);
|
159
162
|
});
|
160
163
|
|
@@ -44,7 +44,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
44
44
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.responseArea(), 2);
|
45
45
|
});
|
46
46
|
|
47
|
-
it('The dropdown should be displayed with
|
47
|
+
it('The dropdown should be displayed with numeric count and a close button in the question input field, dropdown settings button should not be displayed when "User specified width" is in selected state', () => {
|
48
48
|
for (let index = 0; index < 2; index++) {
|
49
49
|
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(index)
|
50
50
|
};
|