itemengine-cypress-automation 1.0.119 → 1.0.121
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +13 -1
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -0
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +2 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingForAllViews.smoke.js +273 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/checkAnswerFunctionalityForAllViews.smoke.js +116 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +136 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +224 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +120 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +158 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +246 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +332 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +409 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +80 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +68 -68
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +3 -289
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -23
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +191 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +190 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +284 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +113 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +217 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +234 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +217 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +217 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +136 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +197 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +169 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +197 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +219 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/checkAnswerFunctionalityForAllViews.smoke.js +115 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +142 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +152 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +39 -0
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +2 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +497 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +503 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +233 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/specialCharactersSection.js +291 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +332 -0
- package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +2 -12
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +9 -8
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -2
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +5 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +334 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +419 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/checkAnswerFunctionalityForAllViews.smoke.js +166 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +166 -0
- package/cypress/e2e/ILC/UploadResponse/editTabScoringSection.js +51 -0
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +99 -0
- package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +71 -0
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +155 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponseHeaderSection.js +66 -0
- package/cypress/e2e/migration/migration.js +6 -5
- package/cypress/e2e/migration/migration2.js +4 -3
- package/cypress/e2e/migration/migration3.js +4 -3
- package/cypress/e2e/migration/migration4.js +4 -3
- package/cypress/e2e/migration/migration5.js +4 -3
- package/cypress/fixtures/theme/ilc.json +3 -1
- package/cypress/pages/audioResponsePage.js +2 -1
- package/cypress/pages/components/additionalSettingsPanel.js +27 -0
- package/cypress/pages/components/autoScoredPreviewBase.js +1 -1
- package/cypress/pages/components/autoScoredScoringSection.js +1 -1
- package/cypress/pages/components/autoScoredScoringSectionMultipleResponsesType.js +1 -1
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/components/autoScoredStudentViewSettings.js +8 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +5 -5
- package/cypress/pages/components/createQuestionBasePage.js +8 -2
- package/cypress/pages/components/essayResponseCommonComponents.js +6 -0
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +13 -0
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +40 -0
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +422 -314
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +438 -710
- package/cypress/pages/components/{figOverImageCanvasComponent.js → imageCanvasComponent.js} +274 -272
- package/cypress/pages/components/index.js +3 -3
- package/cypress/pages/components/maximumRecorderLengthComponent.js +55 -11
- package/cypress/pages/components/previewScoringAndShowCorrectAnswerComponent.js +1 -1
- package/cypress/pages/components/questionInputFieldComponent.js +49 -23
- package/cypress/pages/components/scoringSectionBase.js +1 -1
- package/cypress/pages/createItemPage.js +67 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +172 -711
- package/cypress/pages/fillInTheGapsDropdownPage.js +75 -72
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +109 -273
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +49 -291
- package/cypress/pages/fillInTheGapsTextPage.js +52 -199
- package/cypress/pages/index.js +5 -5
- package/cypress/pages/multipleSelectionPage.js +1 -0
- package/cypress/pages/shortTextResponsePage.js +575 -33
- package/cypress/pages/singleSelectionGridPage.js +1 -2
- package/cypress/pages/singleSelectionPage.js +5 -6
- package/cypress/pages/textEntryMathPage.js +46 -22
- package/cypress/pages/textEntryMathWithImagePage.js +212 -0
- package/cypress/pages/uploadResponsePage.js +74 -21
- package/cypress/support/migrationHelpers/extractLrnQuestionData.js +73 -2
- package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +1 -0
- package/cypress/support/migrationHelpers/verifyIeQuestionData.js +49 -2
- package/package.json +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/minimalRecorderStyle.js +0 -482
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -412
- package/cypress/pages/components/figOverImageCommonComponent.js +0 -1113
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +0 -1155
- package/cypress/pages/dragAndDropIntoCategoriesCellsScoring.js +0 -1561
- package/cypress/pages/dragAndDropIntoCategoriesResponseScoring.js +0 -1396
- package/cypress/pages/fillInTheGapsScoring.js +0 -5872
- package/cypress/pages/fillInTheGapsSetCorrectAnswerSection.js +0 -260
@@ -0,0 +1,213 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const optionsForDropdown = ['Flower', 'Petal', 'Stem', 'Branch'];
|
7
|
+
|
8
|
+
describe('Create Item page - Fill in the gaps over image - dropdown: Student view settings', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Randomize options : Edit tab', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
19
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
20
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
21
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
22
|
+
});
|
23
|
+
|
24
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyStudentViewSettingsLabelAndCSS();
|
25
|
+
|
26
|
+
it('\'Randomize options\' checkbox and label should be displayed and by default it should be unchecked', () => {
|
27
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.randomizeOptionsLabel(), 'Randomize options');
|
28
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.randomizeOptionsCheckbox(), 'exist');
|
29
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
|
30
|
+
});
|
31
|
+
|
32
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyRandomizeOptionsCheckboxAndLabelUncheckedCSS();
|
33
|
+
|
34
|
+
it('When the \'Randomize options\' functionality is disabled, the options in the specify correct answer section dropdown should be displayed in the order in which the user has set them in the \'Dropdown options\' section', () => {
|
35
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
|
36
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
|
37
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsSpecifyCorrectAnswer(optionsForDropdown);
|
38
|
+
cy.log('Selecting an option to collapse the dropdown');
|
39
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
40
|
+
});
|
41
|
+
|
42
|
+
it('When the user enables the \'Randomize options\' functionality, then the options in the specify correct answer section dropdown should be displayed in the order in which the user has set them in the \'Dropdown options\' section', () => {
|
43
|
+
fillInTheGapsOverImageDropdownPage.steps.checkRandomizeOptionsCheckbox();
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
|
45
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsSpecifyCorrectAnswer(optionsForDropdown);
|
46
|
+
cy.log('Selecting an option to collapse the dropdown');
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
48
|
+
});
|
49
|
+
|
50
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyRandomizeOptionsCheckboxCheckedCSSAndA11y();
|
51
|
+
});
|
52
|
+
|
53
|
+
describe('Randomize options - Functionality: Preview tab', () => {
|
54
|
+
let randomizedOptionsString = '';
|
55
|
+
abortEarlySetup();
|
56
|
+
before(() => {
|
57
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
58
|
+
cy.barsPreLoaderWait();
|
59
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
60
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
62
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
63
|
+
});
|
64
|
+
|
65
|
+
it('When the \'Randomize options\' functionality is disabled, then the options displayed in the preview tab dropdown should be in the order in which the user has set them in the \'Dropdown options\' section', () => {
|
66
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
67
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
68
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(optionsForDropdown);
|
69
|
+
cy.log('Selecting an option to collapse the dropdown');
|
70
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
71
|
+
});
|
72
|
+
|
73
|
+
it('When the user enables the \'Randomize options\' functionality, then the options should be displayed in a random order in the preview tab dropdown', () => {
|
74
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
75
|
+
fillInTheGapsOverImageDropdownPage.steps.checkRandomizeOptionsCheckbox();
|
76
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
77
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
78
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyRandomizeOptionOrder(optionsForDropdown);
|
79
|
+
randomizedOptionsString = fillInTheGapsOverImageDropdownPage.steps.getDropdownOptionsArray();
|
80
|
+
cy.log('Selecting an option to collapse the dropdown');
|
81
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
82
|
+
});
|
83
|
+
|
84
|
+
it('When the user switches to Edit tab and does not modify any question properties, then the order of the options should not change in the preview tab dropdown', () => {
|
85
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
86
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
87
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
88
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(randomizedOptionsString);
|
89
|
+
cy.log('Selecting an option to collapse the dropdown');
|
90
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
91
|
+
});
|
92
|
+
|
93
|
+
it('When the user switches to Edit tab and modifies any of question properties, then the order of the options should change in the preview tab dropdown', () => {
|
94
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
95
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(5);
|
96
|
+
cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
|
97
|
+
cy.wait(1000);
|
98
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
99
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyRandomizeOptionOrder(optionsForDropdown);
|
101
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyRerandomizedOptionsOrder(randomizedOptionsString);
|
102
|
+
cy.log('Selecting an option to collapse the dropdown');
|
103
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
104
|
+
});
|
105
|
+
|
106
|
+
it('When the user disables the \'Randomize options\' functionality, then the options should be displayed in the order in which the user has set them in the \'Dropdown options\' section in the preview tab dropdown', () => {
|
107
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
108
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckRandomizeOptionsCheckbox();
|
109
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
110
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
111
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(optionsForDropdown);
|
112
|
+
});
|
113
|
+
});
|
114
|
+
|
115
|
+
describe('Allow students to check answer: Edit tab', () => {
|
116
|
+
abortEarlySetup();
|
117
|
+
before(() => {
|
118
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
119
|
+
cy.barsPreLoaderWait();
|
120
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
121
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
122
|
+
});
|
123
|
+
|
124
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS();
|
125
|
+
|
126
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyMaximumAttemptsDropdownDisplayedWhenAllowStudentsToCheckAnswerIsChecked();
|
127
|
+
|
128
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyMaxCheckAnswerAttemptsDropdown();
|
129
|
+
|
130
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyAllowStudentsToCheckAnswerContentsCSSAndA11y();
|
131
|
+
});
|
132
|
+
|
133
|
+
describe('Allow students to check answer: Preview tab', () => {
|
134
|
+
abortEarlySetup();
|
135
|
+
before(() => {
|
136
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
137
|
+
cy.barsPreLoaderWait();
|
138
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
139
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
140
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
141
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
142
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
|
143
|
+
});
|
144
|
+
|
145
|
+
it('When the user has added options and specified correct answer and points then on checking the \'Allow students to check answer\' checkbox the Check answer button should be displayed in the preview tab', () => {
|
146
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
147
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
148
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.checkAnswerButton(), 'Check answer');
|
149
|
+
});
|
150
|
+
|
151
|
+
it('When the user selects an answer in the dropdown and checks the answer then an icon should be displayed beside the selected option and the check answer button should be in enabled state', () => {
|
152
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
153
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
|
154
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
155
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
156
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
157
|
+
});
|
158
|
+
|
159
|
+
it('When the user selects an option from the Maximum check answer attempts dropdown then the user should be able to check answer only those many times in the preview tab', () => {
|
160
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
161
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('1');
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
164
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
|
165
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
166
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonDisabled();
|
167
|
+
});
|
168
|
+
|
169
|
+
it('When the user reaches maximum check answer attempts, then the \'Check Answer\' button should become disabled', () => {
|
170
|
+
utilities.verifyElementDisabled(fillInTheGapsOverImageDropdownPage.checkAnswerButton());
|
171
|
+
});
|
172
|
+
|
173
|
+
it('CSS of disabled \'Check Answer\' button', { tags: 'css' }, () => {
|
174
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.checkAnswerButton(), {
|
175
|
+
'color': css.color.primaryBtnDisabled,
|
176
|
+
'font-size': css.fontSize.default,
|
177
|
+
'font-weight': css.fontWeight.semibold
|
178
|
+
});
|
179
|
+
});
|
180
|
+
|
181
|
+
it('Accessibility of disabled Check Answer button', { tags: 'a11y' }, () => {
|
182
|
+
cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.checkAnswerButton().parents('.check-answer-and-status-wrapper'));
|
183
|
+
});
|
184
|
+
|
185
|
+
it('When the user updates the value of \'Maximum check answer attempts\' dropdown, it should get reflected on the Preview tab', () => {
|
186
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
187
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
188
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('3');
|
189
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
190
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
191
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
|
192
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
194
|
+
});
|
195
|
+
|
196
|
+
it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
|
197
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
198
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
|
203
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
204
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
205
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[1] }]);
|
206
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
207
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
208
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[2] }]);
|
209
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
210
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
|
211
|
+
});
|
212
|
+
});
|
213
|
+
});
|
@@ -59,7 +59,7 @@ describe('Create item page - Fill in the gaps over image - text: Header section
|
|
59
59
|
fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Question instruction');
|
60
60
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
61
61
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
62
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
62
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
63
63
|
fillInTheGapsOverImageTextPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
|
64
64
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
65
65
|
fillInTheGapsOverImageTextPage.steps.verifyErrorMessageIsNotDisplayed();
|
package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js
CHANGED
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
98
98
|
cy.barsPreLoaderWait();
|
99
99
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
100
100
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
101
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
101
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
102
102
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
103
103
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
104
104
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
@@ -161,7 +161,7 @@ describe('Create item page - Fill in the gaps over image - text: Partial differe
|
|
161
161
|
cy.barsPreLoaderWait();
|
162
162
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
163
163
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
164
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
164
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
165
165
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
166
166
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
|
167
167
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
99
99
|
cy.barsPreLoaderWait();
|
100
100
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
101
101
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
102
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
102
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
103
103
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
104
104
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
105
105
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
@@ -19,7 +19,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
19
19
|
cy.barsPreLoaderWait();
|
20
20
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
21
21
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
22
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
22
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
23
23
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
24
24
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
25
25
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
@@ -186,7 +186,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
186
186
|
cy.barsPreLoaderWait();
|
187
187
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
188
188
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
189
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
189
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
190
190
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
191
191
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
192
192
|
fillInTheGapsOverImageTextPage.steps.allotPoints(20);
|
@@ -3,7 +3,7 @@ import utilities from "../../../support/helpers/utilities";
|
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
|
6
|
-
const
|
6
|
+
const dropzonePointerStyles = ['none', 'bottom', 'bottom right', 'right', 'top right', 'top', 'top left', 'left', 'bottom left'];
|
7
7
|
|
8
8
|
describe('Create item page - Fill in the gaps: Question instructions, Options section', () => {
|
9
9
|
before(() => {
|
@@ -128,6 +128,63 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
128
128
|
});
|
129
129
|
});
|
130
130
|
|
131
|
+
describe('Canvas : Select text container, Insert text container, Insert text, Undo, Redo and Clear all - Preview tab functionality', () => {
|
132
|
+
abortEarlySetup();
|
133
|
+
before(() => {
|
134
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
135
|
+
cy.barsPreLoaderWait();
|
136
|
+
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
137
|
+
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
138
|
+
});
|
139
|
+
|
140
|
+
it('When user insert text container in edit tab, then text container should be visible in preview tab', () => {
|
141
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(20);
|
142
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(90);
|
143
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
144
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 'visible');
|
145
|
+
});
|
146
|
+
|
147
|
+
it('When user selects a text container and changes text container pointer style in edit tab, then changes in text container pointer should be reflected in preview tab', () => {
|
148
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
149
|
+
fillInTheGapsOverImageTextPage.steps.selectResponseArea(0);
|
150
|
+
fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[1]);
|
151
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
152
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextContainerPointerStyleInPreviewTab(textContainerPointerStyles[1], 0);
|
153
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextContainerPointerStyleInPreviewTab(textContainerPointerStyles[8], 1);
|
154
|
+
});
|
155
|
+
|
156
|
+
it('When user insert text and changes color for text in edit tab, then inserted text should be displayed in canvas in preview tab', () => {
|
157
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
158
|
+
fillInTheGapsOverImageTextPage.steps.insertTextArea(60, 'Inserted text');
|
159
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
160
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextBoxExistInPreviewTab();
|
161
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextColorOfTextBoxInPreviewTab('rgb(0, 0, 46)');
|
162
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextOfTextBoxInPreviewTab('Inserted text');
|
163
|
+
});
|
164
|
+
|
165
|
+
it('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
|
166
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
167
|
+
fillInTheGapsOverImageTextPage.steps.undoAction();
|
168
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
169
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextOfTextBoxInPreviewTab('');
|
170
|
+
});
|
171
|
+
|
172
|
+
it('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
|
173
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
174
|
+
fillInTheGapsOverImageTextPage.steps.redoAction();
|
175
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
176
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextBoxExistInPreviewTab();
|
177
|
+
});
|
178
|
+
|
179
|
+
it('When user clicks on \'Clear all\' button, then all text containers should be deleted in preview tab', () => {
|
180
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
181
|
+
fillInTheGapsOverImageTextPage.steps.clearAll();
|
182
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
183
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextBoxNotExistInPreviewTab();
|
184
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextContainerNotExistInPreviewTab();
|
185
|
+
});
|
186
|
+
});
|
187
|
+
|
131
188
|
describe('Canvas : Select text container - Edit tab canvas section functionality', () => {
|
132
189
|
abortEarlySetup();
|
133
190
|
before(() => {
|
@@ -244,63 +301,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
244
301
|
});
|
245
302
|
});
|
246
303
|
|
247
|
-
describe('Canvas : Select text container, Insert text container, Insert text, Undo, Redo and Clear all - Preview tab functionality', () => {
|
248
|
-
abortEarlySetup();
|
249
|
-
before(() => {
|
250
|
-
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
251
|
-
cy.barsPreLoaderWait();
|
252
|
-
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
253
|
-
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
254
|
-
});
|
255
|
-
|
256
|
-
it('When user insert text container in edit tab, then text container should be visible in preview tab', () => {
|
257
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(20);
|
258
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(90);
|
259
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
260
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 'visible');
|
261
|
-
});
|
262
|
-
|
263
|
-
it('When user selects a text container and changes text container pointer style in edit tab, then changes in text container pointer should be reflected in preview tab', () => {
|
264
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
265
|
-
fillInTheGapsOverImageTextPage.steps.selectResponseArea(0);
|
266
|
-
fillInTheGapsOverImageTextPage.steps.selectResponseAreaPointerStyle(textContainerPointerStyles[1]);
|
267
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
268
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextContainerPointerStyleInPreviewTab(textContainerPointerStyles[1], 0);
|
269
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextContainerPointerStyleInPreviewTab(textContainerPointerStyles[8], 1);
|
270
|
-
});
|
271
|
-
|
272
|
-
it('When user insert text and changes color for text in edit tab, then inserted text should be displayed in canvas in preview tab', () => {
|
273
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
274
|
-
fillInTheGapsOverImageTextPage.steps.insertTextArea(60, 'Inserted text');
|
275
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
276
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextBoxExistInPreviewTab();
|
277
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextColorOfTextBoxInPreviewTab('rgb(0, 0, 46)');
|
278
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextOfTextBoxInPreviewTab('Inserted text');
|
279
|
-
});
|
280
|
-
|
281
|
-
it('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
|
282
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
283
|
-
fillInTheGapsOverImageTextPage.steps.undoAction();
|
284
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
285
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextOfTextBoxInPreviewTab('');
|
286
|
-
});
|
287
|
-
|
288
|
-
it('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
|
289
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
290
|
-
fillInTheGapsOverImageTextPage.steps.redoAction();
|
291
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
292
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextBoxExistInPreviewTab();
|
293
|
-
});
|
294
|
-
|
295
|
-
it('When user clicks on \'Clear all\' button, then all text containers should be deleted in preview tab', () => {
|
296
|
-
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
297
|
-
fillInTheGapsOverImageTextPage.steps.clearAll();
|
298
|
-
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
299
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextBoxNotExistInPreviewTab();
|
300
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextContainerNotExistInPreviewTab();
|
301
|
-
});
|
302
|
-
});
|
303
|
-
|
304
304
|
describe('Image properties section - Edit tab', () => {
|
305
305
|
abortEarlySetup();
|
306
306
|
before(() => {
|
@@ -331,7 +331,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
331
331
|
fillInTheGapsOverImageTextPage.tests.verifyFillImageToCanvasEditTabFunctionality();
|
332
332
|
});
|
333
333
|
|
334
|
-
describe('
|
334
|
+
describe('Image properties, Image alignment, Opacity section - Preview tab functionality', () => {
|
335
335
|
abortEarlySetup();
|
336
336
|
before(() => {
|
337
337
|
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
@@ -341,12 +341,15 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
341
341
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
342
342
|
});
|
343
343
|
|
344
|
-
fillInTheGapsOverImageTextPage.tests.
|
344
|
+
fillInTheGapsOverImageTextPage.tests.verifyImageAlignmentPreviewTabFunctionality();
|
345
345
|
|
346
|
-
fillInTheGapsOverImageTextPage.tests.
|
347
|
-
});
|
346
|
+
fillInTheGapsOverImageTextPage.tests.verifyImageOpacityPreviewTabFunctionality();
|
348
347
|
|
349
|
-
|
348
|
+
//failed due to https://redmine.zeuslearning.com/issues/560585
|
349
|
+
fillInTheGapsOverImageTextPage.tests.verifyFillImageToCanvasPreviewTabFunctionality();
|
350
|
+
});
|
351
|
+
|
352
|
+
describe('Canvas width, Canvas height, Image alternative text - Edit tab canvas section functionality', () => {
|
350
353
|
abortEarlySetup();
|
351
354
|
before(() => {
|
352
355
|
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
|
@@ -356,12 +359,9 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
356
359
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
357
360
|
});
|
358
361
|
|
359
|
-
fillInTheGapsOverImageTextPage.tests.
|
360
|
-
|
361
|
-
fillInTheGapsOverImageTextPage.tests.verifyImageOpacityPreviewTabFunctionality();
|
362
|
+
fillInTheGapsOverImageTextPage.tests.verifyAspectRatioAndResetDimensionsButtonFunctionality();
|
362
363
|
|
363
|
-
|
364
|
-
fillInTheGapsOverImageTextPage.tests.verifyFillImageToCanvasPreviewTabFunctionality();
|
364
|
+
fillInTheGapsOverImageTextPage.tests.verifyImageAlternativeTextEditTabFunctionality();
|
365
365
|
});
|
366
366
|
|
367
367
|
describe('Canvas width, Canvas height, Image alternative text - Preview tab functionality', () => {
|
@@ -41,7 +41,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
41
41
|
cy.barsPreLoaderWait();
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
43
43
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
44
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
44
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
45
45
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
46
46
|
});
|
47
47
|
|
@@ -57,7 +57,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
57
57
|
cy.barsPreLoaderWait();
|
58
58
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
59
59
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
60
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
60
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
61
61
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
62
62
|
});
|
63
63
|
|
@@ -80,7 +80,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
80
80
|
cy.barsPreLoaderWait();
|
81
81
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
82
82
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
83
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
83
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
84
84
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
85
85
|
fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
86
86
|
});
|
@@ -151,7 +151,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
151
151
|
cy.barsPreLoaderWait();
|
152
152
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
153
153
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
154
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
154
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
155
155
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
156
156
|
});
|
157
157
|
|
@@ -174,7 +174,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
174
174
|
cy.barsPreLoaderWait();
|
175
175
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
176
176
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
177
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
177
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
178
178
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
179
179
|
fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
180
180
|
});
|
@@ -268,7 +268,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
268
268
|
cy.barsPreLoaderWait();
|
269
269
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
270
270
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
271
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
271
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
272
272
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
|
273
273
|
fillInTheGapsOverImageTextPage.steps.expandScoringTypeDropdown();
|
274
274
|
fillInTheGapsOverImageTextPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
@@ -21,7 +21,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
|
|
21
21
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
22
22
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
23
23
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
24
|
-
fillInTheGapsOverImageTextPage.steps.insertResponseArea(
|
24
|
+
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
25
25
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(60);
|
26
26
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
27
27
|
fillInTheGapsOverImageTextPage.steps.selectAcceptedStudentInputType(1, 'Number');
|