itemengine-cypress-automation 1.0.342-save-as-you-go-updates-184015f.0 → 1.0.343-IEI-5600-IEI-5708-9440b5e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +16 -4
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
- package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
- package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +0 -20
- package/cypress/pages/components/createQuestionBasePage.js +0 -7
- package/cypress/pages/components/defaultToolDropdown.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
- package/cypress/pages/desmos3DGraphingPage.js +4 -149
- package/cypress/pages/desmosGeometryPage.js +4 -184
- package/cypress/pages/graphingPage.js +4 -26
- package/cypress/pages/gridFillPage.js +6 -16
- package/cypress/pages/listOrderingPage.js +1 -32
- package/cypress/pages/matchingPage.js +7 -26
- package/cypress/pages/numberLineLabelPage.js +0 -26
- package/cypress/pages/numberLinePage.js +0 -15
- package/cypress/pages/textEntryMathPage.js +0 -21
- package/cypress/pages/thinkSpherePage.js +316 -5
- package/cypress/pages/uploadResponsePage.js +1 -2
- package/cypress/pages/videoResponsePage.js +0 -3
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +13 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
@@ -1,98 +0,0 @@
|
|
1
|
-
import { matchingPage } from "../../../../pages";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create Item page - Matching', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('Question Preview: Auto Scored With Points', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
matchingPage.steps.navigateToCreateQuestion('matching');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
matchingPage.steps.addTextInQuestionInstructionsInputField('Match the items correctly');
|
15
|
-
matchingPage.steps.enterTextInPromptInputField(['Prompt 1', 'Prompt 2', 'Prompt 3']);
|
16
|
-
matchingPage.steps.enterTextInOptionInputField(['Bear', 'Eagle', 'Fish']);
|
17
|
-
matchingPage.steps.switchToPreviewTab();
|
18
|
-
});
|
19
|
-
|
20
|
-
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
21
|
-
matchingPage.steps.checkManuallyScoredScoringLabel();
|
22
|
-
});
|
23
|
-
|
24
|
-
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
25
|
-
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([
|
26
|
-
{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 },
|
27
|
-
]);
|
28
|
-
matchingPage.steps.switchToGradingView();
|
29
|
-
matchingPage.steps.verifyAnswerStatusBannerNotExist();
|
30
|
-
matchingPage.steps.verifyCorrectAnswerSectionNotExist();
|
31
|
-
});
|
32
|
-
|
33
|
-
it('When user allocates points to the question then the scoring label should be displayed as manually scored and banner and correct answer status should not exist', () => {
|
34
|
-
matchingPage.steps.switchToEditTab();
|
35
|
-
matchingPage.steps.allotPoints(2);
|
36
|
-
matchingPage.steps.switchToPreviewTab();
|
37
|
-
matchingPage.steps.checkManuallyScoredScoringLabel();
|
38
|
-
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([
|
39
|
-
{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 },
|
40
|
-
]);
|
41
|
-
matchingPage.steps.switchToGradingView();
|
42
|
-
matchingPage.steps.verifyAnswerStatusBannerNotExist();
|
43
|
-
matchingPage.steps.verifyCorrectAnswerSectionNotExist();
|
44
|
-
});
|
45
|
-
});
|
46
|
-
|
47
|
-
describe('Question Preview: Auto Scored Without Points', () => {
|
48
|
-
abortEarlySetup();
|
49
|
-
before(() => {
|
50
|
-
matchingPage.steps.navigateToCreateQuestion('matching');
|
51
|
-
cy.barsPreLoaderWait();
|
52
|
-
matchingPage.steps.addTextInQuestionInstructionsInputField('Match the items correctly');
|
53
|
-
matchingPage.steps.enterTextInPromptInputField(['Prompt 1', 'Prompt 2', 'Prompt 3']);
|
54
|
-
matchingPage.steps.enterTextInOptionInputField(['Bear', 'Eagle', 'Fish']);
|
55
|
-
matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([
|
56
|
-
{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 },
|
57
|
-
]);
|
58
|
-
matchingPage.steps.switchToPreviewTab();
|
59
|
-
});
|
60
|
-
|
61
|
-
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
62
|
-
matchingPage.steps.checkManuallyScoredScoringLabel();
|
63
|
-
});
|
64
|
-
|
65
|
-
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
66
|
-
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([
|
67
|
-
{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 },
|
68
|
-
]);
|
69
|
-
matchingPage.steps.switchToGradingView();
|
70
|
-
matchingPage.steps.verifyAnswerStatusBannerExist();
|
71
|
-
matchingPage.steps.verifyCorrectAnswerSectionExist();
|
72
|
-
});
|
73
|
-
});
|
74
|
-
|
75
|
-
describe('Question Preview: Non Scored', () => {
|
76
|
-
abortEarlySetup();
|
77
|
-
before(() => {
|
78
|
-
matchingPage.steps.navigateToCreateQuestion('matching');
|
79
|
-
cy.barsPreLoaderWait();
|
80
|
-
matchingPage.steps.addTextInQuestionInstructionsInputField('Match the items correctly');
|
81
|
-
matchingPage.steps.enterTextInPromptInputField(['Prompt 1', 'Prompt 2', 'Prompt 3']);
|
82
|
-
matchingPage.steps.enterTextInOptionInputField(['Bear', 'Eagle', 'Fish']);
|
83
|
-
matchingPage.steps.expandScoringTypeDropdown();
|
84
|
-
matchingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
85
|
-
});
|
86
|
-
|
87
|
-
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
88
|
-
matchingPage.steps.switchToPreviewTab();
|
89
|
-
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([
|
90
|
-
{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 },
|
91
|
-
|
92
|
-
]);
|
93
|
-
matchingPage.steps.switchToGradingView();
|
94
|
-
matchingPage.steps.verifyAnswerStatusBannerNotExist();
|
95
|
-
matchingPage.steps.verifyCorrectAnswerSectionNotExist();
|
96
|
-
});
|
97
|
-
});
|
98
|
-
});
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { matchingPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create item page - Matching: Check Alternative Answer Button', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('Check Alternative Answer Button', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
matchingPage.steps.navigateToCreateQuestion('matching');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
matchingPage.steps.addTextInQuestionInstructionsInputField('Match the prompts with the correct options.');
|
15
|
-
matchingPage.steps.enterTextInPromptInputField(['Prompt 1', 'Prompt 2', 'Prompt 3']);
|
16
|
-
matchingPage.steps.enterTextInOptionInputField(['Option 1', 'Option 2', 'Option 3']);
|
17
|
-
});
|
18
|
-
|
19
|
-
it('When correct answer is not set then alternative answer button should be disabled', () => {
|
20
|
-
matchingPage.steps.checkAlternativeButtonDisabled();
|
21
|
-
});
|
22
|
-
|
23
|
-
it('When correct answer is set then alternative answer button should be enabled', () => {
|
24
|
-
matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([
|
25
|
-
{ optionText: 'Option 1', dropzoneIndex: 0 },
|
26
|
-
{ optionText: 'Option 2', dropzoneIndex: 1 },
|
27
|
-
{ optionText: 'Option 3', dropzoneIndex: 2 },
|
28
|
-
]);
|
29
|
-
|
30
|
-
matchingPage.steps.checkAlternativeButtonEnabled();
|
31
|
-
});
|
32
|
-
|
33
|
-
it('User should be able to add an alternative answer using the "Add alternative" button, and when no answer is set in the "Alternative" accordion, clicking on the "Correct" accordion should expand it', () => {
|
34
|
-
matchingPage.steps.clickOnAddAlternativeAnswerButton();
|
35
|
-
matchingPage.steps.expandCorrectAnswerAccordion();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
});
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { matchingPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create item page - Matching', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('User should be able to edit incomplete authored question', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
matchingPage.steps.navigateToCreateQuestion('matching');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
matchingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
15
|
-
matchingPage.steps.editItem();
|
16
|
-
});
|
17
|
-
|
18
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
19
|
-
matchingPage.steps.verifyWarningIconOnRequiredFields([
|
20
|
-
'Please enter all prompt values',
|
21
|
-
'Please enter all option values',
|
22
|
-
'Please set points',
|
23
|
-
]);
|
24
|
-
});
|
25
|
-
|
26
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
27
|
-
matchingPage.steps.enterTextInPromptInputField(['Prompt 1', 'Prompt 2', 'Prompt 3']);
|
28
|
-
matchingPage.steps.enterTextInOptionInputField(['Option 1', 'Option 2', 'Option 3']);
|
29
|
-
matchingPage.steps.allotPoints(10);
|
30
|
-
matchingPage.steps.verifyErrorMessageIsNotDisplayed();
|
31
|
-
});
|
32
|
-
|
33
|
-
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
34
|
-
matchingPage.steps.saveAQuestionAndVerifySnackbar();
|
35
|
-
});
|
36
|
-
|
37
|
-
it('Warning icon should not be visible', () => {
|
38
|
-
matchingPage.steps.verifyWarningIconNotExist();
|
39
|
-
});
|
40
|
-
});
|
41
|
-
});
|
package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
import { numberLinePage } from "../../../../pages";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
const range = 22.18;
|
4
|
-
|
5
|
-
describe('Create Item page - Number line', () => {
|
6
|
-
before(() => {
|
7
|
-
cy.loginAs('admin');
|
8
|
-
});
|
9
|
-
|
10
|
-
describe('Question Preview: Auto Scored With Points', () => {
|
11
|
-
abortEarlySetup();
|
12
|
-
before(() => {
|
13
|
-
numberLinePage.steps.navigateToCreateQuestion('Number line');
|
14
|
-
cy.barsPreLoaderWait();
|
15
|
-
numberLinePage.steps.switchToPreviewTab();
|
16
|
-
});
|
17
|
-
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
18
|
-
numberLinePage.steps.checkManuallyScoredScoringLabel();
|
19
|
-
});
|
20
|
-
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
21
|
-
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
|
22
|
-
numberLinePage.steps.switchToGradingView();
|
23
|
-
numberLinePage.steps.verifyAnswerStatusBannerNotExist();
|
24
|
-
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
25
|
-
});
|
26
|
-
it('When user allocates points to the question then the scoring label should be displayed as manually scored and banner and correct answer status should not exist', () => {
|
27
|
-
numberLinePage.steps.switchToEditTab();
|
28
|
-
numberLinePage.steps.allotPoints(10);
|
29
|
-
numberLinePage.steps.switchToPreviewTab();
|
30
|
-
numberLinePage.steps.checkManuallyScoredScoringLabel();
|
31
|
-
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
|
32
|
-
numberLinePage.steps.switchToGradingView();
|
33
|
-
numberLinePage.steps.verifyAnswerStatusBannerNotExist();
|
34
|
-
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
35
|
-
});
|
36
|
-
});
|
37
|
-
|
38
|
-
describe('Question Preview: Auto Scored Without Points', () => {
|
39
|
-
abortEarlySetup();
|
40
|
-
before(() => {
|
41
|
-
numberLinePage.steps.navigateToCreateQuestion('Number line');
|
42
|
-
cy.barsPreLoaderWait();
|
43
|
-
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
|
44
|
-
numberLinePage.steps.switchToPreviewTab();
|
45
|
-
});
|
46
|
-
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
47
|
-
numberLinePage.steps.checkManuallyScoredScoringLabel();
|
48
|
-
});
|
49
|
-
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
50
|
-
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, -4);
|
51
|
-
numberLinePage.steps.switchToGradingView();
|
52
|
-
numberLinePage.steps.verifyAnswerStatusBannerExist();
|
53
|
-
numberLinePage.steps.verifyCorrectAnswerSectionExist();
|
54
|
-
});
|
55
|
-
});
|
56
|
-
|
57
|
-
describe('Question Preview: Non Scored', () => {
|
58
|
-
abortEarlySetup();
|
59
|
-
before(() => {
|
60
|
-
numberLinePage.steps.navigateToCreateQuestion('Number line');
|
61
|
-
cy.barsPreLoaderWait();
|
62
|
-
});
|
63
|
-
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
64
|
-
numberLinePage.steps.expandScoringTypeDropdown();
|
65
|
-
numberLinePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
66
|
-
numberLinePage.steps.switchToPreviewTab();
|
67
|
-
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
|
68
|
-
numberLinePage.steps.switchToGradingView();
|
69
|
-
numberLinePage.steps.verifyAnswerStatusBannerNotExist();
|
70
|
-
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
71
|
-
});
|
72
|
-
});
|
73
|
-
});
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { numberLinePage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const range = 22.18;
|
5
|
-
describe('Create question page - Number Line', () => {
|
6
|
-
before(() => {
|
7
|
-
cy.loginAs('admin');
|
8
|
-
});
|
9
|
-
|
10
|
-
describe('Check Alternative Answer Button', () => {
|
11
|
-
abortEarlySetup();
|
12
|
-
before(() => {
|
13
|
-
numberLinePage.steps.navigateToCreateQuestion('Number line');
|
14
|
-
cy.barsPreLoaderWait();
|
15
|
-
});
|
16
|
-
|
17
|
-
it('When correct answer is not set then alternative answer should be disabled', () => {
|
18
|
-
numberLinePage.steps.checkAlternativeButtonDisabled();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('When correct answer is set then alternative answer should be enabled', () => {
|
22
|
-
numberLinePage.steps.allotPoints(10);
|
23
|
-
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
|
24
|
-
numberLinePage.steps.checkAlternativeButtonEnabled();
|
25
|
-
});
|
26
|
-
|
27
|
-
it('User should be able to add \'Alternative\' answer using the \'Add alternative\' button, when user has not set any answer in the \'Alternative\' accordion and clicks on the \'Correct\' accordion then \'Correct\' accordion should be expanded', () => {
|
28
|
-
numberLinePage.steps.clickOnAddAlternativeAnswerButton();
|
29
|
-
numberLinePage.steps.expandCorrectAnswerAccordion();
|
30
|
-
});
|
31
|
-
});
|
32
|
-
});
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { numberLinePage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create item page - Number Line', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('User should be able to edit incomplete authored question', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
numberLinePage.steps.navigateToCreateQuestion('Number line');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
numberLinePage.steps.saveAQuestionWithIncompleteAuthoring();
|
15
|
-
numberLinePage.steps.editItem();
|
16
|
-
});
|
17
|
-
|
18
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
19
|
-
numberLinePage.steps.verifyWarningIconOnRequiredFields([
|
20
|
-
'Please set points',
|
21
|
-
]);
|
22
|
-
});
|
23
|
-
|
24
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
25
|
-
numberLinePage.steps.allotPoints(10);
|
26
|
-
numberLinePage.steps.verifyErrorMessageIsNotDisplayed();
|
27
|
-
numberLinePage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
28
|
-
});
|
29
|
-
|
30
|
-
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
31
|
-
numberLinePage.steps.saveAQuestionAndVerifySnackbar();
|
32
|
-
});
|
33
|
-
|
34
|
-
it('Warning icon should not be visible', () => {
|
35
|
-
numberLinePage.steps.verifyWarningIconNotExist();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
});
|
package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
import { numberLineLabelPage } from "../../../../pages";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
const range = 22.18;
|
4
|
-
|
5
|
-
describe('Create Item page - Number line', () => {
|
6
|
-
before(() => {
|
7
|
-
cy.loginAs('admin');
|
8
|
-
});
|
9
|
-
describe('Question Preview: Auto Scored With Points', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
15
|
-
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
16
|
-
numberLineLabelPage.steps.switchToPreviewTab();
|
17
|
-
});
|
18
|
-
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
19
|
-
numberLineLabelPage.steps.checkManuallyScoredScoringLabel();
|
20
|
-
});
|
21
|
-
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
22
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
23
|
-
numberLineLabelPage.steps.switchToGradingView();
|
24
|
-
numberLineLabelPage.steps.verifyAnswerStatusBannerNotExist();
|
25
|
-
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
26
|
-
});
|
27
|
-
it('When user allocates points to the question then the scoring label should be displayed as manually scored and banner and correct answer status should not exist', () => {
|
28
|
-
numberLineLabelPage.steps.switchToEditTab();
|
29
|
-
numberLineLabelPage.steps.allotPoints(10);
|
30
|
-
numberLineLabelPage.steps.switchToPreviewTab();
|
31
|
-
numberLineLabelPage.steps.checkManuallyScoredScoringLabel();
|
32
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
33
|
-
numberLineLabelPage.steps.switchToGradingView();
|
34
|
-
numberLineLabelPage.steps.verifyAnswerStatusBannerNotExist();
|
35
|
-
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
describe('Question Preview: Auto Scored Without Points', () => {
|
39
|
-
abortEarlySetup();
|
40
|
-
before(() => {
|
41
|
-
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
42
|
-
cy.barsPreLoaderWait();
|
43
|
-
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
44
|
-
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
45
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
46
|
-
numberLineLabelPage.steps.switchToPreviewTab();
|
47
|
-
});
|
48
|
-
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
49
|
-
numberLineLabelPage.steps.checkManuallyScoredScoringLabel();
|
50
|
-
});
|
51
|
-
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
52
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 6);
|
53
|
-
numberLineLabelPage.steps.switchToGradingView();
|
54
|
-
numberLineLabelPage.steps.verifyAnswerStatusBannerExist();
|
55
|
-
numberLineLabelPage.steps.verifyCorrectAnswerSectionExist();
|
56
|
-
});
|
57
|
-
});
|
58
|
-
describe('Question Preview: Non Scored', () => {
|
59
|
-
abortEarlySetup();
|
60
|
-
before(() => {
|
61
|
-
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
62
|
-
cy.barsPreLoaderWait();
|
63
|
-
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
64
|
-
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
65
|
-
});
|
66
|
-
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
67
|
-
numberLineLabelPage.steps.expandScoringTypeDropdown();
|
68
|
-
numberLineLabelPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
69
|
-
numberLineLabelPage.steps.switchToPreviewTab();
|
70
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 6);
|
71
|
-
numberLineLabelPage.steps.switchToGradingView();
|
72
|
-
numberLineLabelPage.steps.verifyAnswerStatusBannerNotExist();
|
73
|
-
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
74
|
-
});
|
75
|
-
});
|
76
|
-
});
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { numberLineLabelPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const range = 22.18;
|
5
|
-
describe('Create question page - Graphing', () => {
|
6
|
-
before(() => {
|
7
|
-
cy.loginAs('admin');
|
8
|
-
});
|
9
|
-
|
10
|
-
describe('Check Alternative Answer Button', () => {
|
11
|
-
abortEarlySetup();
|
12
|
-
before(() => {
|
13
|
-
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
14
|
-
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
15
|
-
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
});
|
18
|
-
|
19
|
-
it('When correct answer is not set then alternative answer should be disabled', () => {
|
20
|
-
numberLineLabelPage.steps.checkAlternativeButtonDisabled();
|
21
|
-
});
|
22
|
-
|
23
|
-
it('When correct answer is set then alternative answer should be enabled', () => {
|
24
|
-
numberLineLabelPage.steps.allotPoints(10);
|
25
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
26
|
-
numberLineLabelPage.steps.checkAlternativeButtonEnabled();
|
27
|
-
});
|
28
|
-
|
29
|
-
it('User should be able to add \'Alternative\' answer using the \'Add alternative\' button, when user has not set any answer in the \'Alternative\' accordion and clicks on the \'Correct\' accordion then \'Correct\' accordion should be expanded', () => {
|
30
|
-
numberLineLabelPage.steps.clickOnAddAlternativeAnswerButton();
|
31
|
-
numberLineLabelPage.steps.expandCorrectAnswerAccordion();
|
32
|
-
});
|
33
|
-
});
|
34
|
-
});
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { numberLineLabelPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create item page - Number Line', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('User should be able to edit incomplete authored question', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
numberLineLabelPage.steps.saveAQuestionWithIncompleteAuthoring();
|
15
|
-
numberLineLabelPage.steps.editItem();
|
16
|
-
});
|
17
|
-
|
18
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
19
|
-
numberLineLabelPage.steps.verifyWarningIconOnRequiredFields([
|
20
|
-
'Please set points',
|
21
|
-
]);
|
22
|
-
});
|
23
|
-
|
24
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
25
|
-
numberLineLabelPage.steps.allotPoints(10);
|
26
|
-
numberLineLabelPage.steps.verifyErrorMessageIsNotDisplayed();
|
27
|
-
numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
28
|
-
});
|
29
|
-
|
30
|
-
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
31
|
-
numberLineLabelPage.steps.saveAQuestionAndVerifySnackbar();
|
32
|
-
});
|
33
|
-
|
34
|
-
it('Warning icon should not be visible', () => {
|
35
|
-
numberLineLabelPage.steps.verifyWarningIconNotExist();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
});
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { textEntryMathPage } from "../../../pages";
|
2
|
-
import { browseItemsPage } from "../../../pages/components";
|
3
|
-
import { itemPreviewPage } from "../../../pages";
|
4
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
5
|
-
import utilities from "../../../support/helpers/utilities";
|
6
|
-
|
7
|
-
var itemReferenceID = "";
|
8
|
-
|
9
|
-
describe('Create Item page - Text Entry Math: Header section and Saving question', () => {
|
10
|
-
before(() => {
|
11
|
-
cy.loginAs('admin');
|
12
|
-
});
|
13
|
-
|
14
|
-
describe('Saving a question with incomplete authoring', () => {
|
15
|
-
abortEarlySetup();
|
16
|
-
before(() => {
|
17
|
-
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
18
|
-
cy.barsPreLoaderWait();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('User should be able to save the question with incomplete authoring and snackbar with the text "Saved successfully!" should be displayed', () => {
|
22
|
-
textEntryMathPage.steps.saveAQuestionWithIncompleteAuthoring();
|
23
|
-
});
|
24
|
-
textEntryMathPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
25
|
-
});
|
26
|
-
|
27
|
-
describe('Save as you go - Browse item page contents', () => {
|
28
|
-
abortEarlySetup();
|
29
|
-
before(() => {
|
30
|
-
cy.log('Navigating to Text Entry Math question type');
|
31
|
-
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
32
|
-
cy.barsPreLoaderWait();
|
33
|
-
textEntryMathPage.steps.saveAQuestionWithIncompleteAuthoring();
|
34
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
35
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
36
|
-
browseItemsPage.steps.navigateToBrowseItemsPage();
|
37
|
-
});
|
38
|
-
|
39
|
-
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
40
|
-
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
41
|
-
});
|
42
|
-
});
|
43
|
-
});
|