itemengine-cypress-automation 1.0.210 → 1.0.211
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/chartFunctionalitySpecifyCorrectAnswerSection.js +254 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.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/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +28 -14
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +29 -29
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +3 -3
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/pages/components/maximumRecorderLengthComponent.js +4 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +14 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/feedbackScalePage.js +1 -1
- package/cypress/pages/index.js +0 -2
- package/cypress/pages/listOrderingPage.js +2 -2
- package/package.json +1 -1
- package/cypress/pages/highlightImagePage.js +0 -1320
- package/cypress/pages/highlightPage.js +0 -499
@@ -203,6 +203,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
203
203
|
cy.log('Pre-step: Switch to edit tab and set maximum recording length to 10 secs')
|
204
204
|
audioResponsePage.steps.switchToEditTab();
|
205
205
|
audioResponsePage.steps.setMaximumRecorderLength(10);
|
206
|
+
cy.wait(2000);
|
206
207
|
audioResponsePage.steps.switchToPreviewTab();
|
207
208
|
audioResponsePage.steps.startRecordingCompactPreview();
|
208
209
|
audioResponsePage.steps.waitForRecordingToStartCompactPreview();
|
@@ -19,8 +19,8 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
19
19
|
before(() => {
|
20
20
|
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
21
21
|
cy.barsPreLoaderWait();
|
22
|
-
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
23
22
|
audioResponsePage.steps.allotPoints(10);
|
23
|
+
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
24
24
|
audioResponsePage.steps.clickOnSaveQuestionButton();
|
25
25
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
26
26
|
//Global variable issue, not working inside before
|
@@ -104,8 +104,8 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
104
104
|
before(() => {
|
105
105
|
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
106
106
|
cy.barsPreLoaderWait();
|
107
|
-
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
108
107
|
audioResponsePage.steps.allotPoints(10);
|
108
|
+
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
109
109
|
audioResponsePage.steps.clickOnSaveQuestionButton();
|
110
110
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
111
111
|
//Global variable issue, not working inside before
|
@@ -20,8 +20,8 @@ describe('Create item page - Audio response: Preview contents', () => {
|
|
20
20
|
case 'Question preview':
|
21
21
|
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
22
22
|
cy.barsPreLoaderWait();
|
23
|
-
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
24
23
|
audioResponsePage.steps.allotPoints(10);
|
24
|
+
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
25
25
|
audioResponsePage.steps.switchToPreviewTab();
|
26
26
|
break;
|
27
27
|
case 'Item view':
|
@@ -257,6 +257,7 @@ describe('Preview of Audio response for standard audio recorder style', () => {
|
|
257
257
|
it('When recording is inprogress and user has reached maximum recorder length, \'Your response has been recorded\' message should be displayed below mic icon. Retake and Play icon should be displayed along with progress bar. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'. Volume meter should not be displayed in player', () => {
|
258
258
|
audioResponsePage.steps.switchToEditTab();
|
259
259
|
audioResponsePage.steps.setMaximumRecorderLength(10);
|
260
|
+
cy.wait(2000);
|
260
261
|
audioResponsePage.steps.switchToPreviewTab();
|
261
262
|
audioResponsePage.steps.startRecordingStandardPreview();
|
262
263
|
audioResponsePage.steps.waitForRecordingToStartStandardPreview();
|
package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js
CHANGED
@@ -18,9 +18,9 @@ describe('Create item page - Brainingcamp manipulative: Grading view, Correct an
|
|
18
18
|
before(() => {
|
19
19
|
brainingCampManipulativePage.steps.navigateToCreateQuestion('brainingcamp manipulative');
|
20
20
|
cy.barsPreLoaderWait();
|
21
|
+
brainingCampManipulativePage.steps.allotPoints(10);
|
21
22
|
brainingCampManipulativePage.steps.addQuestionInstructions();
|
22
23
|
brainingCampManipulativePage.steps.selectAManipulative('Fraction circles');
|
23
|
-
brainingCampManipulativePage.steps.allotPoints(10);
|
24
24
|
brainingCampManipulativePage.steps.clickOnSaveQuestionButton();
|
25
25
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
26
26
|
//Global variable issue, not working inside before
|
@@ -61,9 +61,9 @@ describe('Create item page - Brainingcamp manipulative: Grading view, Correct an
|
|
61
61
|
before(() => {
|
62
62
|
brainingCampManipulativePage.steps.navigateToCreateQuestion('brainingcamp manipulative');
|
63
63
|
cy.barsPreLoaderWait();
|
64
|
+
brainingCampManipulativePage.steps.allotPoints(10);
|
64
65
|
brainingCampManipulativePage.steps.addQuestionInstructions();
|
65
66
|
brainingCampManipulativePage.steps.selectAManipulative('Number lines');
|
66
|
-
brainingCampManipulativePage.steps.allotPoints(10);
|
67
67
|
brainingCampManipulativePage.steps.clickOnSaveQuestionButton();
|
68
68
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
69
69
|
//Global variable issue, not working inside before
|
@@ -19,9 +19,9 @@ describe('Create item page - Brainingcamp manipulative: Preview contents', () =>
|
|
19
19
|
case 'Question preview':
|
20
20
|
brainingCampManipulativePage.steps.navigateToCreateQuestion('brainingcamp manipulative');
|
21
21
|
cy.barsPreLoaderWait();
|
22
|
+
brainingCampManipulativePage.steps.allotPoints(10);
|
22
23
|
brainingCampManipulativePage.steps.addQuestionInstructions();
|
23
24
|
brainingCampManipulativePage.steps.selectAManipulative('Hundred boards');
|
24
|
-
brainingCampManipulativePage.steps.allotPoints(10);
|
25
25
|
brainingCampManipulativePage.steps.switchToPreviewTab();
|
26
26
|
break;
|
27
27
|
case 'Item view':
|
@@ -323,6 +323,7 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
323
323
|
chartsBarPage.steps.allotPoints(50);
|
324
324
|
chartsBarPage.steps.expandCorrectAnswerAccordion();
|
325
325
|
chartsBarPage.steps.allotPoints(10);
|
326
|
+
chartsBarPage.steps.expandAlternativeAnswerAccordion(0);
|
326
327
|
chartsBarPage.steps.switchToPreviewTab();
|
327
328
|
|
328
329
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
@@ -322,6 +322,7 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
322
322
|
chartsBarPage.steps.allotPoints(10);
|
323
323
|
chartsBarPage.steps.expandCorrectAnswerAccordion();
|
324
324
|
chartsBarPage.steps.allotPoints(50);
|
325
|
+
chartsBarPage.steps.expandAlternativeAnswerAccordion(0);
|
325
326
|
chartsBarPage.steps.switchToPreviewTab();
|
326
327
|
|
327
328
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 8, range: 10 });
|
@@ -0,0 +1,254 @@
|
|
1
|
+
import { chartsLinePage } from "../../../pages";
|
2
|
+
import utilities from "../../../support/helpers/utilities";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
describe('Specify correct answer - Charts line', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Control buttons functionality', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
chartsLinePage.steps.selectLineButton();
|
17
|
+
chartsLinePage.steps.selectAddBarOrPointToolbarOption();
|
18
|
+
});
|
19
|
+
|
20
|
+
it('By default, all the control options should be in disabled state', () => {
|
21
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
22
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
23
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
24
|
+
});
|
25
|
+
|
26
|
+
it('When user updates a point label, then the undo and reset button should be displayed in enabled state and redo button should be in disabled state', () => {
|
27
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 1, range: 10 });
|
28
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
29
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
30
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
31
|
+
});
|
32
|
+
|
33
|
+
it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
|
34
|
+
chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo')
|
35
|
+
.verifyTooltip('Undo');
|
36
|
+
chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset')
|
37
|
+
.verifyTooltip('Reset');
|
38
|
+
});
|
39
|
+
|
40
|
+
it('CSS of the tooltip text', { tags: 'css' }, () => {
|
41
|
+
utilities.triggerMouseover(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
42
|
+
utilities.verifyCSS(chartsLinePage.tooltipText(), {
|
43
|
+
'color': css.color.whiteText,
|
44
|
+
'font-size': css.fontSize.small,
|
45
|
+
'font-weight': css.fontWeight.regular,
|
46
|
+
'background-color': css.color.tooltipBg
|
47
|
+
});
|
48
|
+
utilities.triggerMouseout(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
49
|
+
utilities.triggerMouseover(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
50
|
+
utilities.verifyCSS(chartsLinePage.tooltipText(), {
|
51
|
+
'color': css.color.whiteText,
|
52
|
+
'font-size': css.fontSize.small,
|
53
|
+
'font-weight': css.fontWeight.regular,
|
54
|
+
'background-color': css.color.tooltipBg
|
55
|
+
});
|
56
|
+
utilities.triggerMouseout(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
57
|
+
});
|
58
|
+
|
59
|
+
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
60
|
+
utilities.triggerMouseover(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
61
|
+
utilities.verifyElementVisibilityState(chartsLinePage.tooltipText(), 'visible');
|
62
|
+
cy.checkAccessibility(chartsLinePage.tooltipText().parents('[role="tooltip"]'));
|
63
|
+
utilities.triggerMouseout(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
64
|
+
utilities.verifyElementVisibilityState(chartsLinePage.tooltipText(), 'notExist');
|
65
|
+
utilities.triggerMouseover(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
66
|
+
utilities.verifyElementVisibilityState(chartsLinePage.tooltipText(), 'visible');
|
67
|
+
cy.checkAccessibility(chartsLinePage.tooltipText().parents('[role="tooltip"]'));
|
68
|
+
utilities.triggerMouseout(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
69
|
+
utilities.verifyElementVisibilityState(chartsLinePage.tooltipText(), 'notExist');
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When user clicks on a undo button, then the previously performed action should be reverted', () => {
|
73
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Undo');
|
74
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 0, pointValue: 0, range: 10 });
|
75
|
+
});
|
76
|
+
|
77
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
78
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
79
|
+
});
|
80
|
+
|
81
|
+
it('When user hovers on the enabled redo button, then tooltip \'Redo\' should be displayed', () => {
|
82
|
+
chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo')
|
83
|
+
.verifyTooltip('Redo');
|
84
|
+
});
|
85
|
+
|
86
|
+
it('CSS of the tooltip text', { tags: 'css' }, () => {
|
87
|
+
utilities.triggerMouseover(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
88
|
+
utilities.verifyCSS(chartsLinePage.tooltipText(), {
|
89
|
+
'color': css.color.whiteText,
|
90
|
+
'font-size': css.fontSize.small,
|
91
|
+
'font-weight': css.fontWeight.regular,
|
92
|
+
'background-color': css.color.tooltipBg
|
93
|
+
});
|
94
|
+
utilities.triggerMouseout(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
95
|
+
});
|
96
|
+
|
97
|
+
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
98
|
+
utilities.triggerMouseover(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
99
|
+
utilities.verifyElementVisibilityState(chartsLinePage.tooltipText(), 'visible');
|
100
|
+
cy.checkAccessibility(chartsLinePage.tooltipText().parents('[role="tooltip"]'));
|
101
|
+
utilities.triggerMouseout(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
102
|
+
utilities.verifyElementVisibilityState(chartsLinePage.tooltipText(), 'notExist');
|
103
|
+
});
|
104
|
+
|
105
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
106
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Redo');
|
107
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 0, pointValue: 1, range: 10 });
|
108
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
109
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
110
|
+
});
|
111
|
+
|
112
|
+
it('When user performs multiple actions and clicks on undo button then undo button should remain enabled', () => {
|
113
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 3, range: 10 })
|
114
|
+
chartsLinePage.steps.editPointLabelInSpecifyCorrectAnswer(0, 'Day 1');
|
115
|
+
});
|
116
|
+
|
117
|
+
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled and redo button should be enabled', () => {
|
118
|
+
for (var i = 0; i < 5; i++) {
|
119
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Undo');
|
120
|
+
}
|
121
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
122
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
123
|
+
});
|
124
|
+
|
125
|
+
it('When the user clicks on redo button until the graph reaches its latest state, then the redo button should be disabled and undo button should be enabled', () => {
|
126
|
+
for (var i = 0; i < 5; i++) {
|
127
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Redo');
|
128
|
+
}
|
129
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
130
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
131
|
+
});
|
132
|
+
|
133
|
+
//Add point
|
134
|
+
it('When user adds a point and and clicks on undo button, then the previously performed action should be reverted', () => {
|
135
|
+
cy.log('Pre-step: Reset the chart');
|
136
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Reset');
|
137
|
+
chartsLinePage.steps.confirmReset();
|
138
|
+
chartsLinePage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
|
139
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Undo');
|
140
|
+
utilities.verifyElementCount(chartsLinePage.specifyCorrectAnswerPoint(), 3);
|
141
|
+
});
|
142
|
+
|
143
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
144
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
145
|
+
});
|
146
|
+
|
147
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
148
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Redo');
|
149
|
+
utilities.verifyElementCount(chartsLinePage.specifyCorrectAnswerPoint(), 4);
|
150
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
151
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
152
|
+
});
|
153
|
+
|
154
|
+
//Delete point
|
155
|
+
it('When user deletes a point and clicks on a undo button, then the previously performed action should be reverted', () => {
|
156
|
+
cy.log('Pre-step: Reset the chart');
|
157
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Reset');
|
158
|
+
chartsLinePage.steps.confirmReset();
|
159
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 2, range: 10 });
|
160
|
+
chartsLinePage.steps.deletePointInSpecifyCorrectAnswer(0);
|
161
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Undo');
|
162
|
+
utilities.verifyElementCount(chartsLinePage.specifyCorrectAnswerPoint(), 3);
|
163
|
+
});
|
164
|
+
|
165
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
166
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
167
|
+
});
|
168
|
+
|
169
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
170
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Redo');
|
171
|
+
utilities.verifyElementCount(chartsLinePage.specifyCorrectAnswerPoint(), 2);
|
172
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
173
|
+
utilities.verifyElementNotDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
174
|
+
});
|
175
|
+
|
176
|
+
//Reset button
|
177
|
+
it('When the user clicks on Reset button then reset popup should be displayed', () => {
|
178
|
+
cy.log('Pre-step: Editing the graph');
|
179
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 10, range: 10 });
|
180
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
181
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Reset');
|
182
|
+
utilities.verifyElementVisibilityState(chartsLinePage.dialogBox(), 'visible');
|
183
|
+
});
|
184
|
+
|
185
|
+
chartsLinePage.tests.verifyResetPopupContentWithCSSAndA11y('chart');
|
186
|
+
|
187
|
+
it('When user clicks on cancel button in reset popup, then reset popup should close and chart should not be reset', () => {
|
188
|
+
chartsLinePage.steps.cancelReset();
|
189
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 0, pointValue: 10, range: 10 });
|
190
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 1, pointValue: 2, range: 10 });
|
191
|
+
});
|
192
|
+
|
193
|
+
it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state', () => {
|
194
|
+
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Reset');
|
195
|
+
chartsLinePage.steps.confirmReset();
|
196
|
+
utilities.verifyElementNotDisabled(chartsLinePage.specifyCorrectAnswerToolsAddBarOrPointButton());
|
197
|
+
utilities.verifyElementVisibilityState(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'), 'visible');
|
198
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo'));
|
199
|
+
utilities.verifyElementVisibilityState(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'), 'visible');
|
200
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo'));
|
201
|
+
utilities.verifyElementVisibilityState(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'), 'visible');
|
202
|
+
utilities.verifyElementDisabled(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Reset'));
|
203
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.specifyCorrectAnswerPointLabel(), 0), 'Point 1');
|
204
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.specifyCorrectAnswerPointLabel(), 1), 'Point 2');
|
205
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.specifyCorrectAnswerPointLabel(), 2), 'Point 3');
|
206
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 0, pointValue: 0, range: 10 });
|
207
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 1, pointValue: 0, range: 10 });
|
208
|
+
chartsLinePage.steps.verifyPointHeightInSpecifyCorrectAnswer({ pointIndex: 2, pointValue: 0, range: 10 });
|
209
|
+
});
|
210
|
+
|
211
|
+
it('CSS of specify correct answer section tab contents', { tags: 'css' }, () => {
|
212
|
+
utilities.verifyCSS(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo').find('svg'), {
|
213
|
+
'fill': css.color.secondaryBtnDisabled
|
214
|
+
});
|
215
|
+
utilities.verifyCSS(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Redo').find('svg'), {
|
216
|
+
'fill': css.color.secondaryBtnDisabled
|
217
|
+
});
|
218
|
+
utilities.verifyCSS(chartsLinePage.controlOptionsSpecifyCorrectAnswer('Undo').find('svg'), {
|
219
|
+
'fill': css.color.secondaryBtnDisabled
|
220
|
+
});
|
221
|
+
});
|
222
|
+
});
|
223
|
+
|
224
|
+
describe('Charts Functionality', () => {
|
225
|
+
abortEarlySetup();
|
226
|
+
before(() => {
|
227
|
+
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
228
|
+
cy.barsPreLoaderWait();
|
229
|
+
chartsLinePage.steps.selectLineButton();
|
230
|
+
});
|
231
|
+
|
232
|
+
it('Chart should be displayed in specify correct answer section', () => {
|
233
|
+
utilities.verifyElementVisibilityState(chartsLinePage.chartContainerSpecifyCorrectAnswer(), 'visible');
|
234
|
+
});
|
235
|
+
|
236
|
+
it('User should be able to set points in specify correct answer section', () => {
|
237
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 2, range: 10 });
|
238
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 3, range: 10 });
|
239
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 4, range: 10 });
|
240
|
+
});
|
241
|
+
|
242
|
+
it('User should be able to update the plotted points', () => {
|
243
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
244
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 4, range: 10 });
|
245
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 1, range: 10 });
|
246
|
+
});
|
247
|
+
|
248
|
+
it('When user deletes a point then point should be deleted and labels of existing points should not change', () => {
|
249
|
+
chartsLinePage.steps.deletePointInSpecifyCorrectAnswer(1);
|
250
|
+
chartsLinePage.steps.verifyPointLabelSpecifyCorrectAnswer(0, 'Point 1');
|
251
|
+
chartsLinePage.steps.verifyPointLabelSpecifyCorrectAnswer(1, 'Point 3');
|
252
|
+
});
|
253
|
+
});
|
254
|
+
});
|
@@ -19,8 +19,8 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
19
19
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
20
20
|
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
21
21
|
dragAndDropIntoCategoriesPage.steps.addAlternativeAnswerAccordion(1);
|
22
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4 });
|
23
22
|
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4 });
|
24
24
|
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
25
25
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
26
26
|
});
|
@@ -12,9 +12,9 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
12
12
|
dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
|
13
13
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
14
14
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('4');
|
15
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
15
16
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
16
17
|
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
17
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
18
18
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
19
19
|
});
|
20
20
|
|
@@ -236,6 +236,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
236
236
|
dragAndDropIntoCategoriesPage.steps.allotPoints(18);
|
237
237
|
dragAndDropIntoCategoriesPage.steps.expandCorrectAnswerAccordion();
|
238
238
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
239
|
+
dragAndDropIntoCategoriesPage.steps.expandAlternativeAnswerAccordion();
|
239
240
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
240
241
|
|
241
242
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Ostrich': 3, 'Platypus': 2 });
|
@@ -15,12 +15,12 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
15
15
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
16
16
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
17
17
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel', 'Peacock']);
|
18
|
-
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
19
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
20
18
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
21
19
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
|
22
20
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
23
|
-
|
21
|
+
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
23
|
+
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
24
24
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
25
|
});
|
26
26
|
|
@@ -127,7 +127,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
127
127
|
|
128
128
|
it('When the user attempts the question correctly in the order same as set in the specify correct answer section, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
129
129
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
130
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4});
|
130
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
131
131
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(35, 35);
|
132
132
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
133
133
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
@@ -153,7 +153,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
153
153
|
|
154
154
|
it('When the user attempts the question correctly in a random order, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
155
155
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
156
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Parrot': 1, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4});
|
156
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Parrot': 1, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
157
157
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(35, 35);
|
158
158
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
159
159
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
@@ -15,11 +15,11 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
15
15
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
16
16
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
17
17
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel', 'Peacock']);
|
18
|
-
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
19
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
20
18
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
21
19
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per dropzone');
|
22
20
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
21
|
+
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
23
23
|
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
24
24
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
25
|
});
|
@@ -14,8 +14,6 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
14
14
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
15
15
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(7);
|
16
16
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel', 'Peacock', 'Octopus']);
|
17
|
-
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
18
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
19
17
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
20
18
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per dropzone');
|
21
19
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
@@ -23,6 +21,8 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
23
21
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
24
22
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
25
23
|
dragAndDropIntoCategoriesPage.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '30');
|
24
|
+
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
25
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
26
26
|
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
27
27
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
28
28
|
});
|
@@ -14,8 +14,6 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
14
14
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
15
15
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(7);
|
16
16
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel', 'Peacock', 'Octopus']);
|
17
|
-
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
18
|
-
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
19
17
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
20
18
|
dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per dropzone');
|
21
19
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
@@ -23,7 +21,9 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
23
21
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
24
22
|
dragAndDropIntoCategoriesPage.steps.allotPoints(3);
|
25
23
|
dragAndDropIntoCategoriesPage.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '18');
|
26
|
-
|
24
|
+
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
25
|
+
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
26
|
+
//dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
27
27
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
28
28
|
});
|
29
29
|
|
@@ -53,11 +53,11 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
53
53
|
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options in correct categories');
|
54
54
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
55
55
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(5);
|
56
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
56
57
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel']);
|
57
58
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
58
59
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('4');
|
59
60
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
60
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
61
61
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
62
62
|
break;
|
63
63
|
case 'Item preview':
|
@@ -79,6 +79,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
79
79
|
it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the options should change from the previous random order', () => {
|
80
80
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
81
81
|
dragAndDropIntoCategoriesPage.steps.allotPoints(12);
|
82
|
+
cy.wait(200);
|
82
83
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
83
84
|
dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrder(options);
|
84
85
|
dragAndDropIntoCategoriesPage.steps.verifyOptionsAreRerandomized(optionsArray);
|
@@ -233,9 +234,9 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
233
234
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
234
235
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale',]);
|
235
236
|
dragAndDropIntoCategoriesPage.steps.checkAllowMultipleInstancesOfSameDraggableOptionCheckbox();
|
237
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
236
238
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0 });
|
237
239
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 1 });
|
238
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
239
240
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
240
241
|
});
|
241
242
|
|
@@ -80,6 +80,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
80
80
|
it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of group containers as well as the options inside the group should change', () => {
|
81
81
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
82
82
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
83
|
+
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
83
84
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
84
85
|
dragAndDropIntoCategoriesPage.steps.verifyRandomizationOfGroupsInPreviewTab(groupTitles);
|
85
86
|
dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[0], animals[0]);
|
@@ -214,10 +215,10 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
214
215
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle(groupTitles[0]);
|
215
216
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
216
217
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(animals[0]);
|
218
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
217
219
|
dragAndDropIntoCategoriesPage.steps.checkAllowMultipleInstancesOfSameDraggableOptionCheckbox();
|
218
220
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0 });
|
219
221
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 1 });
|
220
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
221
222
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
222
223
|
});
|
223
224
|
|
@@ -22,12 +22,12 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
22
22
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
23
23
|
cy.barsPreLoaderWait();
|
24
24
|
drawingResponsePage.steps.addQuestionInstructions();
|
25
|
+
drawingResponsePage.steps.allotPoints(10);
|
25
26
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
26
27
|
drawingResponsePage.steps.selectOptionsTiles([' SpecialChar']);
|
27
28
|
drawingResponsePage.steps.checkCustomizeSpecialCharactersCheckbox();
|
28
29
|
drawingResponsePage.steps.selectShowOnlyCustomSpecialCharactersRadioButton();
|
29
30
|
drawingResponsePage.steps.addInputToCustomSpecialCharactersInputField('a');
|
30
|
-
drawingResponsePage.steps.allotPoints(10);
|
31
31
|
drawingResponsePage.steps.clickOnSaveQuestionButton();
|
32
32
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
33
33
|
//Global variable issue, not working inside before
|
@@ -73,8 +73,8 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
73
73
|
cy.log('Navigating to drawing response question type');
|
74
74
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
75
75
|
cy.barsPreLoaderWait();
|
76
|
-
drawingResponsePage.steps.addQuestionInstructions();
|
77
76
|
drawingResponsePage.steps.allotPoints(10);
|
77
|
+
drawingResponsePage.steps.addQuestionInstructions();
|
78
78
|
drawingResponsePage.steps.clickOnSaveQuestionButton();
|
79
79
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
80
80
|
//Global variable issue, not working inside before
|
@@ -31,10 +31,10 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
31
31
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
32
32
|
cy.barsPreLoaderWait();
|
33
33
|
drawingResponsePage.steps.addQuestionInstructions();
|
34
|
+
drawingResponsePage.steps.allotPoints(2);
|
34
35
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
35
36
|
drawingResponsePage.steps.selectToolbarOptionsAndControlsFormattingOptionsTiles(defaultUnselectedEditTabCustomizeOptionTiles);
|
36
37
|
drawingResponsePage.steps.selectOptionsTiles(drawingToolbarOptionsAndAdditionalOptions.additionalOptions);
|
37
|
-
drawingResponsePage.steps.allotPoints(2);
|
38
38
|
drawingResponsePage.steps.switchToPreviewTab();
|
39
39
|
break;
|
40
40
|
case 'Item view':
|
@@ -40,8 +40,8 @@ describe('Create question page - Essay response: Scoring', () => {
|
|
40
40
|
cy.log('Adding question instructions and options, select Manually Scored scoring type and add points for the question');
|
41
41
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
42
42
|
cy.barsPreLoaderWait();
|
43
|
-
essayResponsePage.steps.addQuestionInstructions();
|
44
43
|
essayResponsePage.steps.allotPoints(10);
|
44
|
+
essayResponsePage.steps.addQuestionInstructions();
|
45
45
|
essayResponsePage.steps.switchToPreviewTab();
|
46
46
|
});
|
47
47
|
|
@@ -19,8 +19,8 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
19
19
|
cy.log('Navigating to Essay response question type');
|
20
20
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
21
21
|
cy.barsPreLoaderWait();
|
22
|
-
essayResponsePage.steps.addQuestionInstructions();
|
23
22
|
essayResponsePage.steps.allotPoints(10);
|
23
|
+
essayResponsePage.steps.addQuestionInstructions();
|
24
24
|
essayResponsePage.steps.clickOnSaveQuestionButton();
|
25
25
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
26
26
|
//Global variable issue, not working inside before
|
@@ -80,8 +80,8 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
80
80
|
cy.log('Navigating to Essay response question type');
|
81
81
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
82
82
|
cy.barsPreLoaderWait();
|
83
|
-
essayResponsePage.steps.addQuestionInstructions();
|
84
83
|
essayResponsePage.steps.allotPoints(10);
|
84
|
+
essayResponsePage.steps.addQuestionInstructions();
|
85
85
|
essayResponsePage.steps.clickOnSaveQuestionButton();
|
86
86
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
87
87
|
//Global variable issue, not working inside before
|