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
@@ -0,0 +1,134 @@
|
|
1
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
+
import { essayResponsePage } from "../../../pages";
|
3
|
+
import { ckEditorToolbar } from "../../../pages/components";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
let specialCharacters = [':', ')', '`']
|
7
|
+
describe('Create question page - Essay Response: Additional Settings basic', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Additional Settings accordion', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
16
|
+
});
|
17
|
+
|
18
|
+
essayResponsePage.tests.verifyAdditionalSettingsAccordionProperties();
|
19
|
+
});
|
20
|
+
|
21
|
+
describe('\'Student response area and layout\' section', () => {
|
22
|
+
abortEarlySetup();
|
23
|
+
before(() => {
|
24
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
25
|
+
essayResponsePage.steps.expandAdditionalSettings();
|
26
|
+
});
|
27
|
+
|
28
|
+
it('\'Student response area and layout\' label should be displayed', () => {
|
29
|
+
essayResponsePage.studentResponseAndLayoutLabel()
|
30
|
+
.verifyInnerText('Student response area and layout')
|
31
|
+
.should('be.visible');
|
32
|
+
});
|
33
|
+
|
34
|
+
it('CSS of \'Student response area and layout\' section', { tags: 'css' }, () => {
|
35
|
+
essayResponsePage.studentResponseAndLayoutLabel()
|
36
|
+
.verifyCSS(css.color.labels, css.fontSize.default, css.fontWeight.semibold);
|
37
|
+
});
|
38
|
+
|
39
|
+
it('Accessibility of \'Student response area and layout\' section', { tags: 'a11y' }, () => {
|
40
|
+
cy.checkAccessibility(essayResponsePage.studentResponseAndLayoutLabel())
|
41
|
+
});
|
42
|
+
});
|
43
|
+
|
44
|
+
//Failing due to https://redmine.zeuslearning.com/issues/551117
|
45
|
+
describe('Additional Settings: Custom special characters section', () => {
|
46
|
+
abortEarlySetup();
|
47
|
+
before(() => {
|
48
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
49
|
+
essayResponsePage.steps.expandAdditionalSettings();
|
50
|
+
});
|
51
|
+
|
52
|
+
it('\'Custom special characters\' label and \'Custom special characters\' input field should be displayed, by default the input field should be empty and user should be able to enter \'Custom special characters', () => {
|
53
|
+
essayResponsePage.customSpecialCharacterLabel()
|
54
|
+
.verifyInnerText('Custom special characters');
|
55
|
+
essayResponsePage.customSpecialCharacterInputField()
|
56
|
+
.should('have.value', '');
|
57
|
+
essayResponsePage.customSpecialCharacterInputField()
|
58
|
+
.type(':)`')
|
59
|
+
.should('have.value', ':)`');
|
60
|
+
});
|
61
|
+
|
62
|
+
it('When the user has added the \'Custom special characters\' then in the preview tab, on clicking on the special character toolbar option, only the custom special characters should appear in the dialog box and the user should be able to enter custom special characters in the response field', () => {
|
63
|
+
essayResponsePage.steps.switchToPreviewTab();
|
64
|
+
essayResponsePage.previewTabToolbarOption('Special characters')
|
65
|
+
.click();
|
66
|
+
ckEditorToolbar.ckeDialogbox()
|
67
|
+
.should('be.visible');
|
68
|
+
specialCharacters.forEach((character, count) => {
|
69
|
+
essayResponsePage.specialCharacterFlyoutIcon(count)
|
70
|
+
.should('have.text', character);
|
71
|
+
});
|
72
|
+
});
|
73
|
+
|
74
|
+
it('User should be able to add all special characters in the response field and word count should update accordingly.', () => {
|
75
|
+
for (let index = 0; index < specialCharacters.length; index++) {
|
76
|
+
essayResponsePage.specialCharacterFlyoutIcon(index)
|
77
|
+
.click();
|
78
|
+
};
|
79
|
+
essayResponsePage.responseField()
|
80
|
+
.should('have.text', ':)`');
|
81
|
+
essayResponsePage.responseFieldWordCount()
|
82
|
+
.should('have.text', '1/10000');
|
83
|
+
});
|
84
|
+
});
|
85
|
+
|
86
|
+
describe('Additional Settings: Font Size dropdown', () => {
|
87
|
+
abortEarlySetup();
|
88
|
+
before(() => {
|
89
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
90
|
+
essayResponsePage.steps.expandAdditionalSettings();
|
91
|
+
essayResponsePage.steps.setWordLimit(2);
|
92
|
+
});
|
93
|
+
const fontsizes = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
|
94
|
+
const font = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
95
|
+
|
96
|
+
essayResponsePage.tests.verifyFontSizeSectionContents();
|
97
|
+
|
98
|
+
fontsizes.forEach((option, count) => {
|
99
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size for the entire question in the student player should be changed to ${option} in the \'Preview\' tab`, () => {
|
100
|
+
essayResponsePage.fontSizeDropdown()
|
101
|
+
.click();
|
102
|
+
essayResponsePage.fontSizeListOptions(count)
|
103
|
+
.click();
|
104
|
+
essayResponsePage.fontSizeDropdown()
|
105
|
+
.verifyInnerText(`${option}`);
|
106
|
+
cy.log('Switching to Preview tab.');
|
107
|
+
essayResponsePage.steps.switchToPreviewTab();
|
108
|
+
essayResponsePage.previewTabToolbarOption('Special characters')
|
109
|
+
.should('have.css', 'font-size', font[count]);
|
110
|
+
essayResponsePage.responseField()
|
111
|
+
.should('have.css', 'font-size', font[count]);
|
112
|
+
essayResponsePage.responseFieldWordCount()
|
113
|
+
.should('have.css', 'font-size', font[count]);
|
114
|
+
cy.log('Reaching word limit to verify font size of warning message');
|
115
|
+
essayResponsePage.responseField()
|
116
|
+
.type('Lorem Ipsum')
|
117
|
+
.should('have.text', 'Lorem Ipsum');
|
118
|
+
essayResponsePage.wordLimitReachedWarningMessage()
|
119
|
+
.should('have.css', 'font-size', font[count]);
|
120
|
+
essayResponsePage.steps.switchToEditTab()
|
121
|
+
});
|
122
|
+
});
|
123
|
+
});
|
124
|
+
|
125
|
+
describe('Additional Settings: Details section', () => {
|
126
|
+
abortEarlySetup();
|
127
|
+
before(() => {
|
128
|
+
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
129
|
+
essayResponsePage.steps.expandAdditionalSettings();
|
130
|
+
});
|
131
|
+
|
132
|
+
essayResponsePage.tests.verifyDetailsSection();
|
133
|
+
});
|
134
|
+
});
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import { dialogBoxBase } from "../../../pages";
|
2
1
|
import { feedbackScalePage } from "../../../pages/feedbackScalePage";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
-
import utilities from "../../../support/helpers/utilities";
|
5
3
|
|
6
4
|
describe('Create question page - Feedback scale: Header section and Saving question', () => {
|
7
5
|
before(() => {
|
@@ -32,33 +30,7 @@ describe('Create question page - Feedback scale: Header section and Saving quest
|
|
32
30
|
feedbackScalePage.steps.navigateToCreateQuestion('feedback scale')
|
33
31
|
});
|
34
32
|
|
35
|
-
|
36
|
-
feedbackScalePage.steps.clickOnCancelButton();
|
37
|
-
utilities.verifyElementVisibilityState(feedbackScalePage.selectAQuestionHeaderText(), 'visible');
|
38
|
-
utilities.verifyElementVisibilityState(feedbackScalePage.questionTypeOptionTitle(), 'visible');
|
39
|
-
});
|
40
|
-
|
41
|
-
it('When user has made some edits/changes and clicks on Cancel button, a popup should be displayed', () => {
|
42
|
-
feedbackScalePage.steps.selectQuestionType('feedback scale');
|
43
|
-
feedbackScalePage.steps.addTextInQuestionInstructionsInputField('Feedback scale');
|
44
|
-
feedbackScalePage.steps.clickOnCancelButton();
|
45
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
46
|
-
});
|
47
|
-
|
48
|
-
dialogBoxBase.tests.verifyContentsOfLeavePagePopupWithCSSAnda11y();
|
49
|
-
|
50
|
-
it(`Clicking on \'No, I'd like to go back\' button should close the popup and user should remain on the edit interface of the question`, () => {
|
51
|
-
dialogBoxBase.steps.clickOnRejectButtonInDialogBox();
|
52
|
-
feedbackScalePage.steps.verifyEditTabSelectedState();
|
53
|
-
utilities.verifyTextContent(feedbackScalePage.questionInstructionsInputField(), 'Feedback scale');
|
54
|
-
});
|
55
|
-
|
56
|
-
it(`Clicking on \'Yes, I want to leave this page\' button should discard all changes and direct the user to the \'Select a question\' page.`, () => {
|
57
|
-
feedbackScalePage.steps.clickOnCancelButton();
|
58
|
-
dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
|
59
|
-
utilities.verifyElementVisibilityState(feedbackScalePage.selectAQuestionHeaderText(), 'visible');
|
60
|
-
utilities.verifyElementVisibilityState(feedbackScalePage.questionTypeOptionTitle(), 'visible');
|
61
|
-
});
|
33
|
+
feedbackScalePage.tests.verifyCancelButton('feedback scale');
|
62
34
|
});
|
63
35
|
|
64
36
|
describe('Saving a question', () => {
|
@@ -30,11 +30,11 @@ describe('Preview tab contents for all views', () => {
|
|
30
30
|
fillInTheGapsDragAndDropPage.steps.focusInOptionsInputField(0);
|
31
31
|
fillInTheGapsDragAndDropPage.steps.selectImageOptionFromCKEditorToolbar();
|
32
32
|
fillInTheGapsDragAndDropPage.steps.addImageToInputField();
|
33
|
-
fillInTheGapsDragAndDropPage.steps.
|
33
|
+
fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(0, 'Petals');
|
34
34
|
cy.log('Add bold text to input field')
|
35
35
|
fillInTheGapsDragAndDropPage.steps.focusInOptionsInputField(1);
|
36
36
|
fillInTheGapsDragAndDropPage.steps.selectBoldOptionFromCKEditorToolbar();
|
37
|
-
fillInTheGapsDragAndDropPage.steps.
|
37
|
+
fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(1, 'This is a bold option');
|
38
38
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Solve the following': 1, 'Petals': 2, 'This is a bold option': 0 });
|
39
39
|
fillInTheGapsDragAndDropPage.steps.allotPoints(10);
|
40
40
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
@@ -327,7 +327,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Student view s
|
|
327
327
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
328
328
|
fillInTheGapsDragAndDropPage.steps.switchToEditTab();
|
329
329
|
fillInTheGapsDragAndDropPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
330
|
-
fillInTheGapsDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
330
|
+
fillInTheGapsDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
331
331
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
332
332
|
fillInTheGapsDragAndDropPage.steps.verifyCheckAnswerButtonEnabled();
|
333
333
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
|
@@ -171,7 +171,7 @@ describe('Create Item page - Fill in the gaps with dropdown: Student view settin
|
|
171
171
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
172
172
|
fillInTheGapsDropdownPage.steps.switchToEditTab();
|
173
173
|
fillInTheGapsDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
174
|
-
fillInTheGapsDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
174
|
+
fillInTheGapsDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
175
175
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
176
176
|
fillInTheGapsDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
177
177
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
|
@@ -189,7 +189,6 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
189
189
|
});
|
190
190
|
});
|
191
191
|
|
192
|
-
//Failing die to https://redmine.zeuslearning.com/issues/567278
|
193
192
|
describe('Auto scored: Partial - different weights scoring - Specify correct answer section', () => {
|
194
193
|
abortEarlySetup();
|
195
194
|
before(() => {
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -28,16 +28,16 @@ describe('Preview tab contents for all views', () => {
|
|
28
28
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
29
29
|
fillInTheGapsOverImageDragAndDropPage.steps.insertTextArea(20, 'This is a text area');
|
30
30
|
cy.log('Add image to option input field')
|
31
|
-
fillInTheGapsOverImageDragAndDropPage.steps.editOptionInputField(0, 'Petals');
|
32
31
|
fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(0);
|
33
32
|
fillInTheGapsOverImageDragAndDropPage.steps.selectImageOptionFromCKEditorToolbar();
|
34
33
|
fillInTheGapsOverImageDragAndDropPage.steps.addImageToInputField();
|
34
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, 'Petals');
|
35
35
|
cy.log('Add bold text to input field')
|
36
36
|
fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(1);
|
37
37
|
fillInTheGapsOverImageDragAndDropPage.steps.selectBoldOptionFromCKEditorToolbar();
|
38
38
|
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, 'This is a bold option');
|
39
39
|
cy.log('Add equation to option input field')
|
40
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
40
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(2, 'Solve the following');
|
41
41
|
fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(2);
|
42
42
|
fillInTheGapsOverImageDragAndDropPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
43
43
|
fillInTheGapsOverImageDragAndDropPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
@@ -360,7 +360,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
360
360
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
361
361
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
362
362
|
fillInTheGapsOverImageDragAndDropPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
363
|
-
fillInTheGapsOverImageDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
363
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
364
364
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
365
365
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCheckAnswerButtonEnabled();
|
366
366
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
|
@@ -196,7 +196,7 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Student vie
|
|
196
196
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
197
197
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
198
198
|
fillInTheGapsOverImageDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
199
|
-
fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
200
200
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
201
201
|
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
202
202
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
|
@@ -203,17 +203,17 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
203
203
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Branch' }]);
|
204
204
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(12.6, 15);
|
205
205
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
206
|
-
fillInTheGapsOverImageTextPage.steps.
|
206
|
+
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
207
207
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
|
208
|
-
fillInTheGapsOverImageTextPage.steps.
|
208
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
209
209
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
210
210
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
211
211
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
212
212
|
cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with response area numeration should be displayed')
|
213
213
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
214
|
-
fillInTheGapsOverImageTextPage.steps.
|
214
|
+
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
215
215
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
|
216
|
-
fillInTheGapsOverImageTextPage.steps.
|
216
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
217
217
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
218
218
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
219
219
|
});
|
@@ -187,7 +187,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
187
187
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
|
188
188
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
|
189
189
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
190
|
-
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', '
|
190
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Roots']);
|
191
191
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
192
192
|
cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on the \'Check answer\' button, correct icons should be displayed beside correct accordion responses, incorrect icons should be displayed beside alternative accordion responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
193
193
|
fillInTheGapsOverImageTextPage.steps.checkAnswer();
|
@@ -121,7 +121,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
121
121
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
122
122
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
123
123
|
fillInTheGapsOverImageTextPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
124
|
-
fillInTheGapsOverImageTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
124
|
+
fillInTheGapsOverImageTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
125
125
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
126
126
|
fillInTheGapsOverImageTextPage.steps.verifyCheckAnswerButtonEnabled();
|
127
127
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }]);
|
@@ -196,20 +196,20 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
196
196
|
fillInTheGapsTextPage.steps.expandCorrectAnswerAccordion();
|
197
197
|
fillInTheGapsTextPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.2, 1: 2.2, 2: 1.6 });
|
198
198
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
199
|
-
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '
|
199
|
+
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Branch' }]);
|
200
200
|
fillInTheGapsTextPage.steps.verifyPreviewScore(10.4, 23);
|
201
201
|
fillInTheGapsTextPage.steps.switchToGradingView();
|
202
|
-
fillInTheGapsTextPage.steps.
|
202
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
203
203
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
204
|
-
fillInTheGapsTextPage.steps.
|
204
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
205
205
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
206
206
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
|
207
207
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
208
|
cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on the \'Check answer\' button, correct icon icons should be displayed beside the correct responses from the correct accordion, incorrect icons should be displayed beside the incorrectly answered responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
209
209
|
fillInTheGapsTextPage.steps.checkAnswer();
|
210
|
-
fillInTheGapsTextPage.steps.
|
210
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
|
211
211
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
212
|
-
fillInTheGapsTextPage.steps.
|
212
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
|
213
213
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
214
214
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
215
215
|
});
|
@@ -199,16 +199,17 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
199
199
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Branch' }]);
|
200
200
|
fillInTheGapsTextPage.steps.verifyPreviewScore(12.6, 15);
|
201
201
|
fillInTheGapsTextPage.steps.switchToGradingView();
|
202
|
-
fillInTheGapsTextPage.steps.
|
202
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
203
203
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
204
|
-
fillInTheGapsTextPage.steps.
|
204
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
205
205
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
206
206
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
207
207
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
208
|
cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with response area numeration should be displayed')
|
209
209
|
fillInTheGapsTextPage.steps.checkAnswer();
|
210
|
+
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
|
210
211
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
211
|
-
fillInTheGapsTextPage.steps.
|
212
|
+
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
212
213
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
213
214
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
|
214
215
|
});
|
@@ -183,7 +183,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
|
|
183
183
|
fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
|
184
184
|
fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
|
185
185
|
fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
186
|
-
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', '
|
186
|
+
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Roots']);
|
187
187
|
fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
188
188
|
cy.log('When the user has attempted the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on the \'Check answer\' button, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
189
189
|
fillInTheGapsTextPage.steps.checkAnswer();
|
@@ -57,7 +57,6 @@ describe('Create item page - Fill in the gaps with text: Header section and savi
|
|
57
57
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
58
58
|
fillInTheGapsTextPage.steps.addTextInQuestionInstructionsInputField('Question instruction');
|
59
59
|
fillInTheGapsTextPage.steps.allotPoints(10);
|
60
|
-
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }]);
|
61
60
|
fillInTheGapsTextPage.steps.verifyErrorMessageIsNotDisplayed();
|
62
61
|
fillInTheGapsTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
63
62
|
});
|
@@ -114,7 +114,7 @@ describe('Create Item page - Fill in the gaps with text: Student view settings',
|
|
114
114
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
115
115
|
fillInTheGapsTextPage.steps.switchToEditTab();
|
116
116
|
fillInTheGapsTextPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
117
|
-
fillInTheGapsTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
117
|
+
fillInTheGapsTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
118
118
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
119
119
|
fillInTheGapsTextPage.steps.verifyCheckAnswerButtonEnabled();
|
120
120
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }]);
|
@@ -161,7 +161,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
161
161
|
utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
|
162
162
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
163
163
|
utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
|
164
|
-
graphingPage.steps.
|
164
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
165
165
|
|
166
166
|
//Correct answer section
|
167
167
|
utilities.verifyElementCount(graphingPage.graphCircleCorrectAnswerSection(), 2);
|
@@ -183,7 +183,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
183
183
|
utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
|
184
184
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
185
185
|
utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
|
186
|
-
graphingPage.steps.
|
186
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
187
187
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
188
188
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
189
189
|
});
|
package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -203,7 +203,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
203
203
|
utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
|
204
204
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
205
205
|
utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
|
206
|
-
graphingPage.steps.
|
206
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
207
207
|
|
208
208
|
//Correct answer section
|
209
209
|
utilities.verifyElementCount(graphingPage.graphCircleCorrectAnswerSection(), 2);
|
@@ -226,7 +226,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
226
226
|
utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
|
227
227
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
228
228
|
utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
|
229
|
-
graphingPage.steps.
|
229
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
230
230
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
231
231
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
232
232
|
});
|
@@ -229,7 +229,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
229
229
|
utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
|
230
230
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
231
231
|
utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
|
232
|
-
graphingPage.steps.
|
232
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
233
233
|
|
234
234
|
//Correct answer section
|
235
235
|
utilities.verifyElementCount(graphingPage.graphCircleCorrectAnswerSection(), 2);
|
@@ -252,7 +252,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
252
252
|
utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
|
253
253
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
254
254
|
utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
|
255
|
-
graphingPage.steps.
|
255
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
256
256
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
257
257
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
258
258
|
});
|
@@ -227,9 +227,9 @@ describe('Graphing: Add background shapes section', () => {
|
|
227
227
|
graphingPage.steps.switchToEditTab();
|
228
228
|
graphingPage.steps.clickOnGraphTitle();
|
229
229
|
graphingPage.steps.enterTextInTitlePopupAddLabelInputField('Edit graph title');
|
230
|
-
graphingPage.steps.
|
230
|
+
graphingPage.steps.clickOnTitlePopupCancelButton();
|
231
231
|
graphingPage.steps.switchToPreviewTab();
|
232
|
-
utilities.verifyInnerText(graphingPage.graphTitlePreviewTab(), '
|
232
|
+
utilities.verifyInnerText(graphingPage.graphTitlePreviewTab(), 'Graph title');
|
233
233
|
});
|
234
234
|
|
235
235
|
//X axis
|
@@ -103,7 +103,7 @@ describe('Create Item page - Graphing: Student view settings', () => {
|
|
103
103
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
104
104
|
graphingPage.steps.switchToEditTab();
|
105
105
|
graphingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
106
|
-
graphingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
106
|
+
graphingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
107
107
|
graphingPage.steps.switchToPreviewTab();
|
108
108
|
graphingPage.steps.verifyCheckAnswerButtonEnabled();
|
109
109
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Vector');
|
@@ -60,7 +60,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
60
60
|
}
|
61
61
|
if (view === 'Student view') {
|
62
62
|
studentViewPage.steps.submitResponse();
|
63
|
-
utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), '
|
63
|
+
utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
|
64
64
|
}
|
65
65
|
});
|
66
66
|
|
@@ -73,7 +73,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
73
73
|
utilities.verifyElementVisibilityState(gridFillPage.gridWrapperPreviewTab(), 'visible');
|
74
74
|
gridFillPage.steps.verifyRowsCountPreviewTab(4);
|
75
75
|
gridFillPage.steps.verifyColumnsCountPreviewTab(6);
|
76
|
-
gridFillPage.
|
76
|
+
utilities.verifyElementCount(gridFillPage.cellInPreviewTab(), 24);
|
77
77
|
});
|
78
78
|
|
79
79
|
it('Cell with \'Hide\' customization should be displayed', () => {
|
@@ -163,7 +163,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
|
|
163
163
|
utilities.verifyCSS(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 7), {
|
164
164
|
'border-color': css.color.figDefaultComponentBorder
|
165
165
|
});
|
166
|
-
gridFillPage.steps.verifyDefaultResponseBackgroundColorPreviewTab(1,
|
166
|
+
gridFillPage.steps.verifyDefaultResponseBackgroundColorPreviewTab(1,2);
|
167
167
|
break;
|
168
168
|
case 'Grading view':
|
169
169
|
case 'Correct answer view':
|
@@ -192,7 +192,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
|
|
192
192
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
193
193
|
gridFillPage.steps.switchToEditTab();
|
194
194
|
gridFillPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
195
|
-
gridFillPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
195
|
+
gridFillPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
196
196
|
gridFillPage.steps.switchToPreviewTab();
|
197
197
|
gridFillPage.steps.verifyCheckAnswerButtonEnabled();
|
198
198
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
@@ -361,7 +361,7 @@ describe('Create Item page - Matching : Student view settings', () => {
|
|
361
361
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
362
362
|
matchingPage.steps.switchToEditTab();
|
363
363
|
matchingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
364
|
-
matchingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
364
|
+
matchingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
365
365
|
matchingPage.steps.switchToPreviewTab();
|
366
366
|
matchingPage.steps.verifyCheckAnswerButtonEnabled();
|
367
367
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Petals', dropzoneIndex: 0 }]);
|
@@ -7,7 +7,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
7
7
|
cy.loginAs('admin');
|
8
8
|
});
|
9
9
|
|
10
|
-
//Need to update once - https://redmine.zeuslearning.com/issues/553666 is resolved
|
11
10
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
12
11
|
abortEarlySetup();
|
13
12
|
before(() => {
|
@@ -172,7 +172,7 @@ describe('Create item page - Multiple selection grid: Student view settings', ()
|
|
172
172
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
173
173
|
multipleSelectionGridPage.steps.switchToEditTab();
|
174
174
|
multipleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
175
|
-
multipleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
175
|
+
multipleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
176
176
|
multipleSelectionGridPage.steps.switchToPreviewTab();
|
177
177
|
multipleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
|
178
178
|
multipleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
|
@@ -176,7 +176,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
176
176
|
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
177
177
|
});
|
178
178
|
|
179
|
-
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, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
179
|
+
it.only('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, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
180
180
|
numberLinePage.steps.resetQuestionPreview();
|
181
181
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Point');
|
182
182
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
|
@@ -212,7 +212,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
212
212
|
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
213
213
|
});
|
214
214
|
|
215
|
-
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, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
215
|
+
it.only('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, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
216
216
|
numberLinePage.steps.resetQuestionPreview();
|
217
217
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment right/up hollow pt');
|
218
218
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, -4);
|
@@ -235,7 +235,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
235
235
|
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
236
236
|
});
|
237
237
|
|
238
|
-
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 should be displayed', () => {
|
238
|
+
it.only('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 should be displayed', () => {
|
239
239
|
numberLinePage.steps.resetQuestionPreview();
|
240
240
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
|
241
241
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
|
@@ -38,7 +38,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
38
38
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, -4);
|
39
39
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -3]);
|
40
40
|
numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -4, x2: -3 }]);
|
41
|
-
numberLinePage.steps.
|
41
|
+
numberLinePage.steps.enterValueInLimitNumberOfResponsesInputField(10);
|
42
42
|
numberLinePage.steps.switchToPreviewTab();
|
43
43
|
break;
|
44
44
|
case 'Item view':
|
@@ -121,7 +121,7 @@ describe('Create Item page - Number line : Student view settings', () => {
|
|
121
121
|
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
122
122
|
numberLinePage.steps.switchToEditTab();
|
123
123
|
numberLinePage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
124
|
-
numberLinePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('
|
124
|
+
numberLinePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
125
125
|
numberLinePage.steps.switchToPreviewTab();
|
126
126
|
numberLinePage.steps.verifyCheckAnswerButtonEnabled();
|
127
127
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 1);
|