itemengine-cypress-automation 1.0.295-applitools-219e3f5.0 → 1.0.295-e2e6thFebFixes-348b431.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
- 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 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -3
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +39 -1
- package/cypress/pages/singleSelectionPage.js +39 -1
- 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
@@ -317,23 +317,23 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
317
317
|
audioResponsePage.steps.switchToPreviewTab();
|
318
318
|
audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
|
319
319
|
});
|
320
|
-
|
320
|
+
|
321
321
|
it('When the user hovers over the \'Play\' button, a tooltip \'Play\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
322
322
|
audioResponsePage.playbackPlayButton()
|
323
323
|
.verifyTooltip('Play');
|
324
324
|
});
|
325
|
-
|
325
|
+
|
326
326
|
it('When the user clicks on \'Play\' button, then the audio should start playing. Timer should display the amount of audio that has been played and the total audio length in (mm:ss)/(mm:ss) format.', () => {
|
327
327
|
audioResponsePage.steps.startPlayback();
|
328
328
|
audioResponsePage.steps.waitForPlaybackToBeginBarPreview();
|
329
329
|
audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:03', '00:10');
|
330
330
|
});
|
331
|
-
|
331
|
+
|
332
332
|
it('When the user hovers over the \'Pause\' button, a tooltip \'Pause\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
|
333
333
|
audioResponsePage.playbackPauseButton()
|
334
334
|
.verifyTooltip('Pause');
|
335
335
|
});
|
336
|
-
|
336
|
+
|
337
337
|
it('CSS of \'Preview\' section if playback is initiated', { tags: 'css' }, () => {
|
338
338
|
utilities.verifyCSS(audioResponsePage.barPreviewPlaybackTime(), {
|
339
339
|
'color': css.color.liText,
|
@@ -347,11 +347,11 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
347
347
|
'stroke': css.color.secondaryBtnActive
|
348
348
|
});
|
349
349
|
});
|
350
|
-
|
350
|
+
|
351
351
|
it('Accessibility of \'Preview\' section if playback is initiated', { tags: 'a11y' }, () => {
|
352
352
|
cy.checkAccessibility(audioResponsePage.barPreviewPlaybackWrapper());
|
353
353
|
});
|
354
|
-
|
354
|
+
|
355
355
|
it('When the audio player is in playback state and the user clicks on \'Pause\' button, then playback should get paused. Progress bar and timer should not update further and the \'Pause\' button should get replaced with \'Play\' button', () => {
|
356
356
|
audioResponsePage.steps.resetQuestionPreview();
|
357
357
|
audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
|
@@ -363,7 +363,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
363
363
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
|
364
364
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
|
365
365
|
});
|
366
|
-
|
366
|
+
|
367
367
|
it('CSS of \'Preview\' section if playback is paused', { tags: 'css' }, () => {
|
368
368
|
utilities.verifyCSS(audioResponsePage.playbackPlayButton().find('svg rect'), {
|
369
369
|
'fill': css.color.secondaryBtnBg
|
@@ -372,36 +372,36 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
372
372
|
'stroke': css.color.secondaryBtnActive
|
373
373
|
});
|
374
374
|
});
|
375
|
-
|
375
|
+
|
376
376
|
it('Accessibility of \'Preview\' section if if playback is paused', { tags: 'a11y' }, () => {
|
377
377
|
cy.checkAccessibility(audioResponsePage.barPreviewPlaybackWrapper());
|
378
378
|
});
|
379
|
-
|
379
|
+
|
380
380
|
it('When audio player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
|
381
381
|
audioResponsePage.steps.startPlayback();
|
382
382
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'visible');
|
383
383
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'notExist');
|
384
384
|
});
|
385
|
-
|
385
|
+
|
386
386
|
it('When the user seeks the progress bar slider while the audio is playing, then the audio should continue to play from the position where the slider is seeked', () => {
|
387
387
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
388
388
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
389
389
|
});
|
390
|
-
|
390
|
+
|
391
391
|
it('When the user seeks the progress bar slider while the audio is paused, then the audio playback should be in paused state and on playing the audio, then the audio should play from the position where the slider is seeked', () => {
|
392
392
|
audioResponsePage.steps.pausePlayback();
|
393
393
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
394
394
|
audioResponsePage.steps.startPlayback();
|
395
395
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
396
396
|
});
|
397
|
-
|
397
|
+
|
398
398
|
it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
|
399
399
|
audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:10', '00:10');
|
400
400
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
|
401
401
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
|
402
402
|
audioResponsePage.steps.verifyProgressBarSliderPosition(99);
|
403
403
|
});
|
404
|
-
|
404
|
+
|
405
405
|
it('CSS of progress bar in hover state', { tags: 'css' }, () => {
|
406
406
|
audioResponsePage.steps.hoverOnProgressBarSlider();
|
407
407
|
utilities.verifyCSS(audioResponsePage.progressBarSlider().parents('span[class*="MuiSlider-thumb"]'), {
|
@@ -409,7 +409,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
409
409
|
});
|
410
410
|
});
|
411
411
|
});
|
412
|
-
|
412
|
+
|
413
413
|
describe('Playback player : Volume control', () => {
|
414
414
|
abortEarlySetup();
|
415
415
|
before(() => {
|
@@ -419,10 +419,10 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
419
419
|
audioResponsePage.steps.switchToPreviewTab();
|
420
420
|
audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
|
421
421
|
});
|
422
|
-
|
422
|
+
|
423
423
|
audioResponsePage.tests.verifyVolumeControlFunctionality();
|
424
424
|
});
|
425
|
-
|
425
|
+
|
426
426
|
describe('Playback player : Playback speed', () => {
|
427
427
|
const playbackSpeedOptions = ['1', '1.25', '1.5', '2'];
|
428
428
|
abortEarlySetup();
|
@@ -433,9 +433,9 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
433
433
|
audioResponsePage.steps.switchToPreviewTab();
|
434
434
|
audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
|
435
435
|
});
|
436
|
-
|
436
|
+
|
437
437
|
audioResponsePage.tests.verifyPlaybackSpeedContents(playbackSpeedOptions);
|
438
|
-
|
438
|
+
|
439
439
|
for (let index = 0; index < playbackSpeedOptions.length; index++) {
|
440
440
|
it(`When the user selects playback speed option ${playbackSpeedOptions[index]}x, the audio playback speed should be changed accordingly`, () => {
|
441
441
|
audioResponsePage.steps.resetQuestionPreview();
|
@@ -450,7 +450,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
450
450
|
});
|
451
451
|
};
|
452
452
|
});
|
453
|
-
|
453
|
+
|
454
454
|
describe('Playback player : Retake my audio response', () => {
|
455
455
|
abortEarlySetup();
|
456
456
|
before(() => {
|
@@ -11,14 +11,6 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
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 (views.includes('Grading view')) {
|
23
15
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
24
16
|
let actualAudioSeekedInPercent = 50
|
@@ -82,9 +74,8 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
82
74
|
audioResponsePage.steps.verifyProgressBarSliderPosition(99);
|
83
75
|
});
|
84
76
|
|
85
|
-
it('
|
77
|
+
it('A download button should be displayed in the playback player', () => {
|
86
78
|
utilities.verifyElementVisibilityState(audioResponsePage.downloadAudioButton(), 'visible');
|
87
|
-
cy.eyesCheckWindow(`Audio response: Grading view - Verify download button is displayed in the playback player.`);
|
88
79
|
});
|
89
80
|
|
90
81
|
it('Empty score input field and total score should be displayed', () => {
|
@@ -134,9 +125,8 @@ describe('Create item page - audio response: Grading view, Correct answer view c
|
|
134
125
|
|
135
126
|
correctAnswerViewPage.tests.verifyManualScoredQuestionHelpTextCorrectAnswerPage();
|
136
127
|
|
137
|
-
it('
|
128
|
+
it('The points alloted to the question should be displayed', () => {
|
138
129
|
correctAnswerViewPage.steps.verifyAvailablePoints(10);
|
139
|
-
cy.eyesCheckWindow('Audio response: Correct answer view contents');
|
140
130
|
});
|
141
131
|
});
|
142
132
|
}
|
@@ -11,14 +11,6 @@ describe('Create item page - Audio 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();
|
@@ -114,7 +106,7 @@ describe('Create item page - Audio response: Preview contents', () => {
|
|
114
106
|
utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
|
115
107
|
});
|
116
108
|
|
117
|
-
it(
|
109
|
+
it('When the user clicks on the stop recording button, the recording should stop and the recording should get saved', () => {
|
118
110
|
audioResponsePage.steps.stopRecordingStandardPreview();
|
119
111
|
utilities.verifyInnerText(audioResponsePage.savingStatusText(), 'Saving');
|
120
112
|
utilities.verifyElementVisibilityState(audioResponsePage.savingStatusText(), 'visible');
|
@@ -124,7 +116,6 @@ describe('Create item page - Audio response: Preview contents', () => {
|
|
124
116
|
utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
|
125
117
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
|
126
118
|
audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
127
|
-
cy.eyesCheckWindow(`${view} - Audio response - Verify recording stops and is saved when the Stop recording button is clicked`);
|
128
119
|
});
|
129
120
|
});
|
130
121
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Charts - Bar horizontal orientation: 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();
|
@@ -300,7 +292,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
300
292
|
});
|
301
293
|
|
302
294
|
//Fully correct
|
303
|
-
it(
|
295
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
|
304
296
|
if (view === 'Grading view') {
|
305
297
|
studentViewPage.steps.clearResponses();
|
306
298
|
}
|
@@ -322,7 +314,6 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
322
314
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
323
315
|
chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
324
316
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
325
|
-
cy.eyesCheckWindow(`${view} - Fully correct case`);
|
326
317
|
});
|
327
318
|
});
|
328
319
|
});
|
@@ -96,7 +96,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
|
|
96
96
|
});
|
97
97
|
|
98
98
|
it('All the bar graphs in grading view should be non-editable', () => {
|
99
|
-
chartsBarPage.steps.verifyDragHandleNotVisible();
|
99
|
+
chartsBarPage.steps.verifyDragHandleNotVisible();
|
100
100
|
for (let index = 0; index < 5; index++) {
|
101
101
|
utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), index));
|
102
102
|
utilities.verifyElementVisibilityState(chartsBarPage.barAndPointTooltipWrapper(), 'notExist');
|
package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js
CHANGED
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
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
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -150,10 +142,9 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
150
142
|
|
151
143
|
chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
|
152
144
|
|
153
|
-
it(
|
145
|
+
it('User should be able to edit the label a bar', () => {
|
154
146
|
chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, '2000');
|
155
147
|
chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(3, '2004');
|
156
|
-
cy.eyesCheckWindow(`${view} - Charts bar after editing the bar height and labels`);
|
157
148
|
});
|
158
149
|
|
159
150
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -11,14 +11,6 @@ describe('Create item page - Charts - Bar: 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();
|
@@ -298,7 +290,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
298
290
|
});
|
299
291
|
|
300
292
|
//Fully correct
|
301
|
-
it(
|
293
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
|
302
294
|
if (view === 'Grading view') {
|
303
295
|
studentViewPage.steps.clearResponses();
|
304
296
|
}
|
@@ -320,7 +312,6 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
320
312
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
321
313
|
chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
322
314
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
323
|
-
cy.eyesCheckWindow(`${view} - Fully correct case`);
|
324
315
|
});
|
325
316
|
});
|
326
317
|
});
|
@@ -14,14 +14,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
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 (views.includes('Grading view')) {
|
26
18
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -115,7 +107,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
115
107
|
utilities.verifyElementVisibilityState(chartsBarPage.correctAnswersLabel(), 'visible');
|
116
108
|
});
|
117
109
|
|
118
|
-
it('
|
110
|
+
it('Correct answer should be displayed in the correct answer section', () => {
|
119
111
|
chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 0, barValue: 2, range: 20 });
|
120
112
|
chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 20 });
|
121
113
|
chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 20 });
|
@@ -129,7 +121,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
129
121
|
chartsBarPage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
|
130
122
|
chartsBarPage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
|
131
123
|
chartsBarPage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
|
132
|
-
cy.eyesCheckWindow('Charts bar: Vertical - Grading view contents');
|
133
124
|
});
|
134
125
|
|
135
126
|
it('Points and the total score should be displayed', () => {
|
@@ -229,7 +220,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
229
220
|
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolBarWrapper(), 'notExist');
|
230
221
|
});
|
231
222
|
|
232
|
-
it('
|
223
|
+
it('The correct answer set by user should be displayed in the correct answer view', () => {
|
233
224
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 2, range: 20 });
|
234
225
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
|
235
226
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 5, range: 20 });
|
@@ -241,7 +232,6 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
|
|
241
232
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
|
242
233
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
|
243
234
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
244
|
-
cy.eyesCheckWindow('Charts bar: Verical - Correct answer view contents')
|
245
235
|
});
|
246
236
|
|
247
237
|
it('The points alloted to the question should be displayed', () => {
|
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
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
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -152,10 +144,9 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
152
144
|
|
153
145
|
chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
|
154
146
|
|
155
|
-
it(
|
147
|
+
it('User should be able to edit the label a bar', () => {
|
156
148
|
chartsBarPage.steps.editBarLabelInPreviewTab(0, '2000');
|
157
149
|
chartsBarPage.steps.editBarLabelInPreviewTab(1, '2001');
|
158
|
-
cy.eyesCheckWindow(`${view} - Charts bar: Vertical after editing the bar height and labels`);
|
159
150
|
});
|
160
151
|
|
161
152
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -13,14 +13,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
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();
|
@@ -114,7 +106,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
114
106
|
utilities.verifyElementVisibilityState(chartsLinePage.correctAnswersLabel(), 'visible');
|
115
107
|
});
|
116
108
|
|
117
|
-
it('
|
109
|
+
it('Correct answer should be displayed in the correct answer section', () => {
|
118
110
|
chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 0, value: 2, range: 20 });
|
119
111
|
chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 20 });
|
120
112
|
chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 20 });
|
@@ -128,7 +120,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
128
120
|
chartsLinePage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
|
129
121
|
chartsLinePage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
|
130
122
|
chartsLinePage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
|
131
|
-
cy.eyesCheckWindow('Charts Line - Grading view contents');
|
132
123
|
});
|
133
124
|
|
134
125
|
it('Points and the total score should be displayed', () => {
|
@@ -229,7 +220,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
229
220
|
utilities.verifyElementVisibilityState(chartsLinePage.previewTabToolBarWrapper(), 'notExist');
|
230
221
|
});
|
231
222
|
|
232
|
-
it('
|
223
|
+
it('The correct answer set by user should be displayed in the correct answer view', () => {
|
233
224
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 20 });
|
234
225
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 20 });
|
235
226
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 20 });
|
@@ -241,7 +232,6 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
|
|
241
232
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
242
233
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
243
234
|
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
244
|
-
cy.eyesCheckWindow('Charts Line - Correct answer view contents');
|
245
235
|
});
|
246
236
|
|
247
237
|
it('The points alloted to the question should be displayed', () => {
|
@@ -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();
|
@@ -106,7 +98,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
106
98
|
utilities.verifyElementCount(chartsLinePage.previewTabChartRowHeaderContainer(), 21);
|
107
99
|
});
|
108
100
|
|
109
|
-
it('User should be able to edit the
|
101
|
+
it('User should be able to edit the Y axis and X axis labels in preview tab', () => {
|
110
102
|
chartsLinePage.steps.editYAxisLabelInPreviewTab('Edited Y axis label');
|
111
103
|
utilities.verifyInnerText(chartsLinePage.previewTabYAxisLabelButton(), 'Edited Y axis label');
|
112
104
|
chartsLinePage.steps.editXAxisLabelInPreviewTab('Edited X axis label');
|
@@ -150,7 +142,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
150
142
|
|
151
143
|
chartsLinePage.tests.verifyPointTooltipContentsCSSAndA11yInPreviewTab('0', 'Point 1');
|
152
144
|
|
153
|
-
it(
|
145
|
+
it('User should be able to edit the point label', () => {
|
154
146
|
chartsLinePage.steps.editPointLabelInPreviewTab(0, '2000');
|
155
147
|
});
|
156
148
|
|
@@ -285,11 +277,10 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
285
277
|
cy.checkAccessibility(chartsLinePage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
|
286
278
|
});
|
287
279
|
|
288
|
-
it(
|
280
|
+
it('When user deletes a point, then that point should be deleted and the add point button should be enabled again', () => {
|
289
281
|
chartsLinePage.steps.deletePointInPreviewTab(3);
|
290
282
|
utilities.verifyElementCount(chartsLinePage.previewTabPoint(), 3);
|
291
283
|
utilities.verifyElementVisibilityState(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 4), 'notExist');
|
292
|
-
cy.eyesCheckWindow(`${view} - Charts Line: Charts bar after adding and deleting points`);
|
293
284
|
});
|
294
285
|
});
|
295
286
|
});
|
@@ -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();
|
@@ -212,7 +204,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
212
204
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
213
205
|
});
|
214
206
|
|
215
|
-
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', () => {
|
216
208
|
if (view === 'Grading view') {
|
217
209
|
studentViewPage.steps.clearResponses();
|
218
210
|
};
|
@@ -237,7 +229,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
237
229
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
238
230
|
// dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
239
231
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
240
|
-
cy.eyesCheckWindow(`${view} - DND - Correct attempt`);
|
241
232
|
});
|
242
233
|
});
|
243
234
|
});
|
@@ -254,8 +245,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
254
245
|
dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
|
255
246
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
256
247
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.scoringTypeDropdown(), 'Manually scored');
|
257
|
-
cy.log('Adding wait to ensure Manually scored is selected');
|
258
|
-
cy.wait(2000);
|
259
248
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
|
260
249
|
break;
|
261
250
|
case 'Grading view':
|
@@ -34,9 +34,9 @@ describe('Edit item - Drag and drop into categories', () => {
|
|
34
34
|
it('User should be able to edit options and save the question', () => {
|
35
35
|
dragAndDropIntoCategoriesPage.steps.editItem();
|
36
36
|
dragAndDropIntoCategoriesPage.steps.clearTextInOptionInputField(0);
|
37
|
-
dragAndDropIntoCategoriesPage.steps.
|
37
|
+
dragAndDropIntoCategoriesPage.steps.editOptionInputField(0, 'Birds');
|
38
38
|
dragAndDropIntoCategoriesPage.steps.clearTextInOptionInputField(1);
|
39
|
-
dragAndDropIntoCategoriesPage.steps.
|
39
|
+
dragAndDropIntoCategoriesPage.steps.editOptionInputField(1, 'Insects');
|
40
40
|
dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
|
41
41
|
dragAndDropIntoCategoriesPage.steps.verifyOptionFieldTextInOptionsSection(options);
|
42
42
|
});
|
@@ -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();
|
@@ -85,10 +77,9 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
85
77
|
}
|
86
78
|
});
|
87
79
|
|
88
|
-
it(
|
80
|
+
it('Question instructions should be visible', () => {
|
89
81
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.questionInstructionsText(), 'Drag and drop options in correct categories');
|
90
82
|
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsText(), 'visible');
|
91
|
-
cy.eyesCheckWindow(`DND into categories: ${view} Default question state`);
|
92
83
|
});
|
93
84
|
|
94
85
|
it(`The category table as set by the user should be displayed in the ${view}`, () => {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { dragAndDropIntoCategoriesPage } from "../../../pages/dragAndDropIntoCategoriesPage";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
3
4
|
let animals = [['Bat', 'Platypus', 'Panda', 'Zebra'],
|
4
5
|
['Peacock', 'Falcon', 'Eagle', 'Tiger'],
|
5
6
|
['Parrot', 'Lion', 'Whale', 'Elephant'],
|
@@ -108,6 +109,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
108
109
|
before(() => {
|
109
110
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
110
111
|
cy.barsPreLoaderWait();
|
112
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
111
113
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
112
114
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
113
115
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle(groupTitles[0]);
|
@@ -159,6 +161,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
159
161
|
before(() => {
|
160
162
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
161
163
|
cy.barsPreLoaderWait();
|
164
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
162
165
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
163
166
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
164
167
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle(groupTitles[0]);
|
@@ -212,6 +215,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
212
215
|
before(() => {
|
213
216
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
214
217
|
cy.barsPreLoaderWait();
|
218
|
+
utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
|
215
219
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
216
220
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
217
221
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle(groupTitles[0]);
|
@@ -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(`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(`Checking correct answer view for drawing response`);
|
107
97
|
});
|
108
98
|
|
109
99
|
it('The points alloted to the question should be displayed', () => {
|