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
@@ -11,14 +11,6 @@ describe('Preview tab contents for all views', () => {
|
|
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();
|
@@ -68,12 +60,11 @@ describe('Preview tab contents for all views', () => {
|
|
68
60
|
}
|
69
61
|
});
|
70
62
|
|
71
|
-
it(
|
63
|
+
it('\'Protractor\' should be displayed with \'Acute\' angle, \'30 percent\' opacity, \'Alternative text\' and in \'Orange\' color', () => {
|
72
64
|
protractorPage.steps.verifyAcuteAngleTypeInPreviewTab();
|
73
65
|
protractorPage.steps.verifyPreviewTabColorAndOpacityOfProtractor(3, 0.3);
|
74
66
|
protractorPage.steps.verifyAlternativeTextInPreviewTab('Measuring tool');
|
75
67
|
protractorPage.steps.verifyRotationButtonVisibleInPreviewTab();
|
76
|
-
cy.eyesCheckWindow(`${view} - Protractor visibility`);
|
77
68
|
});
|
78
69
|
});
|
79
70
|
});
|
@@ -11,14 +11,6 @@ describe('Preview tab contents for all views', () => {
|
|
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();
|
@@ -66,12 +58,11 @@ describe('Preview tab contents for all views', () => {
|
|
66
58
|
}
|
67
59
|
});
|
68
60
|
|
69
|
-
it(
|
61
|
+
it('\'Reading ruler\' should be displayed with \'30 percent\' opacity and in \'Blue\' color', () => {
|
70
62
|
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
71
63
|
readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab('0.3');
|
72
64
|
readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(2);
|
73
65
|
readingRulerPage.steps.verifySizeOfReadingRulerInPreviewTab('Line focus', 5);
|
74
|
-
cy.eyesCheckWindow(`${view} - Reading ruler visibility`);
|
75
66
|
});
|
76
67
|
});
|
77
68
|
});
|
@@ -11,14 +11,6 @@ describe('Preview tab contents for all views', () => {
|
|
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();
|
@@ -67,12 +59,11 @@ describe('Preview tab contents for all views', () => {
|
|
67
59
|
}
|
68
60
|
});
|
69
61
|
|
70
|
-
it(
|
62
|
+
it('\'Ruler\' should be displayed with \'6 in\' length and in \'Orange\' color', () => {
|
71
63
|
rulerPage.steps.verifyLengthOfRulerInPreview('6in');
|
72
64
|
rulerPage.steps.verifyRotationButtonVisibleInPreviewTab();
|
73
65
|
rulerPage.steps.verifyColorOfRulerInPreview(3);
|
74
66
|
rulerPage.steps.verifyRulerOpacityInPreview('0.5');
|
75
|
-
cy.eyesCheckWindow(`${view} - Ruler visibility`);
|
76
67
|
});
|
77
68
|
});
|
78
69
|
});
|
@@ -13,14 +13,6 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
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 (!grepTags || !grepTags.includes('smoke')) {
|
25
17
|
describe('Question preview modes: Student view and Grading view', () => {
|
26
18
|
abortEarlySetup();
|
@@ -97,7 +89,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
97
89
|
});
|
98
90
|
};
|
99
91
|
|
100
|
-
it(
|
92
|
+
it('When the user selects \'Grading\' view without attempting the question, correct/incorret border should not be displayed and correct answer should be displayed below response field', () => {
|
101
93
|
if (view === 'Grading view') {
|
102
94
|
studentViewPage.steps.submitResponse();
|
103
95
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -111,10 +103,9 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
111
103
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/576511 is resolved
|
112
104
|
// shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
|
113
105
|
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
|
114
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Grading view without attempting`);
|
115
106
|
});
|
116
107
|
|
117
|
-
it(
|
108
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect response, incorrect answer border around response field and correct answer should be displayed in the question preview', () => {
|
118
109
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Text');
|
119
110
|
if (view === 'Grading view') {
|
120
111
|
studentViewPage.steps.submitResponse();
|
@@ -129,10 +120,9 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
129
120
|
}
|
130
121
|
shortTextResponsePage.steps.verifyIncorrectAttemptBorder();
|
131
122
|
shortTextResponsePage.steps.verifyIncorrectIcon();
|
132
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Incorrect attempt`);
|
133
123
|
});
|
134
124
|
|
135
|
-
it(
|
125
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed beside the correct response, correct answer border around response field should be displayed the question preview', () => {
|
136
126
|
if (view === 'Grading view') {
|
137
127
|
studentViewPage.steps.clearResponses();
|
138
128
|
};
|
@@ -149,7 +139,6 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
149
139
|
}
|
150
140
|
shortTextResponsePage.steps.verifyCorrectAttemptBorder();
|
151
141
|
shortTextResponsePage.steps.verifyCorrectIcon();
|
152
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Correct attempt`);
|
153
142
|
});
|
154
143
|
});
|
155
144
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Short text response : 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();
|
@@ -65,28 +57,26 @@ describe('Create item page - Short text response : Preview contents', () => {
|
|
65
57
|
}
|
66
58
|
});
|
67
59
|
|
68
|
-
it(
|
60
|
+
it('Question instructions should be visible', () => {
|
69
61
|
utilities.verifyInnerText(shortTextResponsePage.questionInstructionsText(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
70
62
|
utilities.verifyElementVisibilityState(shortTextResponsePage.questionInstructionsText(), 'visible');
|
71
63
|
});
|
72
64
|
|
73
65
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
74
|
-
it(
|
66
|
+
it('Answer input field should be visible and by default it should be empty', () => {
|
75
67
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('');
|
76
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.previewTabResponseField(), 'visible')
|
77
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Answer input field visible and empty`);
|
68
|
+
utilities.verifyElementVisibilityState(shortTextResponsePage.previewTabResponseField(), 'visible')
|
78
69
|
});
|
79
70
|
|
80
|
-
it(
|
71
|
+
it('User should be able to enter text in answer input field', () => {
|
81
72
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('The quick brown fox');
|
82
73
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
|
83
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Text entered in answer input field`);
|
84
74
|
});
|
85
|
-
}
|
86
|
-
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
it(`The response field should be displayed filled with correct answer`, () => {
|
87
78
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
|
88
79
|
utilities.verifyElementDisabled(shortTextResponsePage.previewTabResponseField());
|
89
|
-
cy.eyesCheckWindow(`Short text response - ${view} - Response field filled with correct answer`);
|
90
80
|
});
|
91
81
|
}
|
92
82
|
|
@@ -12,14 +12,6 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
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();
|
@@ -91,7 +83,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
91
83
|
utilities.verifyElementVisibilityState(simpleCalculatorPage.nineButton(), 'visible');
|
92
84
|
});
|
93
85
|
|
94
|
-
it(
|
86
|
+
it('The user should be able to perform basic mathematical operations', () => {
|
95
87
|
simpleCalculatorPage.steps.clickOnACalculatorButton('one');
|
96
88
|
simpleCalculatorPage.steps.clickOnACalculatorButton('addition');
|
97
89
|
simpleCalculatorPage.steps.clickOnACalculatorButton('two');
|
@@ -99,7 +91,6 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
99
91
|
simpleCalculatorPage.steps.clickOnACalculatorButton('equal to');
|
100
92
|
simpleCalculatorPage.steps.verifyCalculatorDisplayInputEquationValue('1+2 =');
|
101
93
|
simpleCalculatorPage.steps.verifyCalculatorDisplayResultValue('3');
|
102
|
-
cy.eyesCheckWindow(`${view} - Compass visibility`);
|
103
94
|
});
|
104
95
|
|
105
96
|
it('CSS of preview contents', { tags: 'css' }, () => {
|
@@ -14,14 +14,6 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -101,7 +93,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
101
93
|
});
|
102
94
|
};
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
|
105
97
|
if (view === 'Grading view') {
|
106
98
|
studentViewPage.steps.submitResponse();
|
107
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -120,10 +112,9 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
120
112
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
121
113
|
//correct answer section
|
122
114
|
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
123
|
-
cy.eyesCheckWindow(`Single selection ${view} - Grading view without attempting the question`);
|
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 incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
127
118
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
128
119
|
if (view === 'Grading view') {
|
129
120
|
studentViewPage.steps.submitResponse();
|
@@ -143,10 +134,9 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
143
134
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
144
135
|
//correct answer section
|
145
136
|
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
146
|
-
cy.eyesCheckWindow(`Single selection ${view} - Incorrect attempt`);
|
147
137
|
});
|
148
138
|
|
149
|
-
it(
|
139
|
+
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 answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
|
150
140
|
singleSelectionPage.steps.checkOptionInPreviewTab(1);
|
151
141
|
if (view === 'Grading view') {
|
152
142
|
studentViewPage.steps.submitResponse();
|
@@ -165,7 +155,6 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
165
155
|
singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
166
156
|
singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
167
157
|
singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
168
|
-
cy.eyesCheckWindow(`Single selection ${view} - Correct attempt`);
|
169
158
|
});
|
170
159
|
});
|
171
160
|
});
|
@@ -12,14 +12,6 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
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();
|
@@ -87,20 +79,18 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
87
79
|
utilities.verifyElementVisibilityState(singleSelectionPage.questionInstructionsText(), 'visible');
|
88
80
|
});
|
89
81
|
|
90
|
-
it(`
|
82
|
+
it(`When the user has added image, equation, bold text and link to the options input they should be displayed in the ${view}`, () => {
|
91
83
|
singleSelectionPage.steps.verifyImageInPreviewTab(0);
|
92
84
|
singleSelectionPage.steps.verifyLinkTextInPreviewTab(1);
|
93
85
|
singleSelectionPage.steps.verifyBoldTextInPreviewTab(2);
|
94
86
|
singleSelectionPage.steps.verifyEquationTextInPreviewTab(3);
|
95
|
-
cy.eyesCheckWindow(`Single selection - ${view} - Options with image, equation, bold text, and link`);
|
96
87
|
});
|
97
88
|
|
98
89
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
99
|
-
it(`
|
90
|
+
it(`All the options should be in unchecked state`, () => {
|
100
91
|
for (let index = 0; index < 4; index++) {
|
101
92
|
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(index);
|
102
93
|
};
|
103
|
-
cy.eyesCheckWindow(`Single selection - ${view} - Unchecked options`);
|
104
94
|
});
|
105
95
|
|
106
96
|
it(`User should able to select options in the ${view}`, () => {
|
@@ -108,7 +98,7 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
108
98
|
singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(1);
|
109
99
|
});
|
110
100
|
} else if (view === 'Grading view') {
|
111
|
-
it(`
|
101
|
+
it(`The submitted/correct options should be in checked state and they should not be editable`, () => {
|
112
102
|
singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(1);
|
113
103
|
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(0);
|
114
104
|
singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(2);
|
@@ -116,16 +106,14 @@ describe('Create item page - Single selection: Preview contents', () => {
|
|
116
106
|
options.forEach((options, index) => {
|
117
107
|
singleSelectionPage.steps.verifyOptionRadioButtonIsDisabled(index)
|
118
108
|
});
|
119
|
-
cy.eyesCheckWindow(`Single selection - ${view} - Checked and disabled options`);
|
120
109
|
});
|
121
110
|
} else {
|
122
|
-
it(`
|
111
|
+
it(`The correct options should have correct icons besides them`, () => {
|
123
112
|
// Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
|
124
113
|
// singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
125
114
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
|
126
115
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
127
116
|
singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
128
|
-
cy.eyesCheckWindow(`Single selection - ${view} - Correct icons`);
|
129
117
|
});
|
130
118
|
}
|
131
119
|
|
@@ -11,14 +11,6 @@ describe('Create item page - Single selection grid: 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();
|
@@ -101,7 +93,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
101
93
|
});
|
102
94
|
};
|
103
95
|
|
104
|
-
it(
|
96
|
+
it('When the user selects \'Grading\' view without attempting the question, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers and correct/incorrect status message should not be displayed', () => {
|
105
97
|
if (view === 'Grading view') {
|
106
98
|
studentViewPage.steps.submitResponse();
|
107
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -115,10 +107,9 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
115
107
|
};
|
116
108
|
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
117
109
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
118
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Correct answers section displayed`);
|
119
110
|
});
|
120
111
|
|
121
|
-
it(
|
112
|
+
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 a preview of the entire grid with correct answers should be displayed', () => {
|
122
113
|
singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
123
114
|
if (view === 'Grading view') {
|
124
115
|
studentViewPage.steps.submitResponse();
|
@@ -134,10 +125,9 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
134
125
|
singleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
|
135
126
|
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
136
127
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
137
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Incorrect responses displayed`);
|
138
128
|
});
|
139
129
|
|
140
|
-
it(
|
130
|
+
it('When the user attempts the question partially correct with incorrect responses, 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 a preview of the entire grid with correct answers should be displayed', () => {
|
141
131
|
if (view === 'Grading view') {
|
142
132
|
studentViewPage.steps.clearResponses();
|
143
133
|
};
|
@@ -158,10 +148,9 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
158
148
|
singleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
|
159
149
|
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
160
150
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
161
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Partially correct responses displayed`);
|
162
151
|
});
|
163
152
|
|
164
|
-
it(
|
153
|
+
it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
|
165
154
|
if (view === 'Grading view') {
|
166
155
|
studentViewPage.steps.clearResponses();
|
167
156
|
};
|
@@ -183,10 +172,9 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
183
172
|
//singleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 4, column: 1 });
|
184
173
|
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
174
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
186
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Incomplete responses displayed`);
|
187
175
|
});
|
188
176
|
|
189
|
-
it(
|
177
|
+
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', () => {
|
190
178
|
if (view === 'Grading view') {
|
191
179
|
studentViewPage.steps.clearResponses();
|
192
180
|
};
|
@@ -208,7 +196,6 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
208
196
|
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
|
209
197
|
singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
210
198
|
singleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
|
211
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Correct responses displayed`);
|
212
199
|
});
|
213
200
|
});
|
214
201
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Single selection grid: 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 - Single selection grid: Preview contents', () => {
|
|
90
82
|
utilities.verifyElementVisibilityState(singleSelectionGridPage.questionInstructionsText(), 'visible');
|
91
83
|
});
|
92
84
|
|
93
|
-
it(`
|
85
|
+
it(`The question grid as set by the user should be displayed in the ${view}`, () => {
|
94
86
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
|
95
87
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
|
96
88
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
|
@@ -101,34 +93,31 @@ describe('Create item page - Single selection grid: Preview contents', () => {
|
|
101
93
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
|
102
94
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No radio button');
|
103
95
|
singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No radio button');
|
104
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Question grid displayed`);
|
105
96
|
});
|
106
97
|
|
107
98
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
108
|
-
it(`
|
99
|
+
it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
|
109
100
|
singleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
|
110
101
|
singleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
|
111
102
|
singleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
|
112
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Image, equation, bold text displayed`);
|
113
103
|
});
|
114
104
|
|
115
105
|
it(`User should be able to select options in the ${view}`, () => {
|
116
106
|
singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
117
107
|
});
|
118
108
|
} else if (view === 'Grading view') {
|
119
|
-
it(`
|
109
|
+
it(`The submitted options should be in checked state`, () => {
|
120
110
|
singleSelectionGridPage.steps.verifyOptionWithRadioButtonSelectedState({ row: 1, column: 0 });
|
121
111
|
singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 2, column: 1 });
|
122
112
|
singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 3, column: 0 });
|
123
113
|
singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 4, column: 1 });
|
124
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Submitted options checked state`);
|
125
114
|
});
|
126
115
|
|
127
116
|
it('The content in the grid should not be editable', () => {
|
128
117
|
singleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
|
129
118
|
});
|
130
119
|
} else {
|
131
|
-
it(`
|
120
|
+
it(`The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
|
132
121
|
singleSelectionGridPage.steps.verifyOptionWithRadioButtonSelectedState({ row: 1, column: 0 });
|
133
122
|
singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 2, column: 1 });
|
134
123
|
singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 3, column: 0 });
|
@@ -137,7 +126,6 @@ describe('Create item page - Single selection grid: Preview contents', () => {
|
|
137
126
|
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
|
138
127
|
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
|
139
128
|
singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
|
140
|
-
cy.eyesCheckWindow(`Single selection - grid ${view} - Correct options checked state and icons`);
|
141
129
|
});
|
142
130
|
}
|
143
131
|
|