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,341 @@
|
|
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
|
+
|
12
|
+
describe('Create Item page - Highlight: Text selection types in Set correct answer section', () => {
|
13
|
+
before(() => {
|
14
|
+
cy.loginAs('admin');
|
15
|
+
});
|
16
|
+
|
17
|
+
describe('Set Correct answer section: Any', () => {
|
18
|
+
abortEarlySetup();
|
19
|
+
before(() => {
|
20
|
+
cy.log('Navigating to Highlight question type');
|
21
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
22
|
+
cy.barsPreLoaderWait();
|
23
|
+
highlightPage.steps.clearQuestionInputField();
|
24
|
+
paragraphTextArray.forEach((paragraphText) => {
|
25
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
26
|
+
});
|
27
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
28
|
+
});
|
29
|
+
|
30
|
+
it('When \'Any\' text selection type is selected, then no options should be provided in set correct answer section', () => {
|
31
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerParagraphs(), 3);
|
32
|
+
utilities.verifyElementVisibilityState(highlightPage.setCorrectAnswerSpans(), 'notExist');
|
33
|
+
});
|
34
|
+
|
35
|
+
it('When user selects text in highlight options section, then that text should be provided as option in set correct answer section', () => {
|
36
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[0]);
|
37
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection([anySelectionArray[0]]);
|
38
|
+
});
|
39
|
+
|
40
|
+
it('When user deselects the option in highlight options section, then that text should not provided as option in set correct answer section', () => {
|
41
|
+
highlightPage.steps.clickOnOptionInHighlightOptionsSection(anySelectionArray[0]);
|
42
|
+
utilities.verifyElementVisibilityState(highlightPage.setCorrectAnswerOption(), 'notExist');
|
43
|
+
});
|
44
|
+
|
45
|
+
it('When the user hovers over the provided option in set correct answer section, then that option should be displayed in hover state', () => {
|
46
|
+
cy.log('Pre-step: Select an option in highlight options section');
|
47
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[0]);
|
48
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInSetCorrectAnswerSection(anySelectionArray[0]);
|
49
|
+
});
|
50
|
+
|
51
|
+
it('When user clicks on the provided option in set correct answer section, then the option should be selected ', () => {
|
52
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(anySelectionArray[0]);
|
53
|
+
});
|
54
|
+
|
55
|
+
it('When user clicks on the selected option, the option should then be deselected state', () => {
|
56
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(anySelectionArray[0]);
|
57
|
+
});
|
58
|
+
|
59
|
+
it('When all options are deselected, then error message \'Error: Please set a correct answer.\' should be displayed', () => {
|
60
|
+
utilities.verifyInnerText(highlightPage.setCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
|
61
|
+
});
|
62
|
+
|
63
|
+
it('CSS of error message', { tags: 'css' }, () => {
|
64
|
+
highlightPage.setCorrectAnswerErrorMessage()
|
65
|
+
.verifyCSS(css.color.errorText, css.fontSize.small, css.fontWeight.regular);
|
66
|
+
});
|
67
|
+
|
68
|
+
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
69
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerErrorMessage());
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When user clicks on a deselected option, then it should be selected and error message should disappear', () => {
|
73
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(anySelectionArray[0]);
|
74
|
+
});
|
75
|
+
|
76
|
+
it('CSS of the option in selected and deselected state in set correct answer section', { tags: 'css' }, () => {
|
77
|
+
cy.log('Pre-step: Adding option in highlight options section');
|
78
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[2]);
|
79
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(anySelectionArray[0]), {
|
80
|
+
'color': css.color.text,
|
81
|
+
'font-size': css.fontSize.default,
|
82
|
+
'font-weight': css.fontWeight.regular,
|
83
|
+
'background-color': css.color.figActiveComponentBg,
|
84
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
85
|
+
});
|
86
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(anySelectionArray[2]), {
|
87
|
+
'color': css.color.text,
|
88
|
+
'font-size': css.fontSize.default,
|
89
|
+
'font-weight': css.fontWeight.regular,
|
90
|
+
'background-color': css.color.defaultBackground
|
91
|
+
});
|
92
|
+
});
|
93
|
+
|
94
|
+
it('Accessibility of response options in set correct answer section', { tags: 'a11y' }, () => {
|
95
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerOption().parents('[class*="Highlightstyles__HighlightPreviewWrapper"] [data-testid="question-instruction-element"]'));
|
96
|
+
});
|
97
|
+
});
|
98
|
+
|
99
|
+
describe('Set Correct answer section: Paragraph', () => {
|
100
|
+
abortEarlySetup();
|
101
|
+
before(() => {
|
102
|
+
cy.log('Navigating to Highlight question type');
|
103
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
104
|
+
cy.barsPreLoaderWait();
|
105
|
+
highlightPage.steps.clearQuestionInputField();
|
106
|
+
paragraphTextArray.forEach((paragraphText) => {
|
107
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
108
|
+
});
|
109
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
110
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When \'Paragraph\' text selection type is selected, then the options should be provided as per the number of \'Paragraph\' in set correct answer section', () => {
|
114
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerParagraphs(), 3);
|
115
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerSpans(), 3);
|
116
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(paragraphTextArray);
|
117
|
+
});
|
118
|
+
|
119
|
+
it('By default, all the options in set correct answer section should be in deselected state', () => {
|
120
|
+
paragraphTextArray.forEach((paragraphText) => {
|
121
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(paragraphText);
|
122
|
+
})
|
123
|
+
});
|
124
|
+
|
125
|
+
it('When user deselects the option in highlight options section, then that text should not provided as option in set correct answer section', () => {
|
126
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Paragraph', paragraphTextArray[0]);
|
127
|
+
let setCorrectAnswerOptionArray = paragraphTextArray.slice(1);
|
128
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(setCorrectAnswerOptionArray);
|
129
|
+
});
|
130
|
+
|
131
|
+
it('When the user hovers over the provided option in set correct answer section, then that option should be displayed in hover state', () => {
|
132
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
133
|
+
});
|
134
|
+
|
135
|
+
it('When user clicks on the provided option in set correct answer section, then the option should be selected ', () => {
|
136
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
137
|
+
});
|
138
|
+
|
139
|
+
it('When user clicks on the selected option, the option should then be in deselected state', () => {
|
140
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
141
|
+
});
|
142
|
+
|
143
|
+
it('When all options are deselected, then error message \'Error: Please set a correct answer.\' should be displayed', () => {
|
144
|
+
utilities.verifyInnerText(highlightPage.setCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
|
145
|
+
});
|
146
|
+
|
147
|
+
it('CSS of error message', { tags: 'css' }, () => {
|
148
|
+
highlightPage.setCorrectAnswerErrorMessage()
|
149
|
+
.verifyCSS(css.color.errorText, css.fontSize.small, css.fontWeight.regular);
|
150
|
+
});
|
151
|
+
|
152
|
+
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
153
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerErrorMessage());
|
154
|
+
});
|
155
|
+
|
156
|
+
it('When user clicks on a deselected option, then it should be selected and error message should disappear', () => {
|
157
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
158
|
+
});
|
159
|
+
|
160
|
+
it('CSS of the option in selected and deselected state in set correct answer section', { tags: 'css' }, () => {
|
161
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(paragraphTextArray[2]), {
|
162
|
+
'color': css.color.text,
|
163
|
+
'font-size': css.fontSize.default,
|
164
|
+
'font-weight': css.fontWeight.regular,
|
165
|
+
'background-color': css.color.figActiveComponentBg,
|
166
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
167
|
+
});
|
168
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(paragraphTextArray[1]), {
|
169
|
+
'color': css.color.text,
|
170
|
+
'font-size': css.fontSize.default,
|
171
|
+
'font-weight': css.fontWeight.regular,
|
172
|
+
'background-color': css.color.defaultBackground
|
173
|
+
});
|
174
|
+
});
|
175
|
+
|
176
|
+
it('Accessibility of response options in set correct answer section', { tags: 'a11y' }, () => {
|
177
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerOption().parents('[class*="Highlightstyles__HighlightPreviewWrapper"] [data-testid="question-instruction-element"]'));
|
178
|
+
});
|
179
|
+
});
|
180
|
+
|
181
|
+
describe('Set Correct answer section: Sentence', () => {
|
182
|
+
abortEarlySetup();
|
183
|
+
before(() => {
|
184
|
+
cy.log('Navigating to Highlight question type');
|
185
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
186
|
+
cy.barsPreLoaderWait();
|
187
|
+
highlightPage.steps.clearQuestionInputField();
|
188
|
+
paragraphTextArray.forEach((paragraphText) => {
|
189
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
190
|
+
});
|
191
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
192
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Sentence');
|
193
|
+
});
|
194
|
+
|
195
|
+
it('When \'Sentence\' text selection type is selected, then the options should be provided as per the number of \'Sentence\' in set correct answer section', () => {
|
196
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerParagraphs(), 3);
|
197
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerSpans(), 4);
|
198
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInSetCorrectAnswerSection(0, 2);
|
199
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(sentenceTextArray);
|
200
|
+
});
|
201
|
+
|
202
|
+
it('By default, all the options in set correct answer section should be in deselected state', () => {
|
203
|
+
sentenceTextArray.forEach((sentenceText) => {
|
204
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(sentenceText);
|
205
|
+
});
|
206
|
+
});
|
207
|
+
|
208
|
+
it('When user deselects the option in highlight options section, then that text should not be provided as option in set correct answer section', () => {
|
209
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[0]);
|
210
|
+
let setCorrectAnswerOptionArray = sentenceTextArray.slice(1);
|
211
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(setCorrectAnswerOptionArray);
|
212
|
+
});
|
213
|
+
|
214
|
+
it('When the user hovers over the provided option in set correct answer section, then that option should be displayed in hover state', () => {
|
215
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInSetCorrectAnswerSection(sentenceTextArray[1]);
|
216
|
+
});
|
217
|
+
|
218
|
+
it('When user clicks on the provided option in set correct answer section, then the option should be selected ', () => {
|
219
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(sentenceTextArray[1]);
|
220
|
+
});
|
221
|
+
|
222
|
+
it('When user clicks on the selected option, the option should then be deselected state', () => {
|
223
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(sentenceTextArray[1]);
|
224
|
+
});
|
225
|
+
|
226
|
+
it('When all options are deselected, then error message \'Error: Please set a correct answer.\' should be displayed', () => {
|
227
|
+
utilities.verifyInnerText(highlightPage.setCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
|
228
|
+
});
|
229
|
+
|
230
|
+
it('CSS of error message', { tags: 'css' }, () => {
|
231
|
+
highlightPage.setCorrectAnswerErrorMessage()
|
232
|
+
.verifyCSS(css.color.errorText, css.fontSize.small, css.fontWeight.regular);
|
233
|
+
});
|
234
|
+
|
235
|
+
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
236
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerErrorMessage());
|
237
|
+
});
|
238
|
+
|
239
|
+
it('When user clicks on a deselected option, then it should be selected and error message should disappear', () => {
|
240
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(sentenceTextArray[2]);
|
241
|
+
});
|
242
|
+
|
243
|
+
it('CSS of the option in selected and deselected state in set correct answer section', { tags: 'css' }, () => {
|
244
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(sentenceTextArray[2]), {
|
245
|
+
'color': css.color.text,
|
246
|
+
'font-size': css.fontSize.default,
|
247
|
+
'font-weight': css.fontWeight.regular,
|
248
|
+
'background-color': css.color.figActiveComponentBg,
|
249
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
250
|
+
});
|
251
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(sentenceTextArray[1]), {
|
252
|
+
'color': css.color.text,
|
253
|
+
'font-size': css.fontSize.default,
|
254
|
+
'font-weight': css.fontWeight.regular,
|
255
|
+
'background-color': css.color.defaultBackground
|
256
|
+
});
|
257
|
+
});
|
258
|
+
|
259
|
+
it('Accessibility of response options in set correct answer section', { tags: 'a11y' }, () => {
|
260
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerOption().parents('[class*="Highlightstyles__HighlightPreviewWrapper"] [data-testid="question-instruction-element"]'));
|
261
|
+
});
|
262
|
+
});
|
263
|
+
|
264
|
+
describe('Set Correct answer section: Word', () => {
|
265
|
+
abortEarlySetup();
|
266
|
+
before(() => {
|
267
|
+
cy.log('Navigating to Highlight question type');
|
268
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
269
|
+
cy.barsPreLoaderWait();
|
270
|
+
highlightPage.steps.clearQuestionInputField();
|
271
|
+
paragraphTextArray.forEach((paragraphText) => {
|
272
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
273
|
+
});
|
274
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
275
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
276
|
+
});
|
277
|
+
|
278
|
+
it('When \'Sentence\' text selection type is selected, then the options should be provided as per the number of \'Word\' in set correct answer section', () => {
|
279
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerParagraphs(), 3);
|
280
|
+
utilities.verifyElementCount(highlightPage.setCorrectAnswerSpans(), 23);
|
281
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInSetCorrectAnswerSection(0, 11);
|
282
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInSetCorrectAnswerSection(1, 4);
|
283
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInSetCorrectAnswerSection(2, 8);
|
284
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(wordTextArray);
|
285
|
+
});
|
286
|
+
|
287
|
+
it('By default, all the options in set correct answer section should be in deselected state', () => {
|
288
|
+
wordTextArray.forEach((wordText) => {
|
289
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(wordText);
|
290
|
+
});
|
291
|
+
});
|
292
|
+
|
293
|
+
it('When user deselects the option in highlight options section, then that text should not be provided as option in set correct answer section', () => {
|
294
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Word', wordTextArray[0]);
|
295
|
+
let setCorrectAnswerOptionArray = wordTextArray.slice(1);
|
296
|
+
highlightPage.steps.verifyOptionsInSetCorrectAnswerSection(setCorrectAnswerOptionArray);
|
297
|
+
});
|
298
|
+
|
299
|
+
it('When the user hovers over the provided option in set correct answer section, then that option should be displayed in hover state', () => {
|
300
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInSetCorrectAnswerSection(wordTextArray[1]);
|
301
|
+
});
|
302
|
+
|
303
|
+
it('When user clicks on the provided option in set correct answer section, then the option should be selected ', () => {
|
304
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(wordTextArray[1]);
|
305
|
+
});
|
306
|
+
|
307
|
+
it('When user clicks on the selected option, the option should then be deselected state', () => {
|
308
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(wordTextArray[1]);
|
309
|
+
});
|
310
|
+
|
311
|
+
it('When all options are deselected, then error message \'Error: Please set a correct answer.\' should be displayed', () => {
|
312
|
+
utilities.verifyInnerText(highlightPage.setCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
|
313
|
+
});
|
314
|
+
|
315
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
316
|
+
|
317
|
+
it('When user clicks on a deselected option, then it should be selected and error message should disappear', () => {
|
318
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(wordTextArray[2]);
|
319
|
+
});
|
320
|
+
|
321
|
+
it('CSS of the option in selected and deselected state in set correct answer section', { tags: 'css' }, () => {
|
322
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(wordTextArray[2]), {
|
323
|
+
'color': css.color.text,
|
324
|
+
'font-size': css.fontSize.default,
|
325
|
+
'font-weight': css.fontWeight.regular,
|
326
|
+
'background-color': css.color.figActiveComponentBg,
|
327
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
328
|
+
});
|
329
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption().contains(wordTextArray[1]), {
|
330
|
+
'color': css.color.text,
|
331
|
+
'font-size': css.fontSize.default,
|
332
|
+
'font-weight': css.fontWeight.regular,
|
333
|
+
'background-color': css.color.defaultBackground
|
334
|
+
});
|
335
|
+
});
|
336
|
+
|
337
|
+
it('Accessibility of response options in set correct answer section', { tags: 'a11y' }, () => {
|
338
|
+
cy.checkAccessibility(highlightPage.setCorrectAnswerOption().parents('[class*="Highlightstyles__HighlightPreviewWrapper"] [data-testid="question-instruction-element"]'));
|
339
|
+
});
|
340
|
+
});
|
341
|
+
});
|