itemengine-cypress-automation 1.0.190-repoUpdate3May-f180558.0 → 1.0.191-7thMayFixes-2faebef.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +2 -0
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +3 -30
- package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +0 -27
- package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +9 -9
- package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +12 -12
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +4 -20
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
- package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +181 -0
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +283 -0
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +396 -130
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +0 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +0 -4
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +0 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +4 -24
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -9
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +3 -3
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +0 -2
- package/cypress/e2e/ILC/EssayResponse/headerSection.js +3 -18
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +0 -1
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +1 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +0 -2
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/GridFill/headerSection.js +4 -5
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +276 -0
- package/cypress/e2e/ILC/ImageHighlight/checkAnswerFunctionalityForAllViews.smoke.js +141 -0
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +150 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +22 -20
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +1 -8
- package/cypress/e2e/ILC/NumberLine/headerSection.js +3 -3
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -4
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +1 -7
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControls.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +6 -6
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +9 -9
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettings.js +2 -4
- package/cypress/pages/audioPlayerPage.js +4 -2
- package/cypress/pages/audioResponsePage.js +2 -0
- package/cypress/pages/chartsBarPage.js +289 -3
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +8 -5
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/barAndLineChartComponent.js +7 -4
- package/cypress/pages/components/chartsCommonComponent.js +33 -0
- package/cypress/pages/components/imageCanvasComponent.js +3 -3
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/questionInputFieldComponent.js +2 -1
- package/cypress/pages/components/resetPopupComponent.js +7 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -17
- package/cypress/pages/components/singleMultipleSelectionModeComponent.js +16 -0
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +22 -24
- package/cypress/pages/drawingResponsePage.js +3 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +14 -0
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
- package/cypress/pages/imageHighlightPage.js +364 -0
- package/cypress/pages/index.js +2 -1
- package/cypress/pages/matchingPage.js +2 -1
- package/cypress/pages/numberLineLabelPage.js +14 -7
- package/cypress/pages/protractorPage.js +1 -1
- package/cypress/pages/readingRulerPage.js +1 -1
- package/cypress/pages/rulerPage.js +3 -3
- package/cypress/pages/textEntryMathPage.js +2 -2
- package/cypress/pages/videoResponsePage.js +6 -5
- package/package.json +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -1,134 +0,0 @@
|
|
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
|
-
});
|