itemengine-cypress-automation 1.0.282-applitools-8c400f4.0 → 1.0.283-updatedPackageFile-3c0db7c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -40
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -17
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -14
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -54
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -21
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -20
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -19
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -22
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +7 -17
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -27
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +9 -21
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +13 -26
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -16
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -19
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -14
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -13
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -19
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -14
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -25
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -12,14 +12,6 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - Edit line graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -101,10 +93,9 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
101
93
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), 'Point 4');
|
102
94
|
});
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('The graph max value should be as set in the Max Y input field and it should affect the chart division', () => {
|
105
97
|
utilities.verifyTextContent(utilities.getNthElement(chartsLinePage.previewTabYAxisCoordinate(), 0), 20);
|
106
98
|
utilities.verifyElementCount(chartsLinePage.previewTabChartRowHeaderContainer(), 21);
|
107
|
-
cy.eyesCheckWindow(`${view} view: Charts Line - Question instructions, Graph title, Y axis label, X axis label and point labels`);
|
108
99
|
});
|
109
100
|
|
110
101
|
it('User should be able to edit the Y axis and X axis labels in preview tab', () => {
|
@@ -151,9 +142,8 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
151
142
|
|
152
143
|
chartsLinePage.tests.verifyPointTooltipContentsCSSAndA11yInPreviewTab('0', 'Point 1');
|
153
144
|
|
154
|
-
it(
|
145
|
+
it('User should be able to edit the point label', () => {
|
155
146
|
chartsLinePage.steps.editPointLabelInPreviewTab(0, '2000');
|
156
|
-
cy.eyesCheckWindow(`${view} - Charts line after editing the point height and labels`);
|
157
147
|
});
|
158
148
|
|
159
149
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -287,11 +277,10 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
287
277
|
cy.checkAccessibility(chartsLinePage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
|
288
278
|
});
|
289
279
|
|
290
|
-
it(
|
280
|
+
it('When user deletes a point, then that point should be deleted and the add point button should be enabled again', () => {
|
291
281
|
chartsLinePage.steps.deletePointInPreviewTab(3);
|
292
282
|
utilities.verifyElementCount(chartsLinePage.previewTabPoint(), 3);
|
293
283
|
utilities.verifyElementVisibilityState(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 4), 'notExist');
|
294
|
-
cy.eyesCheckWindow(`${view} - Charts Line: Charts bar after adding and deleting points`);
|
295
284
|
});
|
296
285
|
});
|
297
286
|
});
|
@@ -344,11 +333,10 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
344
333
|
});
|
345
334
|
|
346
335
|
//Point labels
|
347
|
-
it(
|
336
|
+
it('When user updates a point label, then the undo and reset button should be displayed in enabled state', () => {
|
348
337
|
chartsLinePage.steps.editPointLabelInPreviewTab(0, 'Edited point 1');
|
349
338
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
350
339
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsResetButton());
|
351
|
-
cy.eyesCheckWindow(`${view}: Charts line - Bar label updated`);
|
352
340
|
});
|
353
341
|
|
354
342
|
it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
|
@@ -573,7 +561,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
573
561
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 3, value: 6, range: 10 });
|
574
562
|
});
|
575
563
|
|
576
|
-
it(
|
564
|
+
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', () => {
|
577
565
|
chartsLinePage.steps.clickOnResetButtonPreviewTab();
|
578
566
|
chartsLinePage.steps.confirmReset();
|
579
567
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsAddBarOrPointButton());
|
@@ -591,7 +579,6 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
591
579
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 10 });
|
592
580
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 3, range: 10 });
|
593
581
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
594
|
-
cy.eyesCheckWindow(`${view} view: Charts line - Chart reset to default state`);
|
595
582
|
});
|
596
583
|
|
597
584
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -12,14 +12,6 @@ describe('Preview tab contents for all views', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -69,12 +61,11 @@ describe('Preview tab contents for all views', () => {
|
|
69
61
|
compassPage.steps.verifyPreviewTabCompassVisibilityButtonLabel('Show');
|
70
62
|
});
|
71
63
|
|
72
|
-
it(
|
64
|
+
it('When user clicks on \'Show compass\' button then \'Compass\' should be displayed and \'Show compass\' button should change to \'Hide compass\'', () => {
|
73
65
|
compassPage.steps.clickOnCompassToolVisibilityButton();
|
74
66
|
compassPage.steps.verifyCompassToolIsVisible();
|
75
67
|
compassPage.steps.verifyPreviewTabCompassVisibilityButtonLabel('Hide');
|
76
68
|
compassPage.steps.clickOnCompassToolVisibilityButton();
|
77
|
-
cy.eyesCheckWindow(`${view} - Check compass visibility`);
|
78
69
|
});
|
79
70
|
|
80
71
|
it('CSS of preview tab basic section', { tags: 'css' }, () => {
|
@@ -12,14 +12,6 @@ describe('Preview tab contents for all views', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -76,13 +68,12 @@ describe('Preview tab contents for all views', () => {
|
|
76
68
|
utilities.verifyElementVisibilityState(contentBlocksPage.subTitleLabelPreviewTab(), 'visible');
|
77
69
|
});
|
78
70
|
|
79
|
-
it(
|
71
|
+
it('Text block, solid group divider and subtitle text should be displayed', () => {
|
80
72
|
utilities.verifyInnerText(contentBlocksPage.textBlockPreviewTab(), 'This is text block text');
|
81
73
|
utilities.verifyElementVisibilityState(contentBlocksPage.textBlockPreviewTab(), 'visible');
|
82
74
|
utilities.verifyElementVisibilityState(contentBlocksPage.groupDividerPreviewTab(), 'visible');
|
83
75
|
utilities.verifyInnerText(contentBlocksPage.bodySubTitlePreviewTab(), 'This is body subtitle text');
|
84
76
|
utilities.verifyElementVisibilityState(contentBlocksPage.bodySubTitlePreviewTab(), 'visible');
|
85
|
-
cy.eyesCheckWindow(`${view} - Title, text block, solid group divider and subtitle text should be displayed`);
|
86
77
|
});
|
87
78
|
|
88
79
|
it('CSS of Preview tab', { tags: 'css' }, () => {
|
@@ -11,14 +11,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -103,7 +95,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
103
95
|
});
|
104
96
|
};
|
105
97
|
|
106
|
-
it(
|
98
|
+
it('When the user selects \'Grading\' view without attempting the question, cell numeration should be displayed, correct answers section should be displayed with correct answers, correct/incorrect status message should not be displayed and respective cell numeration', () => {
|
107
99
|
if (view === 'Grading view') {
|
108
100
|
studentViewPage.steps.submitResponse();
|
109
101
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -119,11 +111,10 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
119
111
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
|
120
112
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
121
113
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsNotExist();
|
122
|
-
cy.eyesCheckWindow(`${view} - Grading view without attempting the question`);
|
123
114
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
124
115
|
});
|
125
116
|
|
126
|
-
it(
|
117
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
127
118
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 0 });
|
128
119
|
if (view === 'Grading view') {
|
129
120
|
studentViewPage.steps.submitResponse();
|
@@ -137,11 +128,10 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
137
128
|
};
|
138
129
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
139
130
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
140
|
-
cy.eyesCheckWindow(`${view} - Incorrect attempt`);
|
141
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
142
132
|
});
|
143
133
|
|
144
|
-
it(
|
134
|
+
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
145
135
|
if (view === 'Grading view') {
|
146
136
|
studentViewPage.steps.clearResponses();
|
147
137
|
};
|
@@ -161,11 +151,10 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
161
151
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
162
152
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
163
153
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
164
|
-
cy.eyesCheckWindow(`${view} - Partially correct attempt with incorrect options`);
|
165
154
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
166
155
|
});
|
167
156
|
|
168
|
-
it(
|
157
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
169
158
|
if (view === 'Grading view') {
|
170
159
|
studentViewPage.steps.clearResponses();
|
171
160
|
};
|
@@ -186,11 +175,10 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
186
175
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
187
176
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
188
177
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
189
|
-
cy.eyesCheckWindow(`${view} - Partially correct attempt with incomplete cell`);
|
190
178
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
191
179
|
});
|
192
180
|
|
193
|
-
it(
|
181
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
194
182
|
if (view === 'Grading view') {
|
195
183
|
studentViewPage.steps.clearResponses();
|
196
184
|
};
|
@@ -213,11 +201,10 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
213
201
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
214
202
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
215
203
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
216
|
-
cy.eyesCheckWindow(`${view} - Partially correct attempt with extra option`);
|
217
204
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
218
205
|
});
|
219
206
|
|
220
|
-
it(
|
207
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
221
208
|
if (view === 'Grading view') {
|
222
209
|
studentViewPage.steps.clearResponses();
|
223
210
|
};
|
@@ -242,7 +229,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
242
229
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
243
230
|
// dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
244
231
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
245
|
-
cy.eyesCheckWindow(`${view} - Correct attempt`);
|
246
232
|
});
|
247
233
|
});
|
248
234
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
views.forEach((view) => {
|
23
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -90,7 +82,7 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
90
82
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsText(), 'visible');
|
91
83
|
});
|
92
84
|
|
93
|
-
it(`
|
85
|
+
it(`The category table as set by the user should be displayed in the ${view}`, () => {
|
94
86
|
dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(0, 'None');
|
95
87
|
utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 0), '');
|
96
88
|
dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(1, 'Heading');
|
@@ -103,7 +95,6 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
103
95
|
utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 6), 'Can walk');
|
104
96
|
dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Text');
|
105
97
|
dragAndDropIntoCategoriesPage.steps.verifyTextContentOfTableCellPreviewTab(9, 'Can swim');
|
106
|
-
cy.eyesCheckWindow(`DND into categories: ${view} Checking category table visibility`);
|
107
98
|
});
|
108
99
|
|
109
100
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -116,18 +107,16 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
116
107
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionPreviewTab(5, 'Eagle');
|
117
108
|
});
|
118
109
|
|
119
|
-
it(`
|
110
|
+
it(`User should able to drag and drop options in the ${view}`, () => {
|
120
111
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Eagle': 1, 'Bat': 0 });
|
121
112
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
|
122
113
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
|
123
|
-
cy.eyesCheckWindow(`DND into categories: ${view} Checking drag and drop functionality along with contents`);
|
124
114
|
});
|
125
115
|
} else if (view === 'Grading view') {
|
126
|
-
it(`
|
116
|
+
it(`The submitted options should be in the respective dropzones and the options container should not be displayed`, () => {
|
127
117
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
|
128
118
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
|
129
119
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.optionContainerItemListPreviewTab(), 'notExist');
|
130
|
-
cy.eyesCheckWindow(`DND into categories: ${view} Checking submitted options in dropzones`);
|
131
120
|
});
|
132
121
|
|
133
122
|
it('The content in the dropzones should not be editable', () => {
|
@@ -135,13 +124,12 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
135
124
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
|
136
125
|
});
|
137
126
|
} else {
|
138
|
-
it(`
|
127
|
+
it(`The correct options should be in their respective dropzones, correct icons should be displayed besides them and the options container should not be displayed`, () => {
|
139
128
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
|
140
129
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
|
141
130
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
142
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
143
132
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.optionContainerItemListPreviewTab(), 'notExist');
|
144
|
-
cy.eyesCheckWindow(`DND into categories: ${view} Checking correct options in dropzones`);
|
145
133
|
});
|
146
134
|
}
|
147
135
|
|
@@ -13,14 +13,6 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
if (views.includes('Grading view')) {
|
25
17
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -58,11 +50,10 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
58
50
|
utilities.verifyElementVisibilityState(drawingResponsePage.questionInstructionsText(), 'visible');
|
59
51
|
});
|
60
52
|
|
61
|
-
it('
|
53
|
+
it('A preview of the canvas along with the play button should be displayed and user should be able to click on the play button', () => {
|
62
54
|
utilities.verifyElementVisibilityState(drawingResponsePage.gradingViewPlayFeatureButton(), 'visible');
|
63
55
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabLowerCanvas(), 'visible');
|
64
56
|
drawingResponsePage.steps.clickOnPlayButtonInGradingView();
|
65
|
-
cy.eyesCheckWindow(`${view} Checking grading view for drawing response`);
|
66
57
|
});
|
67
58
|
|
68
59
|
it('Empty score input field and total score should be displayed', () => {
|
@@ -100,10 +91,9 @@ describe('Create item page - Drawing response: Grading view, Correct answer view
|
|
100
91
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.correctAnswerViewQuestionInstructions(), 'visible');
|
101
92
|
});
|
102
93
|
|
103
|
-
it('
|
94
|
+
it('\'This is a manual scored question\' help text should be displayed in the correct answer view', () => {
|
104
95
|
utilities.verifyTextContent(correctAnswerViewPage.manualScoredQuestionHelpText(), 'This is a manual scored question.');
|
105
96
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.manualScoredQuestionHelpText(), 'visible');
|
106
|
-
cy.eyesCheckWindow(`${view} Checking correct answer view for drawing response`);
|
107
97
|
});
|
108
98
|
|
109
99
|
it('The points alloted to the question should be displayed', () => {
|