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 { multipleSelectionGridPage } from "../../../pages/multipleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
|
5
|
+
const questionStems = ['Bat', 'Ostrich', 'Platypus', 'Eagle'];
|
6
|
+
const options = ['Is mammal', 'Lays eggs', 'Can fly'];
|
7
|
+
|
8
|
+
describe('Create Item page - Multiple Selection Grid: Preview tab Scoring Section', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Question Preview: AutoScored - Partial equal weights with alternate answer', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
cy.log('Navigating to multiple selection grid question type');
|
17
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
18
|
+
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');
|
19
|
+
multipleSelectionGridPage.steps.addQuestionInstructions();
|
20
|
+
multipleSelectionGridPage.steps.addOption()
|
21
|
+
multipleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
|
22
|
+
multipleSelectionGridPage.steps.addInputToAllOptionsFields(options);
|
23
|
+
multipleSelectionGridPage.steps.selectPartialEqualWeightsCheckbox();
|
24
|
+
multipleSelectionGridPage.steps.uncheckRoundDownScoreCheckbox()
|
25
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
26
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
|
27
|
+
multipleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
|
28
|
+
multipleSelectionGridPage.steps.allotPoints(12);
|
29
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [0, 1], [2]]);
|
30
|
+
multipleSelectionGridPage.steps.expandAdditonalSettings();
|
31
|
+
multipleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
it('Alternate answer case: When Correct Answer points are more than Alternate Answer points', () => {
|
36
|
+
cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
|
37
|
+
multipleSelectionGridPage.previewScoreText()
|
38
|
+
.verifyInnerText('0/20');
|
39
|
+
|
40
|
+
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')
|
41
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
42
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
43
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
44
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
45
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
46
|
+
multipleSelectionGridPage.incorrectIcon()
|
47
|
+
.should('not.exist');
|
48
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
49
|
+
.should('not.exist');
|
50
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
51
|
+
multipleSelectionGridPage.steps.uncheckShowCorrectAnswerCheckbox();
|
52
|
+
|
53
|
+
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 correct tab options and correct/incorrect answer label and its border should not be displayed')
|
54
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
|
55
|
+
multipleSelectionGridPage.previewScoreText()
|
56
|
+
.verifyInnerText('20/20');
|
57
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
58
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
59
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
60
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
61
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
62
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
63
|
+
.should('not.exist');
|
64
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
65
|
+
|
66
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
67
|
+
|
68
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides correct tab options and correct/incorrect answer label and its border should not be displayed')
|
69
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
70
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
71
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
72
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
73
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
74
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
75
|
+
.should('not.exist');
|
76
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
77
|
+
|
78
|
+
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 correct/incorrect answer label and its border should not be displayed')
|
79
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
80
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
|
81
|
+
multipleSelectionGridPage.previewScoreText()
|
82
|
+
.verifyInnerText('12/20');
|
83
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
84
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
85
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
86
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
87
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
88
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
89
|
+
.should('not.exist');
|
90
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
91
|
+
|
92
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
93
|
+
|
94
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides alternate correct answer options and correct/incorrect answer label and its border should not be displayed')
|
95
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
96
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
97
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
98
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
99
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
100
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
101
|
+
.should('not.exist');
|
102
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
103
|
+
|
104
|
+
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 awarded with points for the correctly attempted 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')
|
105
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
106
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
|
107
|
+
multipleSelectionGridPage.previewScoreText()
|
108
|
+
.verifyInnerText('10/20');
|
109
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
110
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
111
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
112
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
113
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
114
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
115
|
+
.should('not.exist');
|
116
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
117
|
+
|
118
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
119
|
+
|
120
|
+
cy.log('When the user clicks on \'Check answer\' button, 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')
|
121
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
122
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
123
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
124
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
125
|
+
.should('not.exist');
|
126
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
127
|
+
|
128
|
+
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 awarded with the points from selected correct answer options and green check-mark icons should be displayed beside the options set in the alternate tab and correct/incorrect answer label and its border should not be displayed')
|
129
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
130
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
|
131
|
+
multipleSelectionGridPage.previewScoreText()
|
132
|
+
.verifyInnerText('6/20');
|
133
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
134
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
135
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
136
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
137
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
138
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
139
|
+
.should('not.exist');
|
140
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
141
|
+
|
142
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
143
|
+
|
144
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the options set in the alternate tab and correct/incorrect answer label and its border should not be displayed')
|
145
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
146
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
147
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
148
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
149
|
+
.should('not.exist');
|
150
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
151
|
+
|
152
|
+
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 correct tab 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')
|
153
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
154
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
|
155
|
+
multipleSelectionGridPage.previewScoreText()
|
156
|
+
.verifyInnerText('10/20');
|
157
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
158
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
159
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
160
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
|
161
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
162
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
163
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
164
|
+
.should('not.exist');
|
165
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
166
|
+
|
167
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
168
|
+
|
169
|
+
cy.log('When the user clicks on \'Check answer\' button, 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')
|
170
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
171
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
172
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
|
173
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
174
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
175
|
+
.should('not.exist');
|
176
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
177
|
+
|
178
|
+
cy.log('Race condition 1: When user attempts a question stem with correct options of both correct and alternate tab (same options set correct in both the correct and alternate tabs) then the user should be awarded with points of the correct tab(as it has more points) and user selects show correct answer checkbox then green checkmark icon should be displayed for the correct tab options and correct/incorrect answer label and its border should not be displayed')
|
179
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
180
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
|
181
|
+
multipleSelectionGridPage.previewScoreText()
|
182
|
+
.verifyInnerText('5/20');
|
183
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
184
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
185
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
186
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
187
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
188
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
189
|
+
.should('not.exist');
|
190
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
191
|
+
|
192
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
193
|
+
|
194
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct tab answer options and correct/incorrect answer label and its border should not be displayed')
|
195
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
196
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
197
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
198
|
+
.should('not.exist');
|
199
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
200
|
+
|
201
|
+
cy.log('Race condition 2: When user attempts a question stem with correct options of both correct and alternate tab (one common option set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green check-mark icons should be displayed for the correct tab options and user should be awarded 0 points and correct/incorrect answer label and its border should not be displayed')
|
202
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
203
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
|
204
|
+
multipleSelectionGridPage.previewScoreText()
|
205
|
+
.verifyInnerText('5/20');
|
206
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
207
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
208
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
209
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
210
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
211
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
212
|
+
.should('not.exist');
|
213
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
214
|
+
|
215
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
216
|
+
|
217
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options and correct/incorrect answer label and its border should not be displayed')
|
218
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
219
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
220
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
221
|
+
.should('not.exist');
|
222
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
223
|
+
|
224
|
+
cy.log('Race condition 3: When user attempts a question stem with correct options of both correct and alternate tab (both the correct and alternate tabs have exclusive options set correct) and user selects show correct answer checkbox then green check-mark icons should be displayed for the options set in correct tab and red cross-mark icon should be displayed for selected alternate tab options and user should be awarded 0 points and correct/incorrect answer label and its border should not be displayed')
|
225
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
226
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
|
227
|
+
multipleSelectionGridPage.previewScoreText()
|
228
|
+
.verifyInnerText('0/20');
|
229
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
230
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
231
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
|
232
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
233
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
234
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
235
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
236
|
+
.should('not.exist');
|
237
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
238
|
+
|
239
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
240
|
+
|
241
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed for the options set in correct tab and red cross-mark icon should be displayed for selected alternate tab options and correct/incorrect answer label and its border should not be displayed')
|
242
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
243
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
244
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
|
245
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
246
|
+
.should('not.exist');
|
247
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
248
|
+
|
249
|
+
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 correct/incorrect answer label and its border should not be displayed')
|
250
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
251
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
|
252
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
|
253
|
+
multipleSelectionGridPage.previewScoreText()
|
254
|
+
.verifyInnerText('0/20');
|
255
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
256
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
257
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
258
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
259
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
260
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
261
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
262
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
263
|
+
.should('not.exist');
|
264
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
265
|
+
|
266
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
267
|
+
|
268
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and correct/incorrect answer label and its border should not be displayed')
|
269
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
270
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
271
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
272
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
273
|
+
.should('not.exist');
|
274
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
275
|
+
|
276
|
+
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')
|
277
|
+
multipleSelectionGridPage.steps.switchToEditTab();
|
278
|
+
multipleSelectionGridPage.steps.deleteAlternateTab();
|
279
|
+
multipleSelectionGridPage.steps.addAlternateTab(1);
|
280
|
+
multipleSelectionGridPage.steps.allotPoints('10');
|
281
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [2], [0]]);
|
282
|
+
multipleSelectionGridPage.steps.navigateToCorrectTab();
|
283
|
+
multipleSelectionGridPage.steps.allotPoints('50');
|
284
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
285
|
+
|
286
|
+
cy.log('Overachiever case: When the user selects more number of correct options from the alternate tab than the correct tab but the score of the individual response selected from the correct tab overpowers the combined score of the alternate tab answers then green checkmark icons should be displayed for the correct tab option, red crossmark icon should be displayed for the alternate tab options and points awarded should be of the correct tab and correct/incorrect answer label and its border should not be displayed')
|
287
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [2], [0]]);
|
288
|
+
multipleSelectionGridPage.previewScoreText()
|
289
|
+
.verifyInnerText('12.5/50')
|
290
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
291
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
292
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
293
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
294
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
295
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
|
296
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
297
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
298
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
299
|
+
.should('not.exist');
|
300
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
301
|
+
|
302
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
303
|
+
|
304
|
+
cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green checkmark icons should be displayed for the correct tab option, red crossmark icon should be displayed for the alternate tab options and correct/incorrect answer label and its border should not be displayed')
|
305
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
306
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
307
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
|
308
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
309
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
310
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
311
|
+
.should('not.exist');
|
312
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
313
|
+
|
314
|
+
});
|
315
|
+
});
|
316
|
+
});
|
@@ -0,0 +1,185 @@
|
|
1
|
+
import { readingRulerPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
describe('Create Item page - Reading ruler: Edit Tab', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
//TODO: update below to lower case after https://redmine.zeuslearning.com/issues/542832 gets resolved
|
11
|
+
describe('\'Conditional checkboxes\', \'Color\', \'Default number of lines\' section -Edit Tab', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to \'Reading ruler\' resource tool');
|
15
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
16
|
+
});
|
17
|
+
|
18
|
+
it('\'Display button to student\' label and checkbox should be displayed and by default the checkbox should be checked', () => {
|
19
|
+
utilities.verifyInnerText(readingRulerPage.displayButtonToStudentLabel(), 'Display button to student');
|
20
|
+
utilities.verifyElementVisibilityState(readingRulerPage.displayButtonToStudentLabel(), 'visible');
|
21
|
+
readingRulerPage.steps.verifyDisplayButtonToStudentCheckboxIsChecked();
|
22
|
+
});
|
23
|
+
|
24
|
+
it('\'Allow student to resize\' label and checkbox should be displayed and by default the checkbox should be checked', () => {
|
25
|
+
utilities.verifyInnerText(readingRulerPage.allowStudentToResizeLabel(), 'Allow student to resize');
|
26
|
+
utilities.verifyElementVisibilityState(readingRulerPage.allowStudentToResizeLabel(), 'visible');
|
27
|
+
readingRulerPage.steps.verifyAllowStudentToResizeCheckboxIsChecked();
|
28
|
+
});
|
29
|
+
|
30
|
+
it('\'Visible on landing\' label and checkbox should be displayed and by default the checkbox should be unchecked', () => {
|
31
|
+
utilities.verifyInnerText(readingRulerPage.visibleOnLandingLabel(), 'Visible on landing');
|
32
|
+
utilities.verifyElementVisibilityState(readingRulerPage.visibleOnLandingLabel(), 'visible');
|
33
|
+
readingRulerPage.steps.verifyVisibleOnLandingCheckboxIsUnchecked();
|
34
|
+
});
|
35
|
+
|
36
|
+
//Failing due to https://redmine.zeuslearning.com/issues/541620
|
37
|
+
it('CSS of \'Conditional checkboxes\' label in Edit tab', { tags: 'css' }, () => {
|
38
|
+
const labels = [readingRulerPage.displayButtonToStudentLabel, readingRulerPage.allowStudentToResizeLabel, readingRulerPage.visibleOnLandingLabel]
|
39
|
+
labels.forEach(label => {
|
40
|
+
utilities.verifyCSS(label(), {
|
41
|
+
'color': css.color.labelText,
|
42
|
+
'font-size': css.fontSize.normal,
|
43
|
+
'font-weight': css.fontWeight.regular
|
44
|
+
});
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
it('\'Color\' label should be displayed', () => {
|
49
|
+
utilities.verifyInnerText(readingRulerPage.colorLabel(), 'Color');
|
50
|
+
utilities.verifyElementVisibilityState(readingRulerPage.colorLabel(), 'visible');
|
51
|
+
});
|
52
|
+
|
53
|
+
//Failing due to https://redmine.zeuslearning.com/issues/541620
|
54
|
+
it('Four solid colors with the label \'Black\', \'Blue\',\'Green\' and \'Red\' respectively should be displayed ', () => {
|
55
|
+
const colors = ['Black', 'Blue', 'Green', 'Red'];
|
56
|
+
const colorValues = ['rgb(26, 26, 26)', 'rgb(0, 134, 153)', 'rgb(0, 159, 106)', 'rgb(153, 29, 0)'];
|
57
|
+
utilities.verifyElementCount(readingRulerPage.colorBlock(), 4);
|
58
|
+
colors.forEach((color, blockIndex) => {
|
59
|
+
readingRulerPage.steps.verifyColorBlock(blockIndex, color, colorValues[blockIndex]);
|
60
|
+
});
|
61
|
+
});
|
62
|
+
|
63
|
+
it('\'Black\' color radio button should be preselected by default.', () => {
|
64
|
+
readingRulerPage.steps.verifyColorBlockSelectedState(0);
|
65
|
+
});
|
66
|
+
|
67
|
+
it('CSS of \'Color\' Section in Edit tab', { tags: 'css' }, () => {
|
68
|
+
utilities.verifyCSS(readingRulerPage.colorLabel(), {
|
69
|
+
'color': css.color.labels,
|
70
|
+
'font-size': css.fontSize.normal,
|
71
|
+
'font-weight': css.fontWeight.semibold
|
72
|
+
});
|
73
|
+
//Failing due to https://redmine.zeuslearning.com/issues/541620
|
74
|
+
utilities.verifyCSS(readingRulerPage.colorBlockLabel(), {
|
75
|
+
'color': css.color.labelText,
|
76
|
+
'font-size': css.fontSize.normal,
|
77
|
+
'font-weight': css.fontWeight.regular
|
78
|
+
});
|
79
|
+
});
|
80
|
+
|
81
|
+
it('Accessibility of edit tab when \'Display button to student\' and \'Allow student to resize\' checkbox are checked', { tags: 'a11y' }, () => {
|
82
|
+
cy.checkAccessibility(readingRulerPage.readingRulerEditWrapper());
|
83
|
+
});
|
84
|
+
|
85
|
+
it('When the user selects a color block from the \'Color\' section then the selected color should change and the selected icon should be displayed on the newly selected color', () => {
|
86
|
+
readingRulerPage.steps.selectColorBlock(2);
|
87
|
+
readingRulerPage.steps.verifyColorBlockSelectedState(2);
|
88
|
+
readingRulerPage.steps.verifyColorBlockUnSelectedState(0);
|
89
|
+
});
|
90
|
+
|
91
|
+
it('Accessibility of newly selected color', { tags: 'a11y' }, () => {
|
92
|
+
cy.checkAccessibility(readingRulerPage.colorBlock().parents('.MuiFormGroup-root'));
|
93
|
+
});
|
94
|
+
|
95
|
+
it('\'Default number of lines\' label and input field should be displayed and by default the input field should be prefilled with value 4', () => {
|
96
|
+
utilities.verifyInnerText(readingRulerPage.defaultNumberOfLinesLabel(), 'Default number of lines'
|
97
|
+
);
|
98
|
+
utilities.verifyElementVisibilityState(readingRulerPage.defaultNumberOfLinesLabel(), 'visible');
|
99
|
+
readingRulerPage.steps.verifyDefaultNumberOfLinesInputFieldValue('4');
|
100
|
+
utilities.verifyElementVisibilityState(readingRulerPage.defaultNumberOfLinesInputField(), 'visible');
|
101
|
+
});
|
102
|
+
|
103
|
+
it('User should able to update value in \'Default number of lines\' input field', () => {
|
104
|
+
readingRulerPage.steps.addInputToDefaultNumberOfLinesInputField('2')
|
105
|
+
readingRulerPage.steps.verifyDefaultNumberOfLinesInputFieldValue('2');
|
106
|
+
});
|
107
|
+
|
108
|
+
it('CSS of \'Default number of lines\' Section in Edit tab', { tags: 'css' }, () => {
|
109
|
+
utilities.verifyCSS(readingRulerPage.defaultNumberOfLinesLabel(), {
|
110
|
+
'color': css.color.labels,
|
111
|
+
'font-size': css.fontSize.normal,
|
112
|
+
'font-weight': css.fontWeight.semibold
|
113
|
+
});
|
114
|
+
utilities.verifyCSS(readingRulerPage.defaultNumberOfLinesInputField(), {
|
115
|
+
'color': css.color.text,
|
116
|
+
'font-size': css.fontSize.default,
|
117
|
+
'font-weight': css.fontWeight.regular
|
118
|
+
});
|
119
|
+
});
|
120
|
+
|
121
|
+
it('Accessibility of\'Default number of lines\' input field', { tags: 'a11y' }, () => {
|
122
|
+
cy.checkAccessibility(readingRulerPage.defaultNumberOfLinesInputField());
|
123
|
+
});
|
124
|
+
});
|
125
|
+
|
126
|
+
describe('Opacity section - Edit Tab contents', () => {
|
127
|
+
abortEarlySetup();
|
128
|
+
before(() => {
|
129
|
+
cy.log('Navigating to \'Reading ruler\' resource tool');
|
130
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
131
|
+
});
|
132
|
+
|
133
|
+
//Failing due to https://redmine.zeuslearning.com/issues/541338
|
134
|
+
it('\'Opacity\' label and input field with the value 88 should be displayed', () => {
|
135
|
+
utilities.verifyInnerText(readingRulerPage.opacityLabel(), 'Opacity');
|
136
|
+
utilities.verifyElementVisibilityState(readingRulerPage.opacityLabel(), 'visible');
|
137
|
+
readingRulerPage.steps.verifyOpacityInputFieldValue('88')
|
138
|
+
utilities.verifyElementVisibilityState(readingRulerPage.opacityInputField(), 'visible');
|
139
|
+
});
|
140
|
+
|
141
|
+
//Failing due to https://redmine.zeuslearning.com/issues/541338
|
142
|
+
it('Opacity slider should be displayed and by default the slider of \'Opacity\' should be set to 88 percent', () => {
|
143
|
+
utilities.verifyElementVisibilityState(readingRulerPage.opacitySlider(), 'visible');
|
144
|
+
readingRulerPage.steps.verifyOpacitySliderValue('88')
|
145
|
+
});
|
146
|
+
|
147
|
+
it('The maximum value of \'Opacity\' slider should be 100', () => {
|
148
|
+
readingRulerPage.steps.verifyMaxOpacitySliderValue('100')
|
149
|
+
});
|
150
|
+
|
151
|
+
it('CSS of \'Opacity\' Section in Edit tab', { tags: 'css' }, () => {
|
152
|
+
utilities.verifyCSS(readingRulerPage.opacityLabel(), {
|
153
|
+
'color': css.color.labels,
|
154
|
+
'font-size': css.fontSize.normal,
|
155
|
+
'font-weight': css.fontWeight.semibold
|
156
|
+
});
|
157
|
+
utilities.verifyCSS(readingRulerPage.opacityInputField(), {
|
158
|
+
'color': css.color.text,
|
159
|
+
'font-size': css.fontSize.default,
|
160
|
+
'font-weight': css.fontWeight.regular
|
161
|
+
});
|
162
|
+
utilities.verifyCSS(readingRulerPage.opacitySlider(), {
|
163
|
+
'color': css.color.activeButtons,
|
164
|
+
'font-weight': css.fontWeight.regular
|
165
|
+
});
|
166
|
+
});
|
167
|
+
|
168
|
+
it('Accessibility of opacity section', { tags: 'a11y' }, () => {
|
169
|
+
cy.checkAccessibility(readingRulerPage.opacityLabel().parents('.MuiGrid-root'));
|
170
|
+
});
|
171
|
+
|
172
|
+
it('When the user changes value in the opacity input field, the slider value should also change accordingly', () => {
|
173
|
+
readingRulerPage.steps.addInputToOpacityInputField('30');
|
174
|
+
readingRulerPage.steps.verifyOpacityInputFieldValue('30');
|
175
|
+
readingRulerPage.steps.verifyOpacitySliderValue('30');
|
176
|
+
});
|
177
|
+
|
178
|
+
//Failing due to https://redmine.zeuslearning.com/issues/541405
|
179
|
+
it('When the user changes the opacity slider value, value in the opacity input field should also change', () => {
|
180
|
+
readingRulerPage.steps.clickOnOpacitySlider();
|
181
|
+
readingRulerPage.steps.verifyOpacitySliderValue('50');
|
182
|
+
readingRulerPage.steps.verifyOpacityInputFieldValue('50');
|
183
|
+
});
|
184
|
+
});
|
185
|
+
});
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { readingRulerPage } from "../../../pages";
|
2
|
+
import { commonComponents } from "../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create question page - Reading ruler: Header section and saving resource tool', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Header section contents', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to Reading ruler resource tool');
|
14
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
15
|
+
});
|
16
|
+
|
17
|
+
readingRulerPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Reading ruler');
|
18
|
+
});
|
19
|
+
|
20
|
+
describe('Tabs section', () => {
|
21
|
+
abortEarlySetup();
|
22
|
+
before(() => {
|
23
|
+
cy.log('Navigating to Reading ruler resource tool');
|
24
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
25
|
+
});
|
26
|
+
|
27
|
+
readingRulerPage.tests.verifyTabsSection();
|
28
|
+
});
|
29
|
+
|
30
|
+
describe('Cancel button', () => {
|
31
|
+
abortEarlySetup();
|
32
|
+
before(() => {
|
33
|
+
cy.log('Navigating to Reading ruler resource tool');
|
34
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
35
|
+
});
|
36
|
+
|
37
|
+
readingRulerPage.tests.verifyCancelButton();
|
38
|
+
});
|
39
|
+
|
40
|
+
//TODO: Need to update cases after https://redmine.zeuslearning.com/issues/542818
|
41
|
+
describe('Save button', () => {
|
42
|
+
abortEarlySetup();
|
43
|
+
before(() => {
|
44
|
+
cy.log('Navigating to Reading ruler resource tool');
|
45
|
+
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
46
|
+
});
|
47
|
+
commonComponents.tests.verifya11yOfCreateItemWrapperContents();
|
48
|
+
|
49
|
+
it('When user has filled all the mandatory fields then on clicking on Save button the resource tool should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
50
|
+
readingRulerPage.steps.saveAQuestionAndVerifySnackbar();
|
51
|
+
});
|
52
|
+
|
53
|
+
readingRulerPage.tests.verifySavedSuccessfullySnackbarCSSanda11y();
|
54
|
+
});
|
55
|
+
});
|