itemengine-cypress-automation 1.0.51 → 1.0.62
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/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsStudentResponseAndLayout.js +206 -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
@@ -0,0 +1,316 @@
|
|
1
|
+
import { highlightPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water.', 'As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology.', 'Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
5
|
+
|
6
|
+
describe('Create item page - Highlight: Preview tab scoring section - Partial different weights scoring with alternate answer', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question preview: AutoScored - Partial different weights with alternate answer: When alternate answer points are more than correct answer points', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to Highlight question type');
|
15
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
highlightPage.steps.clearQuestionInputField();
|
18
|
+
paragraphTextArray.forEach((paragraphText) => {
|
19
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
20
|
+
});
|
21
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
22
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
23
|
+
highlightPage.steps.selectPartialDifferentWeightsCheckbox();
|
24
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
25
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
26
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
27
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['5', '4', '2']);
|
28
|
+
highlightPage.steps.clickOnAddAlternateAnswerButton();
|
29
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
30
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[3]);
|
31
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[4]);
|
32
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['4', '9', '3']);
|
33
|
+
highlightPage.steps.uncheckRoundDownScoreCheckbox();
|
34
|
+
highlightPage.steps.expandAdditonalSettings();
|
35
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
36
|
+
highlightPage.steps.switchToPreviewTab();
|
37
|
+
});
|
38
|
+
|
39
|
+
it('The points displayed should be equal to alternate answer points', () => {
|
40
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 16);
|
41
|
+
});
|
42
|
+
|
43
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-marks should be displayed beside the correct answer options from the alternate tab', () => {
|
44
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
45
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
46
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
47
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
48
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
49
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
50
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
51
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
52
|
+
cy.log('Post step: Unchecking the show correct answer checkbox')
|
53
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox();
|
54
|
+
});
|
55
|
+
|
56
|
+
it('When the user attempts the question according to the correct tab then user should be awarded with points of the correct tab(less than full points) and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed besides the correctly answered options from the correct tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
57
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
58
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
59
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
60
|
+
highlightPage.steps.verifyPreviewTabScoreText(11, 16);
|
61
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
62
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
63
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
64
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
65
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
66
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
67
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
68
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
69
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
70
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
71
|
+
|
72
|
+
cy.log('When the user attempts the question according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed besides the correctly answered options from the correct tab and correct/incorrect answer label and border should not be displayed below the question preview')
|
73
|
+
highlightPage.steps.checkAnswer();
|
74
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
75
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
76
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
77
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
78
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
79
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
80
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
81
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
82
|
+
});
|
83
|
+
|
84
|
+
it('When the user attempts the question according to the alternate tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed besides the correctly answered options from the alternate tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
85
|
+
highlightPage.steps.resetQuestionPreview();
|
86
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
87
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
88
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
|
89
|
+
highlightPage.steps.verifyPreviewTabScoreText(16, 16);
|
90
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
91
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
92
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
93
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
94
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
95
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
96
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
97
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
98
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
99
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
100
|
+
|
101
|
+
cy.log('When the user attempts the question according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed besides the correctly answered options from the alternate tab and correct/incorrect answer label and border should not be displayed below the question preview')
|
102
|
+
highlightPage.steps.checkAnswer();
|
103
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
104
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
105
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
106
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
107
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
108
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
109
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
110
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When the user attempts the question partially correct exclusively according to the correct tab then points of the correctly attempted options should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the correct options from the alternate tab and correctly answered options from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
114
|
+
highlightPage.steps.resetQuestionPreview();
|
115
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
116
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
117
|
+
highlightPage.steps.verifyPreviewTabScoreText(5, 16);
|
118
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
119
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
120
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
121
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
122
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
123
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
124
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
|
125
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
126
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
127
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
128
|
+
|
129
|
+
cy.log('When the user attempts the question partially correct exclusively according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the correctly attempted options from the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
|
130
|
+
highlightPage.steps.checkAnswer()
|
131
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
132
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
133
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
134
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
135
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
136
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
|
137
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
138
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
139
|
+
});
|
140
|
+
|
141
|
+
it('When the user attempts the question partially correct exclusively according to the alternate tab then points of the correctly attempted options should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the correct options from the alternate tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
142
|
+
highlightPage.steps.resetQuestionPreview();
|
143
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
144
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
145
|
+
highlightPage.steps.verifyPreviewTabScoreText(9, 16);
|
146
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
147
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
148
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
149
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
150
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
151
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
152
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
|
153
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
154
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
155
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
156
|
+
|
157
|
+
cy.log('When the user attempts the question partially correct exclusively according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the correctly attempted option from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
|
158
|
+
highlightPage.steps.checkAnswer()
|
159
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
160
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
161
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
162
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
163
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
164
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
|
165
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
166
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
167
|
+
});
|
168
|
+
|
169
|
+
it('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then user should be awarded with points of the option having more points i.e. in this case alternate tab\'s option and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct options from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
170
|
+
highlightPage.steps.resetQuestionPreview();
|
171
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
172
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
173
|
+
highlightPage.steps.verifyPreviewTabScoreText(9, 16);
|
174
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
175
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
|
176
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
177
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
178
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
179
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
180
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
181
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
182
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
183
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
184
|
+
|
185
|
+
cy.log('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the correctly attempted options from the alternate tab red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
|
186
|
+
highlightPage.steps.checkAnswer()
|
187
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
|
188
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
189
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
190
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
191
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
192
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
193
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
194
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
195
|
+
});
|
196
|
+
|
197
|
+
it('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then user should be awarded with points of the option having more points i.e. in this case correct tab\'s option and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct options from the correct tab and correctly marked options from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
198
|
+
highlightPage.steps.resetQuestionPreview();
|
199
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
200
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
|
201
|
+
highlightPage.steps.verifyPreviewTabScoreText(4, 16);
|
202
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
203
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
204
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
205
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
206
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
207
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[4]);
|
208
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
209
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
210
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
211
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
212
|
+
|
213
|
+
cy.log('When the user attempts the question partially correct with equal number of options from the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the correctly attempted options from the correct tab red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
|
214
|
+
highlightPage.steps.checkAnswer()
|
215
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
216
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
217
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
218
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
219
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[4]);
|
220
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
221
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
222
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
223
|
+
});
|
224
|
+
|
225
|
+
it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with the points of the tab in which the common option has greater number of points i.e. in this case alternate tab and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and alternate tab options and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
226
|
+
highlightPage.steps.resetQuestionPreview();
|
227
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
228
|
+
highlightPage.steps.verifyPreviewTabScoreText(4, 16);
|
229
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
230
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
231
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
232
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
233
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
234
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
235
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
236
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
237
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
238
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
239
|
+
|
240
|
+
cy.log('Race condition:When the user attempts the question with the common option between correct tab and alternate tab then on selecting the \'Check answer\' button the green check-mark icon should be displayed beside the common option and correct/incorrect answer label and border should not be displayed below the question preview')
|
241
|
+
highlightPage.steps.checkAnswer();
|
242
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
243
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
244
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
245
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
246
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
247
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
248
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
249
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
250
|
+
});
|
251
|
+
|
252
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be beside incorrectly answered options, green check-marks should be displayed beside correct answer options from the alternate tab and correct/incorrect answer label and border should not be displayed below the question preview', () => {
|
253
|
+
highlightPage.steps.resetQuestionPreview();
|
254
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
255
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 16);
|
256
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
257
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
258
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
259
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
260
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
261
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
262
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
|
263
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
264
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
265
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
266
|
+
|
267
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be beside incorrectly answered options and correct/incorrect answer label and border should not be displayed below the question preview')
|
268
|
+
highlightPage.steps.checkAnswer();
|
269
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
270
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
271
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
272
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
273
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
274
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[5]);
|
275
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
276
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
277
|
+
});
|
278
|
+
|
279
|
+
it('Overachiever case: When the user attempts the question with more number of correct options from the alternate tab than the correct tab but the score of the individual response selected from the correct tab overpowers the combined score of the alternate tab answers then green check-mark icons should be displayed for the correct tab option, red cross-mark icon should be displayed for the alternate tab options and points awarded should be of the alternate tab, and correct/incorrect answer label and its border should not be displayed', () => {
|
280
|
+
cy.log('(Overachiever case) Pre-step: Switching to Edit tab and allotting points to correct and alternate tab such that the difference between the points is substantial and the points per response are in decimal')
|
281
|
+
highlightPage.steps.switchToEditTab();
|
282
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
283
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[5]);
|
284
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['12.5', '14.5', '17.5']);
|
285
|
+
highlightPage.steps.navigateToCorrectTab();
|
286
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['30.5', '5.5', '6.5']);
|
287
|
+
highlightPage.steps.switchToPreviewTab();
|
288
|
+
|
289
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
290
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
291
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
|
292
|
+
highlightPage.steps.verifyPreviewTabScoreText(30.5, 44.5);
|
293
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
294
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
295
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
296
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
297
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
298
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[4]);
|
299
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
300
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
301
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
302
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
303
|
+
|
304
|
+
cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green check-mark icons should be displayed for the correct tab option, red cross-mark icon should be displayed for the alternate tab options and correct/incorrect answer label and its border should not be displayed')
|
305
|
+
highlightPage.steps.checkAnswer();
|
306
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
307
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
308
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
309
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
310
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[4]);
|
311
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
312
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
313
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
314
|
+
});
|
315
|
+
});
|
316
|
+
});
|