itemengine-cypress-automation 1.0.342 → 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 +1 -3
- 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 +2 -2
- 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,35 +0,0 @@
|
|
1
|
-
import { graphingPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const correctAnswerPoints = [
|
5
|
-
{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }
|
6
|
-
];
|
7
|
-
|
8
|
-
describe('Create question page - Graphing', () => {
|
9
|
-
before(() => {
|
10
|
-
cy.loginAs('admin');
|
11
|
-
});
|
12
|
-
|
13
|
-
describe('Check Alternative Answer Button', () => {
|
14
|
-
abortEarlySetup();
|
15
|
-
before(() => {
|
16
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
17
|
-
cy.barsPreLoaderWait();
|
18
|
-
});
|
19
|
-
|
20
|
-
it('When correct answer is not set then alternative answer should be disabled', () => {
|
21
|
-
graphingPage.steps.checkAlternativeButtonDisabled();
|
22
|
-
});
|
23
|
-
|
24
|
-
it('When correct answer is set then alternative answer should be enabled', () => {
|
25
|
-
graphingPage.steps.allotPoints(10);
|
26
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection(correctAnswerPoints);
|
27
|
-
graphingPage.steps.checkAlternativeButtonEnabled();
|
28
|
-
});
|
29
|
-
|
30
|
-
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', () => {
|
31
|
-
graphingPage.steps.clickOnAddAlternativeAnswerButton();
|
32
|
-
graphingPage.steps.expandCorrectAnswerAccordion();
|
33
|
-
});
|
34
|
-
});
|
35
|
-
});
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { graphingPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
|
5
|
-
describe('Edit item - Graphing', () => {
|
6
|
-
before(() => {
|
7
|
-
cy.loginAs('admin');
|
8
|
-
});
|
9
|
-
|
10
|
-
describe('Edit Graphing question', { tags: 'smoke' }, () => {
|
11
|
-
abortEarlySetup();
|
12
|
-
before(() => {
|
13
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
14
|
-
cy.barsPreLoaderWait();
|
15
|
-
graphingPage.steps.expandScoringTypeDropdown();
|
16
|
-
graphingPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
17
|
-
graphingPage.steps.allotPoints(2);
|
18
|
-
graphingPage.steps.saveAQuestionAndVerifySnackbar();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('User should be able to change scoring type to non scored and scoring dropdown should exisit.', () => {
|
22
|
-
graphingPage.steps.editItem();
|
23
|
-
graphingPage.steps.expandScoringTypeDropdown();
|
24
|
-
graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
25
|
-
graphingPage.tests.verifyScoringTypeLabelAndDropdown('Auto scored');
|
26
|
-
});
|
27
|
-
});
|
28
|
-
});
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { graphingPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create item page - Graphing', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('User should be able to edit incomplete authored question', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
graphingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
15
|
-
graphingPage.steps.editItem();
|
16
|
-
});
|
17
|
-
|
18
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
19
|
-
graphingPage.steps.verifyWarningIconOnRequiredFields([
|
20
|
-
'Please set points',
|
21
|
-
]);
|
22
|
-
});
|
23
|
-
|
24
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
25
|
-
graphingPage.steps.allotPoints(10);
|
26
|
-
graphingPage.steps.verifyErrorMessageIsNotDisplayed();
|
27
|
-
graphingPage.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
|
-
graphingPage.steps.saveAQuestionAndVerifySnackbar();
|
32
|
-
});
|
33
|
-
|
34
|
-
it('Warning icon should not be visible', () => {
|
35
|
-
graphingPage.steps.verifyWarningIconNotExist();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
});
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { gridFillPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create question page - Drag and Drop into Categories', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('Check Alternative Answer Button', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
before(() => {
|
12
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
});
|
15
|
-
|
16
|
-
it('When correct answer is not set then alternative answer should be disabled', () => {
|
17
|
-
gridFillPage.steps.addTextInQuestionInstructionsInputField('Grid Fill');
|
18
|
-
gridFillPage.steps.checkAlternativeButtonDisabled();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('When correct answer is set then alternative answer should be enabled', () => {
|
22
|
-
gridFillPage.steps.allotPoints(20);
|
23
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
24
|
-
gridFillPage.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
|
-
gridFillPage.steps.clickOnAddAlternativeAnswerButton();
|
29
|
-
});
|
30
|
-
|
31
|
-
it('Alternative answer should not be allowed to be added when user has not set cell count in the correct answer section', () => {
|
32
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
33
|
-
gridFillPage.steps.checkAlternativeButtonDisabled();
|
34
|
-
gridFillPage.steps.addInputToCellShadeCountInputField(2);
|
35
|
-
gridFillPage.steps.checkAlternativeButtonEnabled();
|
36
|
-
gridFillPage.steps.clickOnAddAlternativeAnswerButton();
|
37
|
-
gridFillPage.steps.expandCorrectAnswerAccordion();
|
38
|
-
});
|
39
|
-
});
|
40
|
-
});
|
@@ -1,75 +0,0 @@
|
|
1
|
-
import { gridFillPage } from "../../../../pages";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
describe('Create item page - Grid fill: Scoring section', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('Label and Banner check for Save as you go', () => {
|
10
|
-
abortEarlySetup();
|
11
|
-
beforeEach(() => {
|
12
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
13
|
-
cy.barsPreLoaderWait();
|
14
|
-
});
|
15
|
-
it('When user has not specified the score but user has specified an answer', () => {
|
16
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
17
|
-
gridFillPage.steps.switchToPreviewTab();
|
18
|
-
gridFillPage.steps.switchToGradingView();
|
19
|
-
gridFillPage.steps.checkManuallyScoredScoringLabel();
|
20
|
-
gridFillPage.steps.verifyCorrectAnswerSectionExists();
|
21
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
22
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
23
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
24
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
25
|
-
gridFillPage.steps.verifyCorrectAnswerSectionExists();
|
26
|
-
})
|
27
|
-
it('When user has specified and answer and the score is set to 0 points', () => {
|
28
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
29
|
-
gridFillPage.steps.allotPoints(0);
|
30
|
-
gridFillPage.steps.switchToPreviewTab();
|
31
|
-
gridFillPage.steps.switchToGradingView();
|
32
|
-
gridFillPage.steps.checkNonScoredScoringLabel();
|
33
|
-
gridFillPage.steps.verifyCorrectAnswerSectionExists();
|
34
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
35
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
36
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
37
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
38
|
-
gridFillPage.steps.verifyCorrectAnswerSectionExists();
|
39
|
-
})
|
40
|
-
it('When user has not specified an answer but the score is set to 4 points', () => {
|
41
|
-
gridFillPage.steps.allotPoints(4);
|
42
|
-
gridFillPage.steps.switchToPreviewTab();
|
43
|
-
gridFillPage.steps.switchToGradingView();
|
44
|
-
gridFillPage.steps.checkManuallyScoredScoringLabel();
|
45
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
46
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
47
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
48
|
-
})
|
49
|
-
it('When user has not specified the score correct answer and has not specified the score even for alternate answer', () => {
|
50
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
51
|
-
gridFillPage.steps.addAlternativeAnswerAccordion(1);
|
52
|
-
gridFillPage.steps.expandCorrectAnswerAccordion();
|
53
|
-
cy.wait(1000);
|
54
|
-
gridFillPage.steps.deselectCellSpecifyCorrectAnswerSection(0, 0);
|
55
|
-
gridFillPage.steps.switchToPreviewTab();
|
56
|
-
gridFillPage.steps.switchToGradingView();
|
57
|
-
gridFillPage.steps.checkManuallyScoredScoringLabel();
|
58
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
59
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
60
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
61
|
-
})
|
62
|
-
it('When user has specified the answer and the score is specified by user as well', () => {
|
63
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
64
|
-
gridFillPage.steps.allotPoints(4);
|
65
|
-
gridFillPage.steps.switchToPreviewTab();
|
66
|
-
gridFillPage.steps.switchToGradingView();
|
67
|
-
gridFillPage.steps.verifyCorrectAnswerSectionExists();
|
68
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
69
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
70
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
71
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
72
|
-
gridFillPage.steps.verifyCorrectAnswerSectionExists();
|
73
|
-
});
|
74
|
-
});
|
75
|
-
})
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
|
6
|
-
describe('Create Item page - List ordering', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('Question Preview: Auto Scored With Points', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
17
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
18
|
-
listOrderingPage.steps.switchToPreviewTab();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
22
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
23
|
-
});
|
24
|
-
|
25
|
-
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
26
|
-
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
|
27
|
-
listOrderingPage.steps.switchToGradingView();
|
28
|
-
listOrderingPage.steps.verifyAnswerStatusBannerNotExist();
|
29
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
30
|
-
});
|
31
|
-
|
32
|
-
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', () => {
|
33
|
-
listOrderingPage.steps.switchToEditTab();
|
34
|
-
listOrderingPage.steps.allotPoints(10);
|
35
|
-
listOrderingPage.steps.switchToPreviewTab();
|
36
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
37
|
-
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
|
38
|
-
listOrderingPage.steps.switchToGradingView();
|
39
|
-
listOrderingPage.steps.verifyAnswerStatusBannerNotExist();
|
40
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
41
|
-
});
|
42
|
-
});
|
43
|
-
|
44
|
-
describe('Question Preview: Auto Scored Without Points', () => {
|
45
|
-
abortEarlySetup();
|
46
|
-
before(() => {
|
47
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
48
|
-
cy.barsPreLoaderWait();
|
49
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
50
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
51
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
|
52
|
-
listOrderingPage.steps.switchToPreviewTab();
|
53
|
-
});
|
54
|
-
|
55
|
-
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
56
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
57
|
-
});
|
58
|
-
|
59
|
-
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
60
|
-
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '3' }, { optionIndex: 1, position: '4' }, { optionIndex: 2, position: '2' }, { optionIndex: 3, position: '1' }])
|
61
|
-
listOrderingPage.steps.switchToGradingView();
|
62
|
-
listOrderingPage.steps.verifyAnswerStatusBannerExist();
|
63
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionExist();
|
64
|
-
});
|
65
|
-
});
|
66
|
-
|
67
|
-
describe('Question Preview: Non Scored', () => {
|
68
|
-
abortEarlySetup();
|
69
|
-
before(() => {
|
70
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
71
|
-
cy.barsPreLoaderWait();
|
72
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
73
|
-
});
|
74
|
-
|
75
|
-
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
76
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
77
|
-
listOrderingPage.steps.expandScoringTypeDropdown();
|
78
|
-
listOrderingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
79
|
-
listOrderingPage.steps.switchToPreviewTab();
|
80
|
-
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
|
81
|
-
listOrderingPage.steps.switchToGradingView();
|
82
|
-
listOrderingPage.steps.verifyAnswerStatusBannerNotExist();
|
83
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
84
|
-
});
|
85
|
-
});
|
86
|
-
});
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
|
6
|
-
describe('Create question page - List ordering : Dropdown menu', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('Check Alternative Answer Button', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
17
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
18
|
-
});
|
19
|
-
|
20
|
-
it('When correct answer is not set then alternative answer should be disabled', () => {
|
21
|
-
listOrderingPage.steps.checkAlternativeButtonDisabled();
|
22
|
-
});
|
23
|
-
|
24
|
-
it('When correct answer is set then alternative answer should be enabled', () => {
|
25
|
-
listOrderingPage.steps.allotPoints(10);
|
26
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
27
|
-
listOrderingPage.steps.checkAlternativeButtonEnabled();
|
28
|
-
});
|
29
|
-
|
30
|
-
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', () => {
|
31
|
-
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
32
|
-
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
33
|
-
});
|
34
|
-
});
|
35
|
-
});
|
@@ -1,108 +0,0 @@
|
|
1
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { dialogBoxBase, itemPreviewPage, listOrderingPage } from "../../../pages";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
|
-
import { browseItemsPage } from "../../../pages/components";
|
5
|
-
const options = ['sprout', 'plant', 'flower', 'seed'];
|
6
|
-
let itemReferenceID = "";
|
7
|
-
|
8
|
-
describe('Create item page - Matching : Header section and Saving question', () => {
|
9
|
-
before(() => {
|
10
|
-
cy.loginAs('admin');
|
11
|
-
});
|
12
|
-
|
13
|
-
describe('Header section contents', () => {
|
14
|
-
abortEarlySetup();
|
15
|
-
before(() => {
|
16
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
17
|
-
});
|
18
|
-
|
19
|
-
listOrderingPage.tests.verifyCreateQuestionPageQuestionTypeHeader('List ordering');
|
20
|
-
});
|
21
|
-
|
22
|
-
describe('Tabs section', () => {
|
23
|
-
abortEarlySetup();
|
24
|
-
before(() => {
|
25
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
26
|
-
});
|
27
|
-
|
28
|
-
listOrderingPage.tests.verifyTabsSection();
|
29
|
-
});
|
30
|
-
|
31
|
-
describe('Cancel button', () => {
|
32
|
-
abortEarlySetup();
|
33
|
-
before(() => {
|
34
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
35
|
-
});
|
36
|
-
|
37
|
-
listOrderingPage.tests.verifyCancelButton('list ordering')
|
38
|
-
});
|
39
|
-
|
40
|
-
describe('Save Question button', () => {
|
41
|
-
abortEarlySetup();
|
42
|
-
before(() => {
|
43
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
44
|
-
cy.barsPreLoaderWait();
|
45
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
46
|
-
cy.wait(1000);
|
47
|
-
});
|
48
|
-
|
49
|
-
describe('Validation error messages', () => {
|
50
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
51
|
-
|
52
|
-
it('Validation error messages should be displayed below required input fields', () => {
|
53
|
-
listOrderingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
54
|
-
listOrderingPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
|
55
|
-
});
|
56
|
-
|
57
|
-
it('Validation error messages should disappear when required input fields are filled', () => {
|
58
|
-
listOrderingPage.steps.addTextInQuestionInstructionsInputField('list ordering');
|
59
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
60
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }])
|
61
|
-
listOrderingPage.steps.allotPoints(10);
|
62
|
-
listOrderingPage.steps.verifyErrorMessageIsNotDisplayed();
|
63
|
-
listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
64
|
-
});
|
65
|
-
|
66
|
-
listOrderingPage.tests.verifyCreateItemWrapperContentsA11y();
|
67
|
-
});
|
68
|
-
|
69
|
-
describe('Saving a question', () => {
|
70
|
-
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
71
|
-
listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
|
72
|
-
});
|
73
|
-
listOrderingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
74
|
-
});
|
75
|
-
|
76
|
-
describe('Saving a question with incomplete authoring', () => {
|
77
|
-
abortEarlySetup();
|
78
|
-
before(() => {
|
79
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
80
|
-
cy.barsPreLoaderWait();
|
81
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
82
|
-
});
|
83
|
-
|
84
|
-
it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
|
85
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
86
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
87
|
-
});
|
88
|
-
listOrderingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
89
|
-
});
|
90
|
-
});
|
91
|
-
|
92
|
-
describe('Save as you go - Browse item page contents', () => {
|
93
|
-
abortEarlySetup();
|
94
|
-
before(() => {
|
95
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
96
|
-
cy.barsPreLoaderWait();
|
97
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
98
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
99
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
100
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
101
|
-
browseItemsPage.steps.navigateToBrowseItemsPage();
|
102
|
-
});
|
103
|
-
|
104
|
-
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
105
|
-
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
106
|
-
});
|
107
|
-
});
|
108
|
-
});
|
package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
|
6
|
-
describe('Create Item page - List ordering', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('Question Preview: Auto Scored Without Points', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
17
|
-
listOrderingPage.steps.switchToPreviewTab();
|
18
|
-
});
|
19
|
-
|
20
|
-
it('In Preview tab, manually scored scoring label should be displayed', () => {
|
21
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
22
|
-
});
|
23
|
-
|
24
|
-
it('In Preview tab, when user switches to grading view then no banner and correct answer should displayed', () => {
|
25
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
26
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
27
|
-
listOrderingPage.steps.switchToGradingView();
|
28
|
-
listOrderingPage.steps.verifyAnswerStatusBannerExist();
|
29
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionExist();
|
30
|
-
});
|
31
|
-
});
|
32
|
-
|
33
|
-
describe('Question Preview: Non Scored', () => {
|
34
|
-
abortEarlySetup();
|
35
|
-
before(() => {
|
36
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
37
|
-
cy.barsPreLoaderWait();
|
38
|
-
});
|
39
|
-
|
40
|
-
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should be displayed', () => {
|
41
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
42
|
-
listOrderingPage.steps.expandScoringTypeDropdown();
|
43
|
-
listOrderingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
44
|
-
listOrderingPage.steps.switchToPreviewTab();
|
45
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
46
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
47
|
-
listOrderingPage.steps.switchToGradingView();
|
48
|
-
listOrderingPage.steps.verifyAnswerStatusBannerExist();
|
49
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionExist();
|
50
|
-
});
|
51
|
-
});
|
52
|
-
});
|
@@ -1,101 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
|
6
|
-
describe('Create Item page - List ordering', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('Question Preview: Auto Scored With Points', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
17
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
18
|
-
listOrderingPage.steps.switchToPreviewTab();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
22
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
23
|
-
});
|
24
|
-
|
25
|
-
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
26
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
27
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
28
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
29
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
30
|
-
listOrderingPage.steps.switchToGradingView();
|
31
|
-
listOrderingPage.steps.verifyAnswerStatusBannerNotExist();
|
32
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
33
|
-
});
|
34
|
-
|
35
|
-
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', () => {
|
36
|
-
listOrderingPage.steps.switchToEditTab();
|
37
|
-
listOrderingPage.steps.allotPoints(10);
|
38
|
-
listOrderingPage.steps.switchToPreviewTab();
|
39
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
40
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
41
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
42
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
43
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
44
|
-
listOrderingPage.steps.switchToGradingView();
|
45
|
-
listOrderingPage.steps.verifyAnswerStatusBannerNotExist();
|
46
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
47
|
-
});
|
48
|
-
});
|
49
|
-
|
50
|
-
describe('Question Preview: Auto Scored Without Points', () => {
|
51
|
-
abortEarlySetup();
|
52
|
-
before(() => {
|
53
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
54
|
-
cy.barsPreLoaderWait();
|
55
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
56
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
57
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
58
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
59
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
60
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
61
|
-
listOrderingPage.steps.switchToPreviewTab();
|
62
|
-
});
|
63
|
-
|
64
|
-
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
65
|
-
listOrderingPage.steps.checkManuallyScoredScoringLabel();
|
66
|
-
});
|
67
|
-
|
68
|
-
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
69
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
70
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
71
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
72
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
73
|
-
listOrderingPage.steps.switchToGradingView();
|
74
|
-
listOrderingPage.steps.verifyAnswerStatusBannerExist();
|
75
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionExist();
|
76
|
-
});
|
77
|
-
});
|
78
|
-
|
79
|
-
describe('Question Preview: Non Scored', () => {
|
80
|
-
abortEarlySetup();
|
81
|
-
before(() => {
|
82
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
83
|
-
cy.barsPreLoaderWait();
|
84
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
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
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
89
|
-
listOrderingPage.steps.expandScoringTypeDropdown();
|
90
|
-
listOrderingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
91
|
-
listOrderingPage.steps.switchToPreviewTab();
|
92
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
93
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
94
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
95
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
96
|
-
listOrderingPage.steps.switchToGradingView();
|
97
|
-
listOrderingPage.steps.verifyAnswerStatusBannerNotExist();
|
98
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
99
|
-
});
|
100
|
-
});
|
101
|
-
});
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
const options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
|
6
|
-
describe('Create question page - List ordering : Reorder as a separate list', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('Check Alternative Answer Button', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
17
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
18
|
-
});
|
19
|
-
|
20
|
-
it('When correct answer is not set then alternative answer should be disabled', () => {
|
21
|
-
listOrderingPage.steps.checkAlternativeButtonDisabled();
|
22
|
-
});
|
23
|
-
|
24
|
-
it('When correct answer is set then alternative answer should be enabled', () => {
|
25
|
-
listOrderingPage.steps.allotPoints(10);
|
26
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
27
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
28
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
29
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
30
|
-
listOrderingPage.steps.checkAlternativeButtonEnabled();
|
31
|
-
});
|
32
|
-
|
33
|
-
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', () => {
|
34
|
-
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
35
|
-
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
});
|