itemengine-cypress-automation 1.0.51 → 1.0.63
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsAnswerNumeration.js +206 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
- package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
- package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
- package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
- package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
- package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
- package/package.json +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridOptionsAdditionalSettings.js → multipleSelectionAdditionalSettingsGridOptions.js} +0 -0
@@ -0,0 +1,375 @@
|
|
1
|
+
import { highlightPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const paragraphTextArray = ['Horses cannot breat& through their mouth! Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
|
7
|
+
const sentenceTextArray = ['Horses cannot breat& through their mouth! ', 'Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
|
8
|
+
const wordTextArray = ['Horses', 'cannot', 'breat&', 'through', 'their', 'mouth', 'Cows', 'can', 'sleep', 'standing', 'up', 'Dogs', 'have', 'e#cellent', 'hearing', 'Deers', 'possess', 'nearly', '300', 'degree', 'field', 'of', 'vision'];
|
9
|
+
const anySelectionArray = ['Cows can sleep', 'Dogs have e#cellent \'hearing\'', 'nearly, 300 degree field of vision.'];
|
10
|
+
|
11
|
+
describe('Create Item page - Highlight: Text selection in Highlight options section', () => {
|
12
|
+
before(() => {
|
13
|
+
cy.loginAs('admin');
|
14
|
+
});
|
15
|
+
|
16
|
+
describe('Highlight options section: Any', () => {
|
17
|
+
abortEarlySetup();
|
18
|
+
before(() => {
|
19
|
+
cy.log('Navigating to Highlight question type');
|
20
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
21
|
+
cy.barsPreLoaderWait();
|
22
|
+
highlightPage.steps.clearQuestionInputField();
|
23
|
+
paragraphTextArray.forEach((paragraphText) => {
|
24
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
25
|
+
});
|
26
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
27
|
+
});
|
28
|
+
|
29
|
+
it('By default \'Any\' should be selected in text selection dropdown.', () => {
|
30
|
+
utilities.verifyInnerText(highlightPage.textSelectionDropdown(), 'Any');
|
31
|
+
});
|
32
|
+
|
33
|
+
it('When \'Any\' text selection type is selected, the added input should be displayed in the highlight options section and no options should be displayed', () => {
|
34
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
35
|
+
utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans(), 'notExist');
|
36
|
+
});
|
37
|
+
|
38
|
+
it('The highlight count should be displayed as \'0\'.', () => {
|
39
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(0);
|
40
|
+
});
|
41
|
+
|
42
|
+
it('When user selects any texts, then that text should be highlighted and the highlight count should be increased to 1.', () => {
|
43
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[0]);
|
44
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
45
|
+
});
|
46
|
+
|
47
|
+
it('CSS of the response option in selected state', { tags: 'css' }, () => {
|
48
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans(), {
|
49
|
+
'color': css.color.text,
|
50
|
+
'font-size': css.fontSize.default,
|
51
|
+
'font-weight': css.fontWeight.regular,
|
52
|
+
'background-color': css.color.figActiveComponentBg,
|
53
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
54
|
+
});
|
55
|
+
});
|
56
|
+
|
57
|
+
it('Accessibility of the response option', { tags: 'a11y' }, () => {
|
58
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parents('.highlight-tab-wrapper'));
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
62
|
+
highlightPage.steps.clickOnOptionInHighlightOptionsSection(anySelectionArray[0]);
|
63
|
+
utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans(), 'notExist')
|
64
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(0);
|
65
|
+
});
|
66
|
+
|
67
|
+
it('When user clears all selected options with the \'Clear\' button, then all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
68
|
+
cy.log('Pre-step: Selecting multiple texts to create options');
|
69
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[0]);
|
70
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[1]);
|
71
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
72
|
+
utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans(), 'notExist');
|
73
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
74
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
75
|
+
});
|
76
|
+
|
77
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
78
|
+
|
79
|
+
it('When user selects any text again, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
80
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[2]);
|
81
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
82
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
83
|
+
});
|
84
|
+
});
|
85
|
+
|
86
|
+
describe('Highlight options section: Paragraph', () => {
|
87
|
+
abortEarlySetup();
|
88
|
+
before(() => {
|
89
|
+
cy.log('Navigating to Highlight question type');
|
90
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
91
|
+
cy.barsPreLoaderWait();
|
92
|
+
highlightPage.steps.clearQuestionInputField();
|
93
|
+
paragraphTextArray.forEach((paragraphText) => {
|
94
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
95
|
+
});
|
96
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
97
|
+
});
|
98
|
+
|
99
|
+
it('User should be able to switch to \'Paragraph\' in text selection dropdown.', () => {
|
100
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
101
|
+
});
|
102
|
+
|
103
|
+
it('When user has switched to \'Paragraph\' text selection type, the previously added input should be divided into options as per \'Paragraph\' text selection type and all the options should be in selected state', () => {
|
104
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
105
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), 3);
|
106
|
+
highlightPage.steps.verifyOptionsInHighlightOptionsSection(paragraphTextArray);
|
107
|
+
paragraphTextArray.forEach((paragraphText) => {
|
108
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(paragraphText);
|
109
|
+
});
|
110
|
+
});
|
111
|
+
|
112
|
+
it('The highlight count should be displayed as per the number of \'Paragraph\'.', () => {
|
113
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(3);
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
117
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Paragraph', paragraphTextArray[0]);
|
118
|
+
for (let arrayIndex = 1; arrayIndex < paragraphTextArray.length; arrayIndex++) {
|
119
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(paragraphTextArray[arrayIndex]);
|
120
|
+
}
|
121
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(2);
|
122
|
+
});
|
123
|
+
|
124
|
+
it('CSS of the response option in selected and deselected state', { tags: 'css' }, () => {
|
125
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(paragraphTextArray[1]), {
|
126
|
+
'color': css.color.text,
|
127
|
+
'font-size': css.fontSize.default,
|
128
|
+
'font-weight': css.fontWeight.regular,
|
129
|
+
'background-color': css.color.figActiveComponentBg,
|
130
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
131
|
+
});
|
132
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(paragraphTextArray[0]), {
|
133
|
+
'color': css.color.text,
|
134
|
+
'font-size': css.fontSize.default,
|
135
|
+
'font-weight': css.fontWeight.regular,
|
136
|
+
'background-color': css.color.defaultBackground
|
137
|
+
});
|
138
|
+
});
|
139
|
+
|
140
|
+
it('Accessibility of the response options', { tags: 'a11y' }, () => {
|
141
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parent('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'));
|
142
|
+
});
|
143
|
+
|
144
|
+
it('When the user hovers over the deselected option, then that option should be displayed in hover state', () => {
|
145
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInHighlightOptionsSection(paragraphTextArray[0])
|
146
|
+
});
|
147
|
+
|
148
|
+
//Clear button reset popup verification
|
149
|
+
it('When user clicks on \'Clear button\', Reset popup should be displayed with the text \'Are you sure you want to clear all highlights? This action will not delete template content but clear all highlights.\', Cancel and Confirm button', () => {
|
150
|
+
highlightPage.steps.clickOnClearHighlightButtonInHighlightOptionsSection();
|
151
|
+
highlightPage.steps.verifyResetPopupForClearingOptionSelection();
|
152
|
+
});
|
153
|
+
|
154
|
+
it('CSS of Reset popup', { tags: 'css' }, () => {
|
155
|
+
utilities.verifyCSS(highlightPage.dialogBoxTitle().find('span'), {
|
156
|
+
'color': css.color.flyoutTitle,
|
157
|
+
'font-size': css.fontSize.default,
|
158
|
+
'font-weight': css.fontWeight.bold
|
159
|
+
});
|
160
|
+
utilities.verifyCSS(highlightPage.dialogBoxContent(), {
|
161
|
+
'color': css.color.labels,
|
162
|
+
'font-size': css.fontSize.default,
|
163
|
+
'font-weight': css.fontWeight.regular
|
164
|
+
});
|
165
|
+
utilities.verifyCSS(highlightPage.buttonAccept(), {
|
166
|
+
'color': css.color.primaryBtn,
|
167
|
+
'font-size': css.fontSize.default,
|
168
|
+
'font-weight': css.fontWeight.regular,
|
169
|
+
'background-color': css.color.primaryBtnBg
|
170
|
+
});
|
171
|
+
utilities.verifyCSS(highlightPage.buttonReject(), {
|
172
|
+
'color': css.color.secondaryBtn,
|
173
|
+
'font-size': css.fontSize.default,
|
174
|
+
'font-weight': css.fontWeight.regular,
|
175
|
+
'background-color': css.color.secondaryBtnBg
|
176
|
+
});
|
177
|
+
});
|
178
|
+
|
179
|
+
it('Accessibility of Reset popup', { tags: 'a11y' }, () => {
|
180
|
+
cy.checkAccessibility(highlightPage.dialogBox());
|
181
|
+
});
|
182
|
+
|
183
|
+
it('When user clicks on \'Cancel\' button of the Reset popup, then the popup should be closed and the earlier state of highlight options should persist', () => {
|
184
|
+
highlightPage.steps.clickOnRejectButtonInDialogBox();
|
185
|
+
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'notExist');
|
186
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(paragraphTextArray[0]);
|
187
|
+
for (let arrayIndex = 1; arrayIndex < paragraphTextArray.length; arrayIndex++) {
|
188
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(paragraphTextArray[arrayIndex]);
|
189
|
+
}
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When user clicks on \'Confirm\' button of the Reset popup, then the popup should be closed and all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
193
|
+
cy.log('Pre-step: Again clicking on Clear button to open Reset popup');
|
194
|
+
highlightPage.steps.clickOnClearHighlightButtonInHighlightOptionsSection();
|
195
|
+
highlightPage.steps.clickOnAcceptButtonInDialogBox();
|
196
|
+
for (let arrayIndex = 0; arrayIndex < paragraphTextArray.length; arrayIndex++) {
|
197
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(paragraphTextArray[arrayIndex]);
|
198
|
+
}
|
199
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
200
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
201
|
+
});
|
202
|
+
|
203
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
204
|
+
|
205
|
+
it('When user click on a deselected option, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
206
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Paragraph', paragraphTextArray[0]);
|
207
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
208
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
209
|
+
});
|
210
|
+
});
|
211
|
+
|
212
|
+
describe('Highlight options section: Sentence', () => {
|
213
|
+
abortEarlySetup();
|
214
|
+
before(() => {
|
215
|
+
cy.log('Navigating to Highlight question type');
|
216
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
217
|
+
cy.barsPreLoaderWait();
|
218
|
+
highlightPage.steps.clearQuestionInputField();
|
219
|
+
paragraphTextArray.forEach((paragraphText) => {
|
220
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
221
|
+
});
|
222
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
223
|
+
});
|
224
|
+
|
225
|
+
it('User should be able to switch to \'Sentence\' in text selection dropdown.', () => {
|
226
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Sentence');
|
227
|
+
});
|
228
|
+
|
229
|
+
it('When user has switched to \'Sentence\' text selection type, the previously added input should be divided into options as per \'Sentence\' text selection type and all the options should be in selected state', () => {
|
230
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
231
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), 4);
|
232
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(0, 2);
|
233
|
+
highlightPage.steps.verifyOptionsInHighlightOptionsSection(sentenceTextArray);
|
234
|
+
sentenceTextArray.forEach((sentenceText) => {
|
235
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(sentenceText);
|
236
|
+
});
|
237
|
+
});
|
238
|
+
|
239
|
+
it('The highlight count should be displayed as per the number of \'Sentence\'.', () => {
|
240
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(4);
|
241
|
+
});
|
242
|
+
|
243
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
244
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[0])
|
245
|
+
for (let arrayIndex = 1; arrayIndex < sentenceTextArray.length; arrayIndex++) {
|
246
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(sentenceTextArray[arrayIndex]);
|
247
|
+
}
|
248
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(3);
|
249
|
+
});
|
250
|
+
|
251
|
+
it('CSS of the response option in selected and deselected state', { tags: 'css' }, () => {
|
252
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(sentenceTextArray[1]), {
|
253
|
+
'color': css.color.text,
|
254
|
+
'font-size': css.fontSize.default,
|
255
|
+
'font-weight': css.fontWeight.regular,
|
256
|
+
'background-color': css.color.figActiveComponentBg,
|
257
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
258
|
+
});
|
259
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(sentenceTextArray[0]), {
|
260
|
+
'color': css.color.text,
|
261
|
+
'font-size': css.fontSize.default,
|
262
|
+
'font-weight': css.fontWeight.regular,
|
263
|
+
'background-color': css.color.defaultBackground
|
264
|
+
});
|
265
|
+
});
|
266
|
+
|
267
|
+
it('Accessibility of the response options', { tags: 'a11y' }, () => {
|
268
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parent('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'));
|
269
|
+
});
|
270
|
+
|
271
|
+
it('When the user hovers over the deselected option, then that option should be displayed in hover state', () => {
|
272
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInHighlightOptionsSection(sentenceTextArray[0])
|
273
|
+
});
|
274
|
+
|
275
|
+
it('When user clears all selected options with the \'Clear\' button, then all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
276
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
277
|
+
for (let arrayIndex = 0; arrayIndex < sentenceTextArray.length; arrayIndex++) {
|
278
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(sentenceTextArray[arrayIndex]);
|
279
|
+
}
|
280
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
281
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
282
|
+
});
|
283
|
+
|
284
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
285
|
+
|
286
|
+
it('When user click on a deselected option, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
287
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[0])
|
288
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
289
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
290
|
+
});
|
291
|
+
});
|
292
|
+
|
293
|
+
describe('Highlight options section: Word', () => {
|
294
|
+
abortEarlySetup();
|
295
|
+
before(() => {
|
296
|
+
cy.log('Navigating to Highlight question type');
|
297
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
298
|
+
cy.barsPreLoaderWait();
|
299
|
+
highlightPage.steps.clearQuestionInputField();
|
300
|
+
paragraphTextArray.forEach((paragraphText) => {
|
301
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
302
|
+
});
|
303
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
304
|
+
});
|
305
|
+
|
306
|
+
it('User should be able to switch to \'Word\' in text selection dropdown.', () => {
|
307
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
308
|
+
});
|
309
|
+
|
310
|
+
it('When user has switched to \'Word\' text selection type, the previously added input should be divided into options as per \'Word\' text selection type and all the options should be in selected state', () => {
|
311
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
312
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), 23);
|
313
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(0, 11);
|
314
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(1, 4);
|
315
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(2, 8);
|
316
|
+
highlightPage.steps.verifyOptionsInHighlightOptionsSection(wordTextArray);
|
317
|
+
wordTextArray.forEach((wordText) => {
|
318
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(wordText);
|
319
|
+
});
|
320
|
+
});
|
321
|
+
|
322
|
+
it('The highlight count should be displayed as per the number of \'Word\'.', () => {
|
323
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(23);
|
324
|
+
});
|
325
|
+
|
326
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
327
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Word', wordTextArray[0])
|
328
|
+
for (let arrayIndex = 1; arrayIndex < wordTextArray.length; arrayIndex++) {
|
329
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(wordTextArray[arrayIndex]);
|
330
|
+
}
|
331
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(22);
|
332
|
+
});
|
333
|
+
|
334
|
+
it('CSS of the response option in selected and deselected state', { tags: 'css' }, () => {
|
335
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(wordTextArray[1]), {
|
336
|
+
'color': css.color.text,
|
337
|
+
'font-size': css.fontSize.default,
|
338
|
+
'font-weight': css.fontWeight.regular,
|
339
|
+
'background-color': css.color.figActiveComponentBg,
|
340
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
341
|
+
});
|
342
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(wordTextArray[0]), {
|
343
|
+
'color': css.color.text,
|
344
|
+
'font-size': css.fontSize.default,
|
345
|
+
'font-weight': css.fontWeight.regular,
|
346
|
+
'background-color': css.color.defaultBackground
|
347
|
+
});
|
348
|
+
});
|
349
|
+
|
350
|
+
it('Accessibility of the response options', { tags: 'a11y' }, () => {
|
351
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parent('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'));
|
352
|
+
});
|
353
|
+
|
354
|
+
it('When the user hovers over the deselected option, then that option should be displayed in hover state', () => {
|
355
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInHighlightOptionsSection(wordTextArray[0])
|
356
|
+
});
|
357
|
+
|
358
|
+
it('When user clears all selected options with the \'Clear\' button, then all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
359
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
360
|
+
for (let arrayIndex = 0; arrayIndex < sentenceTextArray.length; arrayIndex++) {
|
361
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(wordTextArray[arrayIndex]);
|
362
|
+
}
|
363
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
364
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
365
|
+
});
|
366
|
+
|
367
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
368
|
+
|
369
|
+
it('When user click on a deselected option, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
370
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Word', wordTextArray[0]);
|
371
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
372
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
373
|
+
});
|
374
|
+
});
|
375
|
+
});
|
package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js
CHANGED
@@ -5,12 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
const questionStems = ['Bat', 'Ostrich', 'Platypus', 'Eagle'];
|
6
6
|
const options = ['Is mammal', 'Lays eggs', 'Can fly'];
|
7
7
|
|
8
|
-
const gridStyleDropdownOptions = ['With border', 'Row dividers', 'No border', 'Inline', 'Inline - row dividers'];
|
9
|
-
const questionStemNumerationOptions = ['None', 'Numerical', 'Uppercase alphabet', 'Lowercase alphabet'];
|
10
8
|
const fontSizeDropdownOptions = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
|
11
|
-
const numbers = ['1', '2', '3', '4'];
|
12
|
-
const lowercase = ['a', 'b', 'c', 'd'];
|
13
|
-
const uppercase = ['A', 'B', 'C', 'D'];
|
14
9
|
const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
15
10
|
|
16
11
|
describe('Create Item page - Multiple Selection Grid: Additional settings', () => {
|
@@ -28,6 +23,17 @@ describe('Create Item page - Multiple Selection Grid: Additional settings', () =
|
|
28
23
|
multipleSelectionGridPage.tests.verifyAdditonalSettingsAccordionProperties();
|
29
24
|
});
|
30
25
|
|
26
|
+
describe('Additional settings: Student response area and layout', () => {
|
27
|
+
abortEarlySetup();
|
28
|
+
before(() => {
|
29
|
+
cy.log('Navigating to multiple selection grid question type');
|
30
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
31
|
+
multipleSelectionGridPage.steps.expandAdditonalSettings();
|
32
|
+
});
|
33
|
+
|
34
|
+
multipleSelectionGridPage.tests.verifyStudentResponseAreaAndLayoutLabelAndCSS();
|
35
|
+
});
|
36
|
+
|
31
37
|
describe('Additional settings: Font size contents', () => {
|
32
38
|
abortEarlySetup();
|
33
39
|
before(() => {
|
@@ -15,17 +15,6 @@ describe('Create Item page - Multiple Selection Grid: Additional settings', () =
|
|
15
15
|
cy.loginAs('admin');
|
16
16
|
});
|
17
17
|
|
18
|
-
describe('Additional settings: Student response area and layout', () => {
|
19
|
-
abortEarlySetup();
|
20
|
-
before(() => {
|
21
|
-
cy.log('Navigating to multiple selection grid question type');
|
22
|
-
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
23
|
-
multipleSelectionGridPage.steps.expandAdditonalSettings();
|
24
|
-
});
|
25
|
-
|
26
|
-
multipleSelectionGridPage.tests.verifyStudentResponseAreaAndLayoutLabelAndCSS();
|
27
|
-
});
|
28
|
-
|
29
18
|
describe('Additional settings: Question stem numeration contents', () => {
|
30
19
|
abortEarlySetup();
|
31
20
|
before(() => {
|