itemengine-cypress-automation 1.0.211-2ndJulyFixes-2aec8c8.0 → 1.0.211
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/chartFunctionalitySpecifyCorrectAnswerSection.js +254 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +28 -14
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +29 -29
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -1
- 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 +3 -3
- 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/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/pages/components/maximumRecorderLengthComponent.js +4 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +14 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/feedbackScalePage.js +1 -1
- package/cypress/pages/index.js +0 -2
- package/cypress/pages/listOrderingPage.js +2 -2
- package/package.json +2 -2
- package/cypress/pages/highlightImagePage.js +0 -1320
- package/cypress/pages/highlightPage.js +0 -499
@@ -1,499 +0,0 @@
|
|
1
|
-
import utilities from "../support/helpers/utilities";
|
2
|
-
import constants from "../fixtures/constants";
|
3
|
-
import { additionalSettingsPanel, autoScoredAdditionalSettings, autoScoredPreviewBase, autoScoredScoringSection, autoScoredScoringSectionMultipleResponsesType, autoScoredSetCorrectAnswerSection, ckEditorToolbar, commonComponents, createQuestionBasePage, equationEditorFlyout, previewScoringAndShowCorrectAnswerComponent, questionInstructionsComponent, scoringSectionBase, studentResponseAndLayoutComponent } from "./components"
|
4
|
-
import { dialogBoxBase } from "./dialogBoxBase";
|
5
|
-
import { setPointsPopupBase } from "./components/setPointsPopupBase";
|
6
|
-
const css = Cypress.env('css');
|
7
|
-
|
8
|
-
const dropdownOptions = ['Any', 'Paragraph', 'Sentence', 'Word'];
|
9
|
-
|
10
|
-
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
11
|
-
|
12
|
-
const colorLibrary = css.highlightColorLibrary;
|
13
|
-
|
14
|
-
const selectors = {
|
15
|
-
...questionInstructionsComponent,
|
16
|
-
...commonComponents,
|
17
|
-
...ckEditorToolbar,
|
18
|
-
...dialogBoxBase,
|
19
|
-
...autoScoredScoringSectionMultipleResponsesType,
|
20
|
-
...additionalSettingsPanel,
|
21
|
-
...setPointsPopupBase,
|
22
|
-
...scoringSectionBase,
|
23
|
-
...autoScoredSetCorrectAnswerSection,
|
24
|
-
...autoScoredAdditionalSettings,
|
25
|
-
|
26
|
-
questionLabel: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] .title-casing'),
|
27
|
-
optionSpan: () => cy.get('span'),
|
28
|
-
option: () => cy.get('.highlighted'),
|
29
|
-
//text selection dropdown
|
30
|
-
textSelectionLabel: () => cy.get('#Text-selection-dropdown-label'),
|
31
|
-
textSelectionDropdown: () => cy.get('#Text-selection-select'),
|
32
|
-
textSelectionDropdownList: () => cy.get('ul[aria-labelledby*="Text-selection-dropdown-label"]'),
|
33
|
-
textSelectionDropdownListOptions: () => cy.get('ul[aria-labelledby*="Text-selection-dropdown-label"] li'),
|
34
|
-
//highlight options section
|
35
|
-
highlightOptionsLabel: () => cy.get('.highlightOptions-label-wrapper'),
|
36
|
-
highlightOptionsHighlightCounter: () => cy.get('[class*="Highlightstyles__CountWrapper"]'),
|
37
|
-
highlightOptionsSectionTextWrapper: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'),
|
38
|
-
highlightOptionsParagraphs: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] p'),
|
39
|
-
colorLibraryButton: () => cy.get('.color-library-wrapper button').eq(0),
|
40
|
-
colorLibraryColorOptionButton: () => cy.get('.color-library-content'),
|
41
|
-
colorLibrarySelectedColorIcon: () => cy.get('[class*="ColorLibrarystyle__BtnSelectionWrapper"]'),
|
42
|
-
clearHighlightButton: () => cy.get('.color-library-wrapper button').eq(1),
|
43
|
-
//set correct answer section
|
44
|
-
setCorrectAnswerTextFieldWrapper: () => cy.get('[class*="Highlightstyles__Wrapper"]'),
|
45
|
-
setCorrectAnswerTextWrapper: () => cy.get('[class*="Highlightstyles__HighlightPreviewWrapper"] [data-testid="question-instruction-element"]'),
|
46
|
-
setCorrectAnswerParagraphs: () => cy.get('[class*="Highlightstyles__Wrapper"] p'),
|
47
|
-
setCorrectAnswerSpans: () => cy.get('[class*="Highlightstyles__Wrapper"] span'),
|
48
|
-
setCorrectAnswerOption: () => cy.get('[class*="Highlightstyles__Wrapper"] .highlighted'),
|
49
|
-
setPointsButton: () => cy.get('[class*="Highlightstyles__SetPointsPopupWrapper"] button'),
|
50
|
-
setPointsPopupSaveButton: () => cy.get('.popup-button-wrapper button').eq(1),
|
51
|
-
setPointsPopupCancelButton: () => cy.get('.popup-button-wrapper button').eq(0),
|
52
|
-
setPointsPopupOptions: () => cy.get('[class*="SetPointsPopupstyle__MappedAnswer"]'),
|
53
|
-
setPointsPopupPointsLabel: () => cy.get('[class*="SetPointsPopupstyle__PointLabel"]'),
|
54
|
-
//Check this after https://redmine.zeuslearning.com/issues/542344 is fixed
|
55
|
-
pointsPerResponseLabel: () => cy.get('[class*="Highlightstyles__PartialPointsPerResponseLabel"]'),
|
56
|
-
pointsPerResponseScore: () => cy.get('[class*="Highlightstyles__PartialPointsPerResponseValue"]'),
|
57
|
-
//preview tab
|
58
|
-
previewTabQuestionContainer: () => cy.get('.highlight-preview-wrapper'),
|
59
|
-
previewTabParagraphs: () => cy.get('.highlight-preview-wrapper p'),
|
60
|
-
previewTabSpans: () => cy.get('.highlight-preview-wrapper span'),
|
61
|
-
previewTabOption: () => cy.get('.highlight-preview-wrapper .highlighted'),
|
62
|
-
//additional settings
|
63
|
-
maximumNumberOfAnswersLabel: () => cy.get('.maximum-answers'),
|
64
|
-
maximumAnswersInputField: () => cy.get('[class*="StudentResponseComponentstyle__OptionWrapper"] input'),
|
65
|
-
setCorrectAnswerErrorMessage: () => cy.get('[class*="ErrorMessageContainer"]')
|
66
|
-
}
|
67
|
-
|
68
|
-
const steps = {
|
69
|
-
...createQuestionBasePage.steps,
|
70
|
-
...questionInstructionsComponent.steps,
|
71
|
-
...ckEditorToolbar.steps,
|
72
|
-
...equationEditorFlyout.steps,
|
73
|
-
...dialogBoxBase.steps,
|
74
|
-
...scoringSectionBase.steps,
|
75
|
-
...previewScoringAndShowCorrectAnswerComponent.steps,
|
76
|
-
...autoScoredPreviewBase.steps,
|
77
|
-
...additionalSettingsPanel.steps,
|
78
|
-
...autoScoredAdditionalSettings.steps,
|
79
|
-
...autoScoredSetCorrectAnswerSection.steps,
|
80
|
-
...autoScoredScoringSectionMultipleResponsesType.steps,
|
81
|
-
...setPointsPopupBase.steps,
|
82
|
-
...autoScoredScoringSection.steps,
|
83
|
-
...commonComponents.steps,
|
84
|
-
|
85
|
-
/**
|
86
|
-
* @param {number} highlightCounterValue Value of highlight counter
|
87
|
-
* @description Verify highlight counter text and value
|
88
|
-
*/
|
89
|
-
verifyHighlightCounterTextAndValue: (highlightCounterValue) => {
|
90
|
-
utilities.verifyInnerText(highlightPage.highlightOptionsHighlightCounter(), `Highlight count: ${highlightCounterValue}`);
|
91
|
-
},
|
92
|
-
|
93
|
-
/**
|
94
|
-
* @param {number} paragraphIndex Index of the paragraph in highlight options section
|
95
|
-
* @param {number} numberOfOptions Number of options inside the paragraph in highlight options section
|
96
|
-
* @description Verify number of options inside a paragraph in highlight options section
|
97
|
-
*/
|
98
|
-
verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection: (paragraphIndex, numberOfOptions) => {
|
99
|
-
highlightPage.highlightOptionsParagraphs()
|
100
|
-
.eq(paragraphIndex)
|
101
|
-
.within(() => {
|
102
|
-
utilities.verifyElementCount(highlightPage.optionSpan(), numberOfOptions)
|
103
|
-
});
|
104
|
-
},
|
105
|
-
|
106
|
-
/**
|
107
|
-
* @param {number} paragraphIndex Index of the paragraph in set correct answer section
|
108
|
-
* @param {number} numberOfOptions Number of options inside the paragraph in set correct answer section
|
109
|
-
* @description Verify number of options inside a paragraph in set correct answer section
|
110
|
-
*/
|
111
|
-
verifyNumberOfOptionsInsideAParagraphInSetCorrectAnswerSection: (paragraphIndex, numberOfOptions) => {
|
112
|
-
highlightPage.setCorrectAnswerParagraphs()
|
113
|
-
.eq(paragraphIndex)
|
114
|
-
.within(() => {
|
115
|
-
utilities.verifyElementCount(highlightPage.option(), numberOfOptions)
|
116
|
-
});
|
117
|
-
},
|
118
|
-
|
119
|
-
clickOnColorLibraryButton: () => {
|
120
|
-
highlightPage.colorLibraryButton()
|
121
|
-
.click();
|
122
|
-
},
|
123
|
-
|
124
|
-
clickingAwayFromColorLibraryPopup: () => {
|
125
|
-
cy.get('body')
|
126
|
-
.click('left');
|
127
|
-
},
|
128
|
-
|
129
|
-
verifyColorLibraryButton: () => {
|
130
|
-
utilities.verifyInnerText(highlightPage.colorLibraryButton(), 'Color library');
|
131
|
-
utilities.verifyElementVisibilityState(highlightPage.colorLibraryButton(), 'visible');
|
132
|
-
utilities.verifyElementVisibilityState(highlightPage.colorLibraryButton().find('.color-library-icon'), 'exist');
|
133
|
-
},
|
134
|
-
|
135
|
-
verifyClearHighlightButton: () => {
|
136
|
-
utilities.verifyInnerText(highlightPage.clearHighlightButton(), 'Clear')
|
137
|
-
utilities.verifyElementVisibilityState(highlightPage.clearHighlightButton(), 'visible');
|
138
|
-
utilities.verifyElementVisibilityState(highlightPage.clearHighlightButton().find('.X-mark-icon'), 'exist');
|
139
|
-
},
|
140
|
-
|
141
|
-
switchColorInColorLibraryPopup: (colorIndex) => {
|
142
|
-
highlightPage.colorLibraryColorOptionButton()
|
143
|
-
.eq(colorIndex)
|
144
|
-
.click();
|
145
|
-
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'notExist');
|
146
|
-
},
|
147
|
-
|
148
|
-
verifyColorLibraryPopupColors: () => {
|
149
|
-
utilities.verifyElementVisibilityState(highlightPage.colorLibraryColorOptionButton(), 'visible');
|
150
|
-
utilities.verifyElementCount(highlightPage.colorLibraryColorOptionButton(), '6');
|
151
|
-
colorLibrary.forEach((color, index) => {
|
152
|
-
utilities.verifyCSS(highlightPage.colorLibraryColorOptionButton().eq(index), {
|
153
|
-
'background-color': color.background,
|
154
|
-
'border': `1px solid ${color.border}`
|
155
|
-
});
|
156
|
-
});
|
157
|
-
},
|
158
|
-
|
159
|
-
verifyColorLibraryPopupColorSelected: (colorIndex) => {
|
160
|
-
highlightPage.colorLibraryColorOptionButton()
|
161
|
-
.eq(colorIndex)
|
162
|
-
.should('have.attr', 'aria-pressed', 'true')
|
163
|
-
.within(() => {
|
164
|
-
utilities.verifyElementVisibilityState(highlightPage.colorLibrarySelectedColorIcon(), 'visible');
|
165
|
-
})
|
166
|
-
},
|
167
|
-
|
168
|
-
expandTextSelectionDropdown: () => {
|
169
|
-
highlightPage.textSelectionDropdown()
|
170
|
-
.scrollIntoView({ offset: { top: 200, left: 0 } })
|
171
|
-
.click();
|
172
|
-
utilities.verifyElementVisibilityState(highlightPage.textSelectionDropdownList(), 'visible');
|
173
|
-
},
|
174
|
-
|
175
|
-
closeTextSelectionDropdown: () => {
|
176
|
-
cy.get('body')
|
177
|
-
.click();
|
178
|
-
utilities.verifyElementVisibilityState(highlightPage.textSelectionDropdownList(), 'notExist');
|
179
|
-
},
|
180
|
-
|
181
|
-
verifyTextSelectionDropdownList: () => {
|
182
|
-
for (let index = 0; index < dropdownOptions.length; index++) {
|
183
|
-
highlightPage.textSelectionDropdownListOptions()
|
184
|
-
.eq(index)
|
185
|
-
.verifyInnerText(dropdownOptions[index]);
|
186
|
-
}
|
187
|
-
},
|
188
|
-
|
189
|
-
/**
|
190
|
-
* @param {string} textSelectionType Type of text selection in text selection dropdown
|
191
|
-
* @description Select the dropdown option in the text selection dropdown
|
192
|
-
*/
|
193
|
-
selectDropdownOptionInTextSelectionDropdown: (textSelectionType) => {
|
194
|
-
highlightPage.textSelectionDropdownListOptions()
|
195
|
-
.contains(textSelectionType)
|
196
|
-
.click();
|
197
|
-
},
|
198
|
-
|
199
|
-
verifySetCorrectAnswerSectionErrorMessage: () => {
|
200
|
-
highlightPage.setCorrectAnswerErrorMessage()
|
201
|
-
.eq(1)
|
202
|
-
.verifyInnerText('Error: Please set a correct answer.');
|
203
|
-
},
|
204
|
-
|
205
|
-
verifyResetPopupForClearingOptionSelection: () => {
|
206
|
-
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'visible');
|
207
|
-
utilities.verifyInnerText(highlightPage.dialogBoxTitle(), 'Reset');
|
208
|
-
utilities.verifyInnerText(highlightPage.dialogBoxContent(), 'Are you sure you want to clear all highlights? This action will not delete template content but clear all highlights.');
|
209
|
-
utilities.verifyInnerText(highlightPage.buttonReject(), 'Cancel');
|
210
|
-
utilities.verifyInnerText(highlightPage.buttonAccept(), 'Confirm');
|
211
|
-
},
|
212
|
-
|
213
|
-
/**
|
214
|
-
* @param {string} textSelectionType Type of text selection for which reset confirmation popup is displayed
|
215
|
-
* @description Verify reset confirmation popup for switch text selection type
|
216
|
-
*/
|
217
|
-
verifyResetPopupForSwitchingTextSelectionType: (textSelectionType) => {
|
218
|
-
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'visible');
|
219
|
-
utilities.verifyInnerText(highlightPage.dialogBoxTitle(), 'Reset');
|
220
|
-
utilities.verifyInnerText(highlightPage.dialogBoxContent(), `Applying ${textSelectionType} text selection will reset any existing highlight options, including valid responses and alternate response values.`);
|
221
|
-
utilities.verifyInnerText(highlightPage.buttonReject(), 'Cancel');
|
222
|
-
utilities.verifyInnerText(highlightPage.buttonAccept(), 'Confirm');
|
223
|
-
},
|
224
|
-
|
225
|
-
clearSelectedOptionsInHighlightOptionsSection: () => {
|
226
|
-
highlightPage.steps.clickOnClearHighlightButtonInHighlightOptionsSection();
|
227
|
-
highlightPage.steps.clickOnAcceptButtonInDialogBox();
|
228
|
-
},
|
229
|
-
|
230
|
-
/**
|
231
|
-
* @param {string} textSelectionType Type of text selection
|
232
|
-
* @param {*} optionText Text of the option in highlight options section
|
233
|
-
* @description Select an option in highlight options section
|
234
|
-
*/
|
235
|
-
selectOptionInHighlightOptionsSection: (textSelectionType, optionText) => {
|
236
|
-
if (textSelectionType === 'Any') {
|
237
|
-
highlightPage.highlightOptionsSectionTextWrapper()
|
238
|
-
.selectText(optionText);
|
239
|
-
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(optionText);
|
240
|
-
} else {
|
241
|
-
highlightPage.steps.clickOnOptionInHighlightOptionsSection(optionText);
|
242
|
-
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(optionText);
|
243
|
-
}
|
244
|
-
},
|
245
|
-
|
246
|
-
/**
|
247
|
-
* @param {string} textSelectionType Type of text selection
|
248
|
-
* @param {*} optionText Text of the option in highlight options section
|
249
|
-
* @description Deselect an option in highlight options section
|
250
|
-
*/
|
251
|
-
deselectOptionInHighlightOptionsSection: (textSelectionType, optionText) => {
|
252
|
-
if (textSelectionType === 'Any') {
|
253
|
-
highlightPage.steps.clickOnOptionInHighlightOptionsSection(optionText);
|
254
|
-
highlightPage.steps.verifyOptionDoesNotExistInHighlightOptionsSection(optionText);
|
255
|
-
} else {
|
256
|
-
highlightPage.steps.clickOnOptionInHighlightOptionsSection(optionText);
|
257
|
-
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(optionText);
|
258
|
-
}
|
259
|
-
},
|
260
|
-
|
261
|
-
/**
|
262
|
-
* @param {number[]} pointsArray Array of partial different points for options
|
263
|
-
* @description Add points to options in set points popup
|
264
|
-
*/
|
265
|
-
addPartialDifferentWeightsPointsInSetPointsPopup: (pointsArray) => {
|
266
|
-
highlightPage.setPointsButton()
|
267
|
-
.click();
|
268
|
-
setPointsPopupBase.steps.allotPointsToSetPointsPopupPointsInputField(pointsArray);
|
269
|
-
highlightPage.setPointsPopupSaveButton()
|
270
|
-
.click();
|
271
|
-
},
|
272
|
-
|
273
|
-
/**
|
274
|
-
* @param {string[]} optionsArray array of options set in options section
|
275
|
-
* @description this function resets the question preview
|
276
|
-
*/
|
277
|
-
resetQuestionPreview: () => {
|
278
|
-
highlightPage.steps.switchToEditTab();
|
279
|
-
highlightPage.steps.switchToPreviewTab();
|
280
|
-
highlightPage.steps.verifyNoOptionIsSelectedInPreviewTab();
|
281
|
-
},
|
282
|
-
|
283
|
-
/**
|
284
|
-
* @param {number} maxNumberOfAnswers maximum number of answers
|
285
|
-
* @description add input to maximum number of answers input field
|
286
|
-
*/
|
287
|
-
addInputToMaximumNumberOfAnswersInputField: (maxNumberOfAnswers) => {
|
288
|
-
highlightPage.maximumAnswersInputField()
|
289
|
-
.clear()
|
290
|
-
.type(`${maxNumberOfAnswers}`)
|
291
|
-
.should('have.value', `${maxNumberOfAnswers}`);
|
292
|
-
},
|
293
|
-
|
294
|
-
//Check after https://redmine.zeuslearning.com/issues/542344 is fixed
|
295
|
-
/**
|
296
|
-
* @param {number} points Points displayed for points per response
|
297
|
-
* @description Verify the points per response score
|
298
|
-
*/
|
299
|
-
verifyPartialEqualWeightsPointsPerResponseScore: (points) => {
|
300
|
-
utilities.verifyInnerText(highlightPage.pointsPerResponseScore(), `${points}`);
|
301
|
-
},
|
302
|
-
|
303
|
-
clickOnClearHighlightButtonInHighlightOptionsSection: () => {
|
304
|
-
highlightPage.clearHighlightButton()
|
305
|
-
.click();
|
306
|
-
},
|
307
|
-
|
308
|
-
verifyDefaultSetPointsButtonLabelAndDisabledState: () => {
|
309
|
-
utilities.verifyInnerText(highlightPage.setPointsButton(), 'Set points');
|
310
|
-
utilities.verifyElementVisibilityState(highlightPage.setPointsButton(), 'visible');
|
311
|
-
utilities.verifyElementVisibilityState(highlightPage.setPointsButton().find('svg'), 'exist');
|
312
|
-
highlightPage.setPointsButton()
|
313
|
-
.should('be.disabled');
|
314
|
-
utilities.verifyCSS(highlightPage.setPointsButton(), {
|
315
|
-
'color': css.color.secondaryBtnDisabled
|
316
|
-
});
|
317
|
-
utilities.verifyCSS(highlightPage.setPointsButton().find('svg'), {
|
318
|
-
'color': css.color.secondaryBtnDisabled
|
319
|
-
});
|
320
|
-
},
|
321
|
-
|
322
|
-
verifySetPointsButtonLabelAndEnabledState: () => {
|
323
|
-
utilities.verifyInnerText(highlightPage.setPointsButton(), 'Set points');
|
324
|
-
utilities.verifyElementVisibilityState(highlightPage.setPointsButton(), 'visible');
|
325
|
-
utilities.verifyElementVisibilityState(highlightPage.setPointsButton().find('svg'), 'exist');
|
326
|
-
highlightPage.setPointsButton()
|
327
|
-
.should('be.enabled');
|
328
|
-
},
|
329
|
-
|
330
|
-
clickOnSetPointsButton: () => {
|
331
|
-
highlightPage.setPointsButton()
|
332
|
-
.click();
|
333
|
-
},
|
334
|
-
|
335
|
-
cancelSetPointsPopup: () => {
|
336
|
-
highlightPage.setPointsPopupCancelButton()
|
337
|
-
.click();
|
338
|
-
highlightPage.dialogBox()
|
339
|
-
.should('not.exist');
|
340
|
-
},
|
341
|
-
|
342
|
-
savePointsAllotedInSetPointsPopup: () => {
|
343
|
-
highlightPage.setPointsPopupSaveButton()
|
344
|
-
.click();
|
345
|
-
highlightPage.dialogBox()
|
346
|
-
.should('not.exist');
|
347
|
-
},
|
348
|
-
|
349
|
-
/**
|
350
|
-
* @param {string[]} optionTextArray Array of options displayed in set points popup
|
351
|
-
* @description Verify the options displayed in set points popup
|
352
|
-
*/
|
353
|
-
verifySetPointsPopupOptions: (optionTextArray) => {
|
354
|
-
optionTextArray.forEach((optionText, index) => {
|
355
|
-
utilities.verifyInnerText(highlightPage.setPointsPopupOptions().eq(index), `${optionText}`);
|
356
|
-
});
|
357
|
-
utilities.verifyElementCount(highlightPage.setPointsPopupOptions(), optionTextArray.length);
|
358
|
-
},
|
359
|
-
|
360
|
-
/**
|
361
|
-
* @param {number} index points field option index
|
362
|
-
* @description this function verifies points field error message
|
363
|
-
*/
|
364
|
-
verifyPointsErrorMessageInSetPointsPopup: (index) => {
|
365
|
-
setPointsPopupBase.dialogBox()
|
366
|
-
.within(() => {
|
367
|
-
scoringSectionBase.pointsInputField()
|
368
|
-
.eq(index)
|
369
|
-
.parents('[class*="SetPointsPopupstyle__PointsErrorWrapper"]')
|
370
|
-
.within(() => {
|
371
|
-
commonComponents.errorMessage()
|
372
|
-
.should('have.text', 'Error: Please enter points.');
|
373
|
-
});
|
374
|
-
});
|
375
|
-
},
|
376
|
-
|
377
|
-
verifyImageAndAltTextInSetCorrectAnswerSection: () => {
|
378
|
-
highlightPage.setCorrectAnswerTextWrapper()
|
379
|
-
.find('img')
|
380
|
-
.should('have.attr', 'src', constants.foxImageLink)
|
381
|
-
.and('have.attr', 'alt', constants.foxImageAltText);
|
382
|
-
},
|
383
|
-
|
384
|
-
verifyEquationInSetCorrectAnswerSection: () => {
|
385
|
-
highlightPage.setCorrectAnswerTextWrapper()
|
386
|
-
.find('span[role="math"]')
|
387
|
-
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
388
|
-
.contains(constants.CKEditorInputFieldEnteredEquationText);
|
389
|
-
},
|
390
|
-
|
391
|
-
verifyLinkInSetCorrectAnswerSection: () => {
|
392
|
-
highlightPage.setCorrectAnswerTextWrapper()
|
393
|
-
.find('a')
|
394
|
-
.should('have.text', 'lorem')
|
395
|
-
.and('have.attr', 'href', `${Cypress.config().baseUrl}`);
|
396
|
-
},
|
397
|
-
|
398
|
-
verifyBoldTextInSetCorrectAnswerSection: () => {
|
399
|
-
highlightPage.setCorrectAnswerTextWrapper()
|
400
|
-
.find('strong')
|
401
|
-
.should('exist')
|
402
|
-
.should('have.text', 'This is Bold text input.lorem');
|
403
|
-
},
|
404
|
-
|
405
|
-
verifyImageAndAltTextInPreviewTab: () => {
|
406
|
-
highlightPage.previewTabQuestionContainer()
|
407
|
-
.find('img')
|
408
|
-
.should('have.attr', 'src', constants.foxImageLink)
|
409
|
-
.and('have.attr', 'alt', constants.foxImageAltText);
|
410
|
-
},
|
411
|
-
|
412
|
-
verifyEquationInPreviewTab: () => {
|
413
|
-
highlightPage.previewTabQuestionContainer()
|
414
|
-
.find('span[role="math"]')
|
415
|
-
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
416
|
-
.contains(constants.CKEditorInputFieldEnteredEquationText);
|
417
|
-
},
|
418
|
-
|
419
|
-
verifyLinkInPreviewTab: () => {
|
420
|
-
highlightPage.previewTabQuestionContainer()
|
421
|
-
.find('a')
|
422
|
-
.should('have.text', 'lorem')
|
423
|
-
.and('have.attr', 'href', `${Cypress.config().baseUrl}`);
|
424
|
-
},
|
425
|
-
|
426
|
-
verifyBoldTextInPreviewTab: () => {
|
427
|
-
highlightPage.previewTabQuestionContainer()
|
428
|
-
.find('strong')
|
429
|
-
.should('exist')
|
430
|
-
.should('have.text', 'This is Bold text input.lorem');
|
431
|
-
},
|
432
|
-
|
433
|
-
//TODO- Update after https://redmine.zeuslearning.com/issues/548968 is resolved
|
434
|
-
verifySetCorrectAnswerErrorMessage: () => {
|
435
|
-
highlightPage.setCorrectAnswerLabel()
|
436
|
-
.parents('.highlight-set-correct-wrapper')
|
437
|
-
.within(() => {
|
438
|
-
utilities.verifyTextContent(highlightPage.errorMessage().eq(1), 'Error: Please set a correct answer.')
|
439
|
-
});
|
440
|
-
}
|
441
|
-
}
|
442
|
-
|
443
|
-
const tests = {
|
444
|
-
...questionInstructionsComponent.tests,
|
445
|
-
...commonComponents.tests,
|
446
|
-
...autoScoredScoringSection.tests,
|
447
|
-
...autoScoredScoringSectionMultipleResponsesType.tests,
|
448
|
-
...previewScoringAndShowCorrectAnswerComponent.tests,
|
449
|
-
...autoScoredSetCorrectAnswerSection.tests,
|
450
|
-
...scoringSectionBase.tests,
|
451
|
-
...additionalSettingsPanel.tests,
|
452
|
-
...studentResponseAndLayoutComponent.tests,
|
453
|
-
...autoScoredAdditionalSettings.tests,
|
454
|
-
...createQuestionBasePage.tests,
|
455
|
-
|
456
|
-
/**
|
457
|
-
* @param {number} totalPoints Maximum total points set for the question
|
458
|
-
* @description Verify the options displayed in set correct answer section
|
459
|
-
*/
|
460
|
-
verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer: (totalPoints) => {
|
461
|
-
it('When user has provided minimum score awarded (if attempted) points, then in Preview tab on entering incorrect answer, minimum score should be provided for the question', () => {
|
462
|
-
cy.log('Switch to edit tab and set minimum score if attempted points')
|
463
|
-
highlightPage.steps.switchToEditTab();
|
464
|
-
highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);
|
465
|
-
highlightPage.steps.switchToPreviewTab()
|
466
|
-
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
467
|
-
highlightPage.steps.verifyPreviewTabScoreText(1, `${totalPoints}`);
|
468
|
-
});
|
469
|
-
|
470
|
-
it('When user removes minimum score awarded (if attempted) points, then in Preview tab on selecting any options other than correct answers, points should not be provided', () => {
|
471
|
-
cy.log('Switch to edit tab and remove minimum score if attempted points')
|
472
|
-
highlightPage.steps.switchToEditTab();
|
473
|
-
highlightPage.steps.clearMinimumScoreIfAttemptedPointsField();
|
474
|
-
highlightPage.steps.switchToPreviewTab()
|
475
|
-
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
476
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, `${totalPoints}`);
|
477
|
-
});
|
478
|
-
},
|
479
|
-
|
480
|
-
/**
|
481
|
-
* @param {string} scoringType Type of scoring set in scoring section
|
482
|
-
* @param {string[]} optionsArray Array of the options displayed in set correct answer
|
483
|
-
* @description Verify the options displayed in set correct answer section
|
484
|
-
*/
|
485
|
-
verifyContentsOfSetCorrectAnswerSectionForScoringType: (scoringType, optionsArray) => {
|
486
|
-
it(`When user has selected ${scoringType} scoring type then the added options should be displayed in the set correct answer section and they should be in deselected state`, () => {
|
487
|
-
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(optionsArray);
|
488
|
-
optionsArray.forEach((optionText) => {
|
489
|
-
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(optionText);
|
490
|
-
});
|
491
|
-
});
|
492
|
-
}
|
493
|
-
}
|
494
|
-
|
495
|
-
export const highlightPage = {
|
496
|
-
...selectors,
|
497
|
-
steps,
|
498
|
-
tests
|
499
|
-
}
|