itemengine-cypress-automation 1.0.212 → 1.0.213
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +11 -11
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +6 -6
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +6 -6
- package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +5 -5
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/toleranceThresholdScoring.js +5 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +6 -5
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +6 -4
- package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +124 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +6 -5
- package/cypress/pages/chartsDotPlotPage.js +59 -1
- package/cypress/pages/components/questionInstructionsComponent.js +3 -1
- package/cypress/pages/multipleSelectionGridPage.js +8 -0
- package/package.json +1 -1
@@ -21,6 +21,7 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
21
21
|
cy.barsPreLoaderWait();
|
22
22
|
audioResponsePage.steps.allotPoints(10);
|
23
23
|
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
24
|
+
cy.wait(1000);
|
24
25
|
audioResponsePage.steps.clickOnSaveQuestionButton();
|
25
26
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
26
27
|
//Global variable issue, not working inside before
|
@@ -51,7 +52,7 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
51
52
|
audioResponsePage.steps.waitForPlaybackToBeginStandardPreview();
|
52
53
|
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:03', '00:10');
|
53
54
|
});
|
54
|
-
|
55
|
+
|
55
56
|
it('When the audio player is in playback state and the user clicks on \'Pause\' button, then playback should get paused. Progress bar and timer should not update further and the \'Pause\' button should get replaced with \'Play\' button', () => {
|
56
57
|
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:05', '00:10');
|
57
58
|
audioResponsePage.steps.pauseAndVerifyProgressBarSliderPosition();
|
@@ -106,6 +107,7 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
106
107
|
cy.barsPreLoaderWait();
|
107
108
|
audioResponsePage.steps.allotPoints(10);
|
108
109
|
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Record an audio');
|
110
|
+
cy.wait(1000);
|
109
111
|
audioResponsePage.steps.clickOnSaveQuestionButton();
|
110
112
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
111
113
|
//Global variable issue, not working inside before
|
@@ -25,13 +25,13 @@ describe('Create item page - Charts - Bar: Add and Delete bar All or nothing sco
|
|
25
25
|
chartsBarPage.steps.switchToPreviewTab();
|
26
26
|
});
|
27
27
|
|
28
|
-
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, incorrect
|
28
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed on bars, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
29
29
|
chartsBarPage.steps.switchToGradingView();
|
30
30
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
31
|
-
chartsBarPage.steps.
|
32
|
-
chartsBarPage.steps.
|
33
|
-
chartsBarPage.steps.
|
34
|
-
chartsBarPage.steps.
|
31
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
32
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
33
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
34
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
35
35
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
36
36
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 1, barValue: 6, range: 10 });
|
37
37
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
@@ -195,14 +195,14 @@ describe('Create item page - Charts - Bar: Add and Delete bar All or nothing sco
|
|
195
195
|
chartsBarPage.steps.switchToPreviewTab();
|
196
196
|
});
|
197
197
|
|
198
|
-
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, incorrect icon should be displayed for
|
198
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icon should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
199
199
|
chartsBarPage.steps.switchToGradingView();
|
200
200
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
201
|
-
chartsBarPage.steps.
|
202
|
-
chartsBarPage.steps.
|
203
|
-
chartsBarPage.steps.
|
204
|
-
chartsBarPage.steps.
|
205
|
-
chartsBarPage.steps.
|
201
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
202
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
203
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
204
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
205
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
206
206
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
207
207
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 1, barValue: 6, range: 10 });
|
208
208
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js
CHANGED
@@ -31,15 +31,15 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
31
31
|
chartsBarPage.steps.switchToPreviewTab();
|
32
32
|
});
|
33
33
|
|
34
|
-
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be
|
34
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icon should be not be displayed for bar, the correct accordion answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
35
35
|
chartsBarPage.steps.switchToGradingView();
|
36
36
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
37
|
-
chartsBarPage.steps.
|
37
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
38
38
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
39
|
-
chartsBarPage.steps.
|
40
|
-
chartsBarPage.steps.
|
41
|
-
chartsBarPage.steps.
|
42
|
-
chartsBarPage.steps.
|
39
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
40
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
41
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
|
42
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
43
43
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 4, range: 10 });
|
44
44
|
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
45
45
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 0, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -29,17 +29,17 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
29
29
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 6, range: 10 });
|
30
30
|
//chartsBarPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
31
31
|
chartsBarPage.steps.switchToPreviewTab();
|
32
|
-
});
|
32
|
+
});s
|
33
33
|
|
34
|
-
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar
|
34
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icon should not be displayed for bar, the correct accordion answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
35
35
|
chartsBarPage.steps.switchToGradingView();
|
36
36
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
37
|
-
chartsBarPage.steps.
|
37
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
38
38
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
39
|
-
chartsBarPage.steps.
|
40
|
-
chartsBarPage.steps.
|
41
|
-
chartsBarPage.steps.
|
42
|
-
chartsBarPage.steps.
|
39
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
40
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
41
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
|
42
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
43
43
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
44
44
|
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
45
45
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
@@ -33,15 +33,15 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
33
33
|
chartsBarPage.steps.switchToPreviewTab();
|
34
34
|
});
|
35
35
|
|
36
|
-
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should
|
36
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icon should not be displayed for any bar, the correct accordion answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
37
37
|
chartsBarPage.steps.switchToGradingView();
|
38
38
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
39
|
-
chartsBarPage.steps.
|
39
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
40
40
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
41
|
-
chartsBarPage.steps.
|
42
|
-
chartsBarPage.steps.
|
43
|
-
chartsBarPage.steps.
|
44
|
-
chartsBarPage.steps.
|
41
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
42
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
43
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(4);
|
44
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
45
45
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
46
46
|
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
47
47
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
@@ -66,13 +66,13 @@ describe('Create Item page - Charts - Bar: Manually and non scored', () => {
|
|
66
66
|
|
67
67
|
chartsBarPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
|
68
68
|
|
69
|
-
it('When the user selects \'Grading\' view without attempting the question, correct
|
69
|
+
it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
70
70
|
chartsBarPage.steps.switchToGradingView();
|
71
|
-
chartsBarPage.steps.
|
71
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
72
72
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
73
|
-
chartsBarPage.steps.
|
74
|
-
chartsBarPage.steps.
|
75
|
-
chartsBarPage.steps.
|
73
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
74
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
75
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
76
76
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
77
77
|
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
78
78
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
|
@@ -27,7 +27,7 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
|
|
27
27
|
chartsBarPage.steps.switchToPreviewTab();
|
28
28
|
});
|
29
29
|
|
30
|
-
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct
|
30
|
+
it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
31
31
|
chartsBarPage.steps.switchToGradingView();
|
32
32
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
33
33
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
@@ -24,14 +24,14 @@ describe('Create item page - Charts - Bar : All or nothing with Tolerance/Thresh
|
|
24
24
|
chartsBarPage.steps.setToleranceThresholdValue(1);
|
25
25
|
});
|
26
26
|
|
27
|
-
it('When the user selects \'Grading\' view without attempting the question,the correct answer should be displayed in the correct answer section graph and
|
27
|
+
it('When the user selects \'Grading\' view without attempting the question,the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
28
28
|
chartsBarPage.steps.switchToPreviewTab();
|
29
29
|
chartsBarPage.steps.switchToGradingView();
|
30
|
-
chartsBarPage.steps.
|
30
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
31
31
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
32
|
-
chartsBarPage.steps.
|
33
|
-
chartsBarPage.steps.
|
34
|
-
chartsBarPage.steps.
|
32
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
33
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
34
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
35
35
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
36
36
|
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
37
37
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
|
@@ -21,7 +21,7 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
21
21
|
cy.log('Navigating to drawing response question type');
|
22
22
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
23
23
|
cy.barsPreLoaderWait();
|
24
|
-
drawingResponsePage.steps.
|
24
|
+
drawingResponsePage.steps.addTextInQuestionInstructionsInputField('Draw on the canvas below');
|
25
25
|
drawingResponsePage.steps.allotPoints(10);
|
26
26
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
27
27
|
drawingResponsePage.steps.selectOptionsTiles([' SpecialChar']);
|
@@ -37,8 +37,9 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
37
37
|
itemReferenceID = $refID;
|
38
38
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
39
39
|
utilities.verifyElementVisibilityState(drawingResponsePage.studentAndGradingViewDrawingToolbarOption(), 'visible');
|
40
|
-
drawingResponsePage.steps.selectStudentViewToolbarOption('
|
40
|
+
drawingResponsePage.steps.selectStudentViewToolbarOption('Scribble');
|
41
41
|
drawingResponsePage.steps.clickOnStudentViewUpperCanvas();
|
42
|
+
cy.wait(1000);
|
42
43
|
studentViewPage.steps.submitResponse();
|
43
44
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
44
45
|
});
|
@@ -46,7 +47,7 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
46
47
|
|
47
48
|
//Failing due to https://redmine.zeuslearning.com/issues/558301
|
48
49
|
it('Question instructions should be visible', () => {
|
49
|
-
utilities.verifyInnerText(drawingResponsePage.questionInstructionsText(), '
|
50
|
+
utilities.verifyInnerText(drawingResponsePage.questionInstructionsText(), 'Draw on the canvas below');
|
50
51
|
utilities.verifyElementVisibilityState(drawingResponsePage.questionInstructionsText(), 'visible');
|
51
52
|
});
|
52
53
|
|
@@ -74,7 +75,7 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
74
75
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
75
76
|
cy.barsPreLoaderWait();
|
76
77
|
drawingResponsePage.steps.allotPoints(10);
|
77
|
-
drawingResponsePage.steps.
|
78
|
+
drawingResponsePage.steps.addTextInQuestionInstructionsInputField('Draw on the canvas below');
|
78
79
|
drawingResponsePage.steps.clickOnSaveQuestionButton();
|
79
80
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
80
81
|
//Global variable issue, not working inside before
|
@@ -87,7 +88,7 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
87
88
|
});
|
88
89
|
|
89
90
|
it('Question instructions should be visible', () => {
|
90
|
-
utilities.verifyTextContent(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), '
|
91
|
+
utilities.verifyTextContent(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'Draw on the canvas below');
|
91
92
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'visible');
|
92
93
|
});
|
93
94
|
|
@@ -20,7 +20,8 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
20
20
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
21
21
|
cy.barsPreLoaderWait();
|
22
22
|
essayResponsePage.steps.allotPoints(10);
|
23
|
-
essayResponsePage.steps.
|
23
|
+
essayResponsePage.steps.addTextInQuestionInstructionsInputField('Please write a short essay in the response field displayed below');
|
24
|
+
cy.wait(500);
|
24
25
|
essayResponsePage.steps.clickOnSaveQuestionButton();
|
25
26
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
26
27
|
//Global variable issue, not working inside before
|
@@ -41,7 +42,7 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
41
42
|
});
|
42
43
|
|
43
44
|
it('Question instructions should be visible', () => {
|
44
|
-
utilities.verifyInnerText(essayResponsePage.questionInstructionsText(), '
|
45
|
+
utilities.verifyInnerText(essayResponsePage.questionInstructionsText(), 'Please write a short essay in the response field displayed below');
|
45
46
|
utilities.verifyElementVisibilityState(essayResponsePage.questionInstructionsText(), 'visible');
|
46
47
|
});
|
47
48
|
|
@@ -81,7 +82,8 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
81
82
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
82
83
|
cy.barsPreLoaderWait();
|
83
84
|
essayResponsePage.steps.allotPoints(10);
|
84
|
-
essayResponsePage.steps.
|
85
|
+
essayResponsePage.steps.addTextInQuestionInstructionsInputField('Please write a short essay in the response field displayed below');
|
86
|
+
cy.wait(500);
|
85
87
|
essayResponsePage.steps.clickOnSaveQuestionButton();
|
86
88
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
87
89
|
//Global variable issue, not working inside before
|
@@ -94,7 +96,7 @@ describe('Create item page - Essay response: Grading view, Correct answer view c
|
|
94
96
|
});
|
95
97
|
|
96
98
|
it('Question instructions should be visible', () => {
|
97
|
-
utilities.verifyTextContent(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), '
|
99
|
+
utilities.verifyTextContent(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'Please write a short essay in the response field displayed below');
|
98
100
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'visible');
|
99
101
|
});
|
100
102
|
|
@@ -19,7 +19,7 @@ describe('Create item page - Essay response - Basic: Grading view, Correct answe
|
|
19
19
|
essayResponseBasicPage.steps.navigateToCreateQuestion('essay response - basic');
|
20
20
|
cy.barsPreLoaderWait();
|
21
21
|
essayResponseBasicPage.steps.allotPoints(10);
|
22
|
-
essayResponseBasicPage.steps.
|
22
|
+
essayResponseBasicPage.steps.addTextInQuestionInstructionsInputField('Please write a short essay in the response field displayed below');
|
23
23
|
essayResponseBasicPage.steps.clickOnSaveQuestionButton();
|
24
24
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
25
25
|
//Global variable issue, not working inside before
|
@@ -39,7 +39,7 @@ describe('Create item page - Essay response - Basic: Grading view, Correct answe
|
|
39
39
|
});
|
40
40
|
|
41
41
|
it('Question instructions should be visible', () => {
|
42
|
-
utilities.verifyInnerText(essayResponseBasicPage.questionInstructionsText(), '
|
42
|
+
utilities.verifyInnerText(essayResponseBasicPage.questionInstructionsText(), 'Please write a short essay in the response field displayed below');
|
43
43
|
utilities.verifyElementVisibilityState(essayResponseBasicPage.questionInstructionsText(), 'visible');
|
44
44
|
});
|
45
45
|
|
@@ -83,7 +83,7 @@ describe('Create item page - Essay response - Basic: Grading view, Correct answe
|
|
83
83
|
essayResponseBasicPage.steps.navigateToCreateQuestion('essay response - basic');
|
84
84
|
cy.barsPreLoaderWait();
|
85
85
|
essayResponseBasicPage.steps.allotPoints(10);
|
86
|
-
essayResponseBasicPage.steps.
|
86
|
+
essayResponseBasicPage.steps.addTextInQuestionInstructionsInputField('Please write a short essay in the response field displayed below');
|
87
87
|
essayResponseBasicPage.steps.clickOnSaveQuestionButton();
|
88
88
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
89
89
|
//Global variable issue, not working inside before
|
@@ -96,7 +96,7 @@ describe('Create item page - Essay response - Basic: Grading view, Correct answe
|
|
96
96
|
});
|
97
97
|
|
98
98
|
it('Question instructions should be visible', () => {
|
99
|
-
utilities.verifyTextContent(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), '
|
99
|
+
utilities.verifyTextContent(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'Please write a short essay in the response field displayed below');
|
100
100
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'visible');
|
101
101
|
});
|
102
102
|
|
@@ -108,7 +108,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
108
108
|
listOrderingPage.steps.switchToGradingView();
|
109
109
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
110
110
|
};
|
111
|
-
listOrderingPage.steps.
|
111
|
+
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
112
112
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
113
113
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
114
114
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
@@ -40,6 +40,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
40
40
|
});
|
41
41
|
}
|
42
42
|
|
43
|
+
//Failing for grading view https://redmine.zeuslearning.com/issues/576511
|
43
44
|
views.forEach((view) => {
|
44
45
|
describe(`Short text response: all or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
|
45
46
|
abortEarlySetup();
|
@@ -23,6 +23,7 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
23
23
|
cy.barsPreLoaderWait();
|
24
24
|
videoResponsePage.steps.allotPoints(10);
|
25
25
|
videoResponsePage.steps.addTextInQuestionInstructionsInputField('Record a video');
|
26
|
+
cy.wait(500);
|
26
27
|
videoResponsePage.steps.clickOnSaveQuestionButton();
|
27
28
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
28
29
|
//Global variable issue, not working inside before
|
@@ -53,7 +54,7 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
53
54
|
videoResponsePage.steps.waitForPlaybackToBegin();
|
54
55
|
videoResponsePage.steps.verifyVideoPlaybackTimer('0:03', '0:12');
|
55
56
|
});
|
56
|
-
|
57
|
+
|
57
58
|
it('When the video player is in playback state and the user clicks on \'Pause\' button, then playback should get paused. Progress bar and timer should not update further and the \'Pause\' button should get replaced with \'Play\' button', () => {
|
58
59
|
videoResponsePage.steps.verifyVideoPlaybackTimer('0:05', '0:12');
|
59
60
|
videoResponsePage.steps.pauseAndVerifyProgressBarSliderPosition();
|
@@ -75,7 +76,7 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
75
76
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPauseButton(), 'notExist');
|
76
77
|
videoResponsePage.steps.verifyProgressBarSliderPosition(99);
|
77
78
|
});
|
78
|
-
|
79
|
+
|
79
80
|
it('When the user hovers over \'Volume control\' button, volume control settings should open and by default it should be set to full volume and on hovering away from the button, the volume sliders should disappear', () => {
|
80
81
|
videoResponsePage.steps.hoverOnVolumeControlButton();
|
81
82
|
utilities.verifyElementVisibilityState(videoResponsePage.volumeControlSlider(), 'visible');
|
@@ -153,6 +154,7 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
153
154
|
cy.barsPreLoaderWait();
|
154
155
|
videoResponsePage.steps.allotPoints(10);
|
155
156
|
videoResponsePage.steps.addTextInQuestionInstructionsInputField('Record a video');
|
157
|
+
cy.wait(500);
|
156
158
|
videoResponsePage.steps.clickOnSaveQuestionButton();
|
157
159
|
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
158
160
|
//Global variable issue, not working inside before
|
@@ -28,17 +28,17 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
28
28
|
it('When the user sets correct answer responses and allots points, then the alloted points should be displayed in the preview tab', () => {
|
29
29
|
chartsDotPlotPage.steps.switchToEditTab();
|
30
30
|
chartsDotPlotPage.steps.allotPoints(20);
|
31
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval:
|
32
|
-
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval:
|
33
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval:
|
31
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
32
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
33
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
34
34
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
35
35
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 20);
|
36
36
|
});
|
37
37
|
|
38
38
|
it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab, users response should not persist', () => {
|
39
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval:
|
39
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
40
40
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
41
|
-
chartsDotPlotPage.steps.verifyDotNotExistPreviewTab({ point: 4, min: 1, interval:
|
41
|
+
chartsDotPlotPage.steps.verifyDotNotExistPreviewTab({ point: 4, min: 1, interval: 1 })
|
42
42
|
});
|
43
43
|
});
|
44
44
|
};
|
@@ -57,26 +57,27 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
57
57
|
chartsDotPlotPage.steps.verifyTextInMinInputField(1);
|
58
58
|
chartsDotPlotPage.steps.enterTextInMaxInputField(6);
|
59
59
|
chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
|
60
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
60
61
|
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
61
62
|
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
62
63
|
//locked column
|
63
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval:
|
64
|
-
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval:
|
64
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
65
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
65
66
|
//adding more dots
|
66
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval:
|
67
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
67
68
|
//adding less dots
|
68
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 3, min: 1, interval:
|
69
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
69
70
|
//adding equal dots
|
70
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 4, min: 1, interval:
|
71
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
71
72
|
chartsDotPlotPage.steps.allotPoints(20);
|
72
73
|
//adding more dots
|
73
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval:
|
74
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
74
75
|
//adding less dots
|
75
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval:
|
76
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
76
77
|
//adding equal dots
|
77
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval:
|
78
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
78
79
|
//exclusive to specify correct answer
|
79
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval:
|
80
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
80
81
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
81
82
|
break;
|
82
83
|
case 'Item preview':
|
@@ -85,6 +86,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
85
86
|
break;
|
86
87
|
case 'Grading view':
|
87
88
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
89
|
+
cy.wait(1000);
|
88
90
|
break;
|
89
91
|
}
|
90
92
|
});
|
@@ -124,24 +126,24 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
124
126
|
chartsDotPlotPage.steps.switchToGradingView();
|
125
127
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 20);
|
126
128
|
}
|
127
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
128
|
-
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval:
|
129
|
-
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval:
|
130
|
-
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval:
|
131
|
-
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval:
|
132
|
-
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval:
|
133
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
134
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
135
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
136
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
137
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
138
|
-
chartsDotPlotPage.steps.
|
129
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
130
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
131
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
132
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
133
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
134
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
135
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
136
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
137
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
138
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
139
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
140
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
139
141
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
140
142
|
});
|
141
143
|
|
142
|
-
it('
|
143
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval:
|
144
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval:
|
144
|
+
it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
|
145
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1 });
|
146
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
145
147
|
if (view === 'Grading view') {
|
146
148
|
studentViewPage.steps.submitResponse();
|
147
149
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -152,19 +154,19 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
152
154
|
chartsDotPlotPage.steps.switchToGradingView();
|
153
155
|
}
|
154
156
|
//Preview tab
|
155
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
156
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
157
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
158
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
159
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
160
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval:
|
157
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
158
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
159
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
160
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
161
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
162
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
161
163
|
//correct answer section
|
162
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
163
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
164
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
165
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
166
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
167
|
-
chartsDotPlotPage.steps.
|
164
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
165
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
166
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
167
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
168
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
169
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
168
170
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
169
171
|
});
|
170
172
|
|
@@ -172,7 +174,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
172
174
|
if (view === 'Grading view') {
|
173
175
|
studentViewPage.steps.clearResponses();
|
174
176
|
};
|
175
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval:
|
177
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
|
176
178
|
if (view === 'Grading view') {
|
177
179
|
studentViewPage.steps.submitResponse();
|
178
180
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -183,19 +185,19 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
183
185
|
chartsDotPlotPage.steps.switchToGradingView();
|
184
186
|
}
|
185
187
|
//Preview tab
|
186
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
187
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
188
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
189
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
190
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
191
|
-
chartsDotPlotPage.steps.
|
188
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
189
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
190
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
191
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
192
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
193
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
192
194
|
//Correct answer section
|
193
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
194
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
195
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
196
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
197
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
198
|
-
chartsDotPlotPage.steps.
|
195
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
196
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
197
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
198
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
199
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
200
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
199
201
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
200
202
|
});
|
201
203
|
|
@@ -203,7 +205,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
203
205
|
if (view === 'Grading view') {
|
204
206
|
studentViewPage.steps.clearResponses();
|
205
207
|
};
|
206
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 2, min: 1, interval:
|
208
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 2, min: 1, interval: 1 });
|
207
209
|
if (view === 'Grading view') {
|
208
210
|
studentViewPage.steps.submitResponse();
|
209
211
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -214,20 +216,20 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
214
216
|
chartsDotPlotPage.steps.switchToGradingView();
|
215
217
|
}
|
216
218
|
//Preview tab
|
217
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
218
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
219
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
220
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
221
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
222
|
-
chartsDotPlotPage.steps.
|
219
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
220
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
221
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
222
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
223
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
224
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
223
225
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
224
226
|
//correct answer section
|
225
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
226
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
227
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
228
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
229
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
230
|
-
chartsDotPlotPage.steps.
|
227
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
228
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
229
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
230
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
231
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
232
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
231
233
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
232
234
|
});
|
233
235
|
|
@@ -235,7 +237,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
235
237
|
if (view === 'Grading view') {
|
236
238
|
studentViewPage.steps.clearResponses();
|
237
239
|
};
|
238
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval:
|
240
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
239
241
|
if (view === 'Grading view') {
|
240
242
|
studentViewPage.steps.submitResponse();
|
241
243
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -246,20 +248,20 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
246
248
|
chartsDotPlotPage.steps.switchToGradingView();
|
247
249
|
}
|
248
250
|
//Preview tab
|
249
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
250
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
251
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
252
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
253
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
254
|
-
chartsDotPlotPage.steps.
|
251
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
252
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
|
253
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
254
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
255
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
256
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
255
257
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
256
258
|
//correct answer section
|
257
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
258
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
259
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
260
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
261
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
262
|
-
chartsDotPlotPage.steps.
|
259
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
260
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
261
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
262
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
263
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
264
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
263
265
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
264
266
|
});
|
265
267
|
|
@@ -267,7 +269,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
267
269
|
if (view === 'Grading view') {
|
268
270
|
studentViewPage.steps.clearResponses();
|
269
271
|
};
|
270
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval:
|
272
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
271
273
|
if (view === 'Grading view') {
|
272
274
|
studentViewPage.steps.submitResponse();
|
273
275
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -278,20 +280,20 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
278
280
|
chartsDotPlotPage.steps.switchToGradingView();
|
279
281
|
}
|
280
282
|
//Preview tab
|
281
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
282
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
283
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
284
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
285
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
286
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval:
|
283
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
284
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
285
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
286
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
287
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
288
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
287
289
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
288
290
|
//correct answer section
|
289
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
290
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
291
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
292
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
293
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
294
|
-
chartsDotPlotPage.steps.
|
291
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
292
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
293
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
294
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
295
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
296
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
295
297
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
296
298
|
});
|
297
299
|
|
@@ -299,8 +301,8 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
299
301
|
if (view === 'Grading view') {
|
300
302
|
studentViewPage.steps.clearResponses();
|
301
303
|
};
|
302
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval:
|
303
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval:
|
304
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1 });
|
305
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
304
306
|
if (view === 'Grading view') {
|
305
307
|
studentViewPage.steps.submitResponse();
|
306
308
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -311,20 +313,20 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
311
313
|
chartsDotPlotPage.steps.switchToGradingView();
|
312
314
|
}
|
313
315
|
//Preview tab
|
314
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
315
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
316
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
317
|
-
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
318
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
319
|
-
chartsDotPlotPage.steps.
|
316
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
317
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
318
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
319
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
320
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
321
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
320
322
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
321
323
|
//correct answer section
|
322
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval:
|
323
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval:
|
324
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval:
|
325
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval:
|
326
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval:
|
327
|
-
chartsDotPlotPage.steps.
|
324
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
325
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
326
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
327
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
328
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
329
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
328
330
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
329
331
|
});
|
330
332
|
|
@@ -332,9 +334,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
332
334
|
if (view === 'Grading view') {
|
333
335
|
studentViewPage.steps.clearResponses();
|
334
336
|
};
|
335
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval:
|
336
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval:
|
337
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval:
|
337
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
338
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
339
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
338
340
|
if (view === 'Grading view') {
|
339
341
|
studentViewPage.steps.submitResponse();
|
340
342
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -344,11 +346,12 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
344
346
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 20);
|
345
347
|
chartsDotPlotPage.steps.switchToGradingView();
|
346
348
|
}
|
347
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval:
|
348
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval:
|
349
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval:
|
350
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval:
|
351
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval:
|
349
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
350
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
351
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
352
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
353
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
354
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
352
355
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
353
356
|
});
|
354
357
|
|
@@ -369,11 +372,11 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
369
372
|
chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
|
370
373
|
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
371
374
|
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
372
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 1, min: 1, interval:
|
373
|
-
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval:
|
374
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 2, min: 1, interval:
|
375
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
376
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
377
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
375
378
|
chartsDotPlotPage.steps.allotPoints(10);
|
376
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval:
|
379
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
377
380
|
});
|
378
381
|
|
379
382
|
it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
|
@@ -388,7 +391,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
388
391
|
|
389
392
|
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
390
393
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
391
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 3, min: 1, interval:
|
394
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
392
395
|
chartsDotPlotPage.steps.verifyPreviewScore(2, 10);
|
393
396
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
394
397
|
});
|
@@ -406,7 +409,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
406
409
|
|
407
410
|
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
408
411
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
409
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 3, min: 1, interval:
|
412
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
410
413
|
chartsDotPlotPage.steps.verifyPreviewScore(2, 10);
|
411
414
|
});
|
412
415
|
});
|
@@ -36,14 +36,14 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
36
36
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
37
37
|
});
|
38
38
|
|
39
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
39
|
+
it('When the user selects \'Grading\' view without attempting the question, dot columns should not have correct/incorrect icon, correct answer section should be displayed with correct answers from alternate accordion and correct/incorrect status message should not be displayed', () => {
|
40
40
|
chartsDotPlotPage.steps.switchToGradingView();
|
41
41
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
42
|
-
chartsDotPlotPage.steps.
|
43
|
-
chartsDotPlotPage.steps.
|
44
|
-
chartsDotPlotPage.steps.
|
45
|
-
chartsDotPlotPage.steps.
|
46
|
-
chartsDotPlotPage.steps.
|
42
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
43
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1});
|
44
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1});
|
45
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1});
|
46
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval: 1});
|
47
47
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
48
48
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
49
49
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
@@ -36,14 +36,14 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
|
|
36
36
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
37
37
|
});
|
38
38
|
|
39
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
39
|
+
it('When the user selects \'Grading\' view without attempting the question, dot columns should not have correct/incorrect icon, correct answer section should be displayed with correct answers from correct accordion and correct/incorrect status message should not be displayed', () => {
|
40
40
|
chartsDotPlotPage.steps.switchToGradingView();
|
41
41
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
42
|
-
chartsDotPlotPage.steps.
|
43
|
-
chartsDotPlotPage.steps.
|
44
|
-
chartsDotPlotPage.steps.
|
45
|
-
chartsDotPlotPage.steps.
|
46
|
-
chartsDotPlotPage.steps.
|
42
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
43
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
44
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
45
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
46
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
47
47
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
48
48
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
49
49
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
@@ -35,18 +35,18 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
35
35
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
36
36
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
37
37
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
38
|
-
|
38
|
+
//chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
39
39
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
40
40
|
});
|
41
41
|
|
42
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
42
|
+
it('When the user selects \'Grading\' view without attempting the question, dot columns should not have correct/incorrect icon, correct answer section should be displayed with correct answers from correct accordion and correct/incorrect status message should not be displayed', () => {
|
43
43
|
chartsDotPlotPage.steps.switchToGradingView();
|
44
44
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
45
|
-
chartsDotPlotPage.steps.
|
46
|
-
chartsDotPlotPage.steps.
|
47
|
-
chartsDotPlotPage.steps.
|
48
|
-
chartsDotPlotPage.steps.
|
49
|
-
chartsDotPlotPage.steps.
|
45
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
46
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
47
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
48
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
49
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
50
50
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
51
51
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
52
52
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
@@ -68,18 +68,19 @@ describe('Create Item page - Charts - Dot plot: Manually and non scored', () =>
|
|
68
68
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
69
69
|
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
70
70
|
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
71
|
-
|
71
|
+
//chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
72
72
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
73
73
|
});
|
74
74
|
|
75
75
|
chartsDotPlotPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
|
76
76
|
|
77
|
-
it('When the user selects \'Grading\' view without attempting the question,
|
77
|
+
it('When the user selects \'Grading\' view without attempting the question, dot columns should not have correct/incorrect icon, correct answer section should be displayed with correct answers and correct/incorrect status message should not be displayed', () => {
|
78
78
|
chartsDotPlotPage.steps.switchToGradingView();
|
79
79
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
80
|
-
chartsDotPlotPage.steps.
|
81
|
-
chartsDotPlotPage.steps.
|
82
|
-
chartsDotPlotPage.steps.
|
80
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
81
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
82
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
83
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
83
84
|
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
84
85
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
85
86
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
@@ -1147,6 +1147,35 @@ const steps = {
|
|
1147
1147
|
});
|
1148
1148
|
},
|
1149
1149
|
|
1150
|
+
/**
|
1151
|
+
* Verifies that the empty dot column
|
1152
|
+
* @param {object} options - The options object containing point, min, and interval.
|
1153
|
+
* @param {number} options.point - The point value.
|
1154
|
+
* @param {number} options.min - The minimum value.
|
1155
|
+
* @param {number} options.interval - The interval value.
|
1156
|
+
*/
|
1157
|
+
verifyEmptyDotColumnPreviewTab: ({ point, min, interval }) => {
|
1158
|
+
const index = Math.round((point - min) / interval);
|
1159
|
+
chartsDotPlotPage.dotPlotChartPreviewTab()
|
1160
|
+
.within(() => {
|
1161
|
+
chartsDotPlotPage.dotColumnPreviewTab()
|
1162
|
+
.eq(index)
|
1163
|
+
.should('have.not.class', 'correct-bar-indicator')
|
1164
|
+
.should('have.css', 'background-color', css.color.transparent)
|
1165
|
+
.find('.icon-correct')
|
1166
|
+
.should('not.exist');
|
1167
|
+
chartsDotPlotPage.dotColumnPreviewTab()
|
1168
|
+
.eq(index)
|
1169
|
+
.should('not.have.class', 'inCorrect-bar-indicator')
|
1170
|
+
.find('.icon-incorrect')
|
1171
|
+
.should('not.exist');
|
1172
|
+
chartsDotPlotPage.dotColumnPreviewTab()
|
1173
|
+
.eq(index)
|
1174
|
+
.find('.dot-icon')
|
1175
|
+
.should('not.exist');
|
1176
|
+
});
|
1177
|
+
},
|
1178
|
+
|
1150
1179
|
/**
|
1151
1180
|
* Verifies that the default dot column
|
1152
1181
|
* @param {object} options - The options object containing point, min, and interval.
|
@@ -1163,7 +1192,7 @@ const steps = {
|
|
1163
1192
|
.should('not.have.class', 'correct-bar-indicator')
|
1164
1193
|
.and('not.have.class', 'inCorrect-bar-indicator')
|
1165
1194
|
.and('not.have.css', 'background-color', css.color.correctAnswerLabelBg)
|
1166
|
-
.and('not.have.css', 'background-color', css.color.
|
1195
|
+
.and('not.have.css', 'background-color', css.color.incorrectAnswerLabelBg)
|
1167
1196
|
});
|
1168
1197
|
steps.verifyDotColumnIsLockedInPreviewTab({ point, min, interval });
|
1169
1198
|
steps.verifyDefaultDotPreviewTab({ point, min, interval });
|
@@ -1419,6 +1448,35 @@ const steps = {
|
|
1419
1448
|
}
|
1420
1449
|
},
|
1421
1450
|
|
1451
|
+
/**
|
1452
|
+
* Verifies that the empty dot column
|
1453
|
+
* @param {object} options - The options object containing point, min, and interval.
|
1454
|
+
* @param {number} options.point - The point value.
|
1455
|
+
* @param {number} options.min - The minimum value.
|
1456
|
+
* @param {number} options.interval - The interval value.
|
1457
|
+
*/
|
1458
|
+
verifyEmptyDotColumnCorrectAnswerSection: ({ point, min, interval }) => {
|
1459
|
+
const index = Math.round((point - min) / interval);
|
1460
|
+
chartsDotPlotPage.dotPlotChartCorrectAnswerSection()
|
1461
|
+
.within(() => {
|
1462
|
+
chartsDotPlotPage.dotColumnCorrectAnswerSection()
|
1463
|
+
.eq(index)
|
1464
|
+
.should('have.not.class', 'correct-bar-indicator')
|
1465
|
+
.should('have.css', 'background-color', css.color.transparent)
|
1466
|
+
.find('.icon-correct')
|
1467
|
+
.should('not.exist');
|
1468
|
+
chartsDotPlotPage.dotColumnCorrectAnswerSection()
|
1469
|
+
.eq(index)
|
1470
|
+
.should('not.have.class', 'inCorrect-bar-indicator')
|
1471
|
+
.find('.icon-incorrect')
|
1472
|
+
.should('not.exist');
|
1473
|
+
chartsDotPlotPage.dotColumnCorrectAnswerSection()
|
1474
|
+
.eq(index)
|
1475
|
+
.find('.dot-icon')
|
1476
|
+
.should('not.exist');
|
1477
|
+
});
|
1478
|
+
},
|
1479
|
+
|
1422
1480
|
/**
|
1423
1481
|
* Verifies that the correct dot exists in the specified column
|
1424
1482
|
* @param {object} options - The options object containing point, min, and interval.
|
@@ -13,8 +13,10 @@ const selectors = {
|
|
13
13
|
const steps = {
|
14
14
|
addQuestionInstructions: () => {
|
15
15
|
questionInstructionsComponent.questionInstructionsInputField()
|
16
|
-
.type('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.'
|
16
|
+
.type('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
17
17
|
.blur();
|
18
|
+
questionInstructionsComponent.questionInstructionsInputField()
|
19
|
+
.should('have.text', 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
18
20
|
},
|
19
21
|
|
20
22
|
verifyQuestionInstructionsErrorMessageIsNotDisplayed: () => {
|
@@ -138,6 +138,14 @@ const steps = {
|
|
138
138
|
.click()
|
139
139
|
.should('be.checked');
|
140
140
|
},
|
141
|
+
|
142
|
+
verifyCorrectIncorrectIconsNotExist: () => {
|
143
|
+
multipleSelectionGridPage.gridPreviewTab()
|
144
|
+
.within(() => {
|
145
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'notExist');
|
146
|
+
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'notExist');
|
147
|
+
});
|
148
|
+
}
|
141
149
|
}
|
142
150
|
|
143
151
|
const tests = {
|