itemengine-cypress-automation 1.0.182-repoUpdate22April-92d01da.0 → 1.0.182
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +5 -4
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +3 -64
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +1 -29
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
- package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -2
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -49
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -0
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +4 -5
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
- package/cypress/fixtures/constants.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
- package/cypress/fixtures/theme/ilc.json +16 -16
- package/cypress/pages/audioPlayerPage.js +543 -55
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +4 -4
- package/cypress/pages/components/commonComponents.js +0 -1
- package/cypress/pages/components/draggableOptionContainer.js +0 -1
- package/cypress/pages/components/equationEditorFlyout.js +2 -3
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -8
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -1
- package/cypress/pages/components/imageCanvasComponent.js +1 -2
- package/cypress/pages/components/index.js +0 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -11
- package/cypress/pages/components/toolSettingsComponent.js +0 -6
- package/cypress/pages/contentBlocksPage.js +2 -2
- package/cypress/pages/createItemPage.js +0 -29
- package/cypress/pages/dialogBoxBase.js +2 -2
- package/cypress/pages/drawingResponsePage.js +4 -23
- package/cypress/pages/feedbackScalePage.js +0 -3
- package/cypress/pages/graphingPage.js +0 -18
- package/cypress/pages/gridFillPage.js +2 -18
- package/cypress/pages/index.js +1 -1
- package/cypress/pages/itemPreviewSettingsPage.js +0 -4
- package/cypress/pages/listOrderingPage.js +647 -122
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/multipleSelectionPage.js +1 -23
- package/cypress/pages/numberLinePage.js +59 -1196
- package/cypress/pages/rulerPage.js +2 -6
- package/cypress/pages/textSelectionPage.js +22 -460
- package/package.json +1 -1
- package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +0 -162
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -216
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -214
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -251
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +0 -52
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -243
- package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -128
- package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +0 -176
- package/cypress/e2e/ILC/NumberLine/LayoutSection.js +0 -530
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +0 -119
- package/cypress/e2e/ILC/NumberLine/numberLineSection.js +0 -263
- package/cypress/e2e/ILC/TextSelection/additionalSettings.js +0 -125
- package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -73
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.smoke.js +0 -179
- package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +0 -89
- package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +0 -436
- package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +0 -277
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +0 -222
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +0 -260
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -380
- package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +0 -46
@@ -1,162 +0,0 @@
|
|
1
|
-
import { audioPlayerPage, itemPreviewPage, studentViewPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
|
-
const css = Cypress.env('css');
|
5
|
-
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
6
|
-
const views = utilities.getViews(previewContentViews);
|
7
|
-
var itemReferenceID = "";
|
8
|
-
|
9
|
-
describe('Preview tab contents for all views', () => {
|
10
|
-
before(() => {
|
11
|
-
cy.loginAs('admin');
|
12
|
-
});
|
13
|
-
|
14
|
-
//failing in student view due to https://redmine.zeuslearning.com/issues/568592
|
15
|
-
views.forEach((view) => {
|
16
|
-
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
17
|
-
let actualAudioSeekedInPercent = 50
|
18
|
-
abortEarlySetup();
|
19
|
-
before(() => {
|
20
|
-
switch (view) {
|
21
|
-
case 'Question preview':
|
22
|
-
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
23
|
-
audioPlayerPage.steps.uploadFile('uploads/sample.mp3');
|
24
|
-
audioPlayerPage.steps.addInputToAudioDescriptionInputField('Sample audio description');
|
25
|
-
audioPlayerPage.steps.selectTypeInTranscriptRadioButton();
|
26
|
-
audioPlayerPage.steps.enterTextInTranscriptInputField('Sample transcript');
|
27
|
-
audioPlayerPage.steps.switchToPreviewTab();
|
28
|
-
break;
|
29
|
-
case 'Item view':
|
30
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
31
|
-
break;
|
32
|
-
case 'Item preview':
|
33
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
34
|
-
audioPlayerPage.steps.switchToPreviewTab();
|
35
|
-
break;
|
36
|
-
case 'Student view':
|
37
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
38
|
-
break;
|
39
|
-
case 'Grading view':
|
40
|
-
cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
|
41
|
-
break;
|
42
|
-
case 'Correct answer view':
|
43
|
-
cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
|
44
|
-
break;
|
45
|
-
default:
|
46
|
-
throw new Error('Invalid view');
|
47
|
-
}
|
48
|
-
});
|
49
|
-
|
50
|
-
after(() => {
|
51
|
-
if (view === 'Question preview') {
|
52
|
-
audioPlayerPage.steps.clickOnSaveQuestionButton();
|
53
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
54
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
55
|
-
}
|
56
|
-
if (view === 'Student view') {
|
57
|
-
studentViewPage.steps.submitResponse();
|
58
|
-
utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
|
59
|
-
}
|
60
|
-
});
|
61
|
-
|
62
|
-
it('When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed', () => {
|
63
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'visible');
|
64
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
65
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'visible');
|
66
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.volumeControlButton(), 'visible');
|
67
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackElapsedTime(), 'visible');
|
68
|
-
utilities.verifyInnerText(audioPlayerPage.playbackElapsedTime(), '00:00');
|
69
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.progressBar(), 'visible');
|
70
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackTotalTime(), 'visible');
|
71
|
-
utilities.verifyInnerText(audioPlayerPage.playbackTotalTime(), '00:00');
|
72
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackSpeedButton(), 'visible');
|
73
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.addPinButton(), 'visible');
|
74
|
-
})
|
75
|
-
|
76
|
-
it('When the user clicks on \'Play\' button, then the audio file should load and the user should be able to play the audio. Timer should display the amount of audio that has been played and the total audio length in (mm:ss)/(mm:ss) format.', () => {
|
77
|
-
audioPlayerPage.steps.startPlayback();
|
78
|
-
audioPlayerPage.steps.waitForPlaybackToBegin();
|
79
|
-
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:03/00:45');
|
80
|
-
});
|
81
|
-
|
82
|
-
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', () => {
|
83
|
-
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:10/00:45');
|
84
|
-
audioPlayerPage.steps.pauseAndVerifyProgressBarSliderPosition();
|
85
|
-
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:10/00:45');
|
86
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
87
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|
88
|
-
});
|
89
|
-
|
90
|
-
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.', () => {
|
91
|
-
audioPlayerPage.steps.startPlayback();
|
92
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
|
93
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'notExist');
|
94
|
-
});
|
95
|
-
|
96
|
-
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', () => {
|
97
|
-
audioPlayerPage.steps.seekProgressBarSliderToCenter();
|
98
|
-
audioPlayerPage.steps.addWaitToPlayAudio(1000);
|
99
|
-
audioPlayerPage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
100
|
-
});
|
101
|
-
|
102
|
-
it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
|
103
|
-
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:45/00:45');
|
104
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
105
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|
106
|
-
audioPlayerPage.steps.verifyProgressBarSliderPosition(99);
|
107
|
-
});
|
108
|
-
|
109
|
-
it('The added audio description and transcript should be displayed in preview tab', () => {
|
110
|
-
utilities.verifyInnerText(audioPlayerPage.descriptionPreviewTab(), 'Sample audio description');
|
111
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.playbackSpeedButton(), 'visible');
|
112
|
-
audioPlayerPage.steps.clickOnTranscriptButton();
|
113
|
-
utilities.verifyInnerText(audioPlayerPage.transcriptContentPreviewTab(), 'Sample transcript');
|
114
|
-
utilities.verifyElementVisibilityState(audioPlayerPage.transcriptContentPreviewTab(), 'visible');
|
115
|
-
});
|
116
|
-
|
117
|
-
it('CSS of standard recording interface in Preview tab', { tags: 'css' }, () => {
|
118
|
-
utilities.verifyCSS(audioPlayerPage.playbackElapsedTime(), {
|
119
|
-
'color': css.color.playbackTime,
|
120
|
-
'font-size': css.fontSize.small,
|
121
|
-
'font-weight': css.fontWeight.bold
|
122
|
-
});
|
123
|
-
utilities.verifyCSS(audioPlayerPage.playbackTotalTime(), {
|
124
|
-
'color': css.color.playbackTime,
|
125
|
-
'font-size': css.fontSize.small,
|
126
|
-
'font-weight': css.fontWeight.bold
|
127
|
-
});
|
128
|
-
utilities.verifyCSS(audioPlayerPage.backwardButton().find('path').eq(1), {
|
129
|
-
'stroke': css.color.activeButtons
|
130
|
-
});
|
131
|
-
utilities.verifyCSS(audioPlayerPage.playbackPlayButton().find('path').eq(0), {
|
132
|
-
'stroke': css.color.activeButtons
|
133
|
-
});
|
134
|
-
utilities.verifyCSS(audioPlayerPage.forwardButton().find('path').eq(1), {
|
135
|
-
'stroke': css.color.activeButtons
|
136
|
-
});
|
137
|
-
utilities.verifyCSS(audioPlayerPage.playbackSpeedButton().find('path').eq(1), {
|
138
|
-
'fill': css.color.activeButtons
|
139
|
-
});
|
140
|
-
audioPlayerPage.transcriptButton()
|
141
|
-
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
142
|
-
utilities.verifyCSS(audioPlayerPage.transcriptButton(), {
|
143
|
-
'background-color': css.color.selectToolbarOptionBg
|
144
|
-
});
|
145
|
-
utilities.verifyCSS(audioPlayerPage.descriptionPreviewTab(), {
|
146
|
-
'color': css.color.text,
|
147
|
-
'font-size': css.fontSize.default,
|
148
|
-
'font-weight': css.fontWeight.regular
|
149
|
-
});
|
150
|
-
utilities.verifyCSS(audioPlayerPage.transcriptContentPreviewTab(), {
|
151
|
-
'color': css.color.text,
|
152
|
-
'font-size': css.fontSize.default,
|
153
|
-
'font-weight': css.fontWeight.regular
|
154
|
-
});
|
155
|
-
});
|
156
|
-
|
157
|
-
it('Accessibility of standard recording interface in Preview tab', { tags: 'a11y' }, () => {
|
158
|
-
cy.checkAccessibility(audioPlayerPage.descriptionPreviewTab().parents('.audio-resource-preview-wrapper'));
|
159
|
-
});
|
160
|
-
});
|
161
|
-
});
|
162
|
-
});
|
@@ -1,216 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
-
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
7
|
-
|
8
|
-
describe('Create item page - List ordering: All or nothing scoring with alternative answer - When alternative answer points are more than correct answer points', () => {
|
9
|
-
before(() => {
|
10
|
-
cy.loginAs('admin');
|
11
|
-
});
|
12
|
-
|
13
|
-
describe('Question preview: AutoScored - All or nothing with alternative answer: When alternative answer points are more than correct answer points', () => {
|
14
|
-
abortEarlySetup();
|
15
|
-
before(() => {
|
16
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
17
|
-
cy.barsPreLoaderWait();
|
18
|
-
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
19
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
20
|
-
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
21
|
-
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('sprout', 1);
|
22
|
-
listOrderingPage.steps.allotPoints(20);
|
23
|
-
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(correctAnswerArray);
|
24
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
25
|
-
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
26
|
-
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('plant', 3);
|
27
|
-
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('flower', 1);
|
28
|
-
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(alternateCorrectAnswerArray);
|
29
|
-
listOrderingPage.steps.allotPoints(25);
|
30
|
-
listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
-
listOrderingPage.steps.switchToPreviewTab();
|
32
|
-
});
|
33
|
-
|
34
|
-
it('When the user switches to the \'Grading view\' without attempting the question, then correct/incorrect icons should be displayed for the default list order, "Your answer is incorrect" label and correct answers section with a label \'Correct answers\' should be displayed with correct answers from the alternative accordion', () => {
|
35
|
-
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
36
|
-
listOrderingPage.steps.switchToGradingView();
|
37
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
38
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
39
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
40
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
41
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
42
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
43
|
-
});
|
44
|
-
|
45
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
46
|
-
listOrderingPage.steps.resetQuestionPreview();
|
47
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
48
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
49
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(correctAnswerArray);
|
50
|
-
listOrderingPage.steps.verifyPreviewScore(20, 25);
|
51
|
-
listOrderingPage.steps.switchToGradingView();
|
52
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
53
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
54
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
55
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
56
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
57
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
58
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
59
|
-
cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then 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')
|
60
|
-
listOrderingPage.steps.checkAnswer()
|
61
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
62
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
63
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
64
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
65
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
66
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
67
|
-
});
|
68
|
-
|
69
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
70
|
-
listOrderingPage.steps.resetQuestionPreview();
|
71
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
72
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 3);
|
73
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 1);
|
74
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(alternateCorrectAnswerArray);
|
75
|
-
listOrderingPage.steps.verifyPreviewScore(25, 25);
|
76
|
-
listOrderingPage.steps.switchToGradingView();
|
77
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
78
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
79
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
80
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
81
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
82
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
83
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
84
|
-
cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then 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')
|
85
|
-
listOrderingPage.steps.checkAnswer()
|
86
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
87
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
88
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
89
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
90
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
91
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
92
|
-
});
|
93
|
-
|
94
|
-
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
95
|
-
listOrderingPage.steps.resetQuestionPreview();
|
96
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
97
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
98
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['flower', 'sprout', 'plant', 'seed']);
|
99
|
-
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
100
|
-
listOrderingPage.steps.switchToGradingView();
|
101
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
102
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
103
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
104
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
105
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
106
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
107
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
|
-
cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
109
|
-
listOrderingPage.steps.checkAnswer()
|
110
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
111
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
112
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
113
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
114
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
115
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
116
|
-
});
|
117
|
-
|
118
|
-
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
119
|
-
listOrderingPage.steps.resetQuestionPreview();
|
120
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 0);
|
121
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 1);
|
122
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
|
123
|
-
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
124
|
-
listOrderingPage.steps.switchToGradingView();
|
125
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
126
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
127
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
128
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
129
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
130
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
131
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
|
-
cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
133
|
-
listOrderingPage.steps.checkAnswer();
|
134
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
135
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
136
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
137
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
138
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
139
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
140
|
-
});
|
141
|
-
|
142
|
-
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides response field with alternative answer responses, red cross-mark icon should be displayed beside responses from the correct accordion, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
143
|
-
listOrderingPage.steps.resetQuestionPreview();
|
144
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
145
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
146
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 3);
|
147
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['seed', 'sprout', 'flower', 'plant']);
|
148
|
-
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
149
|
-
listOrderingPage.steps.switchToGradingView();
|
150
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
151
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
152
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
153
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
154
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
155
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
156
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
157
|
-
cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
158
|
-
listOrderingPage.steps.checkAnswer()
|
159
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
160
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
161
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
162
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
163
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
164
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
165
|
-
});
|
166
|
-
|
167
|
-
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be besides the common response, , \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
168
|
-
listOrderingPage.steps.resetQuestionPreview();
|
169
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
170
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
171
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['seed', 'plant', 'flower', 'sprout']);
|
172
|
-
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
173
|
-
listOrderingPage.steps.switchToGradingView();
|
174
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
175
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
176
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
177
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
178
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
179
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
180
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
|
-
cy.log('When the user has attempted the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
182
|
-
listOrderingPage.steps.checkAnswer();
|
183
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
184
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
185
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
186
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
187
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
188
|
-
});
|
189
|
-
|
190
|
-
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
191
|
-
listOrderingPage.steps.resetQuestionPreview();
|
192
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
193
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
194
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
|
195
|
-
listOrderingPage.steps.verifyPreviewScore(0, 25);
|
196
|
-
listOrderingPage.steps.switchToGradingView();
|
197
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
198
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
199
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
200
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
201
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
202
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
|
-
|
204
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
|
-
|
206
|
-
cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
207
|
-
listOrderingPage.steps.checkAnswer();
|
208
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
209
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
210
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
211
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
212
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
213
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
214
|
-
});
|
215
|
-
});
|
216
|
-
});
|
package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js
DELETED
@@ -1,214 +0,0 @@
|
|
1
|
-
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
-
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
4
|
-
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
-
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
7
|
-
|
8
|
-
describe('Create Item page - List ordering: All or nothing scoring with alternative answer - When Correct answer points are equal to the alternative answer points', () => {
|
9
|
-
before(() => {
|
10
|
-
cy.loginAs('admin');
|
11
|
-
});
|
12
|
-
|
13
|
-
describe('Question Preview: AutoScored - All or nothing with alternative answer: Alternate answer case: When Correct answer points are equal to the alternative answer points', () => {
|
14
|
-
abortEarlySetup();
|
15
|
-
before(() => {
|
16
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
17
|
-
cy.barsPreLoaderWait();
|
18
|
-
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
19
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
20
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
21
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
22
|
-
listOrderingPage.steps.allotPoints(20);
|
23
|
-
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(correctAnswerArray);
|
24
|
-
listOrderingPage.steps.clickOnAddAlternateAnswerButton();
|
25
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
26
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 3);
|
27
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 1);
|
28
|
-
listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(alternateCorrectAnswerArray);
|
29
|
-
listOrderingPage.steps.allotPoints(20);
|
30
|
-
listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
-
listOrderingPage.steps.switchToPreviewTab();
|
32
|
-
});
|
33
|
-
|
34
|
-
it('When the user switches to the \'Grading view\' without attempting the question, then correct/incorrect icons should be displayed for the default list order, "Your answer is incorrect" label and correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion', () => {
|
35
|
-
listOrderingPage.steps.switchToGradingView();
|
36
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
37
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
38
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
39
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
40
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
41
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
42
|
-
});
|
43
|
-
|
44
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
45
|
-
listOrderingPage.steps.resetQuestionPreview();
|
46
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
47
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
48
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(correctAnswerArray);
|
49
|
-
listOrderingPage.steps.verifyPreviewScore(20, 20);
|
50
|
-
listOrderingPage.steps.switchToGradingView();
|
51
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
52
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
53
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
54
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
55
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
56
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
57
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
58
|
-
cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then 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')
|
59
|
-
listOrderingPage.steps.checkAnswer()
|
60
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
61
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
62
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
63
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
64
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
65
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
66
|
-
});
|
67
|
-
|
68
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
69
|
-
listOrderingPage.steps.resetQuestionPreview();
|
70
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
71
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 3);
|
72
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 1);
|
73
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(alternateCorrectAnswerArray);
|
74
|
-
listOrderingPage.steps.verifyPreviewScore(20, 20);
|
75
|
-
listOrderingPage.steps.switchToGradingView();
|
76
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
77
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
78
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
79
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
80
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
81
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
82
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
83
|
-
cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then 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')
|
84
|
-
listOrderingPage.steps.checkAnswer()
|
85
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
86
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
87
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
88
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
89
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
90
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
91
|
-
});
|
92
|
-
|
93
|
-
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
94
|
-
listOrderingPage.steps.resetQuestionPreview();
|
95
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
96
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
97
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['flower', 'sprout', 'plant', 'seed']);
|
98
|
-
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
99
|
-
listOrderingPage.steps.switchToGradingView();
|
100
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
101
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
102
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
103
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
104
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
105
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
106
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
|
-
cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
108
|
-
listOrderingPage.steps.checkAnswer()
|
109
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
110
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
111
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('plant');
|
112
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
113
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
114
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
115
|
-
});
|
116
|
-
|
117
|
-
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
118
|
-
listOrderingPage.steps.resetQuestionPreview();
|
119
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 0);
|
120
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 1);
|
121
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
|
122
|
-
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
123
|
-
listOrderingPage.steps.switchToGradingView();
|
124
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
125
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
126
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
127
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
128
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
129
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
130
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
131
|
-
cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
132
|
-
listOrderingPage.steps.checkAnswer();
|
133
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
134
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('flower');
|
135
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
136
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
137
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
138
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
139
|
-
});
|
140
|
-
|
141
|
-
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside responses from the alternative tab, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
142
|
-
listOrderingPage.steps.resetQuestionPreview();
|
143
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
144
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 1);
|
145
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 3);
|
146
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['seed', 'sprout', 'flower', 'plant']);
|
147
|
-
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
148
|
-
listOrderingPage.steps.switchToGradingView();
|
149
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
150
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
151
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
152
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
153
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
154
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
155
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
156
|
-
cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
157
|
-
listOrderingPage.steps.checkAnswer();
|
158
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
159
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
|
160
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
161
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
162
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
164
|
-
});
|
165
|
-
|
166
|
-
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be besides the common response, \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
167
|
-
listOrderingPage.steps.resetQuestionPreview();
|
168
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('seed', 0);
|
169
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
170
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['seed', 'plant', 'flower', 'sprout']);
|
171
|
-
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
172
|
-
listOrderingPage.steps.switchToGradingView();
|
173
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
174
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
175
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
176
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
177
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
178
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
179
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
180
|
-
cy.log('When the user has attempted the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
181
|
-
listOrderingPage.steps.checkAnswer()
|
182
|
-
listOrderingPage.steps.verifyCorrectOptionIcon('seed');
|
183
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
184
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
185
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
186
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
187
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
188
|
-
});
|
189
|
-
|
190
|
-
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
191
|
-
listOrderingPage.steps.resetQuestionPreview();
|
192
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
193
|
-
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
194
|
-
listOrderingPage.steps.verifyOptionsOrderInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
|
195
|
-
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
196
|
-
listOrderingPage.steps.switchToGradingView();
|
197
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
198
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
199
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
200
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
201
|
-
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
202
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
204
|
-
cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
205
|
-
listOrderingPage.steps.checkAnswer();
|
206
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('flower');
|
207
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
|
208
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
|
209
|
-
listOrderingPage.steps.verifyIncorrectOptionIcon('sprout');
|
210
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
211
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
212
|
-
});
|
213
|
-
});
|
214
|
-
});
|