itemengine-cypress-automation 1.0.51 → 1.0.63
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsAnswerNumeration.js +206 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
- package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
- package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
- package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
- package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
- package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
- package/package.json +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridOptionsAdditionalSettings.js → multipleSelectionAdditionalSettingsGridOptions.js} +0 -0
@@ -0,0 +1,174 @@
|
|
1
|
+
import { singleSelectionGridPage } from "../../../pages/singleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
|
5
|
+
const questionStems = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
6
|
+
const options = ['Fully agree as true', 'Fully agree as false', 'Somewhat agree'];
|
7
|
+
|
8
|
+
describe('Create Item page - Single Selection Grid: Preview tab Scoring Section', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Question Preview: AutoScored - All or Nothing with alternate answer', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
cy.log('Navigating to Single selection grid question type');
|
17
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
18
|
+
cy.log('Adding question instructions, question stems, options, setting correct answer and adding points for Autoscored scoring type and switching to Preview tab');
|
19
|
+
singleSelectionGridPage.steps.addQuestionInstructions();
|
20
|
+
singleSelectionGridPage.steps.addOption();
|
21
|
+
singleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
|
22
|
+
singleSelectionGridPage.steps.addInputToAllOptionsFields(options);
|
23
|
+
singleSelectionGridPage.steps.allotPoints(20);
|
24
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 1, 0, 1]);
|
25
|
+
singleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
|
26
|
+
singleSelectionGridPage.steps.allotPoints(12);
|
27
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 2, 2, 1]);
|
28
|
+
singleSelectionGridPage.steps.expandAdditonalSettings();
|
29
|
+
singleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
|
34
|
+
cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
|
35
|
+
singleSelectionGridPage.previewScoreText()
|
36
|
+
.verifyInnerText('0/20');
|
37
|
+
cy.log('When the user selects the Show correct answer checkbox without attempting the question, green check-mark icons should be displayed besides only correct answer options')
|
38
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
39
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
40
|
+
singleSelectionGridPage.incorrectIcon()
|
41
|
+
.should('not.exist');
|
42
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
43
|
+
.should('not.exist');
|
44
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
45
|
+
|
46
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
47
|
+
|
48
|
+
cy.log('When the user selects correct answer options, points specified for correct answers should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides options and label \'Correct answer\' should be displayed below the table')
|
49
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 0, 1]);
|
50
|
+
singleSelectionGridPage.previewScoreText()
|
51
|
+
.verifyInnerText('20/20');
|
52
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
53
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
54
|
+
singleSelectionGridPage.incorrectIcon()
|
55
|
+
.should('not.exist');
|
56
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct')
|
57
|
+
singleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
58
|
+
|
59
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
60
|
+
|
61
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides options and label \'Correct answer\' should be displayed below the below the table')
|
62
|
+
singleSelectionGridPage.steps.checkAnswer();
|
63
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
64
|
+
singleSelectionGridPage.incorrectIcon()
|
65
|
+
.should('not.exist');
|
66
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct')
|
67
|
+
singleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
68
|
+
|
69
|
+
cy.log('When the user selects alternate correct answer options, points specified for alternate correct answer (less than overall points) should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
|
70
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 2, 1]);
|
71
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
72
|
+
singleSelectionGridPage.previewScoreText()
|
73
|
+
.verifyInnerText('12/20');
|
74
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
75
|
+
singleSelectionGridPage.incorrectIcon()
|
76
|
+
.should('not.exist');
|
77
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct')
|
78
|
+
singleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
79
|
+
|
80
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
81
|
+
|
82
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
|
83
|
+
singleSelectionGridPage.steps.checkAnswer();
|
84
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
85
|
+
singleSelectionGridPage.incorrectIcon()
|
86
|
+
.should('not.exist');
|
87
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct')
|
88
|
+
singleSelectionGridPage.steps.verifyCorrectAttemptBorder()
|
89
|
+
|
90
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and \'Incorrect Answer\' label should be displayed below the table')
|
91
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 1, 0, 2]);
|
92
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
93
|
+
singleSelectionGridPage.previewScoreText()
|
94
|
+
.verifyInnerText('0/20');
|
95
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
96
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
|
97
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
|
98
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
99
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
100
|
+
|
101
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
102
|
+
|
103
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and label \'Incorrect Answer\' should be displayed below the table')
|
104
|
+
singleSelectionGridPage.steps.checkAnswer();
|
105
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
|
106
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 1);
|
107
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 0);
|
108
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
|
109
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
110
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder()
|
111
|
+
|
112
|
+
//Note need to revisit this case once the query is resolved https://redmine.zeuslearning.com/issues/534043
|
113
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and \'Incorrect Answer\' label should be displayed below the table')
|
114
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([2, 2, 2, 2]);
|
115
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
116
|
+
singleSelectionGridPage.previewScoreText()
|
117
|
+
.verifyInnerText('0/20');
|
118
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
119
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 2, 2, 2]);
|
120
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
|
121
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
122
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder()
|
123
|
+
|
124
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
125
|
+
|
126
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and label \'Incorrect Answer\' should be displayed below the table')
|
127
|
+
singleSelectionGridPage.steps.checkAnswer();
|
128
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 2, 2, 2]);
|
129
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
130
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder()
|
131
|
+
|
132
|
+
cy.log('When user selects equal number of options from the correct tab and alternate tab then 0 points should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the correct tab and red cross-mark icon should be displayed beside the options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
|
133
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 0, 1]);
|
134
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
135
|
+
singleSelectionGridPage.previewScoreText()
|
136
|
+
.verifyInnerText('0/20');
|
137
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
138
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 2);
|
139
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
140
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
141
|
+
|
142
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
143
|
+
|
144
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and label \'Incorrect Answer\' should be displayed below the table')
|
145
|
+
singleSelectionGridPage.steps.checkAnswer();
|
146
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
|
147
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 2);
|
148
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 0);
|
149
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
|
150
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
151
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder()
|
152
|
+
|
153
|
+
cy.log('When user selects incorrect answer option, 0 points should be awarded and on selecting Show correct answer checkbox red cross-mark icons should be displayed besides the selected incorrect answer options and green checkmarks should be displayed beside correct tab answers and label \'Incorrect Answer\' should be displayed below the table')
|
154
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([2, 0, 1, 2]);
|
155
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
156
|
+
singleSelectionGridPage.previewScoreText()
|
157
|
+
.verifyInnerText('0/20');
|
158
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
159
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 0, 1, 2]);
|
160
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
161
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder()
|
162
|
+
|
163
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
164
|
+
|
165
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and label \'Incorrect Answer\' should be displayed below the table')
|
166
|
+
singleSelectionGridPage.steps.checkAnswer()
|
167
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 0, 1, 2]);
|
168
|
+
singleSelectionGridPage.correctIcon()
|
169
|
+
.should('not.exist');
|
170
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect')
|
171
|
+
singleSelectionGridPage.steps.verifyIncorrectAttemptBorder()
|
172
|
+
});
|
173
|
+
});
|
174
|
+
});
|
@@ -0,0 +1,247 @@
|
|
1
|
+
import { singleSelectionGridPage } from "../../../pages/singleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const questionStems = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
5
|
+
const options = ['Fully agree as true', 'Fully agree as false', 'Somewhat agree'];
|
6
|
+
|
7
|
+
describe('Create Item page - Single Selection Grid: Preview tab Scoring Section', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Question Preview: AutoScored - Partial different weights with alternate answer', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Navigating to Single selection grid question type');
|
16
|
+
singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
|
17
|
+
cy.log('Adding question instructions, question stems, options, setting correct answer and adding points for Autoscored Partial equal weights scoring type and switching to Preview tab');
|
18
|
+
singleSelectionGridPage.steps.addQuestionInstructions();
|
19
|
+
singleSelectionGridPage.steps.addOption()
|
20
|
+
singleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
|
21
|
+
singleSelectionGridPage.steps.addInputToAllOptionsFields(options);
|
22
|
+
singleSelectionGridPage.steps.selectPartialDifferentWeightsCheckbox();
|
23
|
+
singleSelectionGridPage.steps.uncheckRoundDownScoreCheckbox()
|
24
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 1, 0, 1]);
|
25
|
+
singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([5, 7, 4, 8]);
|
26
|
+
singleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
|
27
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([0, 2, 2, 1]);
|
28
|
+
singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([4, 9, 6, 10]);
|
29
|
+
singleSelectionGridPage.steps.expandAdditonalSettings();
|
30
|
+
singleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
32
|
+
});
|
33
|
+
|
34
|
+
it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
|
35
|
+
cy.log('Total points displayed besides Show correct answer checkbox should be of \'Alternate answer\' points')
|
36
|
+
singleSelectionGridPage.previewScoreText()
|
37
|
+
.verifyInnerText('0/29');
|
38
|
+
|
39
|
+
cy.log('When the user selects Show correct answer checkbox without attempting the question, green checkmark icon should be displayed besides only alternate correct answer options')
|
40
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
41
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
42
|
+
singleSelectionGridPage.incorrectIcon()
|
43
|
+
.should('not.exist');
|
44
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
45
|
+
.should('not.exist');
|
46
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
47
|
+
|
48
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
49
|
+
|
50
|
+
cy.log('When the user selects the correct answer options then correct answer points should be alloted and on selecting show correct answer checkbox green check-mark icons should be displayed beside correct answer options and correct/incorrect answer label and its border should not be displayed')
|
51
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 0, 1]);
|
52
|
+
singleSelectionGridPage.previewScoreText()
|
53
|
+
.verifyInnerText('24/29');
|
54
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
55
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
56
|
+
singleSelectionGridPage.incorrectIcon()
|
57
|
+
.should('not.exist');
|
58
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
59
|
+
.should('not.exist');
|
60
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
61
|
+
|
62
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
63
|
+
|
64
|
+
cy.log('When the user clicks on \'Check answer\' button, green checkmark should be displayed only beside selected correct answer options and correct/incorrect answer label and its border should not be displayed')
|
65
|
+
singleSelectionGridPage.steps.checkAnswer()
|
66
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
67
|
+
singleSelectionGridPage.incorrectIcon()
|
68
|
+
.should('not.exist');
|
69
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
70
|
+
.should('not.exist');
|
71
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
72
|
+
|
73
|
+
cy.log('When the user selects alternate correct answer options, score specified for alternate correct answer (full score) should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides only alternate correct answer options and correct/incorrect answer label and its border should not be displayed')
|
74
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 2, 1]);
|
75
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
76
|
+
singleSelectionGridPage.previewScoreText()
|
77
|
+
.verifyInnerText('29/29');
|
78
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
79
|
+
singleSelectionGridPage.incorrectIcon()
|
80
|
+
.should('not.exist');
|
81
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
82
|
+
.should('not.exist');
|
83
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
84
|
+
|
85
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
86
|
+
|
87
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides only selected alternate correct answer and correct/incorrect answer label and its border should not be displayed')
|
88
|
+
singleSelectionGridPage.steps.checkAnswer()
|
89
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
90
|
+
singleSelectionGridPage.incorrectIcon()
|
91
|
+
.should('not.exist');
|
92
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
93
|
+
.should('not.exist');
|
94
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
95
|
+
|
96
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then user should be alloted points of the correctly answered options and green check-mark icons should be displayed beside the options set in the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and its border should not be displayed')
|
97
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 1, 0, 2]);
|
98
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
99
|
+
singleSelectionGridPage.previewScoreText()
|
100
|
+
.verifyInnerText('11/29');
|
101
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 1, 0, 1]);
|
102
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
|
103
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
|
104
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
105
|
+
.should('not.exist');
|
106
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
107
|
+
|
108
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
109
|
+
|
110
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-mark icons should be displayed besides the selected incorrect answer options andd green check-mark icons should be displayed beside selected correct answer options correct/incorrect answer label and its border should not be displayed')
|
111
|
+
singleSelectionGridPage.steps.checkAnswer()
|
112
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
|
113
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 1);
|
114
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 0);
|
115
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 2);
|
116
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
117
|
+
.should('not.exist');
|
118
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
119
|
+
|
120
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then user should be alloted points of the correctly answered options and green check-mark icons should be displayed beside the options set in the alternate tab and red cross-mark icons should be displayed beside the incorrectly answered options and correct/incorrect answer label and its border should not be displayed')
|
121
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([1, 2, 2, 0]);
|
122
|
+
singleSelectionGridPage.previewScoreText()
|
123
|
+
.verifyInnerText('15/29');
|
124
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
125
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
126
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
|
127
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 0);
|
128
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
129
|
+
.should('not.exist');
|
130
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
131
|
+
|
132
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
133
|
+
|
134
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-mark icons should be displayed besides the selected incorrect answer options andd green check-mark icons should be displayed beside selected correct answer options and correct/incorrect answer label and its border should not be displayed')
|
135
|
+
singleSelectionGridPage.steps.checkAnswer()
|
136
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 1);
|
137
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 2);
|
138
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 2);
|
139
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 0);
|
140
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
141
|
+
.should('not.exist');
|
142
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
143
|
+
|
144
|
+
cy.log('When user selects equal number of options from the correct tab and alternate tab then points of the correctly attempted options from the tab that awards maximum points i.e. alternate tab in this case should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the alternate tab and red cross-mark icon should be displayed beside the options from the correct tab and correct/incorrect answer label and its border should not be displayed')
|
145
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 2, 0, 1]);
|
146
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
147
|
+
singleSelectionGridPage.previewScoreText()
|
148
|
+
.verifyInnerText('23/29');
|
149
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
150
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 0);
|
151
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
152
|
+
.should('not.exist');
|
153
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
154
|
+
|
155
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
156
|
+
|
157
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
|
158
|
+
singleSelectionGridPage.steps.checkAnswer();
|
159
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
|
160
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(1, 2);
|
161
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(2, 0);
|
162
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
|
163
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
164
|
+
.should('not.exist');
|
165
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
166
|
+
|
167
|
+
cy.log('When user selects equal number of options from the correct tab and alternate tab then points of the correctly attempted options from the tab that awards maximum points i.e. correct tab in this case should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the correct tab and red cross-mark icon should be displayed beside the options from the alternate tab and correct/incorrect answer label and its border should not be displayed')
|
168
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 2, 1]);
|
169
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
170
|
+
singleSelectionGridPage.previewScoreText()
|
171
|
+
.verifyInnerText('20/29');
|
172
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
173
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 1);
|
174
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
175
|
+
.should('not.exist');
|
176
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
177
|
+
|
178
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
179
|
+
|
180
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and green check-mark icons should be displayed beside the selected correct answer and correct/incorrect answer label and its border should not be displayed')
|
181
|
+
singleSelectionGridPage.steps.checkAnswer();
|
182
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(0, 0);
|
183
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 1);
|
184
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 2);
|
185
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(3, 1);
|
186
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
187
|
+
.should('not.exist');
|
188
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
189
|
+
|
190
|
+
cy.log('When the user selects incorrect answer options and selects the Show correct answer checkbox, red cross-mark icons should displayed besides the selected incorrect answer options and green check-mark icons beside alternate tab answers and correct/incorrect answer label and its border should not be displayed')
|
191
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([2, 0, 1, 2]);
|
192
|
+
singleSelectionGridPage.previewScoreText()
|
193
|
+
.verifyInnerText('0/29');
|
194
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
195
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([0, 2, 2, 1]);
|
196
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 0, 1, 2]);
|
197
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
198
|
+
.should('not.exist');
|
199
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
200
|
+
|
201
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
202
|
+
|
203
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-mark icons should be displayed besides the selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
|
204
|
+
singleSelectionGridPage.steps.checkAnswer()
|
205
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIconForAllQuestionStems([2, 0, 1, 2]);
|
206
|
+
singleSelectionGridPage.correctIcon()
|
207
|
+
.should('not.exist');
|
208
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
209
|
+
.should('not.exist');
|
210
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
211
|
+
|
212
|
+
cy.log('(Overachiever case) Prestep: Switching to Edit tab and alloting points to correct and alternate tab such that the difference between the points is substantial and the points per response are in decimal')
|
213
|
+
singleSelectionGridPage.steps.switchToEditTab();
|
214
|
+
singleSelectionGridPage.steps.navigateToAlternateTab(1);
|
215
|
+
singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([5.5, 14.5, 17.5, 12.5]);
|
216
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInSetCorrectAnswerTable([2, 2, 2, 2]);
|
217
|
+
singleSelectionGridPage.steps.navigateToCorrectTab();
|
218
|
+
singleSelectionGridPage.steps.allotPartialDifferentWeightsToAllPointsFields([4.5, 1.5, 2.5, 3.5]);
|
219
|
+
singleSelectionGridPage.steps.switchToPreviewTab();
|
220
|
+
|
221
|
+
cy.log('Overachiever case: When the user selects 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 green checkmark icons should be displayed for the alternate tab option, red crossmark icon should be displayed for the correct tab options and points awarded should be of the alternate tab and correct/incorrect answer label and its border should not be displayed')
|
222
|
+
singleSelectionGridPage.steps.selectOptionForAllQuestionStemsInPreviewTabAnswerTable([0, 1, 2, 1]);
|
223
|
+
singleSelectionGridPage.previewScoreText()
|
224
|
+
.verifyInnerText('17.5/50');
|
225
|
+
singleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
226
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIconForAllQuestionStems([2, 2, 2, 2]);
|
227
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 0);
|
228
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 1);
|
229
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 1);
|
230
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
231
|
+
.should('not.exist');
|
232
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible()
|
233
|
+
|
234
|
+
singleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
235
|
+
|
236
|
+
cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green checkmark icons should be displayed for the alternate tab option, red crossmark icon should be displayed for the correct tab options and points awarded should be of the alternate tab and correct/incorrect answer label and its border should not be displayed')
|
237
|
+
singleSelectionGridPage.steps.checkAnswer()
|
238
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(0, 0);
|
239
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(1, 1);
|
240
|
+
singleSelectionGridPage.steps.verifyCorrectOptionCheckmarkIcon(2, 2);
|
241
|
+
singleSelectionGridPage.steps.verifyIncorrectOptionCrossmarkIcon(3, 1);
|
242
|
+
singleSelectionGridPage.correctIncorectAnswerLabel()
|
243
|
+
.should('not.exist');
|
244
|
+
singleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
245
|
+
});
|
246
|
+
});
|
247
|
+
});
|