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 correct answer points are more than alternate 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(['9', '3', '4']);
|
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(['2', '5', '4']);
|
33
|
+
highlightPage.steps.uncheckRoundDownScoreCheckbox();
|
34
|
+
highlightPage.steps.expandAdditonalSettings();
|
35
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
36
|
+
highlightPage.steps.switchToPreviewTab();
|
37
|
+
});
|
38
|
+
|
39
|
+
it('The total points for the question should be equal to the tab with more points i.e. in this case correct tab', () => {
|
40
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 16);
|
41
|
+
});
|
42
|
+
|
43
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question then, 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 correct tab', () => {
|
44
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
45
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
46
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
47
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
48
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
49
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
50
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(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 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(16, 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 points of the alternate 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 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(11, 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 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', () => {
|
114
|
+
highlightPage.steps.resetQuestionPreview();
|
115
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
116
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
117
|
+
highlightPage.steps.verifyPreviewTabScoreText(9, 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 correct tab and correctly answered 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', () => {
|
142
|
+
highlightPage.steps.resetQuestionPreview();
|
143
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
144
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
145
|
+
highlightPage.steps.verifyPreviewTabScoreText(5, 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 option 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 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, 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.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
176
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
177
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
178
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
179
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(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 form 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')
|
186
|
+
highlightPage.steps.checkAnswer()
|
187
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
188
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
189
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
190
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(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 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 correct tab and correctly marked 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', () => {
|
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.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
204
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
|
205
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
206
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
207
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(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 form 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')
|
214
|
+
highlightPage.steps.checkAnswer()
|
215
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
216
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
|
217
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
218
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
219
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(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 correct tab and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and correct 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.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
231
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
232
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
233
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
234
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(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 correct 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.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
258
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
259
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
260
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
261
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(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 correct tab than the alternate tab but the score of the individual response selected from the alternate tab overpowers the combined score of the correct tab answers then on selecting \'Show correct answer\' checkbox, green check-mark icons should be displayed for the alternate tab options, red cross-mark icon should be displayed for the correct tab option and points awarded should be of the correct 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(['30.5', '5.5', '6.5']);
|
285
|
+
highlightPage.steps.navigateToCorrectTab();
|
286
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['12.5', '14.5', '17.5']);
|
287
|
+
highlightPage.steps.switchToPreviewTab();
|
288
|
+
|
289
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
290
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
291
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
292
|
+
highlightPage.steps.verifyPreviewTabScoreText(30.5, 44.5);
|
293
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
294
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
|
295
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
|
296
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
297
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
298
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[4]);
|
299
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(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 alternate tab option, red cross-mark icon should be displayed for the correct tab option and correct/incorrect answer label and its border should not be displayed')
|
305
|
+
highlightPage.steps.checkAnswer();
|
306
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[0]);
|
307
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[1]);
|
308
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
309
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[3]);
|
310
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[4]);
|
311
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[5]);
|
312
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
313
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
314
|
+
});
|
315
|
+
});
|
316
|
+
});
|
@@ -0,0 +1,245 @@
|
|
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', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question preview: AutoScored - Partial different weights', () => {
|
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.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
24
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
25
|
+
highlightPage.steps.selectPartialDifferentWeightsCheckbox();
|
26
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['14.2', '5.8']);
|
27
|
+
highlightPage.steps.uncheckRoundDownScoreCheckbox();
|
28
|
+
highlightPage.steps.expandAdditonalSettings();
|
29
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
highlightPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
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-mark icon should be displayed besides the highlighted option', () => {
|
34
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
35
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
36
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
37
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
38
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
39
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
40
|
+
});
|
41
|
+
|
42
|
+
it('When user selects \'Check answer\' button without attempting the question, correct/incorrect label and border should not be displayed below and check-mark or cross-mark should not be displayed for any option', () => {
|
43
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
44
|
+
highlightPage.steps.checkAnswer();
|
45
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
46
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
47
|
+
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
48
|
+
});
|
49
|
+
|
50
|
+
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 displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-mark should be displayed besides correct answers', () => {
|
51
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
52
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
53
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
54
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
55
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
56
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
57
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
58
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
59
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
60
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
61
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
62
|
+
|
63
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-marks should not be displayed besides correct answer options');
|
64
|
+
highlightPage.steps.checkAnswer();
|
65
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
66
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
67
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
68
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
69
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
70
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
71
|
+
});
|
72
|
+
|
73
|
+
it('When user attempts the question partially correct without incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
74
|
+
highlightPage.steps.resetQuestionPreview();
|
75
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
76
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
77
|
+
highlightPage.steps.verifyPreviewTabScoreText(14.2, 20);
|
78
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
79
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
80
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
81
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
82
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
83
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
84
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
85
|
+
|
86
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview');
|
87
|
+
highlightPage.steps.checkAnswer();
|
88
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
89
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
90
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
91
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
92
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
93
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
94
|
+
});
|
95
|
+
|
96
|
+
it('When user attempts the question partially correct with incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
97
|
+
highlightPage.steps.resetQuestionPreview();
|
98
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
99
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
100
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
101
|
+
highlightPage.steps.verifyPreviewTabScoreText(14.2, 20);
|
102
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
103
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
104
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
105
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
106
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
107
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
108
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
109
|
+
|
110
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
111
|
+
highlightPage.steps.checkAnswer();
|
112
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
113
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
114
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
115
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
116
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
117
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
118
|
+
});
|
119
|
+
|
120
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
121
|
+
highlightPage.steps.resetQuestionPreview();
|
122
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
123
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
124
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
125
|
+
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
126
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
127
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
128
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
129
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
130
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
131
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
132
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
133
|
+
|
134
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview')
|
135
|
+
highlightPage.steps.checkAnswer();
|
136
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
137
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
138
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
139
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
140
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
141
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
142
|
+
});
|
143
|
+
|
144
|
+
it('When user has provided minimum score awarded (if attempted) points, then in Preview tab on entering incorrect answer, minimum score should be provided for the question', () => {
|
145
|
+
cy.log('Switch to edit tab and set minimum score if attempted points')
|
146
|
+
highlightPage.steps.switchToEditTab();
|
147
|
+
highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);
|
148
|
+
highlightPage.steps.switchToPreviewTab()
|
149
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
150
|
+
highlightPage.steps.verifyPreviewTabScoreText(1, 20);
|
151
|
+
});
|
152
|
+
|
153
|
+
it('When user removes minimum score awarded (if attempted) points, then in Preview tab on selecting any options other than correct answers, points should not be provided', () => {
|
154
|
+
cy.log('Switch to edit tab and remove minimum score if attempted points')
|
155
|
+
highlightPage.steps.switchToEditTab();
|
156
|
+
highlightPage.steps.clearMinimumScoreIfAttemptedPointsField();
|
157
|
+
highlightPage.steps.switchToPreviewTab()
|
158
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
159
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
160
|
+
});
|
161
|
+
|
162
|
+
it('When user has defined penalty points', () => {
|
163
|
+
cy.log('Pre-step: Switch to edit tab and set penalty points');
|
164
|
+
highlightPage.steps.switchToEditTab();
|
165
|
+
highlightPage.steps.allotPenaltyPoints(3);
|
166
|
+
|
167
|
+
cy.log('After switching to preview tab, when user adds an incorrect answer input, then 0 points should be awarded(no negative points)');
|
168
|
+
highlightPage.steps.switchToPreviewTab();
|
169
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
170
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
171
|
+
|
172
|
+
cy.log('When user adds a partially correct answer input, the points should be updated accordingly with deducted penalty points');
|
173
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
174
|
+
highlightPage.steps.verifyPreviewTabScoreText(11.2, 20);
|
175
|
+
});
|
176
|
+
|
177
|
+
it('When user has defined both penalty points and minimum score awarded (if attempted) points', () => {
|
178
|
+
cy.log('Pre-step: Switch to edit tab and set minimum score awarded (if attempted) points');
|
179
|
+
highlightPage.steps.switchToEditTab();
|
180
|
+
highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);
|
181
|
+
|
182
|
+
cy.log('Switch to preview tab and give incorrect answer input to check that minimum points are displayed');
|
183
|
+
highlightPage.steps.switchToPreviewTab();
|
184
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
185
|
+
highlightPage.steps.verifyPreviewTabScoreText(1, 20);
|
186
|
+
|
187
|
+
cy.log('When user adds a partially correct answer such that the points of the attempt(with penalty points deducted) is more than the minimum score awarded(if attempted) points');
|
188
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
189
|
+
highlightPage.steps.verifyPreviewTabScoreText(11.2, 20);
|
190
|
+
|
191
|
+
cy.log('When user switches to edit tab and increases the minimum score awarded (if attempted) points to check the case for an attempt in which points of the attempt is less than minimum score awarded (if attempted) points, then the minimum score awarded (if attempted) points should be displayed to the user');
|
192
|
+
highlightPage.steps.switchToEditTab();
|
193
|
+
highlightPage.steps.clearMinimumScoreIfAttemptedPointsField()
|
194
|
+
highlightPage.steps.allotMinimumScoreAwardedIfAttempted(12);
|
195
|
+
cy.log('Switching to preview tab');
|
196
|
+
highlightPage.steps.switchToPreviewTab();
|
197
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
198
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
|
199
|
+
highlightPage.steps.verifyPreviewTabScoreText(12, 20);
|
200
|
+
});
|
201
|
+
});
|
202
|
+
|
203
|
+
describe('Partial different weights: Round down score', () => {
|
204
|
+
abortEarlySetup();
|
205
|
+
before(() => {
|
206
|
+
cy.log('Navigating to Highlight question type');
|
207
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
208
|
+
cy.barsPreLoaderWait();
|
209
|
+
highlightPage.steps.clearQuestionInputField();
|
210
|
+
paragraphTextArray.forEach((paragraphText) => {
|
211
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
212
|
+
});
|
213
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
214
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
215
|
+
highlightPage.steps.selectPartialDifferentWeightsCheckbox();
|
216
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
217
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
218
|
+
highlightPage.steps.addPartialDifferentWeightsPointsInSetPointsPopup(['6.2', '8.3']);
|
219
|
+
highlightPage.steps.expandAdditonalSettings();
|
220
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
221
|
+
highlightPage.steps.switchToPreviewTab();
|
222
|
+
});
|
223
|
+
|
224
|
+
it('When the \'Round down score\' checkbox is selected, then in Preview tab when user enters partially or fully correct answers responses the score displayed should be rounded down to the nearest whole number', () => {
|
225
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
226
|
+
highlightPage.steps.verifyPreviewTabScoreText(6, 14.5);
|
227
|
+
highlightPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
228
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
229
|
+
highlightPage.steps.verifyPreviewTabScoreText(14, 14.5);
|
230
|
+
highlightPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
231
|
+
});
|
232
|
+
|
233
|
+
it('When the \'Round down score\' checkbox is not selected, then in Preview tab when user selects partially or fully correct answers the points should be displayed in decimal points if applicable as per the options selected by the user', () => {
|
234
|
+
highlightPage.steps.switchToEditTab()
|
235
|
+
highlightPage.steps.uncheckRoundDownScoreCheckbox()
|
236
|
+
highlightPage.steps.switchToPreviewTab();
|
237
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
238
|
+
highlightPage.steps.verifyPreviewTabScoreText(6.2, 14.5);
|
239
|
+
highlightPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
240
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
241
|
+
highlightPage.steps.verifyPreviewTabScoreText(14.5, 14.5);
|
242
|
+
highlightPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
243
|
+
});
|
244
|
+
});
|
245
|
+
});
|