itemengine-cypress-automation 1.0.249-repoUpdated26thSept-d6c4173.0 β 1.0.250-30SeptUpdates-a6d872b.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -3
- package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +3 -4
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +8 -8
- package/cypress/e2e/ILC/ChartsBar/studentViewSettings.js +0 -1
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/chartFunctionalitySpecifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +2 -4
- package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +4 -4
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -3
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +162 -0
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +0 -2
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +9 -9
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +1373 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingAlternatePointsMoreThanCorrectPoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingCorrectPointsEqualToAlternatePoints.js +162 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingCorrectPointsMoreThanAlternatePoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsBasic.js +420 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsBasic.js +130 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +195 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingAlternatePointsMoreThanCorrectPoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingCorrectPointsEqualToAlternatePoints.js +162 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingCorrectPointsMoreThanAlternatePoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsBasic.js +420 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsBasic.js +130 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +225 -0
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/audioResponsePage.js +0 -10
- package/cypress/pages/chartsBarPage.js +0 -13
- package/cypress/pages/chartsDotPlotPage.js +4 -85
- package/cypress/pages/chartsLinePage.js +2 -2
- package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +11 -30
- package/cypress/pages/components/barAndLineChartComponent.js +0 -10
- package/cypress/pages/components/chartsCommonComponent.js +1 -25
- package/cypress/pages/components/colorPopupComponent.js +0 -31
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +0 -1
- package/cypress/pages/components/createQuestionBasePage.js +2 -8
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/equationEditorFlyout.js +0 -36
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -2
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +2 -15
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +26 -34
- package/cypress/pages/components/imageCanvasComponent.js +7 -9
- package/cypress/pages/components/index.js +0 -1
- package/cypress/pages/components/listOrderingCommonStyleAndLayoutComponent.js +0 -12
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -1
- package/cypress/pages/components/optionsWrapperComponent.js +3 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -2
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/createItemPage.js +7 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -41
- package/cypress/pages/essayResponsePage.js +0 -1
- package/cypress/pages/feedbackScalePage.js +0 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/fillInTheGapsDropdownPage.js +79 -0
- package/cypress/pages/graphingPage.js +0 -1
- package/cypress/pages/gridFillPage.js +45 -112
- package/cypress/pages/imageHighlightPage.js +0 -10
- package/cypress/pages/itemPreviewSettingsPage.js +1 -4
- package/cypress/pages/listOrderingPage.js +0 -10
- package/cypress/pages/matchingPage.js +5 -142
- package/cypress/pages/multipleSelectionPage.js +0 -13
- package/cypress/pages/numberLineLabelPage.js +1 -1
- package/cypress/pages/numberLinePage.js +1 -1
- package/cypress/pages/protractorPage.js +1 -3
- package/cypress/pages/shortTextResponsePage.js +1 -3
- package/cypress/pages/simpleCalculatorPage.js +2 -2
- package/cypress/pages/singleSelectionPage.js +0 -10
- package/cypress/pages/textEntryMathPage.js +1 -8
- package/cypress/pages/textEntryMathWithImagePage.js +16 -38
- package/cypress/pages/textSelectionPage.js +34 -43
- package/cypress/pages/videoResponsePage.js +0 -5
- package/package.json +1 -1
- package/cypress/pages/components/customizeHighlightPropertiesComponent.js +0 -318
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringGeneric}/basicScoringForAllTextSelectionTypes.smoke.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringGeneric}/manuallyAndNonScored.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringGeneric}/singleSelectionPreviewScoring.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialDifferentWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialEqualWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring β ScoringParagraph}/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
import { fillInTheGapsDropdownPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const optionsForDropdown1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
5
|
+
const optionsForDropdown2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
6
|
+
const correctAnswerArray = ['Flower', 'Leaf', 'Stem', 'Petal', 'Leaves'];
|
7
|
+
|
8
|
+
describe('Create item page - Fill in the gaps with drop down: Response level alternate answer basic scoring', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Auto scored - All or nothing with response level alternate answers', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
fillInTheGapsDropdownPage.steps.allotPoints(10);
|
19
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
20
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
21
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
|
22
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(0);
|
23
|
+
fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Petal']);
|
24
|
+
fillInTheGapsDropdownPage.steps.saveSelectedAlternateAnswers();
|
25
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
26
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(2);
|
27
|
+
fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Leaves']);
|
28
|
+
fillInTheGapsDropdownPage.steps.saveSelectedAlternateAnswers();
|
29
|
+
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
30
|
+
});
|
31
|
+
|
32
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct answers section should be displayed with the first correct answer set for the dropdown in specify correct answer section', () => {
|
33
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 10);
|
34
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
35
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
36
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf']);
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides the incorrect response, a status message with text \'Your answer is incorrect\' and correct answers section should be displayed with the first correct answer set for the dropdown in specify correct answer section', () => {
|
40
|
+
fillInTheGapsDropdownPage.steps.switchToStudentView();
|
41
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 1, dropdownOption: correctAnswerArray[2] }]);
|
42
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 10);
|
43
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
44
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
45
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
46
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
47
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf']);
|
48
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
49
|
+
});
|
50
|
+
|
51
|
+
it('When user attempts the question correctly with the first correct answer set for the dropdown, then the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed beside the correct response, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
52
|
+
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
53
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
54
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(10, 10);
|
55
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
56
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
57
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
58
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
59
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
60
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
61
|
+
});
|
62
|
+
|
63
|
+
it('When the user attempts the question with the alternate answers set for the dropdown, then the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed beside the correct response, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
64
|
+
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
65
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[3] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[4] }])
|
66
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(10, 10);
|
67
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
68
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
69
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
70
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
71
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
72
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
73
|
+
});
|
74
|
+
});
|
75
|
+
});
|
@@ -0,0 +1,162 @@
|
|
1
|
+
import { fillInTheGapsDropdownPage } from "../../../pages";
|
2
|
+
import utilities from "../../../support/helpers/utilities";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
const optionsForDropdown1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
6
|
+
const optionsForDropdown2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
7
|
+
const correctAnswerArray = ['Flower', 'Leaf', 'Stem'];
|
8
|
+
|
9
|
+
describe('Create item page - Fill in the gaps drop down: Drop down alternate answer popup', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Drop down alternate answer popup - Edit tab', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
20
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
21
|
+
});
|
22
|
+
|
23
|
+
it('By default a disabled \'Add alternate\' button should be displayed besides each drop down in specify correct answer section', () => {
|
24
|
+
fillInTheGapsDropdownPage.steps.verifyDefaultAddAlternateAnswerButtonIsDisplayed(0);
|
25
|
+
fillInTheGapsDropdownPage.steps.verifyDefaultAddAlternateAnswerButtonIsDisplayed(1);
|
26
|
+
});
|
27
|
+
|
28
|
+
it('CSS of disabled \'Add alternate\' button', { tags: 'css' }, () => {
|
29
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.addAlternateButtonSpecifyCorrectAnswer(), {
|
30
|
+
'color': 'rgb(117, 117, 154)',
|
31
|
+
'font-size': '16px',
|
32
|
+
'font-weight': '500'
|
33
|
+
});
|
34
|
+
});
|
35
|
+
|
36
|
+
it('Accessibility of of disabled \'Add alternate\' button', { tags: 'css' }, () => {
|
37
|
+
cy.checkAccessibility(fillInTheGapsDropdownPage.addAlternateButtonSpecifyCorrectAnswer());
|
38
|
+
});
|
39
|
+
|
40
|
+
it('When the user drops an option in the drop down, then \'Add alternate\' button should be enabled', () => {
|
41
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
|
42
|
+
utilities.verifyElementNotDisabled(utilities.getNthElement(fillInTheGapsDropdownPage.addAlternateButtonSpecifyCorrectAnswer(), 0));
|
43
|
+
utilities.verifyElementDisabled(utilities.getNthElement(fillInTheGapsDropdownPage.addAlternateButtonSpecifyCorrectAnswer(), 1));
|
44
|
+
});
|
45
|
+
|
46
|
+
it('CSS of enabled \'Add alternate\' button', { tags: 'css' }, () => {
|
47
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.addAlternateButtonSpecifyCorrectAnswer(), {
|
48
|
+
'color': 'rgb(82, 0, 255)',
|
49
|
+
'font-size': '16px',
|
50
|
+
'font-weight': '500'
|
51
|
+
});
|
52
|
+
});
|
53
|
+
|
54
|
+
it('Accessibility of of enabled \'Add alternate\' button', { tags: 'css' }, () => {
|
55
|
+
cy.checkAccessibility(fillInTheGapsDropdownPage.addAlternateButtonSpecifyCorrectAnswer());
|
56
|
+
});
|
57
|
+
|
58
|
+
it('When the user clicks on \'Add alternate\' button of a drop down, then a popup should be displayed with the title \'drop down # alternate answer(s)\' and help text \'Select alternate answer(s).\'', () => {
|
59
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(0);
|
60
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.alternateAnswerPopupTitle(), 'visible');
|
61
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupTitle(), 'Dropzone 1 alternate answer(s)');
|
62
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.alternateAnswerPopupHelpText(), 'visible');
|
63
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupHelpText(), 'Select alternate answer(s).');
|
64
|
+
});
|
65
|
+
|
66
|
+
it('The \'drop down # alternate answer(s)\' popup should display all the draggable options, except for the one already placed in the corresponding drop zone', () => {
|
67
|
+
fillInTheGapsDropdownPage.steps.verifyDropdownAlternateAnswerPopupOptions(['Petal', 'Stem', 'Branch']);
|
68
|
+
});
|
69
|
+
|
70
|
+
it('User should be able to select an option by clicking on it', () => {
|
71
|
+
fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Petal']);
|
72
|
+
});
|
73
|
+
|
74
|
+
it('User should be able to deselect an option by clicking on it', () => {
|
75
|
+
fillInTheGapsDropdownPage.steps.deselectAlternateAnswerInAlternateAnswerPopup(['Petal']);
|
76
|
+
});
|
77
|
+
|
78
|
+
it('User should be able to select multiple alternate answer options in the drop down level alternate answer popup', () => {
|
79
|
+
fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Petal', 'Stem']);
|
80
|
+
});
|
81
|
+
|
82
|
+
it('\'Save\' and \'Cancel\' button should be displayed in the popup', () => {
|
83
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.alternateAnswerPopupCancelButton(), 'visible');
|
84
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupCancelButton(), 'Cancel');
|
85
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.alternateAnswerPopupSaveButton(), 'visible');
|
86
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupSaveButton(), 'Save');
|
87
|
+
});
|
88
|
+
|
89
|
+
it('When the user clicks on \'Cancel\' button, then popup should be closed and the changes made by the user should not be saved', () => {
|
90
|
+
fillInTheGapsDropdownPage.steps.CancelDropdownAlternateAnswersPopup();
|
91
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.alternateAnswerPopup(), 'notExist');
|
92
|
+
});
|
93
|
+
|
94
|
+
it('When the user has selected alternate options in the popup and clicks on \'Save\' button, then popup should be closed and the number of selected alternate options should be displayed beside the \'Add alternate\' button in the format \'# selected\'', () => {
|
95
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(0);
|
96
|
+
fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Petal']);
|
97
|
+
fillInTheGapsDropdownPage.steps.saveSelectedAlternateAnswers();
|
98
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.selectedAlternateAnswerCountSpecifyCorrectAnswer(), '1 selected');
|
99
|
+
});
|
100
|
+
|
101
|
+
it('User should be able to change the selected alternate options and the number of selected alternate options should be updated accordingly', () => {
|
102
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(0);
|
103
|
+
fillInTheGapsDropdownPage.steps.selectAlternateAnswerInAlternateAnswerPopup(['Stem']);
|
104
|
+
fillInTheGapsDropdownPage.steps.saveSelectedAlternateAnswers();
|
105
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.selectedAlternateAnswerCountSpecifyCorrectAnswer(), '2 selected');
|
106
|
+
});
|
107
|
+
|
108
|
+
it('CSS of drop down level alternate answer popup', { tags: 'css' }, () => {
|
109
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(0);
|
110
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.alternateAnswerPopupTitle(), {
|
111
|
+
'color': 'rgb(0, 0, 124)',
|
112
|
+
'font-size': '18px',
|
113
|
+
'font-weight': '600'
|
114
|
+
});
|
115
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.alternateAnswerPopupHelpText(), {
|
116
|
+
'color': 'rgb(0, 0, 73)',
|
117
|
+
'font-size': '14px',
|
118
|
+
'font-weight': '400',
|
119
|
+
'font-style': 'italic'
|
120
|
+
});
|
121
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.alternateAnswerPopupOptions().eq(0), {
|
122
|
+
'color': 'rgb(0, 0, 124)',
|
123
|
+
'font-size': '16px',
|
124
|
+
'font-weight': '400',
|
125
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
126
|
+
});
|
127
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.alternateAnswerPopupOptions().eq(2), {
|
128
|
+
'color': 'rgb(0, 0, 124)',
|
129
|
+
'font-size': '16px',
|
130
|
+
'font-weight': '400',
|
131
|
+
'border': '1px solid rgb(107, 139, 255)'
|
132
|
+
});
|
133
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.alternateAnswerPopupCancelButton(), {
|
134
|
+
'color': 'rgb(0, 0, 124)',
|
135
|
+
'font-size': '16px',
|
136
|
+
'font-weight': '600',
|
137
|
+
'background-color': 'rgba(0, 0, 0, 0)'
|
138
|
+
});
|
139
|
+
utilities.verifyCSS(fillInTheGapsDropdownPage.alternateAnswerPopupSaveButton(), {
|
140
|
+
'color': 'rgb(255, 255, 255)',
|
141
|
+
'font-size': '16px',
|
142
|
+
'font-weight': '600',
|
143
|
+
'background-color': 'rgb(82, 0, 255)'
|
144
|
+
});
|
145
|
+
});
|
146
|
+
|
147
|
+
it('Accessibility of drop down level alternate answer popup', { tags: 'css' }, () => {
|
148
|
+
cy.checkAccessibility(fillInTheGapsDropdownPage.alternateAnswerPopup());
|
149
|
+
});
|
150
|
+
|
151
|
+
it('When user opens the alternate answer popup for another drop down, then alternate answer popup with the title and options as per the corresponding drop down should be displayed', () => {
|
152
|
+
fillInTheGapsDropdownPage.steps.CancelDropdownAlternateAnswersPopup();
|
153
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
154
|
+
fillInTheGapsDropdownPage.steps.clickOnAddAlternateButton(2);
|
155
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupTitle(), 'Dropzone 2 alternate answer(s)');
|
156
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.alternateAnswerPopupHelpText(), 'Select alternate answer(s).');
|
157
|
+
fillInTheGapsDropdownPage.steps.verifyDropdownAlternateAnswerPopupOptions(['Leaves', 'Stem', 'Seed']);
|
158
|
+
cy.log('Post-step: Close the alternate answers popup');
|
159
|
+
fillInTheGapsDropdownPage.steps.CancelDropdownAlternateAnswersPopup();
|
160
|
+
});
|
161
|
+
});
|
162
|
+
});
|
@@ -38,7 +38,6 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
38
38
|
abortEarlySetup();
|
39
39
|
before(() => {
|
40
40
|
imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
|
41
|
-
cy.barsPreLoaderWait();
|
42
41
|
imageHighlightPage.steps.uploadFile('highlightImage.jpg');
|
43
42
|
imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
|
44
43
|
imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
|
@@ -66,7 +65,6 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
66
65
|
abortEarlySetup();
|
67
66
|
before(() => {
|
68
67
|
imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
|
69
|
-
cy.barsPreLoaderWait();
|
70
68
|
imageHighlightPage.steps.uploadFile('highlightImage.jpg');
|
71
69
|
imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
|
72
70
|
imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
|
@@ -33,7 +33,7 @@ describe('Create Item page - Image Highlight : Image selection style', () => {
|
|
33
33
|
imageHighlightPage.steps.verifyToggleButtonSelected('Filled-in');
|
34
34
|
imageHighlightPage.steps.verifyToggleButtonNotSelected('Outline');
|
35
35
|
imageHighlightPage.steps.verifyToggleButtonNotSelected('Pattern');
|
36
|
-
})
|
36
|
+
});
|
37
37
|
|
38
38
|
it('CSS of image selection style section', { tags: 'css' }, () => {
|
39
39
|
utilities.verifyCSS(imageHighlightPage.imageSelectionStyleLabel(), {
|
@@ -107,7 +107,7 @@ describe('Create Item page - List ordering: Manually and non scored', () => {
|
|
107
107
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(0);
|
108
108
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(1);
|
109
109
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
110
|
-
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3)
|
110
|
+
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
111
111
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
112
112
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
113
113
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -116,7 +116,7 @@ describe('Create Item page - List ordering: Manually and non scored', () => {
|
|
116
116
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(0);
|
117
117
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(1);
|
118
118
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
119
|
-
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3)
|
119
|
+
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
120
120
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
121
121
|
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
122
122
|
});
|
@@ -63,7 +63,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
63
63
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(0);
|
64
64
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(1);
|
65
65
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
|
66
|
-
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3)
|
66
|
+
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
67
67
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
68
68
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
69
69
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { listOrderingPage } from "../../../../pages";
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
4
4
|
const options = ['sprout', 'plant', 'flower', 'seed'];
|
@@ -75,7 +75,7 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
75
75
|
listOrderingPage.steps.addAlternativeAnswerAccordion(2);
|
76
76
|
});
|
77
77
|
|
78
|
-
listOrderingPage.tests.
|
78
|
+
listOrderingPage.tests.verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion();
|
79
79
|
|
80
80
|
it('User should be able to remove alternative correct answer by clicking on the \'Delete\' icon button alongside alternative answer accordion and the name of the alternative answer accordions should get updated accordingly', () => {
|
81
81
|
cy.log('Set correct answer and points in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
|
@@ -43,7 +43,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
43
43
|
});
|
44
44
|
|
45
45
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
46
|
-
listOrderingPage.steps.resetQuestionPreview()
|
46
|
+
listOrderingPage.steps.resetQuestionPreview();
|
47
47
|
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
48
48
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
49
49
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
@@ -73,7 +73,7 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
73
73
|
listOrderingPage.steps.addAlternativeAnswerAccordion(2);
|
74
74
|
});
|
75
75
|
|
76
|
-
listOrderingPage.tests.
|
76
|
+
listOrderingPage.tests.verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion();
|
77
77
|
|
78
78
|
it('User should be able to remove alternative correct answer by clicking on the \'Delete\' icon button alongside alternative answer accordion and the name of the alternative answer accordions should get updated accordingly', () => {
|
79
79
|
cy.log('Set correct answer and points in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
|
@@ -232,7 +232,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
232
232
|
|
233
233
|
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
234
234
|
matchingPage.steps.resetQuestionPreview();
|
235
|
-
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }])
|
235
|
+
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
|
236
236
|
matchingPage.steps.verifyPreviewScore(2, 20);
|
237
237
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
238
238
|
});
|
@@ -31,7 +31,7 @@ describe('Create item page - Matching: Option section', () => {
|
|
31
31
|
utilities.verifyElementCount(matchingPage.optionWrapper(), 2);
|
32
32
|
cy.log('Verifying the input text given to input fields after deletion of 2nd option')
|
33
33
|
optionsAfterDeleting.forEach((inputFieldText, optionIndex) => {
|
34
|
-
utilities.verifyInputFieldValue(utilities.getNthElement(matchingPage.
|
34
|
+
utilities.verifyInputFieldValue(utilities.getNthElement(matchingPage.optionInnnerFieldInputFieldDropdown(), optionIndex), inputFieldText);
|
35
35
|
});
|
36
36
|
});
|
37
37
|
|
@@ -86,7 +86,7 @@ describe('Create Item page - Number line: Manually and non scored', () => {
|
|
86
86
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
|
87
87
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
|
88
88
|
numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8, 7]);
|
89
|
-
numberLinePage.steps.verifyLineSegmentOnNumberLinePreviewTab(range, [{ x1: 7, x2: 8 }])
|
89
|
+
numberLinePage.steps.verifyLineSegmentOnNumberLinePreviewTab(range, [{ x1: 7, x2: 8 }]);
|
90
90
|
numberLinePage.steps.switchToGradingView();
|
91
91
|
//Preview tab
|
92
92
|
numberLinePage.steps.verifyIncorrectPointsOnNumberLinePreviewTab(range, [8, 7]);
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js
CHANGED
@@ -52,7 +52,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
52
52
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
|
53
53
|
textEntryMathPage.steps.switchToGradingView();
|
54
54
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
55
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
55
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
56
56
|
textEntryMathPage.steps.switchToGradingView();
|
57
57
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -113,7 +113,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
114
114
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
115
115
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
116
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
116
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
117
117
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
118
118
|
});
|
119
119
|
|
@@ -130,7 +130,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
130
130
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
131
131
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
132
132
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
133
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
134
134
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
135
135
|
});
|
136
136
|
|
@@ -147,7 +147,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
147
147
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
148
148
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
149
149
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
150
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
150
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
151
151
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
152
|
});
|
153
153
|
|
@@ -167,7 +167,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
167
167
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
168
168
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
169
169
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
170
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
171
171
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
172
172
|
});
|
173
173
|
|
@@ -182,7 +182,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
182
182
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
183
183
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
184
184
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
185
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
186
186
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
});
|
188
188
|
|
@@ -203,7 +203,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
203
203
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
204
204
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
205
205
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
206
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
206
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '6ΓΟ', '7.07β’e']);
|
207
207
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
208
|
});
|
209
209
|
});
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -52,7 +52,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
52
52
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
53
53
|
textEntryMathPage.steps.switchToGradingView();
|
54
54
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
55
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
55
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
56
56
|
textEntryMathPage.steps.switchToGradingView();
|
57
57
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -113,7 +113,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
114
114
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
115
115
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
116
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
116
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
117
117
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
118
118
|
});
|
119
119
|
|
@@ -130,7 +130,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
130
130
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
131
131
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
132
132
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
133
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
134
134
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
135
135
|
});
|
136
136
|
|
@@ -147,7 +147,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
147
147
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
148
148
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
149
149
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
150
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
150
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
151
151
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
152
|
});
|
153
153
|
|
@@ -167,7 +167,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
167
167
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
168
168
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
169
169
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
170
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
171
171
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
172
172
|
});
|
173
173
|
|
@@ -182,7 +182,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
182
182
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
183
183
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
184
184
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
185
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
186
186
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
});
|
188
188
|
|
@@ -203,7 +203,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
203
203
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
204
204
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
205
205
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
206
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
206
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
207
207
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
208
|
});
|
209
209
|
});
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
@@ -46,14 +46,14 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
46
46
|
equationEditorFlyout.steps.clickOnOkButton();
|
47
47
|
textEntryMathPage.steps.allotPoints(12);
|
48
48
|
textEntryMathPage.steps.expandAdditionalSettings();
|
49
|
-
|
49
|
+
// textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
50
50
|
textEntryMathPage.steps.switchToPreviewTab();
|
51
51
|
});
|
52
52
|
|
53
53
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
54
54
|
textEntryMathPage.steps.switchToGradingView();
|
55
55
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
56
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
56
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
57
57
|
textEntryMathPage.steps.switchToGradingView();
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -146,7 +146,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
146
146
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
147
147
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
148
148
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
149
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
149
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
150
150
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
151
151
|
});
|
152
152
|
|
@@ -163,7 +163,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
163
163
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
165
165
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
166
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
166
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
167
167
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
168
|
});
|
169
169
|
|
@@ -180,7 +180,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
180
180
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
181
181
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
182
182
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
183
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
183
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
184
184
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
185
185
|
});
|
186
186
|
|
@@ -200,7 +200,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
200
200
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
201
201
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
202
202
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
203
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
204
204
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
205
|
});
|
206
206
|
|
@@ -215,7 +215,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
215
215
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
216
216
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
217
217
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
218
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
218
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
219
219
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
220
220
|
});
|
221
221
|
|
@@ -236,7 +236,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
236
236
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
237
237
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
238
238
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
239
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['
|
239
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Cβ’oβ’rβ’rβ’eβ’cβ’t', '2β’x2β’y2+4β’xβ’y+4', '9000%']);
|
240
240
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
241
241
|
});
|
242
242
|
|