itemengine-cypress-automation 1.0.190-repoUpdate3May-f180558.0 → 1.0.190
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +2 -0
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +3 -30
- package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +0 -27
- package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +9 -9
- package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +12 -12
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +4 -20
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
- package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +181 -0
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +283 -0
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +396 -130
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +0 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +0 -4
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +0 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +4 -24
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -9
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +3 -3
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +0 -2
- package/cypress/e2e/ILC/EssayResponse/headerSection.js +3 -18
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +0 -1
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +1 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +0 -2
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/GridFill/headerSection.js +4 -5
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +276 -0
- package/cypress/e2e/ILC/ImageHighlight/checkAnswerFunctionalityForAllViews.smoke.js +141 -0
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +150 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +22 -20
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +1 -8
- package/cypress/e2e/ILC/NumberLine/headerSection.js +3 -3
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -4
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +1 -7
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControls.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +6 -6
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +9 -9
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettings.js +2 -4
- package/cypress/pages/audioPlayerPage.js +4 -2
- package/cypress/pages/audioResponsePage.js +2 -0
- package/cypress/pages/chartsBarPage.js +289 -3
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +8 -5
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/barAndLineChartComponent.js +7 -4
- package/cypress/pages/components/chartsCommonComponent.js +33 -0
- package/cypress/pages/components/imageCanvasComponent.js +3 -3
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/questionInputFieldComponent.js +2 -1
- package/cypress/pages/components/resetPopupComponent.js +7 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -17
- package/cypress/pages/components/singleMultipleSelectionModeComponent.js +16 -0
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +22 -24
- package/cypress/pages/drawingResponsePage.js +3 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +14 -0
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
- package/cypress/pages/imageHighlightPage.js +364 -0
- package/cypress/pages/index.js +2 -1
- package/cypress/pages/matchingPage.js +2 -1
- package/cypress/pages/numberLineLabelPage.js +14 -7
- package/cypress/pages/protractorPage.js +1 -1
- package/cypress/pages/readingRulerPage.js +1 -1
- package/cypress/pages/rulerPage.js +3 -3
- package/cypress/pages/textEntryMathPage.js +2 -2
- package/cypress/pages/videoResponsePage.js +6 -5
- package/package.json +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -208,7 +208,7 @@ describe('Drawing response - Additional settings', () => {
|
|
208
208
|
});
|
209
209
|
|
210
210
|
it('When all line type buttons are selected by default then all the line type options should be displayed in secondary toolbar in the preview tab', () => {
|
211
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line
|
211
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line type');
|
212
212
|
lineTypeOptionsPreviewTab.forEach((lineType, index) => {
|
213
213
|
drawingResponsePage.steps.verifySecondaryPopupLineType(lineType, index)
|
214
214
|
});
|
@@ -220,7 +220,7 @@ describe('Drawing response - Additional settings', () => {
|
|
220
220
|
drawingResponsePage.steps.unselectSetLineTypeOption(lineTypeOptionsEditTab[1]);
|
221
221
|
drawingResponsePage.steps.switchToPreviewTab();
|
222
222
|
drawingResponsePage.steps.selectPreviewTabToolbarOption('Line');
|
223
|
-
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line
|
223
|
+
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption('Line type');
|
224
224
|
//Need to add step once https://redmine.zeuslearning.com/issues/555345 is fixed
|
225
225
|
});
|
226
226
|
});
|
@@ -16,7 +16,6 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
|
|
16
16
|
describe('Background: Blank canvas', () => {
|
17
17
|
abortEarlySetup();
|
18
18
|
before(() => {
|
19
|
-
cy.log('Navigating to drawing response question type');
|
20
19
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
21
20
|
cy.barsPreLoaderWait();
|
22
21
|
});
|
@@ -214,7 +213,6 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
|
|
214
213
|
describe('Background: Image', () => {
|
215
214
|
abortEarlySetup();
|
216
215
|
before(() => {
|
217
|
-
cy.log('Navigating to drawing response question type');
|
218
216
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
219
217
|
cy.barsPreLoaderWait();
|
220
218
|
});
|
@@ -433,7 +431,6 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
|
|
433
431
|
describe('Background: Pattern', () => {
|
434
432
|
abortEarlySetup();
|
435
433
|
before(() => {
|
436
|
-
cy.log('Navigating to drawing response question type');
|
437
434
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
438
435
|
cy.barsPreLoaderWait();
|
439
436
|
});
|
@@ -19,7 +19,6 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
19
19
|
describe('Customize special characters', () => {
|
20
20
|
abortEarlySetup();
|
21
21
|
before(() => {
|
22
|
-
cy.log('Navigating to drawing response question type');
|
23
22
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
24
23
|
cy.barsPreLoaderWait();
|
25
24
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -186,7 +185,6 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
186
185
|
describe('Customize math characters', () => {
|
187
186
|
abortEarlySetup();
|
188
187
|
before(() => {
|
189
|
-
cy.log('Navigating to drawing response question type');
|
190
188
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
191
189
|
cy.barsPreLoaderWait();
|
192
190
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -316,11 +314,11 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
316
314
|
cy.checkAccessibility(drawingResponsePage.customizeMathCharactersLabel().parent());
|
317
315
|
});
|
318
316
|
});
|
319
|
-
|
317
|
+
|
318
|
+
//Failing due to https://redmine.zeuslearning.com/issues/571423
|
320
319
|
describe('Customize Stroke/font color - Edit tab', () => {
|
321
320
|
abortEarlySetup();
|
322
321
|
before(() => {
|
323
|
-
cy.log('Navigating to drawing response question type');
|
324
322
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
325
323
|
cy.barsPreLoaderWait();
|
326
324
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -490,10 +488,10 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
490
488
|
});
|
491
489
|
});
|
492
490
|
|
491
|
+
//Failing due to https://redmine.zeuslearning.com/issues/571423
|
493
492
|
describe('Customize Fill color', () => {
|
494
493
|
abortEarlySetup();
|
495
494
|
before(() => {
|
496
|
-
cy.log('Navigating to drawing response question type');
|
497
495
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
498
496
|
cy.barsPreLoaderWait();
|
499
497
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -18,7 +18,6 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
18
18
|
describe('Question instructions input field - Edit tab', () => {
|
19
19
|
abortEarlySetup();
|
20
20
|
before(() => {
|
21
|
-
cy.log('Navigating to drawing response question type');
|
22
21
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
23
22
|
cy.barsPreLoaderWait();
|
24
23
|
});
|
@@ -30,7 +29,6 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
30
29
|
describe('Question instructions input field - Preview tab', () => {
|
31
30
|
abortEarlySetup();
|
32
31
|
before(() => {
|
33
|
-
cy.log('Navigating to drawing response question type');
|
34
32
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
35
33
|
cy.barsPreLoaderWait();
|
36
34
|
});
|
@@ -41,7 +39,6 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
41
39
|
describe('Customize toolbar options and controls - Edit tab', () => {
|
42
40
|
abortEarlySetup();
|
43
41
|
before(() => {
|
44
|
-
cy.log('Navigating to drawing response question type');
|
45
42
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
46
43
|
cy.barsPreLoaderWait();
|
47
44
|
});
|
@@ -156,7 +153,6 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
156
153
|
describe('Customize toolbar options - Additional options - Edit tab', () => {
|
157
154
|
abortEarlySetup();
|
158
155
|
before(() => {
|
159
|
-
cy.log('Navigating to drawing response question type');
|
160
156
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
161
157
|
cy.barsPreLoaderWait();
|
162
158
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -18,7 +18,6 @@ describe('Create item page - Drawing response: Drawing Response: Scoring sectio
|
|
18
18
|
drawingResponsePage.tests.verifyScoringTypeLabelAndDropdown('manuallyScored');
|
19
19
|
});
|
20
20
|
|
21
|
-
//Failing due to https://redmine.zeuslearning.com/issues/553845
|
22
21
|
describe('Manually scored scoring type - Scoring section', () => {
|
23
22
|
abortEarlySetup();
|
24
23
|
before(() => {
|
@@ -9,7 +9,6 @@ describe('Create item page - Drawing Response: Header section and Saving questio
|
|
9
9
|
describe('Header section contents', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
|
-
cy.log('Navigating to drawing response question type');
|
13
12
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
14
13
|
cy.barsPreLoaderWait();
|
15
14
|
});
|
@@ -20,7 +19,6 @@ describe('Create item page - Drawing Response: Header section and Saving questio
|
|
20
19
|
describe('Tabs section', () => {
|
21
20
|
abortEarlySetup();
|
22
21
|
before(() => {
|
23
|
-
cy.log('Navigating to drawing response question type');
|
24
22
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
25
23
|
cy.barsPreLoaderWait();
|
26
24
|
});
|
@@ -31,7 +29,6 @@ describe('Create item page - Drawing Response: Header section and Saving questio
|
|
31
29
|
describe('Cancel button', () => {
|
32
30
|
abortEarlySetup();
|
33
31
|
before(() => {
|
34
|
-
cy.log('Navigating to drawing response question type');
|
35
32
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
36
33
|
cy.barsPreLoaderWait();
|
37
34
|
});
|
@@ -42,33 +39,16 @@ describe('Create item page - Drawing Response: Header section and Saving questio
|
|
42
39
|
describe('Save Question button', () => {
|
43
40
|
abortEarlySetup();
|
44
41
|
before(() => {
|
45
|
-
cy.log('Navigating to drawing response question type');
|
46
42
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
47
43
|
cy.barsPreLoaderWait();
|
48
44
|
});
|
49
45
|
|
50
|
-
|
51
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
46
|
+
drawingResponsePage.tests.verifyCreateItemWrapperContentsA11y();
|
52
47
|
|
53
|
-
|
54
|
-
|
55
|
-
drawingResponsePage.steps.verifyPointsFieldErrorMessage();
|
56
|
-
});
|
57
|
-
|
58
|
-
it('Validation error messages should disappear when required input fields are filled', () => {
|
59
|
-
drawingResponsePage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
60
|
-
drawingResponsePage.steps.allotPoints(10);
|
61
|
-
drawingResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
62
|
-
});
|
63
|
-
|
64
|
-
drawingResponsePage.tests.verifyCreateItemWrapperContentsA11y();
|
48
|
+
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
49
|
+
drawingResponsePage.steps.saveAQuestionAndVerifySnackbar();
|
65
50
|
});
|
66
51
|
|
67
|
-
|
68
|
-
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
69
|
-
drawingResponsePage.steps.saveAQuestionAndVerifySnackbar();
|
70
|
-
});
|
71
|
-
drawingResponsePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
72
|
-
});
|
52
|
+
drawingResponsePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
73
53
|
});
|
74
54
|
});
|
@@ -145,7 +145,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
145
145
|
describe('Preview tab - \'Insert image\'', { tags: 'smoke' }, () => {
|
146
146
|
abortEarlySetup();
|
147
147
|
before(() => {
|
148
|
-
cy.log('Navigating to drawing response question type');
|
149
148
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
150
149
|
cy.barsPreLoaderWait();
|
151
150
|
drawingResponsePage.steps.switchToPreviewTab();
|
@@ -180,7 +179,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
180
179
|
describe('Preview tab - secondary toolbar option - \'Special characters\' - content and functionality', { tags: 'smoke' }, () => {
|
181
180
|
abortEarlySetup();
|
182
181
|
before(() => {
|
183
|
-
cy.log('Navigating to drawing response question type');
|
184
182
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
185
183
|
cy.barsPreLoaderWait();
|
186
184
|
|
@@ -294,7 +292,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
294
292
|
describe('Preview tab - secondary toolbar option - \'Math characters\' - content and functionality', { tags: 'smoke' }, () => {
|
295
293
|
abortEarlySetup();
|
296
294
|
before(() => {
|
297
|
-
cy.log('Navigating to drawing response question type');
|
298
295
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
299
296
|
cy.barsPreLoaderWait();
|
300
297
|
});
|
@@ -373,7 +370,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
373
370
|
describe('Preview tab - secondary toolbar option - \'Font size\' - content and functionality', { tags: 'smoke' }, () => {
|
374
371
|
abortEarlySetup();
|
375
372
|
before(() => {
|
376
|
-
cy.log('Navigating to drawing response question type');
|
377
373
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
378
374
|
cy.barsPreLoaderWait();
|
379
375
|
});
|
@@ -459,7 +455,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
459
455
|
describe('Preview tab - secondary toolbar options - \'Opacity\' - content and functionality', { tags: 'smoke' }, () => {
|
460
456
|
abortEarlySetup();
|
461
457
|
before(() => {
|
462
|
-
cy.log('Navigating to drawing response question type');
|
463
458
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
464
459
|
cy.barsPreLoaderWait();
|
465
460
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -647,7 +642,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
647
642
|
describe('Preview tab - secondary toolbar options - \'Text color\' - content and functionality', { tags: 'smoke' }, () => {
|
648
643
|
abortEarlySetup();
|
649
644
|
before(() => {
|
650
|
-
cy.log('Navigating to drawing response question type');
|
651
645
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
652
646
|
cy.barsPreLoaderWait();
|
653
647
|
});
|
@@ -809,7 +803,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
809
803
|
describe('Preview tab - secondary toolbar options - \'Fill color\' - content and functionality', { tags: 'smoke' }, () => {
|
810
804
|
abortEarlySetup();
|
811
805
|
before(() => {
|
812
|
-
cy.log('Navigating to drawing response question type');
|
813
806
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
814
807
|
cy.barsPreLoaderWait();
|
815
808
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -981,7 +974,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
981
974
|
describe('Preview tab - secondary toolbar options - \'Stroke color\' - content and functionality', { tags: 'smoke' }, () => {
|
982
975
|
abortEarlySetup();
|
983
976
|
before(() => {
|
984
|
-
cy.log('Navigating to drawing response question type');
|
985
977
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
986
978
|
cy.barsPreLoaderWait();
|
987
979
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
@@ -1154,7 +1146,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
1154
1146
|
describe('Preview tab - secondary toolbar options - \'Line type\' - content and functionality', { tags: 'smoke' }, () => {
|
1155
1147
|
abortEarlySetup();
|
1156
1148
|
before(() => {
|
1157
|
-
cy.log('Navigating to drawing response question type');
|
1158
1149
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
1159
1150
|
cy.barsPreLoaderWait();
|
1160
1151
|
drawingResponsePage.steps.switchToPreviewTab();
|
@@ -135,6 +135,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
135
135
|
itemPreviewSettingsPage.steps.selectSeparatorStyle('dotted');
|
136
136
|
itemPreviewSettingsPage.steps.clickApplyChanges();
|
137
137
|
itemPreviewSettingsPage.steps.verifyPanelCount(2);
|
138
|
+
cy.wait(2000);
|
138
139
|
itemPreviewSettingsPage.steps.verifyHorizontalSeparatorVisible('dotted');
|
139
140
|
});
|
140
141
|
|
@@ -204,7 +205,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
204
205
|
itemPreviewSettingsPage.steps.selectQuestionType('short text response');
|
205
206
|
itemPreviewSettingsPage.steps.createBasicShortTextResponseQuestion('RightPanelQuestion', 2, 'Answer');
|
206
207
|
itemPreviewSettingsPage.steps.clickOnAddResource(1);
|
207
|
-
itemPreviewSettingsPage.steps.selectResourceType('
|
208
|
+
itemPreviewSettingsPage.steps.selectResourceType('content blocks');
|
208
209
|
itemPreviewSettingsPage.steps.createBasicContentBlockResourceAndTool('RightPanelResource', 'Content heading');
|
209
210
|
});
|
210
211
|
|
@@ -346,10 +347,8 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
346
347
|
itemPreviewSettingsPage.steps.switchToPreviewTab();
|
347
348
|
itemPreviewSettingsPage.steps.navigateToSection1();
|
348
349
|
itemPreviewSettingsPage.steps.verifyBasicQuestionContentsPreviewPreviewTab({ questionIndex: 0, questionInstructions: 'ShortText', panel: 0 });
|
349
|
-
itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
|
350
350
|
itemPreviewSettingsPage.steps.navigateToSection2();
|
351
351
|
itemPreviewSettingsPage.steps.verifyContentBlockContentsPreviewPreviewTab({ questionInstructions: 'Warming', panel: 0 });
|
352
|
-
itemPreviewSettingsPage.steps.verifyPanelWidthAndSectionWidthEqualToItemWidth();
|
353
352
|
});
|
354
353
|
|
355
354
|
it('When \'Numbered\' navigation style is the active selection, then numbers should be displayed with the section titles', () => {
|
@@ -590,6 +589,7 @@ describe('Item preview: Settings tab - functionality', () => {
|
|
590
589
|
});
|
591
590
|
});
|
592
591
|
|
592
|
+
//Failing due to https://redmine.zeuslearning.com/issues/571430
|
593
593
|
describe('Functionality of \'Sections\' section for canvas questions', () => {
|
594
594
|
abortEarlySetup();
|
595
595
|
before(() => {
|
@@ -13,7 +13,6 @@ describe('Essay response: Customize math characters', () => {
|
|
13
13
|
describe('Preview tab - \'Special characters\' - content', () => {
|
14
14
|
abortEarlySetup();
|
15
15
|
before(() => {
|
16
|
-
cy.log('Navigating to drawing response question type');
|
17
16
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
18
17
|
cy.barsPreLoaderWait();
|
19
18
|
});
|
@@ -114,7 +113,6 @@ describe('Essay response: Customize math characters', () => {
|
|
114
113
|
describe('\'Special characters\' - functionality', () => {
|
115
114
|
abortEarlySetup();
|
116
115
|
before(() => {
|
117
|
-
cy.log('Navigating to drawing response question type');
|
118
116
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
119
117
|
cy.barsPreLoaderWait();
|
120
118
|
essayResponsePage.steps.expandCustomizeFormattingOptionsAccordion();
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { essayResponsePage
|
3
|
-
import { commonComponents } from "../../../pages/components";
|
2
|
+
import { essayResponsePage } from "../../../pages";
|
4
3
|
|
5
4
|
describe('Create question page - Essay response: Header section and Saving question', () => {
|
6
5
|
before(() => {
|
@@ -41,24 +40,10 @@ describe('Create question page - Essay response: Header section and Saving quest
|
|
41
40
|
cy.barsPreLoaderWait();
|
42
41
|
});
|
43
42
|
|
44
|
-
|
45
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
46
|
-
|
47
|
-
it('Validation error messages should be displayed below required input fields', () => {
|
48
|
-
essayResponsePage.steps.verifyQuestionInstructionsErrorMessage();
|
49
|
-
essayResponsePage.steps.verifyPointsFieldErrorMessage();
|
50
|
-
});
|
51
|
-
|
52
|
-
it('Validation error messages should disappear when required input fields are filled', () => {
|
53
|
-
essayResponsePage.steps.addQuestionInstructions();
|
54
|
-
essayResponsePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
55
|
-
essayResponsePage.steps.allotPoints(20);
|
56
|
-
essayResponsePage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
57
|
-
});
|
58
|
-
});
|
43
|
+
essayResponsePage.tests.verifyCreateItemWrapperContentsA11y();
|
59
44
|
|
60
45
|
describe('Saving a question', () => {
|
61
|
-
it('When user
|
46
|
+
it('When user clicks on "Save question" button, then the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
62
47
|
essayResponsePage.steps.saveAQuestionAndVerifySnackbar();
|
63
48
|
});
|
64
49
|
|
@@ -98,7 +98,6 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
98
98
|
it('\'Cancel\' button should be displayed in the popup and when user clicks on it then the popup should close', () => {
|
99
99
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonCancel(), 'visible');
|
100
100
|
essayResponsePage.steps.clickOnHyperLinkDialogBoxCancelButton();
|
101
|
-
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonOk(), 'notExist');
|
102
101
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonCancel(), 'notExist');
|
103
102
|
});
|
104
103
|
});
|
@@ -137,7 +137,6 @@ describe('Essay response math: Customize math characters', () => {
|
|
137
137
|
describe('Preview tab - toolbar option - \'Math characters\' - content and functionality', () => {
|
138
138
|
abortEarlySetup();
|
139
139
|
before(() => {
|
140
|
-
cy.log('Navigating to drawing response question type');
|
141
140
|
essayResponseMathPage.steps.navigateToCreateQuestion('essay response - math');
|
142
141
|
cy.barsPreLoaderWait();
|
143
142
|
});
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
2
|
import { dialogBoxBase, fillInTheGapsDragAndDropPage } from "../../../pages";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
3
|
const options = ['Flower', 'Leaves'];
|
5
4
|
|
6
5
|
describe('Create item page - Fill in the gaps drag and drop: Header section and Saving question', () => {
|
@@ -46,19 +45,15 @@ describe('Create item page - Fill in the gaps drag and drop: Header section and
|
|
46
45
|
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
47
46
|
|
48
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
|
-
fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsErrorMessage();
|
50
48
|
fillInTheGapsDragAndDropPage.steps.verifyOptionsInputFieldErrorMessage(0);
|
51
49
|
fillInTheGapsDragAndDropPage.steps.verifyOptionsInputFieldErrorMessage(1);
|
52
|
-
fillInTheGapsDragAndDropPage.steps.verifyPointsFieldErrorMessage();
|
53
50
|
fillInTheGapsDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
54
51
|
fillInTheGapsDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorMessage();
|
55
52
|
});
|
56
53
|
|
57
54
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
58
|
-
fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options in the correct dropzone');
|
59
55
|
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(options);
|
60
56
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Leaves': 1 });
|
61
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(10);
|
62
57
|
fillInTheGapsDragAndDropPage.steps.verifyErrorMessageIsNotDisplayed();
|
63
58
|
fillInTheGapsDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
64
59
|
});
|
@@ -46,20 +46,16 @@ describe('Create item page - Fill in the gaps with dropdown: Header section and
|
|
46
46
|
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
47
47
|
|
48
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
|
-
fillInTheGapsDropdownPage.steps.verifyQuestionInstructionsErrorMessage();
|
50
49
|
fillInTheGapsDropdownPage.steps.verifyOptionsInputFieldErrorMessage(0);
|
51
|
-
fillInTheGapsDropdownPage.steps.verifyPointsFieldErrorMessage();
|
52
50
|
fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorMessage();
|
53
51
|
fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
54
52
|
});
|
55
53
|
|
56
54
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
57
|
-
fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Select correct option from dropdown');
|
58
55
|
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
59
56
|
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown);
|
60
57
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
|
61
58
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, optionsForDropdown[1]);
|
62
|
-
fillInTheGapsDropdownPage.steps.allotPoints(10);
|
63
59
|
fillInTheGapsDropdownPage.steps.verifyErrorMessageIsNotDisplayed();
|
64
60
|
fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
65
61
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js
CHANGED
@@ -144,10 +144,10 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
144
144
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCanvasSelectedMenuText('Select');
|
145
145
|
});
|
146
146
|
|
147
|
-
it(`When user selects dropzone, then 9 options ${dropzonePointerStyles} should be displayed and by default ${dropzonePointerStyles[
|
147
|
+
it(`When user selects dropzone, then 9 options ${dropzonePointerStyles} should be displayed and by default ${dropzonePointerStyles[0]} should be selected`, () => {
|
148
148
|
fillInTheGapsOverImageDragAndDropPage.steps.selectResponseArea(1);
|
149
149
|
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.responseAreaStyle(), 9);
|
150
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyResponseAreaPointerStyle(dropzonePointerStyles[
|
150
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyResponseAreaPointerStyle(dropzonePointerStyles[0], 1);
|
151
151
|
});
|
152
152
|
|
153
153
|
it('CSS of dropzones', { tags: 'css' }, () => {
|
@@ -220,7 +220,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
220
220
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyColorPopupIsDisplayed();
|
221
221
|
});
|
222
222
|
|
223
|
-
fillInTheGapsOverImageDragAndDropPage.tests.
|
223
|
+
fillInTheGapsOverImageDragAndDropPage.tests.verifyColorPopupSelectColorTitle();
|
224
224
|
|
225
225
|
fillInTheGapsOverImageDragAndDropPage.tests.verifySaturationAndOpacityGradientPalette('rgb(0, 0, 46)');
|
226
226
|
|
@@ -17,7 +17,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
|
|
17
17
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Fill in the gaps over image with drag and drop');
|
18
18
|
});
|
19
19
|
|
20
|
-
describe('Tabs section', () => {
|
20
|
+
describe('Tabs section', () => {
|
21
21
|
abortEarlySetup();
|
22
22
|
before(() => {
|
23
23
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
@@ -46,10 +46,10 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
|
|
46
46
|
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
47
47
|
|
48
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
50
|
-
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(),
|
51
|
-
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(),
|
52
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
49
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
50
|
+
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 0), 'Error: Image is required.');
|
51
|
+
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsOverImageDragAndDropPage.errorMessage(), 1), 'Error: Please insert a dropzone.');
|
52
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
53
53
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyOptionsInputFieldErrorMessage(0);
|
54
54
|
fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
55
55
|
fillInTheGapsOverImageDragAndDropPage.steps.verifySpecifyCorrectAnswerErrorMessage();
|
@@ -280,7 +280,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
280
280
|
});
|
281
281
|
});
|
282
282
|
|
283
|
-
describe('Allow
|
283
|
+
describe('Allow student to check answer: Edit tab', () => {
|
284
284
|
abortEarlySetup();
|
285
285
|
before(() => {
|
286
286
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
@@ -304,7 +304,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
304
304
|
fillInTheGapsOverImageDragAndDropPage.tests.verifyAllowStudentsToCheckAnswerContentsCSSAndA11y();
|
305
305
|
});
|
306
306
|
|
307
|
-
describe('Allow
|
307
|
+
describe('Allow student to check answer: Preview tab', () => {
|
308
308
|
abortEarlySetup();
|
309
309
|
before(() => {
|
310
310
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
@@ -321,7 +321,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
321
321
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(20);
|
322
322
|
});
|
323
323
|
|
324
|
-
it('When the user has added options and specified correct answer and points then on checking the \'Allow
|
324
|
+
it('When the user has added options and specified correct answer and points then on checking the \'Allow student to check answer\' checkbox the Check answer button should be displayed in the preview tab', () => {
|
325
325
|
fillInTheGapsOverImageDragAndDropPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
326
326
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
327
327
|
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.checkAnswerButton(), 'Check answer');
|
@@ -47,22 +47,18 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
|
|
47
47
|
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
48
48
|
|
49
49
|
it('Validation error messages should be displayed below required input fields', () => {
|
50
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsErrorMessage();
|
51
50
|
utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 1), 'Error: Image is required.');
|
52
51
|
utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 2), 'Error: Please insert a dropdown.');
|
53
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPointsFieldErrorMessage();
|
54
52
|
fillInTheGapsOverImageDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
55
53
|
});
|
56
54
|
|
57
55
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
58
|
-
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Select correct option from dropdown');
|
59
56
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
60
57
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
61
58
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
62
59
|
fillInTheGapsOverImageDropdownPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
|
63
60
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
64
61
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
|
65
|
-
fillInTheGapsOverImageDropdownPage.steps.allotPoints(10);
|
66
62
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
67
63
|
fillInTheGapsOverImageDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
68
64
|
});
|
@@ -74,8 +74,7 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
|
|
74
74
|
fillInTheGapsTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
|
75
75
|
|
76
76
|
it('When no points are entered in the points input field, then points per response should not be displayed on the response accordion', () => {
|
77
|
-
fillInTheGapsTextPage.
|
78
|
-
fillInTheGapsTextPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 0);
|
77
|
+
utilities.verifyElementVisibilityState(fillInTheGapsTextPage.responseAccordionPointsLabel(), 'notExist');
|
79
78
|
});
|
80
79
|
|
81
80
|
it('When the user gives a score input to \'Points\' input field, then the score should be equally divided and displayed on each response tab with a \'Points:\' label', () => {
|
@@ -11,7 +11,6 @@ describe('Create Item page - Fill in the gaps with text: Student view settings',
|
|
11
11
|
describe('Student view settings : Spell check - Edit tab functionality', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
|
-
cy.log('Navigating to drawing response question type');
|
15
14
|
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
16
15
|
cy.barsPreLoaderWait();
|
17
16
|
});
|
@@ -22,7 +21,6 @@ describe('Create Item page - Fill in the gaps with text: Student view settings',
|
|
22
21
|
describe('Student view settings : Spell check - Preview tab functionality', () => {
|
23
22
|
abortEarlySetup();
|
24
23
|
before(() => {
|
25
|
-
cy.log('Navigating to drawing response question type');
|
26
24
|
fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
|
27
25
|
cy.barsPreLoaderWait();
|
28
26
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
@@ -139,7 +139,8 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
139
139
|
utilities.verifyElementCount(graphingPage.graphPolygonCorrectAnswerSection(), 1);
|
140
140
|
|
141
141
|
//Correct/incorrect icon
|
142
|
-
|
142
|
+
//TODO: Remove comment after https://redmine.zeuslearning.com/issues/565569 is resolved
|
143
|
+
//graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
143
144
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
144
145
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
145
146
|
});
|
@@ -93,7 +93,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
93
93
|
it('When the user selects \'Grading\' view without attempting the question, correct answer tick should be displayed in correct answer cell', () => {
|
94
94
|
if (view === 'Grading view') {
|
95
95
|
studentViewPage.steps.submitResponse();
|
96
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
96
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
97
97
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
98
98
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
99
99
|
}
|
@@ -111,7 +111,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
111
111
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
112
112
|
if (view === 'Grading view') {
|
113
113
|
studentViewPage.steps.submitResponse();
|
114
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
114
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
115
115
|
studentViewPage.steps.clickOnGoToGradingViewButton()
|
116
116
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
117
117
|
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0,3);
|
@@ -133,7 +133,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
133
133
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
134
134
|
if (view === 'Grading view') {
|
135
135
|
studentViewPage.steps.submitResponse();
|
136
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
136
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
137
137
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
138
138
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
139
139
|
};
|
@@ -155,7 +155,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
155
155
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
156
156
|
if (view === 'Grading view') {
|
157
157
|
studentViewPage.steps.submitResponse();
|
158
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
158
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
159
159
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
160
160
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
161
161
|
};
|
@@ -179,7 +179,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
179
179
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
180
180
|
if (view === 'Grading view') {
|
181
181
|
studentViewPage.steps.submitResponse();
|
182
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
182
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
183
183
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
184
184
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
185
185
|
};
|
@@ -203,7 +203,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
203
203
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
204
204
|
if (view === 'Grading view') {
|
205
205
|
studentViewPage.steps.submitResponse();
|
206
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
206
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
207
207
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
208
208
|
gradingViewPage.steps.verifyGradingViewScore(20, 20);
|
209
209
|
}
|