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,221 @@
|
|
1
|
+
import { highlightPage } from "../../../pages/highlightPage";
|
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 breath through their mouth. Cows can sleep standing up.', 'Dogs have excellent hearing.', 'Deers possess nearly 300 degree field of vision.'];
|
7
|
+
const fontSizeDropdownOptions = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
|
8
|
+
const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
9
|
+
|
10
|
+
describe('Create Item page - Highlight: Additional settings basic', () => {
|
11
|
+
before(() => {
|
12
|
+
cy.loginAs('admin');
|
13
|
+
});
|
14
|
+
|
15
|
+
describe('Additional Settings accordion', () => {
|
16
|
+
abortEarlySetup();
|
17
|
+
before(() => {
|
18
|
+
cy.log('Navigating to Highlight question type');
|
19
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
20
|
+
cy.barsPreLoaderWait();
|
21
|
+
});
|
22
|
+
|
23
|
+
highlightPage.tests.verifyAdditonalSettingsAccordionProperties();
|
24
|
+
});
|
25
|
+
|
26
|
+
describe('Additional settings: Font size contents', () => {
|
27
|
+
abortEarlySetup();
|
28
|
+
before(() => {
|
29
|
+
cy.log('Navigating to Highlight question type');
|
30
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
31
|
+
cy.barsPreLoaderWait();
|
32
|
+
highlightPage.steps.expandAdditonalSettings();
|
33
|
+
});
|
34
|
+
|
35
|
+
highlightPage.tests.verifyFontSizeSectionContents();
|
36
|
+
});
|
37
|
+
|
38
|
+
describe('Additional settings: Font size contents set correct answer section', () => {
|
39
|
+
abortEarlySetup();
|
40
|
+
before(() => {
|
41
|
+
cy.log('Navigating to Highlight question type');
|
42
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
43
|
+
cy.barsPreLoaderWait();
|
44
|
+
highlightPage.steps.addQuestionInstructions();
|
45
|
+
highlightPage.steps.clearQuestionInputField();
|
46
|
+
paragraphTextArray.forEach((paragraphText) => {
|
47
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
48
|
+
});
|
49
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
50
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
51
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
52
|
+
highlightPage.steps.allotPoints(20);
|
53
|
+
highlightPage.steps.expandAdditonalSettings();
|
54
|
+
});
|
55
|
+
|
56
|
+
fontSizeDropdownOptions.forEach((option, fontsIndex) => {
|
57
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the set correct answer section should be changed to ${option}`, () => {
|
58
|
+
highlightPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
|
59
|
+
utilities.verifyInnerText(highlightPage.fontSizeDropdown(), `${option}`);
|
60
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption(), {
|
61
|
+
'font-size': fontSizes[fontsIndex]
|
62
|
+
});
|
63
|
+
});
|
64
|
+
});
|
65
|
+
});
|
66
|
+
|
67
|
+
describe('Additional settings: Font size contents preview tab section', () => {
|
68
|
+
abortEarlySetup();
|
69
|
+
before(() => {
|
70
|
+
cy.log('Navigating to Highlight question type');
|
71
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
72
|
+
cy.barsPreLoaderWait();
|
73
|
+
highlightPage.steps.addQuestionInstructions();
|
74
|
+
highlightPage.steps.clearQuestionInputField();
|
75
|
+
paragraphTextArray.forEach((paragraphText) => {
|
76
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
77
|
+
});
|
78
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
79
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
80
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
81
|
+
highlightPage.steps.allotPoints(20);
|
82
|
+
highlightPage.steps.expandAdditonalSettings();
|
83
|
+
});
|
84
|
+
|
85
|
+
fontSizeDropdownOptions.forEach((option, fontsIndex) => {
|
86
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should be changed to ${option}`, () => {
|
87
|
+
highlightPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
|
88
|
+
utilities.verifyInnerText(highlightPage.fontSizeDropdown(), `${option}`)
|
89
|
+
highlightPage.steps.switchToPreviewTab();
|
90
|
+
utilities.verifyCSS(highlightPage.questionInstructionsText(), {
|
91
|
+
'font-size': fontSizes[fontsIndex]
|
92
|
+
});
|
93
|
+
utilities.verifyCSS(highlightPage.previewTabOption(), {
|
94
|
+
'font-size': fontSizes[fontsIndex]
|
95
|
+
});
|
96
|
+
highlightPage.steps.switchToEditTab();
|
97
|
+
});
|
98
|
+
});
|
99
|
+
});
|
100
|
+
|
101
|
+
describe('Additional settings: Check answer', () => {
|
102
|
+
abortEarlySetup();
|
103
|
+
before(() => {
|
104
|
+
cy.log('Navigating to Highlight question type');
|
105
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
106
|
+
cy.barsPreLoaderWait();
|
107
|
+
highlightPage.steps.clearQuestionInputField();
|
108
|
+
paragraphTextArray.forEach((paragraphText) => {
|
109
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
110
|
+
});
|
111
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
112
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
113
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
114
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
115
|
+
highlightPage.steps.allotPoints(10);
|
116
|
+
highlightPage.steps.expandAdditonalSettings();
|
117
|
+
});
|
118
|
+
|
119
|
+
highlightPage.tests.verifyCheckAnswerSectionAndPreviewTabCheckAnswerButton();
|
120
|
+
});
|
121
|
+
|
122
|
+
describe('Additional settings: Check answer functionality', () => {
|
123
|
+
abortEarlySetup();
|
124
|
+
before(() => {
|
125
|
+
cy.log('Navigating to Highlight question type');
|
126
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
127
|
+
cy.barsPreLoaderWait();
|
128
|
+
highlightPage.steps.clearQuestionInputField();
|
129
|
+
paragraphTextArray.forEach((paragraphText) => {
|
130
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
131
|
+
});
|
132
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
133
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
134
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
135
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
136
|
+
highlightPage.steps.allotPoints(10);
|
137
|
+
highlightPage.steps.expandAdditonalSettings();
|
138
|
+
highlightPage.steps.setMaximumCheckAnswerAttempts(2);
|
139
|
+
highlightPage.steps.switchToPreviewTab();
|
140
|
+
});
|
141
|
+
|
142
|
+
highlightPage.tests.verifyCheckAnswerButtonFunctionalityWhenQuestionIsUnattempted();
|
143
|
+
|
144
|
+
it('When user attempts the question partially correct then on clicking on the Check Answer button, green check-mark icons should be displayed beside the correctly attempted options, red cross-mark icons should be displayed beside the incorrectly attempted options, a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
145
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
146
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
147
|
+
highlightPage.steps.checkAnswer();
|
148
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
149
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
150
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
151
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
152
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
153
|
+
});
|
154
|
+
|
155
|
+
it('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed beside the correctly attempted options, a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
156
|
+
highlightPage.steps.deselectOptionInPreviewTab(paragraphTextArray[2]);
|
157
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
158
|
+
highlightPage.steps.checkAnswer();
|
159
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
160
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
161
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
162
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
163
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
164
|
+
});
|
165
|
+
|
166
|
+
highlightPage.tests.verifyDisabledCheckAnswerButtonWithCSSAnda11y();
|
167
|
+
|
168
|
+
it('When the user updates the value of Maximum check answer attempts input field, it should get reflected on the Preview tab', () => {
|
169
|
+
highlightPage.steps.switchToEditTab();
|
170
|
+
highlightPage.steps.clearMaximumCheckAnswerAttemptsInputField();
|
171
|
+
highlightPage.steps.addInputToMaximumCheckAnswerAttemptsInputField(1);
|
172
|
+
highlightPage.steps.switchToPreviewTab();
|
173
|
+
highlightPage.steps.verifyCheckAnswerButtonEnabled();
|
174
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
175
|
+
highlightPage.steps.checkAnswer();
|
176
|
+
highlightPage.steps.verifyCheckAnswerButtonDisabled();
|
177
|
+
});
|
178
|
+
|
179
|
+
it('When the \'Maximum check answer attempts\' input field has value \'0\' and user switches to Preview tab, then the \'Check Answer\' button should be enabled and user should be able to check answer multiple times', () => {
|
180
|
+
highlightPage.steps.switchToEditTab();
|
181
|
+
highlightPage.steps.clearMaximumCheckAnswerAttemptsInputField();
|
182
|
+
highlightPage.steps.addInputToMaximumCheckAnswerAttemptsInputField(0);
|
183
|
+
cy.log('Switching to Preview tab')
|
184
|
+
highlightPage.steps.switchToPreviewTab();
|
185
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
186
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
187
|
+
highlightPage.steps.checkAnswer();
|
188
|
+
highlightPage.steps.verifyCheckAnswerButtonEnabled();
|
189
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
190
|
+
highlightPage.steps.deselectOptionInPreviewTab(paragraphTextArray[1]);
|
191
|
+
highlightPage.steps.checkAnswer();
|
192
|
+
highlightPage.steps.verifyCheckAnswerButtonEnabled();
|
193
|
+
});
|
194
|
+
|
195
|
+
it('When the \'Maximum check answer attempts\' input field is empty and user switches to Preview tab, then the \'Check Answer\' button should be enabled and user should be able to check answer multiple times', () => {
|
196
|
+
highlightPage.steps.switchToEditTab();
|
197
|
+
highlightPage.steps.clearMaximumCheckAnswerAttemptsInputField()
|
198
|
+
highlightPage.steps.switchToPreviewTab();
|
199
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
200
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
201
|
+
highlightPage.steps.checkAnswer();
|
202
|
+
highlightPage.steps.verifyCheckAnswerButtonEnabled();
|
203
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
204
|
+
highlightPage.steps.deselectOptionInPreviewTab(paragraphTextArray[1]);
|
205
|
+
highlightPage.steps.checkAnswer();
|
206
|
+
highlightPage.steps.verifyCheckAnswerButtonEnabled();
|
207
|
+
});
|
208
|
+
});
|
209
|
+
|
210
|
+
describe('Additional Settings: Details section', () => {
|
211
|
+
abortEarlySetup();
|
212
|
+
before(() => {
|
213
|
+
cy.log('Navigating to Highlight question type');
|
214
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
215
|
+
cy.barsPreLoaderWait();
|
216
|
+
highlightPage.steps.expandAdditonalSettings();
|
217
|
+
});
|
218
|
+
|
219
|
+
highlightPage.tests.verifyDetailsSection();
|
220
|
+
});
|
221
|
+
});
|
@@ -0,0 +1,137 @@
|
|
1
|
+
import { highlightPage } from "../../../pages/highlightPage";
|
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 breath through their mouth. Cows can sleep standing up.', 'Dogs have excellent hearing.', 'Deers possess nearly 300 degree field of vision.'];
|
7
|
+
const fontSizeDropdownOptions = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
|
8
|
+
const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
9
|
+
|
10
|
+
describe('Create Item page - Highlight: Additional settings - Maximum number of answers', () => {
|
11
|
+
before(() => {
|
12
|
+
cy.loginAs('admin');
|
13
|
+
});
|
14
|
+
|
15
|
+
describe('Additional settings: Student response area and layout', () => {
|
16
|
+
abortEarlySetup();
|
17
|
+
before(() => {
|
18
|
+
cy.log('Navigating to Highlight question type');
|
19
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
20
|
+
cy.barsPreLoaderWait();
|
21
|
+
highlightPage.steps.expandAdditonalSettings();
|
22
|
+
});
|
23
|
+
|
24
|
+
highlightPage.tests.verifyStudentResponseAreaAndLayoutLabelAndCSS();
|
25
|
+
//Note: a11y covered in verifyAdditonalSettingsAccordionProperties
|
26
|
+
});
|
27
|
+
|
28
|
+
describe('Additional settings: \'Maximum number of answers\' contents', () => {
|
29
|
+
abortEarlySetup();
|
30
|
+
before(() => {
|
31
|
+
cy.log('Navigating to Highlight question type');
|
32
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
33
|
+
cy.barsPreLoaderWait();
|
34
|
+
highlightPage.steps.expandAdditonalSettings();
|
35
|
+
});
|
36
|
+
|
37
|
+
it('CSS of \'Maximum number of answers\' label and input field', { tags: 'css' }, () => {
|
38
|
+
utilities.verifyCSS(highlightPage.maximumNumberOfAnswersLabel(), {
|
39
|
+
'color': css.color.labels,
|
40
|
+
'font-size': css.fontSize.normal,
|
41
|
+
'font-weight': css.fontWeight.semibold
|
42
|
+
})
|
43
|
+
utilities.verifyCSS(highlightPage.maximumAnswersInputField(), {
|
44
|
+
'background-color': css.color.transparent,
|
45
|
+
})
|
46
|
+
});
|
47
|
+
|
48
|
+
//Note: Note: a11y is covered for the entire additional settings section
|
49
|
+
|
50
|
+
it('\'Maximum number of answers\' label and input field should be displayed and input field should be empty', () => {
|
51
|
+
utilities.verifyInnerText(highlightPage.maximumNumberOfAnswersLabel(), 'Maximum number of answers');
|
52
|
+
utilities.verifyElementVisibilityState(highlightPage.maximumAnswersInputField(), 'visible');
|
53
|
+
utilities.verifyInnerText(highlightPage.maximumAnswersInputField(), '');
|
54
|
+
});
|
55
|
+
});
|
56
|
+
|
57
|
+
describe('Additional settings: \'Maximum number of answers\' functionality in set correct answer section', () => {
|
58
|
+
abortEarlySetup();
|
59
|
+
before(() => {
|
60
|
+
cy.log('Navigating to Highlight question type');
|
61
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
62
|
+
cy.barsPreLoaderWait();
|
63
|
+
highlightPage.steps.clearQuestionInputField();
|
64
|
+
paragraphTextArray.forEach((paragraphText) => {
|
65
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
66
|
+
});
|
67
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
68
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
69
|
+
highlightPage.steps.expandAdditonalSettings();
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When \'Maximum number of answers\' input field is kept blank, then user should be able to set any number of options as correct answer', () => {
|
73
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
74
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
75
|
+
});
|
76
|
+
|
77
|
+
it('When \'0\' is given as input in \'Maximum number of answers\' input field, then user should be able to set any number of options as correct answer', () => {
|
78
|
+
cy.log('Pre-step: Deselect all selected options in set correct answer section')
|
79
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
80
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
81
|
+
highlightPage.steps.addInputToMaximumNumberOfAnswersInputField(0);
|
82
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
83
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
84
|
+
});
|
85
|
+
|
86
|
+
it('When \'1\' is given as input in \'Maximum number of answers\' input field, then user should be able to set only 1 option as correct answer and upon clicking on more number of options, they should not be selected', () => {
|
87
|
+
cy.log('Pre-step: Deselect all previously selected options in set correct answer section')
|
88
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
89
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
90
|
+
highlightPage.steps.addInputToMaximumNumberOfAnswersInputField(1);
|
91
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
92
|
+
highlightPage.steps.clickOnOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
93
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(paragraphTextArray[1]);
|
94
|
+
});
|
95
|
+
});
|
96
|
+
|
97
|
+
describe('Additional settings: \'Maximum number of answers\' functionality in preview tab', () => {
|
98
|
+
abortEarlySetup();
|
99
|
+
before(() => {
|
100
|
+
cy.log('Navigating to Highlight question type');
|
101
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
102
|
+
cy.barsPreLoaderWait();
|
103
|
+
highlightPage.steps.clearQuestionInputField();
|
104
|
+
paragraphTextArray.forEach((paragraphText) => {
|
105
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
106
|
+
});
|
107
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
108
|
+
highlightPage.steps.expandAdditonalSettings();
|
109
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
110
|
+
highlightPage.steps.switchToPreviewTab();
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When \'Maximum number of answers\' input field is kept blank, then user should be select any number of options in preview tab', () => {
|
114
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
115
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
116
|
+
});
|
117
|
+
|
118
|
+
it('When \'0\' is given as input in \'Maximum number of answers\' input field, then user should be select any number of options in preview tab', () => {
|
119
|
+
cy.log('Switch to edit tab and give \'0\' as input in maximum number of answers input field')
|
120
|
+
highlightPage.steps.switchToEditTab();
|
121
|
+
highlightPage.steps.addInputToMaximumNumberOfAnswersInputField(0);
|
122
|
+
highlightPage.steps.switchToPreviewTab();
|
123
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
124
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
125
|
+
});
|
126
|
+
|
127
|
+
it('When \'1\' is given as input in \'Maximum number of answers\' input field, then user should be able to select only 1 option in preview tab and upon clicking on more number of options, they should not be selected', () => {
|
128
|
+
cy.log('Switch to edit tab and give \'1\' as input in maximum number of answers input field')
|
129
|
+
highlightPage.steps.switchToEditTab();
|
130
|
+
highlightPage.steps.addInputToMaximumNumberOfAnswersInputField(1);
|
131
|
+
highlightPage.steps.switchToPreviewTab();
|
132
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
133
|
+
highlightPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[1]);
|
134
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
135
|
+
});
|
136
|
+
});
|
137
|
+
});
|