itemengine-cypress-automation 1.0.275-cssUpdates12Dec-bbaeace.0 → 1.0.275
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +11 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +7 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +6 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +4 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/toolSettings.js +8 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +6 -0
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +3 -4
- package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +4 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +2 -3
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +5 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +3 -0
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +6 -3
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +23 -1
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +476 -0
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +129 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +7 -5
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +384 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
- package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +19 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
- package/cypress/pages/components/essayResponseCommonComponents.js +6 -5
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +6 -2
- package/cypress/pages/components/numberLineCommonComponent.js +12 -5
- package/cypress/pages/components/playbackControlsBaseComponent.js +5 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/drawingResponsePage.js +18 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -6
- package/cypress/pages/gridFillPage.js +2 -3
- package/cypress/pages/listOrderingPage.js +19 -12
- package/cypress/pages/matchingPage.js +16 -2
- package/cypress/pages/textEntryMathPage.js +716 -4
- package/cypress/pages/textEntryMathWithImagePage.js +133 -5
- package/package.json +1 -1
@@ -106,19 +106,20 @@ describe('Create item page - Text entry math: Question instructions, Options sec
|
|
106
106
|
utilities.verifyElementCount(textEntryMathWithImagePage.responseAccordion(), 3);
|
107
107
|
});
|
108
108
|
|
109
|
-
|
109
|
+
//Remove skip once https://weldnorthed.atlassian.net/issues/IEI-3943 is resolved
|
110
|
+
it.skip('When the user clicks on the redo button after performing an undo action in canvas section, then the previously added response accordion should be deleted again in specify correct answer section', () => {
|
110
111
|
textEntryMathWithImagePage.steps.redoAction();
|
111
112
|
utilities.verifyElementCount(textEntryMathWithImagePage.responseAccordion(), 2);
|
112
113
|
});
|
113
114
|
|
114
|
-
it('When the user reaches the initial state by performing undo actions in canvas section, then specify correct answer section should not have response accordion', () => {
|
115
|
+
it.skip('When the user reaches the initial state by performing undo actions in canvas section, then specify correct answer section should not have response accordion', () => {
|
115
116
|
for (var i = 0; i < 5; i++) {
|
116
117
|
textEntryMathWithImagePage.steps.undoAction();
|
117
118
|
};
|
118
119
|
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseAccordion(), 'notExist');
|
119
120
|
});
|
120
121
|
|
121
|
-
it('When the user reaches the latest state by performing redo actions in canvas section, then 3 response accordions should be visible in specify correct answer section', () => {
|
122
|
+
it.skip('When the user reaches the latest state by performing redo actions in canvas section, then 3 response accordions should be visible in specify correct answer section', () => {
|
122
123
|
for (var i = 0; i < 4; i++) {
|
123
124
|
textEntryMathWithImagePage.steps.redoAction();
|
124
125
|
};
|
@@ -336,14 +337,15 @@ describe('Create item page - Text entry math: Question instructions, Options sec
|
|
336
337
|
textEntryMathWithImagePage.steps.verifyTextOfTextBoxInPreviewTab('Inserted text');
|
337
338
|
});
|
338
339
|
|
339
|
-
|
340
|
+
//Remove skip once https://weldnorthed.atlassian.net/issues/IEI-3943 is resolved
|
341
|
+
it.skip('When the user clicks on the undo button in edit tab, then previous action should be reversed and same should reflect in preview tab', () => {
|
340
342
|
textEntryMathWithImagePage.steps.switchToEditTab();
|
341
343
|
textEntryMathWithImagePage.steps.undoAction();
|
342
344
|
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
343
345
|
textEntryMathWithImagePage.steps.verifyTextOfTextBoxInPreviewTab('');
|
344
346
|
});
|
345
347
|
|
346
|
-
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', () => {
|
348
|
+
it.skip('When the user clicks on the redo button in edit tab, then previous action should be reinstated and same should reflect in preview tab', () => {
|
347
349
|
textEntryMathWithImagePage.steps.switchToEditTab();
|
348
350
|
textEntryMathWithImagePage.steps.redoAction();
|
349
351
|
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
@@ -0,0 +1,384 @@
|
|
1
|
+
import { dialogBoxBase, textEntryMathWithImagePage } 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 modifiedColor = 'rgb(121, 60, 60)'
|
8
|
+
const selectedStyle = 'dashed';
|
9
|
+
const connectorStyles = ["Circle", "Square", "Diamond", "None"]
|
10
|
+
|
11
|
+
describe('Create Item page - Text Entry Math: Style and layout customization', () => {
|
12
|
+
before(() => {
|
13
|
+
cy.loginAs('admin');
|
14
|
+
});
|
15
|
+
|
16
|
+
describe('Style and layout customization accordion', () => {
|
17
|
+
abortEarlySetup();
|
18
|
+
before(() => {
|
19
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
20
|
+
cy.barsPreLoaderWait();
|
21
|
+
textEntryMathWithImagePage.steps.addBackground();
|
22
|
+
});
|
23
|
+
|
24
|
+
textEntryMathWithImagePage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
|
25
|
+
});
|
26
|
+
|
27
|
+
describe('Style and layout customization accordion contents', () => {
|
28
|
+
abortEarlySetup();
|
29
|
+
before(() => {
|
30
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
31
|
+
cy.barsPreLoaderWait();
|
32
|
+
textEntryMathWithImagePage.steps.addBackground();
|
33
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
34
|
+
});
|
35
|
+
|
36
|
+
textEntryMathWithImagePage.tests.verifyStyleAndLayoutCustomizationAccordionContent('add background');
|
37
|
+
});
|
38
|
+
|
39
|
+
describe('Fill color - Edit tab', () => {
|
40
|
+
abortEarlySetup();
|
41
|
+
before(() => {
|
42
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
43
|
+
cy.barsPreLoaderWait();
|
44
|
+
textEntryMathWithImagePage.steps.addBackground();
|
45
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
46
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
47
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
48
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
49
|
+
});
|
50
|
+
|
51
|
+
textEntryMathWithImagePage.tests.verifyFillColorFunctionalityEditTab('add background');
|
52
|
+
});
|
53
|
+
|
54
|
+
describe('Fill color - Preview tab', () => {
|
55
|
+
abortEarlySetup();
|
56
|
+
before(() => {
|
57
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
58
|
+
cy.barsPreLoaderWait();
|
59
|
+
textEntryMathWithImagePage.steps.addBackground();
|
60
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
61
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
62
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
63
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
|
64
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
65
|
+
});
|
66
|
+
|
67
|
+
textEntryMathWithImagePage.tests.verifyFillColorFunctionalityPreviewTab('add background');
|
68
|
+
});
|
69
|
+
|
70
|
+
describe('Border color - Edit tab', () => {
|
71
|
+
abortEarlySetup();
|
72
|
+
before(() => {
|
73
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
74
|
+
cy.barsPreLoaderWait();
|
75
|
+
textEntryMathWithImagePage.steps.addBackground();
|
76
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
77
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
78
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
79
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
|
80
|
+
});
|
81
|
+
|
82
|
+
textEntryMathWithImagePage.tests.verifyBorderColorFunctionalityEditTab('add background');
|
83
|
+
});
|
84
|
+
|
85
|
+
describe('Border color - Preview tab', () => {
|
86
|
+
abortEarlySetup();
|
87
|
+
before(() => {
|
88
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
89
|
+
cy.barsPreLoaderWait();
|
90
|
+
textEntryMathWithImagePage.steps.addBackground();
|
91
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
92
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
93
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
94
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
|
95
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
96
|
+
});
|
97
|
+
|
98
|
+
textEntryMathWithImagePage.tests.verifyBorderColorFunctionalityPreviewTab('add background');
|
99
|
+
});
|
100
|
+
|
101
|
+
describe('Color popup functionality', () => {
|
102
|
+
abortEarlySetup();
|
103
|
+
before(() => {
|
104
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
105
|
+
cy.barsPreLoaderWait();
|
106
|
+
textEntryMathWithImagePage.steps.addBackground();
|
107
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
108
|
+
});
|
109
|
+
|
110
|
+
textEntryMathWithImagePage.tests.verifyEditColorPopupFunctionality('add background');
|
111
|
+
});
|
112
|
+
|
113
|
+
describe('Color popup - Updating the selected color', () => {
|
114
|
+
abortEarlySetup();
|
115
|
+
before(() => {
|
116
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
117
|
+
cy.barsPreLoaderWait();
|
118
|
+
textEntryMathWithImagePage.steps.addBackground();
|
119
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
120
|
+
});
|
121
|
+
|
122
|
+
textEntryMathWithImagePage.tests.verifyColorPopupUpdatingSelectedColorFunctionality();
|
123
|
+
});
|
124
|
+
|
125
|
+
describe('Color popup - \'Cancel\' and \'Ok\' buttons', () => {
|
126
|
+
abortEarlySetup();
|
127
|
+
before(() => {
|
128
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
129
|
+
cy.barsPreLoaderWait();
|
130
|
+
textEntryMathWithImagePage.steps.addBackground();
|
131
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
132
|
+
});
|
133
|
+
|
134
|
+
textEntryMathWithImagePage.tests.verifyColorPopUpCancelOkButtonFunctionality();
|
135
|
+
});
|
136
|
+
|
137
|
+
describe('Border style - Edit tab', () => {
|
138
|
+
abortEarlySetup();
|
139
|
+
before(() => {
|
140
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
141
|
+
cy.barsPreLoaderWait();
|
142
|
+
textEntryMathWithImagePage.steps.addBackground();
|
143
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
144
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
145
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
146
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
147
|
+
});
|
148
|
+
|
149
|
+
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"', () => {
|
150
|
+
textEntryMathWithImagePage.steps.verifyResponseAreaOverImageBorderStyle(0, 'dashed');
|
151
|
+
});
|
152
|
+
|
153
|
+
borderStyles.forEach((style) => {
|
154
|
+
it(`When the user selects ${style}, then the border style of the text containers in the canvas image should update to ${style}`, () => {
|
155
|
+
textEntryMathWithImagePage.steps.selectBorderStyleToggleButton(style);
|
156
|
+
textEntryMathWithImagePage.steps.verifyResponseAreaOverImageBorderStyle(0, style);
|
157
|
+
});
|
158
|
+
})
|
159
|
+
});
|
160
|
+
|
161
|
+
describe('Border style - Preview tab', () => {
|
162
|
+
abortEarlySetup();
|
163
|
+
before(() => {
|
164
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
165
|
+
cy.barsPreLoaderWait();
|
166
|
+
textEntryMathWithImagePage.steps.addBackground();
|
167
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
168
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
169
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
170
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
|
171
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
172
|
+
});
|
173
|
+
|
174
|
+
textEntryMathWithImagePage.tests.verifyBorderStylePreviewTab('add background');
|
175
|
+
});
|
176
|
+
|
177
|
+
describe('Set height and width for all text containers Contents and Functionality', () => {
|
178
|
+
abortEarlySetup();
|
179
|
+
before(() => {
|
180
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
181
|
+
cy.barsPreLoaderWait();
|
182
|
+
textEntryMathWithImagePage.steps.addBackground();
|
183
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
184
|
+
textEntryMathWithImagePage.steps.insertResponseArea(60);
|
185
|
+
textEntryMathWithImagePage.steps.insertResponseArea(20);
|
186
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
187
|
+
});
|
188
|
+
|
189
|
+
it('\'Set height and width for all text containers\' label and checkbox should be visible and by default it should be checked', () => {
|
190
|
+
utilities.verifyTextContent(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersLabel(), 'Set height and width for all text containers');
|
191
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox(), 'visible');
|
192
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox(), 'visible');
|
193
|
+
textEntryMathWithImagePage.steps.verifyCheckboxIsCheckedForSetHeightAndWidth();
|
194
|
+
});
|
195
|
+
|
196
|
+
it('\'Height(px)\' and \'Width(px)\' label and height input field ,width input filed should be visible and by default input field should be empty', () => {
|
197
|
+
utilities.verifyTextContent(textEntryMathWithImagePage.heightLabel(), 'Height (px)');
|
198
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.heightLabel(), 'visible');
|
199
|
+
utilities.verifyTextContent(textEntryMathWithImagePage.widthLabel(), 'Width (px)');
|
200
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.widthLabel(), 'visible');
|
201
|
+
utilities.verifyTextContent(textEntryMathWithImagePage.heightInputField(), '');
|
202
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.heightInputField(), 'visible');
|
203
|
+
utilities.verifyTextContent(textEntryMathWithImagePage.widthInputField(), '');
|
204
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.widthInputField(), 'visible');
|
205
|
+
});
|
206
|
+
|
207
|
+
it('By default height and width of the text container is 32px and 120px ', () => {
|
208
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(0, '32px');
|
209
|
+
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(0, '120px');
|
210
|
+
});
|
211
|
+
|
212
|
+
it('When user insert value in height and width input fields then value should be visible', () => {
|
213
|
+
textEntryMathWithImagePage.steps.enterValueInHeightInputField(50);
|
214
|
+
textEntryMathWithImagePage.steps.enterValueInWidthInputField(150);
|
215
|
+
textEntryMathWithImagePage.steps.verifyHeightInputFieldValue('50');
|
216
|
+
textEntryMathWithImagePage.steps.verifyWidthInputFieldValue('150');
|
217
|
+
textEntryMathWithImagePage.steps.clearHeightInputField();
|
218
|
+
textEntryMathWithImagePage.steps.clearWidthInputField();
|
219
|
+
});
|
220
|
+
|
221
|
+
it('User should not be able to enter text,special characters in input field', () => {
|
222
|
+
textEntryMathWithImagePage.steps.enterValueInHeightInputField('50a@,');
|
223
|
+
textEntryMathWithImagePage.steps.enterValueInWidthInputField('asd@');
|
224
|
+
textEntryMathWithImagePage.steps.verifyHeightInputFieldValue('50');
|
225
|
+
textEntryMathWithImagePage.steps.verifyWidthInputFieldValue('');
|
226
|
+
textEntryMathWithImagePage.steps.clearHeightInputField();
|
227
|
+
textEntryMathWithImagePage.steps.clearWidthInputField();
|
228
|
+
});
|
229
|
+
|
230
|
+
it('User should not able to enter more than three digit number in height and width input field', () => {
|
231
|
+
textEntryMathWithImagePage.steps.enterValueInHeightInputField(9999);
|
232
|
+
textEntryMathWithImagePage.steps.enterValueInWidthInputField(1000);
|
233
|
+
textEntryMathWithImagePage.steps.verifyHeightInputFieldValue('999');
|
234
|
+
textEntryMathWithImagePage.steps.verifyWidthInputFieldValue('100');
|
235
|
+
});
|
236
|
+
|
237
|
+
it('When user inserts 90px in the height input field, then changes should be reflected in the edit tab textContainer height and value of height input field is 90', () => {
|
238
|
+
textEntryMathWithImagePage.steps.clearHeightInputField();
|
239
|
+
textEntryMathWithImagePage.steps.enterValueInHeightInputField(90);
|
240
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(0, '90px');
|
241
|
+
});
|
242
|
+
|
243
|
+
it('When user inserts 500px in the width input field, then changes should be reflected in the edit tab textContainer width and value of width input field is 500', () => {
|
244
|
+
textEntryMathWithImagePage.steps.clearWidthInputField();
|
245
|
+
textEntryMathWithImagePage.steps.enterValueInWidthInputField(210);
|
246
|
+
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(0, '210px');
|
247
|
+
});
|
248
|
+
|
249
|
+
it('When the user clear the height and weight input field and add a new text container ,then height and width of textContainer is default height and width', () => {
|
250
|
+
textEntryMathWithImagePage.steps.clearHeightInputField();
|
251
|
+
textEntryMathWithImagePage.steps.clearWidthInputField();
|
252
|
+
textEntryMathWithImagePage.steps.insertResponseArea(20);
|
253
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(2, '32px');
|
254
|
+
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(2, '120px');
|
255
|
+
});
|
256
|
+
|
257
|
+
it('CSS of "Set height and width for all text containers" section contents', { tags: 'css' }, () => {
|
258
|
+
utilities.verifyCSS(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersLabel(), {
|
259
|
+
'color': css.color.labelText,
|
260
|
+
'font-size': css.fontSize.normal,
|
261
|
+
'font-weight': css.fontWeight.regular
|
262
|
+
});
|
263
|
+
});
|
264
|
+
|
265
|
+
it('Accessibility of "Set height and width for all text containers" section contents', { tags: 'a11y' }, () => {
|
266
|
+
cy.checkAccessibility(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersLabel().parents('.set-textContainer-dimensions-checkbox'));
|
267
|
+
});
|
268
|
+
});
|
269
|
+
|
270
|
+
describe('Set height and width for all text containers - Preview tab', () => {
|
271
|
+
abortEarlySetup();
|
272
|
+
before(() => {
|
273
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
274
|
+
cy.barsPreLoaderWait();
|
275
|
+
textEntryMathWithImagePage.steps.addBackground();
|
276
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
277
|
+
textEntryMathWithImagePage.steps.insertResponseArea(60);
|
278
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
279
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
280
|
+
});
|
281
|
+
|
282
|
+
it('When the user has not set any height or width values in the "Set height and width for all text containers" section,then the dimensions of the text containers should be default', () => {
|
283
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(0, '32px');
|
284
|
+
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(0, '122px');
|
285
|
+
});
|
286
|
+
|
287
|
+
it('When user update height and width of the textContainer then the changes should be reflected in the preview tab textContainer', () => {
|
288
|
+
textEntryMathWithImagePage.steps.switchToEditTab();
|
289
|
+
textEntryMathWithImagePage.steps.enterValueInHeightInputField(80);
|
290
|
+
textEntryMathWithImagePage.steps.enterValueInWidthInputField(180);
|
291
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
292
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(0, '80px');
|
293
|
+
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(0, '182px');
|
294
|
+
});
|
295
|
+
|
296
|
+
it('When the user clear the height and weight input field and add a new text container ,then height and width of textContainer is default height and width in preview tab', () => {
|
297
|
+
textEntryMathWithImagePage.steps.switchToEditTab();
|
298
|
+
textEntryMathWithImagePage.steps.clearHeightInputField();
|
299
|
+
textEntryMathWithImagePage.steps.clearWidthInputField();
|
300
|
+
textEntryMathWithImagePage.steps.insertResponseArea(20);
|
301
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
302
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '32px');
|
303
|
+
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(1, '122px');
|
304
|
+
});
|
305
|
+
});
|
306
|
+
|
307
|
+
describe('Text container connector style contents', () => {
|
308
|
+
abortEarlySetup();
|
309
|
+
before(() => {
|
310
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
311
|
+
cy.barsPreLoaderWait();
|
312
|
+
textEntryMathWithImagePage.steps.addBackground();
|
313
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
314
|
+
});
|
315
|
+
|
316
|
+
it('"Text container connector style" label should be displayed', () => {
|
317
|
+
utilities.verifyInnerText(textEntryMathWithImagePage.textContainerConnectorStyleLabel(), 'Text container connector style');
|
318
|
+
});
|
319
|
+
|
320
|
+
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', () => {
|
321
|
+
utilities.verifyInnerText(textEntryMathWithImagePage.connectorEndPointShapeLabel(), 'Connector end point shape');
|
322
|
+
connectorStyles.forEach((option) => {
|
323
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.connectorEndPointShapeOptions(option.toLowerCase()), 'exist');
|
324
|
+
});
|
325
|
+
textEntryMathWithImagePage.steps.verifyConnectorStyleOptionSelected('circle')
|
326
|
+
});
|
327
|
+
});
|
328
|
+
|
329
|
+
describe('Text container connector style - Edit tab', () => {
|
330
|
+
abortEarlySetup();
|
331
|
+
before(() => {
|
332
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
333
|
+
cy.barsPreLoaderWait();
|
334
|
+
textEntryMathWithImagePage.steps.addBackground();
|
335
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
336
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
337
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
338
|
+
textEntryMathWithImagePage.steps.selectResponseArea(0);
|
339
|
+
textEntryMathWithImagePage.steps.selectResponseAreaPointerStyle('left');
|
340
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
341
|
+
});
|
342
|
+
|
343
|
+
it('When the "Circle" connector style is in selected state, then the connector style of the text containers in the canvas image should be "dashed"', () => {
|
344
|
+
textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShape('Circle');
|
345
|
+
});
|
346
|
+
|
347
|
+
connectorStyles.forEach((button) => {
|
348
|
+
it(`When the user selects ${button}, then the connector style of the text containers in the canvas image should update to ${button}`, () => {
|
349
|
+
textEntryMathWithImagePage.steps.selectEndPointShapeButton(button);
|
350
|
+
textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShape(button);
|
351
|
+
});
|
352
|
+
})
|
353
|
+
});
|
354
|
+
|
355
|
+
describe('Text container connector style - Preview tab', () => {
|
356
|
+
abortEarlySetup();
|
357
|
+
before(() => {
|
358
|
+
textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
|
359
|
+
cy.barsPreLoaderWait();
|
360
|
+
textEntryMathWithImagePage.steps.addBackground();
|
361
|
+
textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
|
362
|
+
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
363
|
+
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
364
|
+
textEntryMathWithImagePage.steps.insertResponseArea(10);
|
365
|
+
textEntryMathWithImagePage.steps.selectResponseArea(0);
|
366
|
+
textEntryMathWithImagePage.steps.selectResponseAreaPointerStyle('left');
|
367
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
368
|
+
});
|
369
|
+
|
370
|
+
it('When the "Circle" connector style is in selected state, then the connector style of the text containers in the canvas image should be "dashed"', () => {
|
371
|
+
textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShapePreviewTab('Circle');
|
372
|
+
});
|
373
|
+
|
374
|
+
connectorStyles.forEach((button) => {
|
375
|
+
it(`When the user selects ${button}, then the connector style of the text containers in the canvas image should update to ${button}`, () => {
|
376
|
+
textEntryMathWithImagePage.steps.switchToEditTab();
|
377
|
+
textEntryMathWithImagePage.steps.selectEndPointShapeButton(button);
|
378
|
+
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
379
|
+
textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShapePreviewTab(button);
|
380
|
+
});
|
381
|
+
})
|
382
|
+
});
|
383
|
+
|
384
|
+
});
|
@@ -56,10 +56,10 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
|
|
56
56
|
});
|
57
57
|
|
58
58
|
it('When user selects Custom texts, then that text should be selected and the option count should be increased to 1.', () => {
|
59
|
-
textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[
|
59
|
+
textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[2]);
|
60
60
|
textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[1]);
|
61
61
|
textSelectionPage.steps.verifyOptionCounterTextAndValue(2);
|
62
|
-
textSelectionPage.steps.verifySelectedStateOptionInSpecifyPossibleOptionSection(customTextArray[
|
62
|
+
textSelectionPage.steps.verifySelectedStateOptionInSpecifyPossibleOptionSection(customTextArray[2], 'blue');
|
63
63
|
});
|
64
64
|
|
65
65
|
it('Accessibility of the selected option', { tags: 'a11y' }, () => {
|
@@ -67,7 +67,7 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
|
|
67
67
|
});
|
68
68
|
|
69
69
|
it('When user clicks on a selected option, then the selected option should be deselected and the option count should reduce by 1.', () => {
|
70
|
-
textSelectionPage.steps.deselectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[
|
70
|
+
textSelectionPage.steps.deselectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[2]);
|
71
71
|
textSelectionPage.steps.verifyOptionCounterTextAndValue(1);
|
72
72
|
});
|
73
73
|
|
@@ -193,7 +193,7 @@ describe('Standard audio player style: Edit tab contents and preview tab functio
|
|
193
193
|
'border': `1px solid ${css.color.figDefaultComponentBorder}`
|
194
194
|
});
|
195
195
|
utilities.verifyCSS(audioPlayerPage.standardPreviewPlayerWrapper().find('#Icon_awesome-microphone'), {
|
196
|
-
'fill': css.color.
|
196
|
+
'fill': css.color.standardMicroPhoneIcon
|
197
197
|
});
|
198
198
|
utilities.verifyCSS(audioPlayerPage.playbackPauseButton().find('#pause'), {
|
199
199
|
'stroke': css.color.secondaryBtnActive,
|
@@ -343,17 +343,15 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
|
|
343
343
|
});
|
344
344
|
|
345
345
|
it('When volume is not set as 0 and user hovers on \'Volume control\' button, then \'Mute\' text should be displayed in a tooltip and on hovering away from the button, the tooltip should disappear', () => {
|
346
|
-
videoResponsePage.steps.
|
346
|
+
videoResponsePage.steps.hoverOnMuteUnmuteButton();
|
347
347
|
utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'visible');
|
348
348
|
utilities.verifyInnerText(videoResponsePage.tooltipText(), 'Mute');
|
349
|
-
utilities.
|
349
|
+
utilities.triggerMouseout(videoResponsePage.volumeControlButton());
|
350
350
|
utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'notExist');
|
351
351
|
});
|
352
352
|
|
353
353
|
it('When the user hovers over \'Volume control slider\', then \'Volume control\' text should be displayed in a tooltip and on hovering away from the button, the tooltip should disappear', () => {
|
354
354
|
videoResponsePage.steps.hoverOnVolumeControlButton();
|
355
|
-
videoResponsePage.steps.hoverOnVolumeControlSlider();
|
356
|
-
videoResponsePage.steps.hoverAwayFromVolumeControlButton();
|
357
355
|
utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'visible');
|
358
356
|
utilities.verifyInnerText(videoResponsePage.tooltipText(), 'Volume control');
|
359
357
|
utilities.hoverAwayFromElement();
|
@@ -363,6 +361,7 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
|
|
363
361
|
|
364
362
|
it('When volume is not set as 0 and user clicks on volume control button, then the video should be muted and the volume control button should change to a muted state', () => {
|
365
363
|
videoResponsePage.steps.clickOnVolumeButton();
|
364
|
+
utilities.hoverAwayFromElement();
|
366
365
|
videoResponsePage.steps.hoverOnVolumeControlButton();
|
367
366
|
videoResponsePage.steps.verifyVolumeOfPlaybackPlayer('0');
|
368
367
|
utilities.hoverAwayFromElement();
|
@@ -372,15 +371,16 @@ describe('Create item page - Video response: Preview tab - Standard recorder sty
|
|
372
371
|
});
|
373
372
|
|
374
373
|
it('When the user hovers on muted \'Volume control\' button, \'Unmute\' text should be displayed in tooltip', () => {
|
375
|
-
videoResponsePage.steps.
|
374
|
+
videoResponsePage.steps.hoverOnMuteUnmuteButton();
|
376
375
|
utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'visible');
|
377
376
|
utilities.verifyInnerText(videoResponsePage.tooltipText(), 'Unmute');
|
378
|
-
utilities.
|
377
|
+
utilities.triggerMouseout(videoResponsePage.volumeControlButton());
|
379
378
|
utilities.verifyElementVisibilityState(videoResponsePage.tooltipText(), 'notExist');
|
380
379
|
});
|
381
380
|
|
382
381
|
it('When the user clicks on the muted volume control button then the volume setting slider should return to full volume and the volume control button should change to an unmuted state', () => {
|
383
382
|
videoResponsePage.steps.clickOnVolumeButton();
|
383
|
+
utilities.hoverAwayFromElement();
|
384
384
|
videoResponsePage.steps.hoverOnVolumeControlButton();
|
385
385
|
videoResponsePage.steps.verifyVolumeOfPlaybackPlayer('100');
|
386
386
|
utilities.verifyElementVisibilityState(videoResponsePage.unmutedVolumeIcon(), 'visible');
|
@@ -284,7 +284,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
284
284
|
utilities.triggerMouseover(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
|
285
285
|
utilities.verifyCSS(chartsDotPlotPage.tooltipText(), {
|
286
286
|
'color': css.color.whiteText,
|
287
|
-
'font-size': css.fontSize.
|
287
|
+
'font-size': css.fontSize.small,
|
288
288
|
'font-weight': css.fontWeight.regular,
|
289
289
|
'background-color': css.color.tooltipBg
|
290
290
|
});
|
@@ -292,7 +292,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
292
292
|
utilities.triggerMouseover(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[2]));
|
293
293
|
utilities.verifyCSS(chartsDotPlotPage.tooltipText(), {
|
294
294
|
'color': css.color.whiteText,
|
295
|
-
'font-size': css.fontSize.
|
295
|
+
'font-size': css.fontSize.small,
|
296
296
|
'font-weight': css.fontWeight.regular,
|
297
297
|
'background-color': css.color.tooltipBg
|
298
298
|
});
|
@@ -302,12 +302,12 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
302
302
|
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
303
303
|
utilities.triggerMouseover(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
|
304
304
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.tooltipText(), 'visible');
|
305
|
-
cy.checkAccessibility(chartsDotPlotPage.tooltipText());
|
305
|
+
cy.checkAccessibility(chartsDotPlotPage.tooltipText().parents('[role="tooltip"]'));
|
306
306
|
utilities.triggerMouseout(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
|
307
307
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.tooltipText(), 'notExist');
|
308
308
|
utilities.triggerMouseover(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[2]));
|
309
309
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.tooltipText(), 'visible');
|
310
|
-
cy.checkAccessibility(chartsDotPlotPage.tooltipText());
|
310
|
+
cy.checkAccessibility(chartsDotPlotPage.tooltipText().parents('[role="tooltip"]'));
|
311
311
|
utilities.triggerMouseout(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[2]));
|
312
312
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.tooltipText(), 'notExist');
|
313
313
|
});
|
@@ -330,7 +330,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
330
330
|
utilities.triggerMouseover(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[1]));
|
331
331
|
utilities.verifyCSS(chartsDotPlotPage.tooltipText(), {
|
332
332
|
'color': css.color.whiteText,
|
333
|
-
'font-size': css.fontSize.
|
333
|
+
'font-size': css.fontSize.small,
|
334
334
|
'font-weight': css.fontWeight.regular,
|
335
335
|
'background-color': css.color.tooltipBg
|
336
336
|
});
|
@@ -340,7 +340,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
340
340
|
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
341
341
|
utilities.triggerMouseover(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[1]));
|
342
342
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.tooltipText(), 'visible');
|
343
|
-
cy.checkAccessibility(chartsDotPlotPage.tooltipText());
|
343
|
+
cy.checkAccessibility(chartsDotPlotPage.tooltipText().parents('[role="tooltip"]'));
|
344
344
|
utilities.triggerMouseout(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[1]));
|
345
345
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.tooltipText(), 'notExist');
|
346
346
|
});
|
@@ -41,7 +41,7 @@ describe('Create Item page: Tool settings', () => {
|
|
41
41
|
rulerPage.steps.expandRotationDropdown();
|
42
42
|
rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
|
43
43
|
rulerPage.steps.enterInputToOpacityInputField(60);
|
44
|
-
rulerPage.steps.
|
44
|
+
rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
|
45
45
|
toolSettingsComponent.steps.clickOnOkButton();
|
46
46
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
47
47
|
toolSettingsComponent.steps.verifyToolSelectedState(0);
|