itemengine-cypress-automation 1.0.205-8thJuneFixes-5ad148f.0 → 1.0.206-12thJuneFixesAndRepoUpdate-5fe2304.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +302 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +282 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +385 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +386 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +386 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +337 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -1
- package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +258 -0
- package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/gridSettings.js +439 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +105 -0
- package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +450 -0
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +91 -0
- package/cypress/e2e/ILC/ChartsBar/toolSettings.js +73 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +6 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +169 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionProperties.js +223 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +119 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +277 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +0 -2
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -5
- package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +14 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/styleAndLayoutCutomization.js +378 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +479 -0
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +3 -1
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +7 -7
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +1 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
- package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +7 -7
- package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -4
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +10 -9
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +36 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +326 -176
- package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +37 -15
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +38 -17
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +441 -186
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +33 -14
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +330 -164
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +4 -4
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +20 -7
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +83 -66
- package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +25 -17
- package/cypress/e2e/ILC/SingleSelection/trueOrFalseCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettings.js +89 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +15 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +21 -21
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +17 -17
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +21 -21
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +8 -4
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +0 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/pages/audioResponsePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +785 -5
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
- package/cypress/pages/components/barAndLineChartComponent.js +180 -9
- package/cypress/pages/components/chartsCommonComponent.js +1 -0
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +77 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -3
- package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +24 -7
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +8 -4
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
- package/cypress/pages/components/imageCanvasComponent.js +112 -2
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/layoutSectionComponent.js +4 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +960 -3
- package/cypress/pages/drawingResponsePage.js +2 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +4 -3
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +18 -3
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +65 -3
- package/cypress/pages/listOrderingPage.js +3 -3
- package/cypress/pages/multipleSelectionPage.js +77 -25
- package/cypress/pages/rulerPage.js +5 -0
- package/cypress/pages/singleSelectionPage.js +40 -1
- package/cypress/pages/videoResponsePage.js +1 -1
- package/package.json +1 -1
@@ -1,7 +1,6 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
2
|
import { essayResponsePage } from "../../../pages";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
import { equationEditorFlyout } from "../../../pages/components";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
const grepTags = Cypress.env('grepTags');
|
7
6
|
|
@@ -155,7 +154,6 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
155
154
|
});
|
156
155
|
});
|
157
156
|
|
158
|
-
//Failing due https://weldnorthed.atlassian.net/browse/IEI-2433
|
159
157
|
if (!grepTags || !grepTags.includes('smoke')) {
|
160
158
|
describe('Bold, Italic, Underline, Strikethrough formatting options - Preview tab', () => {
|
161
159
|
abortEarlySetup();
|
@@ -23,13 +23,9 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
23
23
|
utilities.verifyElementVisibilityState(essayResponsePage.previewTabToolbarOption('Insert Hyperlink'), 'visible');
|
24
24
|
});
|
25
25
|
|
26
|
-
it('When user clicks on Hyperlink option, then the Hyperlink popup should appear
|
26
|
+
it('When user clicks on Hyperlink option, then the Hyperlink popup should appear', () => {
|
27
27
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Insert Hyperlink');
|
28
28
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogBox(), 'visible');
|
29
|
-
//To check that focus is inside input field
|
30
|
-
utilities.verifyCSS(essayResponsePage.hyperlinkDialogboxDisplayTextInputField(), {
|
31
|
-
'border-color': css.color.activeButtons
|
32
|
-
});
|
33
29
|
});
|
34
30
|
|
35
31
|
it('Title of the popup should be \'Hyperlink\'', () => {
|
@@ -44,9 +44,9 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
44
44
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.responseArea(), 2);
|
45
45
|
});
|
46
46
|
|
47
|
-
it('The dropdown should be displayed with numeric count and a close button in the question input field, dropdown settings button should
|
47
|
+
it('The dropdown should be displayed with numeric count and a close button in the question input field, dropdown settings button should be displayed when "User specified width" is in selected state', () => {
|
48
48
|
for (let index = 0; index < 2; index++) {
|
49
|
-
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(index
|
49
|
+
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(index)
|
50
50
|
};
|
51
51
|
});
|
52
52
|
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
78
78
|
fillInTheGapsDropdownPage.steps.verifyResponseAreaButtonEnabled();
|
79
79
|
fillInTheGapsDropdownPage.steps.clickOnAddResponseAreaButton();
|
80
80
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.responseArea(), 3);
|
81
|
-
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(2
|
81
|
+
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(2);
|
82
82
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownOptionsTab(), 3);
|
83
83
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), 3);
|
84
84
|
fillInTheGapsDropdownPage.steps.expandAdditionalSettings();
|
@@ -92,7 +92,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
92
92
|
cy.log('Checking if 3rd dropdown gets removed from the question input field and the numeric counts get updated')
|
93
93
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.responseArea(), 2);
|
94
94
|
for (let index = 0; index < 2; index++) {
|
95
|
-
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(index
|
95
|
+
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(index)
|
96
96
|
};
|
97
97
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownOptionsTab(), 2);
|
98
98
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), 2);
|
@@ -304,6 +304,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown op
|
|
304
304
|
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInPreviewTab(0);
|
305
305
|
let optionsForDropdown1 = optionsForDropdown.slice(1, 4);
|
306
306
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsPreviewTab(optionsForDropdown1);
|
307
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown1[0]);
|
307
308
|
});
|
308
309
|
|
309
310
|
it('When user has adds another response area, then the newly added dropdown should be in disabled state in preview tab', () => {
|
@@ -404,7 +404,20 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
404
404
|
fillInTheGapsOverImageDropdownPage.steps.verifyCanvasHeightInPreviewTab(432);
|
405
405
|
});
|
406
406
|
|
407
|
-
|
407
|
+
it('When user enters text in the \'Alternative text\' input field, then alternative text should be displayed in the \'Preview tab\'', () => {
|
408
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
409
|
+
fillInTheGapsOverImageDropdownPage.steps.enterAndVerifyImageAlternativeTextInInputField('This is Alternative text for image');
|
410
|
+
cy.log('Switching to Preview Tab');
|
411
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
412
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageAlternativeTextInPreviewTab('This is Alternative text for image');
|
413
|
+
});
|
414
|
+
|
415
|
+
it('When user clears text in the \'Alternative text\' input field, then default alternative text should not be displayed in the \'Preview tab\'', () => {
|
416
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
417
|
+
fillInTheGapsOverImageDropdownPage.steps.clearImageAlternativeTextInputFieldText();
|
418
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
419
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyNoImageAlternativeTextPresentInPreviewTab();
|
420
|
+
});
|
408
421
|
|
409
422
|
fillInTheGapsOverImageDropdownPage.tests.verifyImageNotExistPreviewTab();
|
410
423
|
});
|
@@ -0,0 +1,378 @@
|
|
1
|
+
import { dialogBoxBase, fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import { colorPopupComponent } from "../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
import utilities from "../../../support/helpers/utilities";
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
const borderStyles = ["Dashed", "Dotted", "Solid", "None"];
|
7
|
+
const connectorStyles = ["Circle", "Square", "Diamond", "None"];
|
8
|
+
|
9
|
+
describe('Create Item page - Fill in the gaps over image with text: Style and layout customization', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Style and layout customization accordion', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
});
|
20
|
+
|
21
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
|
22
|
+
});
|
23
|
+
|
24
|
+
|
25
|
+
describe('Style and layout customization accordion: Text container section contents', () => {
|
26
|
+
abortEarlySetup();
|
27
|
+
before(() => {
|
28
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
29
|
+
cy.barsPreLoaderWait();
|
30
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
31
|
+
});
|
32
|
+
|
33
|
+
it('"Text container" label should be displayed', () => {
|
34
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.componentContainerLabel(), 'Dropdown');
|
35
|
+
});
|
36
|
+
|
37
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyFillColorSectionContents();
|
38
|
+
|
39
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyBorderColorSectionContents();
|
40
|
+
|
41
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyBorderStyleSectionContents('Solid');
|
42
|
+
|
43
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyFillColorTooltips();
|
44
|
+
|
45
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyBorderColorTooltips();
|
46
|
+
|
47
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyStyleAndLayoutCustomizationAccordionContentsCSSAndA11y('Solid');
|
48
|
+
});
|
49
|
+
|
50
|
+
describe('Fill color - Edit tab', () => {
|
51
|
+
const modifiedColor = 'rgb(121, 60, 60)'
|
52
|
+
abortEarlySetup();
|
53
|
+
before(() => {
|
54
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
55
|
+
cy.barsPreLoaderWait();
|
56
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
57
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
58
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
59
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
60
|
+
});
|
61
|
+
|
62
|
+
it('When the default color block is in selected state in the "Fill color" section, then the background color of the text containers in the canvas image should be the default selected color', () => {
|
63
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageFillColor(0, css.color.optionsBg);
|
64
|
+
});
|
65
|
+
|
66
|
+
it('When the user selects the "None" color block, it should get in selected state and the no background color should be present for the text containers in the canvas image', () => {
|
67
|
+
fillInTheGapsOverImageDropdownPage.steps.selectColorBlock(1);
|
68
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageFillColor(0, css.color.transparent);
|
69
|
+
});
|
70
|
+
|
71
|
+
it('When the user clicks on the "Edit color" button, modifies color for the selected color block, then the background color of the text containers in the canvas image should be the modified selected color', () => {
|
72
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(0);
|
73
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
74
|
+
colorPopupComponent.steps.clickOnOkButton();
|
75
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageFillColor(0, modifiedColor);
|
76
|
+
});
|
77
|
+
|
78
|
+
it('When the adds a new text container, then the background color of the newly added text container should be the modified selected color', () => {
|
79
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(60);
|
80
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageFillColor(0, modifiedColor);
|
81
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageFillColor(1, modifiedColor);
|
82
|
+
});
|
83
|
+
});
|
84
|
+
|
85
|
+
describe('Border color - Edit tab', () => {
|
86
|
+
const modifiedColor = 'rgb(121, 60, 60)'
|
87
|
+
abortEarlySetup();
|
88
|
+
before(() => {
|
89
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
90
|
+
cy.barsPreLoaderWait();
|
91
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
92
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
93
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
94
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
95
|
+
});
|
96
|
+
|
97
|
+
it('When the default color block is in selected state in the "Fill color" section, then the background color of the text containers in the canvas image should be the default selected color', () => {
|
98
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${css.color.activeComponentBorder}`);
|
99
|
+
});
|
100
|
+
|
101
|
+
it('When the user selects the "None" color block, it should get in selected state and the no background color should be present for the text containers in the canvas image', () => {
|
102
|
+
fillInTheGapsOverImageDropdownPage.steps.selectColorBlock(3);
|
103
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${css.color.transparent}`);
|
104
|
+
});
|
105
|
+
|
106
|
+
it('When the user clicks on the "Edit color" button, modifies color for the selected color block, then the background color of the text containers in the canvas image should be the modified selected color', () => {
|
107
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(1);
|
108
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
109
|
+
colorPopupComponent.steps.clickOnOkButton();
|
110
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${modifiedColor}`);
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When the adds a new text container, then the background color of the newly added text container should be the modified selected color', () => {
|
114
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(60);
|
115
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderColor(0, `1px solid ${modifiedColor}`);
|
116
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderColor(1, `1px solid ${modifiedColor}`);
|
117
|
+
});
|
118
|
+
});
|
119
|
+
|
120
|
+
describe('Border color - Preview tab', () => {
|
121
|
+
const modifiedColor = 'rgb(121, 60, 60)'
|
122
|
+
abortEarlySetup();
|
123
|
+
before(() => {
|
124
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
125
|
+
cy.barsPreLoaderWait();
|
126
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
127
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
128
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
129
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
130
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
131
|
+
});
|
132
|
+
|
133
|
+
it('When the default color block is in selected state in the "Fill color" section, then the background color of the text containers in the preview tab should be the default selected color', () => {
|
134
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownBorderColor(0, `1px solid ${css.color.activeComponentBorder}`);
|
135
|
+
});
|
136
|
+
|
137
|
+
it('When the user selects the "None" color block, it should get in selected state and the no background color should be present for the text containers in the preview tab', () => {
|
138
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
139
|
+
fillInTheGapsOverImageDropdownPage.steps.selectColorBlock(3);
|
140
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
141
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownBorderColor(0, `1px solid ${css.color.transparent}`);
|
142
|
+
});
|
143
|
+
|
144
|
+
it('When the user clicks on the "Edit color" button, modifies color for the selected color block, then the color block should get updated accordingly', () => {
|
145
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
146
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(1);
|
147
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
148
|
+
colorPopupComponent.steps.clickOnOkButton();
|
149
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
150
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownBorderColor(0, `1px solid ${modifiedColor}`);
|
151
|
+
});
|
152
|
+
|
153
|
+
it('The background color of the text containers in the preview tab should be the modified selected color', () => {
|
154
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
155
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(60);
|
156
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
157
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownBorderColor(0, `1px solid ${modifiedColor}`);
|
158
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownBorderColor(1, `1px solid ${modifiedColor}`);
|
159
|
+
});
|
160
|
+
});
|
161
|
+
|
162
|
+
describe('Color popup functionality', () => {
|
163
|
+
abortEarlySetup();
|
164
|
+
before(() => {
|
165
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
166
|
+
cy.barsPreLoaderWait();
|
167
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
168
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
169
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
170
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
171
|
+
});
|
172
|
+
|
173
|
+
it('When the user clicks on the \'Edit color\' present in an \'Text color\' popup, then a select color popup should be displayed', () => {
|
174
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(0);
|
175
|
+
colorPopupComponent.steps.verifyColorPopupIsDisplayed();
|
176
|
+
});
|
177
|
+
|
178
|
+
colorPopupComponent.tests.verifyColorPopupSelectColorTitle();
|
179
|
+
|
180
|
+
colorPopupComponent.tests.verifySaturationAndOpacityGradientPalette('rgb(255, 255, 255)');
|
181
|
+
|
182
|
+
colorPopupComponent.tests.verifyColorHuePaletteAndHexInputField('rgb(255, 0, 0)', '#ffffff');
|
183
|
+
|
184
|
+
colorPopupComponent.tests.verifyColorPopupFunctionality();
|
185
|
+
});
|
186
|
+
|
187
|
+
describe('Color popup - Updating the selected color', () => {
|
188
|
+
abortEarlySetup();
|
189
|
+
before(() => {
|
190
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
191
|
+
cy.barsPreLoaderWait();
|
192
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
194
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
195
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
196
|
+
});
|
197
|
+
|
198
|
+
it('When the user moves the color picker in the color saturation palette, color in the selected color block and the hex code should change, color in the hue color palette and the opacity value should not change', () => {
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(0);
|
200
|
+
colorPopupComponent.steps.clickInColorSaturationPalette();
|
201
|
+
colorPopupComponent.steps.verifySelectedColorBlock('rgb(121, 60, 60)');
|
202
|
+
colorPopupComponent.steps.verifySaturationPaletteColor('rgb(119, 60, 60)');
|
203
|
+
colorPopupComponent.steps.verifyHuePaletteColor('rgb(255, 0, 0)');
|
204
|
+
colorPopupComponent.steps.verifyHexValue('#793c3c');
|
205
|
+
colorPopupComponent.steps.verifyOpacityGradientPaletteColor('rgb(119, 60, 60)');
|
206
|
+
});
|
207
|
+
|
208
|
+
it('When the user moves the color picker in the color hue palette, color in the selected color block, the hex code and the saturation color palette should change and the opacity value should not change', () => {
|
209
|
+
colorPopupComponent.steps.clickInColorHuePalette();
|
210
|
+
colorPopupComponent.steps.verifySelectedColorBlock('rgb(60, 121, 121)');
|
211
|
+
colorPopupComponent.steps.verifyHuePaletteColor('rgb(0, 255, 255)');
|
212
|
+
colorPopupComponent.steps.verifyHexValue('#3c7979');
|
213
|
+
colorPopupComponent.steps.verifyOpacityGradientPaletteColor('rgb(60, 119, 119)');
|
214
|
+
});
|
215
|
+
|
216
|
+
it('When the user changes the color using hex code, the color in color saturation palette and color hue palette should change and the opacity value should not change', () => {
|
217
|
+
colorPopupComponent.steps.addInputToHexInputField('#ff0000');
|
218
|
+
colorPopupComponent.steps.verifyHexValue('#ff0000');
|
219
|
+
colorPopupComponent.steps.verifySaturationPaletteColor('rgb(255, 0, 0)');
|
220
|
+
colorPopupComponent.steps.verifyHuePaletteColor('rgb(255, 0, 0)');
|
221
|
+
colorPopupComponent.steps.verifyOpacityGradientPaletteColor('rgb(255, 0, 0)');
|
222
|
+
});
|
223
|
+
});
|
224
|
+
|
225
|
+
describe('Color popup - \'Cancel\' and \'Ok\' buttons', () => {
|
226
|
+
abortEarlySetup();
|
227
|
+
before(() => {
|
228
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
229
|
+
cy.barsPreLoaderWait();
|
230
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
231
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
232
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
233
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
234
|
+
});
|
235
|
+
|
236
|
+
it('When the user modifies the selected color in the color popup and clicks on \'Cancel\' button, then the popup should close, the color block should not change and the modifications in the color popup should not persist', () => {
|
237
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(0);
|
238
|
+
colorPopupComponent.steps.addInputToHexInputField('#ff0000');
|
239
|
+
colorPopupComponent.steps.clickOnOpacityGradientHuePalette();
|
240
|
+
colorPopupComponent.steps.clickOnCancelButton();
|
241
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
242
|
+
colorPopupComponent.steps.verifyColorBlockInOptionAccordion(0, 'rgb(245, 248, 255)');
|
243
|
+
});
|
244
|
+
|
245
|
+
it('When the user modifies the selected color in the color popup and clicks on \'Ok\' button, then the popup should close, the color block should change to the new selected color and the modifications in the color popup should persist', () => {
|
246
|
+
cy.log('Pre-step: clicking on the edit color button')
|
247
|
+
fillInTheGapsOverImageDropdownPage.steps.editColor(0);
|
248
|
+
colorPopupComponent.steps.addInputToHexInputField('#ff0000');
|
249
|
+
colorPopupComponent.steps.clickOnOpacityGradientHuePalette();
|
250
|
+
colorPopupComponent.steps.clickOnOkButton();
|
251
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
252
|
+
colorPopupComponent.steps.verifyColorBlockInOptionAccordion(0, 'rgba(255, 0, 0, 0.5)');
|
253
|
+
});
|
254
|
+
});
|
255
|
+
|
256
|
+
describe('Border style - Edit tab', () => {
|
257
|
+
abortEarlySetup();
|
258
|
+
before(() => {
|
259
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
260
|
+
cy.barsPreLoaderWait();
|
261
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
262
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
263
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
264
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
265
|
+
});
|
266
|
+
|
267
|
+
it('When the "Dashed" border style is in selected state, then the border style of the text containers in the canvas image should be "Dashed"', () => {
|
268
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderStyle(0, 'solid');
|
269
|
+
});
|
270
|
+
|
271
|
+
borderStyles.forEach((style) => {
|
272
|
+
it(`When the user selects ${style}, then the border style of the text containers in the canvas image should update to ${style}`, () => {
|
273
|
+
fillInTheGapsOverImageDropdownPage.steps.selectBorderStyleToggleButton(style);
|
274
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderStyle(0, style);
|
275
|
+
});
|
276
|
+
})
|
277
|
+
});
|
278
|
+
|
279
|
+
describe('Border style - Preview tab', () => {
|
280
|
+
abortEarlySetup();
|
281
|
+
before(() => {
|
282
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
283
|
+
cy.barsPreLoaderWait();
|
284
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
285
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
286
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
287
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
288
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
289
|
+
});
|
290
|
+
|
291
|
+
it('When the "Dashed" border style is in selected state, then the border style of the text containers in the preview tab should be "Dashed"', () => {
|
292
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderStyle(0, 'solid');
|
293
|
+
});
|
294
|
+
|
295
|
+
borderStyles.forEach((style) => {
|
296
|
+
it(`When the user selects ${style}, then the border style of the text containers in the preview tab should update to ${style}`, () => {
|
297
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
298
|
+
fillInTheGapsOverImageDropdownPage.steps.selectBorderStyleToggleButton(style);
|
299
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
300
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaOverImageBorderStyle(0, style);
|
301
|
+
});
|
302
|
+
})
|
303
|
+
});
|
304
|
+
|
305
|
+
describe('Dropdown connector style contents', () => {
|
306
|
+
abortEarlySetup();
|
307
|
+
before(() => {
|
308
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
309
|
+
cy.barsPreLoaderWait();
|
310
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
311
|
+
});
|
312
|
+
|
313
|
+
it('"Dropdown connector style" label should be displayed', () => {
|
314
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.dropdownConnectorStyleLabel(), 'Dropdown connector style');
|
315
|
+
});
|
316
|
+
|
317
|
+
it('"Connector end point shape" label along with four icon buttons - "Circle", "Square", "Diamond" and "None" should be displayed. By default, "Circle" option should be in selected state', () => {
|
318
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.connectorEndPointShapeLabel(), 'Connector end point shape');
|
319
|
+
connectorStyles.forEach((option) => {
|
320
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.connectorEndPointShapeOptions(option.toLowerCase()), 'exist');
|
321
|
+
});
|
322
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyConnectorStyleOptionSelected('circle')
|
323
|
+
});
|
324
|
+
});
|
325
|
+
|
326
|
+
describe('Dropdown connector style - Edit tab', () => {
|
327
|
+
abortEarlySetup();
|
328
|
+
before(() => {
|
329
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
330
|
+
cy.barsPreLoaderWait();
|
331
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
332
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
333
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
334
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
335
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseArea(0);
|
336
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseAreaPointerStyle('left');
|
337
|
+
});
|
338
|
+
|
339
|
+
it('When the "Circle" connector style is in selected state, then the connector style of the text containers in the canvas image should be "Solid"', () => {
|
340
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaConnectorEndPointShape('Circle');
|
341
|
+
});
|
342
|
+
|
343
|
+
connectorStyles.forEach((button) => {
|
344
|
+
it(`When the user selects ${button}, then the connector style of the text containers in the canvas image should update to ${button}`, () => {
|
345
|
+
fillInTheGapsOverImageDropdownPage.steps.selectEndPointShapeButton(button);
|
346
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaConnectorEndPointShape(button);
|
347
|
+
});
|
348
|
+
})
|
349
|
+
});
|
350
|
+
|
351
|
+
describe('Dropdown connector style - Preview tab', () => {
|
352
|
+
abortEarlySetup();
|
353
|
+
before(() => {
|
354
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
355
|
+
cy.barsPreLoaderWait();
|
356
|
+
fillInTheGapsOverImageDropdownPage.steps.expandStyleAndLayoutCustomizationAccordion();
|
357
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
358
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
359
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(10);
|
360
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseArea(0);
|
361
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseAreaPointerStyle('left');
|
362
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
363
|
+
});
|
364
|
+
|
365
|
+
it('When the "Circle" connector style is in selected state, then the connector style of the text containers in the canvas image should be "Solid"', () => {
|
366
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaConnectorEndPointShapePreviewTab('Circle');
|
367
|
+
});
|
368
|
+
|
369
|
+
connectorStyles.forEach((button) => {
|
370
|
+
it(`When the user selects ${button}, then the connector style of the text containers in the canvas image should update to ${button}`, () => {
|
371
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
372
|
+
fillInTheGapsOverImageDropdownPage.steps.selectEndPointShapeButton(button);
|
373
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
374
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseAreaConnectorEndPointShapePreviewTab(button);
|
375
|
+
});
|
376
|
+
})
|
377
|
+
});
|
378
|
+
});
|
@@ -22,7 +22,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
22
22
|
fillInTheGapsOverImageTextPage.steps.addAlternativeAnswerAccordion(1);
|
23
23
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Stem' }]);
|
24
24
|
fillInTheGapsOverImageTextPage.steps.allotPartialDifferentWeightsPoints({ 0: 6, 1: 4, 2: 5 });
|
25
|
-
|
25
|
+
//fillInTheGapsOverImageTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
26
26
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
27
27
|
});
|
28
28
|
|
@@ -203,9 +203,9 @@ 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: 'Leaf' }, { responseIndex: 2, responseText: 'Branch' }]);
|
204
204
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10.4, 23);
|
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(['Petals', 'Leaves', 'Stem']);
|
211
211
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -39,13 +39,14 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
39
39
|
|
40
40
|
it('When user has added points and given input in response accordion answer input field in the \'Correct\' accordion, then the user should be able to add alternative answer for the question using \'Add alternative answer\' button', () => {
|
41
41
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }]);
|
42
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Flowers' }]);
|
42
43
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
43
44
|
fillInTheGapsOverImageTextPage.steps.addAlternativeAnswerAccordion(1);
|
44
45
|
});
|
45
46
|
|
46
47
|
it('When user has added an alternate answer accordion, then the newly added alternate answer accordion should be in expanded state and the correct answer accordion should be in collapsed state', () => {
|
47
48
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerAccordionIsCollapsed();
|
48
|
-
fillInTheGapsOverImageTextPage.steps.verifyAlternateAnswerAccordionIsExpanded(
|
49
|
+
fillInTheGapsOverImageTextPage.steps.verifyAlternateAnswerAccordionIsExpanded(0);
|
49
50
|
});
|
50
51
|
|
51
52
|
fillInTheGapsOverImageTextPage.tests.verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Alternate');
|
@@ -59,6 +60,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
59
60
|
it('User should be able to remove alternative correct answer by clicking on the \'Delete\' icon button alongside alternative answer accordion and the name of the alternative answer accordions should get updated accordingly', () => {
|
60
61
|
cy.log('Set correct answer and points in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
|
61
62
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }]);
|
63
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Leaves' }]);
|
62
64
|
fillInTheGapsOverImageTextPage.steps.allotPoints(5);
|
63
65
|
fillInTheGapsOverImageTextPage.steps.deleteAlternativeAnswerAccordion(1);
|
64
66
|
fillInTheGapsOverImageTextPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
|