itemengine-cypress-automation 1.0.142 → 1.0.143
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +104 -0
- package/cypress/e2e/ILC/ContentBlocks/additionalSection.js +92 -0
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +11 -1
- package/cypress/e2e/ILC/ContentBlocks/previewTab.js +91 -0
- package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +3 -3
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorEditTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorEditTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorEditTabBasicSection.js +3 -2
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +0 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +124 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +0 -9
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +17 -17
- package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +83 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +32 -30
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +25 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +40 -41
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories1.js +249 -99
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories2.js +118 -187
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsBasic.js +138 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsForDropdowns.js +309 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +181 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettingsBasic.js +132 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +143 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +345 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +49 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +25 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +251 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +49 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsBasic.js +93 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +215 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/textContainerSettings.js +219 -0
- package/cypress/e2e/ILC/GeoGebraTools/3DGraphingCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/3DGraphingCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/casCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/casCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/geometryCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/geometryCalculatorPreviewTabContents.smoke.js +76 -0
- package/cypress/e2e/ILC/GeoGebraTools/graphingCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/graphingCalculatorPreviewTabContents.smoke.js +73 -0
- package/cypress/e2e/ILC/GeoGebraTools/probablityCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/probablityCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/scientificCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/scientificCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +10 -8
- package/cypress/e2e/ILC/GeogebraActivity/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -2
- package/cypress/e2e/ILC/GeogebraActivity/headerSection.js +2 -1
- package/cypress/e2e/ILC/GeogebraActivity/insertResourceLink.js +318 -0
- package/cypress/e2e/ILC/GeogebraActivity/previewTabContent.smoke.js +2 -1
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +15 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +280 -0
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +136 -0
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +205 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +106 -0
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +79 -0
- package/cypress/e2e/ILC/MultipleSelection/additionalSettingsBasic.js +108 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +251 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +180 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/additionalSettings.js +48 -56
- package/cypress/e2e/ILC/SingleSelection/additionalSettingsBasic.js +107 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +251 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +180 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +4 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +93 -68
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +59 -52
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +59 -52
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +61 -50
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +65 -51
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +55 -46
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +6 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +11 -9
- package/cypress/e2e/ILC/TextEntryMathWithImage/checkAnswerFunctionalityForAllViews.smoke.js +4 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +4 -2
- package/cypress/e2e/ILC/UploadResponse/additionalSettingsBasic.js +85 -0
- package/cypress/e2e/ILC/UploadResponse/editTabScoringSection.js +12 -12
- package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +1 -1
- package/cypress/fixtures/constants.js +2 -0
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1114 -1511
- package/cypress/fixtures/theme/ilc.json +7 -1
- package/cypress/pages/audioResponsePage.js +26 -2
- package/cypress/pages/components/additionalSettingsAccessibilitySectionComponent.js +1 -0
- package/cypress/pages/components/additionalSettingsPanel.js +3 -10
- package/cypress/pages/components/ariaLabelSectionComponent.js +84 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -2
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/createCustomCategoryFlyout.js +2 -2
- package/cypress/pages/components/createQuestionBasePage.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -0
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/editCategoryFlyout.js +9 -10
- package/cypress/pages/components/equationEditorFlyout.js +20 -11
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +167 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +149 -6
- package/cypress/pages/components/gradingViewEnumerationComponent.js +151 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +390 -0
- package/cypress/pages/components/imageCanvasComponent.js +25 -1
- package/cypress/pages/components/index.js +5 -1
- package/cypress/pages/components/placeholderTextSectionComponent.js +110 -0
- package/cypress/pages/components/responseAreaSettingsPopupComponent.js +2 -2
- package/cypress/pages/contentBlocksPage.js +60 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +4 -17
- package/cypress/pages/essayResponsePage.js +14 -11
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +15 -0
- package/cypress/pages/fillInTheGapsDropdownPage.js +121 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +70 -3
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +33 -3
- package/cypress/pages/fillInTheGapsTextPage.js +81 -4
- package/cypress/pages/geoGebraActivityPage.js +75 -11
- package/cypress/pages/geoGebraToolsPage.js +292 -0
- package/cypress/pages/graphingPage.js +2 -1
- package/cypress/pages/gridFillPage.js +713 -0
- package/cypress/pages/index.js +3 -1
- package/cypress/pages/multipleSelectionGridPage.js +71 -317
- package/cypress/pages/multipleSelectionPage.js +2 -1
- package/cypress/pages/selectQuestionResourceToolPage.js +13 -2
- package/cypress/pages/singleSelectionGridPage.js +78 -329
- package/cypress/pages/singleSelectionPage.js +2 -1
- package/cypress/pages/textEntryMathPage.js +24 -6
- package/cypress/pages/textEntryMathWithImagePage.js +1 -1
- package/cypress/pages/uploadResponsePage.js +4 -3
- package/package.json +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +0 -43
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -642
@@ -0,0 +1,104 @@
|
|
1
|
+
import { audioResponsePage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const fontSizes = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
|
7
|
+
|
8
|
+
describe('Audio response - Additional settings', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Additional settings accordion', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
17
|
+
});
|
18
|
+
|
19
|
+
audioResponsePage.tests.verifyAdditionalSettingsAccordionProperties();
|
20
|
+
});
|
21
|
+
|
22
|
+
describe('Additional settings: Font size - Contents in edit tab', () => {
|
23
|
+
abortEarlySetup();
|
24
|
+
before(() => {
|
25
|
+
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
26
|
+
cy.barsPreLoaderWait();
|
27
|
+
audioResponsePage.steps.expandAdditionalSettings();
|
28
|
+
});
|
29
|
+
|
30
|
+
audioResponsePage.tests.verifyFontSizeSectionContents();
|
31
|
+
});
|
32
|
+
|
33
|
+
describe('Additional settings: Font size - functionality in preview tab', () => {
|
34
|
+
abortEarlySetup();
|
35
|
+
before(() => {
|
36
|
+
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
37
|
+
cy.barsPreLoaderWait();
|
38
|
+
audioResponsePage.steps.addTextInQuestionInstructionsInputField('Audio response');
|
39
|
+
audioResponsePage.steps.expandAdditionalSettings();
|
40
|
+
});
|
41
|
+
|
42
|
+
Object.keys(fontSizes).forEach((option) => {
|
43
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${fontSizes[option]} accordingly`, () => {
|
44
|
+
audioResponsePage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
|
45
|
+
utilities.verifyInnerText(audioResponsePage.fontSizeDropdown(), `${option}`);
|
46
|
+
audioResponsePage.steps.switchToPreviewTab();
|
47
|
+
utilities.verifyCSS(audioResponsePage.questionInstructionsText(), {
|
48
|
+
'font-size': fontSizes[option]
|
49
|
+
});
|
50
|
+
utilities.verifyCSS(audioResponsePage.standardPreviewRecorderHelpText(), {
|
51
|
+
'font-size': css.fontSize.normal
|
52
|
+
});
|
53
|
+
utilities.verifyCSS(audioResponsePage.allowMicrophoneAccessHelpText(), {
|
54
|
+
'font-size': css.fontSize.normal
|
55
|
+
});
|
56
|
+
audioResponsePage.steps.switchToEditTab();
|
57
|
+
});
|
58
|
+
});
|
59
|
+
});
|
60
|
+
|
61
|
+
describe('Additional settings: Accessibility section', () => {
|
62
|
+
abortEarlySetup();
|
63
|
+
before(() => {
|
64
|
+
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
65
|
+
cy.barsPreLoaderWait();
|
66
|
+
audioResponsePage.steps.expandAdditionalSettings();
|
67
|
+
});
|
68
|
+
|
69
|
+
audioResponsePage.tests.verifyAdditionalSettingsAccessibilitySection();
|
70
|
+
});
|
71
|
+
|
72
|
+
describe('Additional settings: Details section', () => {
|
73
|
+
abortEarlySetup();
|
74
|
+
before(() => {
|
75
|
+
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
76
|
+
audioResponsePage.steps.expandAdditionalSettings();
|
77
|
+
});
|
78
|
+
|
79
|
+
it('In details section, \'Allow teachers to download student response\' checkbox and label should be displayed and by default it should be checked', () => {
|
80
|
+
utilities.verifyInnerText(audioResponsePage.allowTeachersToDownloadStudentResponseLabel(), 'Allow teachers to download student response');
|
81
|
+
utilities.verifyElementVisibilityState(audioResponsePage.allowTeachersToDownloadStudentResponseLabel(), 'visible');
|
82
|
+
utilities.verifyElementVisibilityState(audioResponsePage.allowTeachersToDownloadStudentResponseCheckbox(), 'exist');
|
83
|
+
audioResponsePage.steps.verifyAllowTeachersToDownloadStudentResponseCheckboxChecked();
|
84
|
+
});
|
85
|
+
|
86
|
+
it('User should be able to uncheck and check \'Allow teachers to download student response\' checkbox', () => {
|
87
|
+
audioResponsePage.steps.uncheckAllowTeachersToDownloadStudentResponseCheckbox();
|
88
|
+
audioResponsePage.steps.checkAllowTeachersToDownloadStudentResponseCheckbox();
|
89
|
+
});
|
90
|
+
|
91
|
+
audioResponsePage.tests.verifyDetailsSection();
|
92
|
+
|
93
|
+
it('CSS of \'Allow teachers to download student response\' checkbox and label section', { tags: 'css' }, () => {
|
94
|
+
utilities.verifyCSS(audioResponsePage.allowTeachersToDownloadStudentResponseLabel(), {
|
95
|
+
'color': css.color.labelText,
|
96
|
+
'font-size': css.fontSize.normal,
|
97
|
+
'font-weight': css.fontWeight.regular
|
98
|
+
});
|
99
|
+
utilities.verifyCSS(audioResponsePage.allowTeachersToDownloadStudentResponseCheckbox().parents('.icon-checkbox-selected').find('.checkbox-icon-border-rect'), {
|
100
|
+
'fill': css.color.activeButtons
|
101
|
+
});
|
102
|
+
})
|
103
|
+
});
|
104
|
+
});
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import { contentBlocksPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const inputFields = [contentBlocksPage.lexileInputField, contentBlocksPage.acknowledgementsAndReferencesInputField, contentBlocksPage.teacherScoringGuidelinesInputField];
|
7
|
+
const labels = [contentBlocksPage.lexileLabel, contentBlocksPage.acknowledgementsAndReferencesLabel, contentBlocksPage.teacherScoringGuidelinesLabel];
|
8
|
+
|
9
|
+
describe('Content blocks - Edit tab', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Assessment metrics', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
contentBlocksPage.steps.navigateToCreateResource('content blocks');
|
18
|
+
});
|
19
|
+
|
20
|
+
it('Assessment metrics label should be displayed', () => {
|
21
|
+
utilities.verifyInnerText(contentBlocksPage.assessmentMetricsLabel(), 'Assessment metrics');
|
22
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.assessmentMetricsLabel(), 'visible');
|
23
|
+
});
|
24
|
+
|
25
|
+
it('Lexile label and input field should be displayed', () => {
|
26
|
+
utilities.verifyInnerText(contentBlocksPage.lexileLabel(), 'Lexile');
|
27
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.lexileLabel(), 'visible');
|
28
|
+
utilities.verifyInnerText(contentBlocksPage.lexileInputField(), '');
|
29
|
+
});
|
30
|
+
|
31
|
+
it('User should be able to enter text in Lexile input field', () => {
|
32
|
+
contentBlocksPage.steps.enterTextInLexileInputField('Lexile');
|
33
|
+
});
|
34
|
+
|
35
|
+
it('Details label should be displayed', () => {
|
36
|
+
utilities.verifyInnerText(contentBlocksPage.detailsLabel(), 'Details');
|
37
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.detailsLabel(), 'visible');
|
38
|
+
});
|
39
|
+
|
40
|
+
it('Acknowledgements and references label and input field should be displayed', () => {
|
41
|
+
utilities.verifyInnerText(contentBlocksPage.acknowledgementsAndReferencesLabel(), 'Acknowledgements and references');
|
42
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.acknowledgementsAndReferencesLabel(), 'visible');
|
43
|
+
utilities.verifyInnerText(contentBlocksPage.acknowledgementsAndReferencesInputField(), '');
|
44
|
+
});
|
45
|
+
|
46
|
+
it('User should be able to enter text in Acknowledgements and references input field', () => {
|
47
|
+
contentBlocksPage.steps.enterTextInAcknowledgementsAndReferencesInputField('Reference');
|
48
|
+
});
|
49
|
+
|
50
|
+
it('Teacher scoring guidelines label and input field should be displayed', () => {
|
51
|
+
utilities.verifyInnerText(contentBlocksPage.teacherScoringGuidelinesLabel(), 'Teacher scoring guidelines');
|
52
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.teacherScoringGuidelinesLabel(), 'visible');
|
53
|
+
utilities.verifyInnerText(contentBlocksPage.teacherScoringGuidelinesInputField(), '');
|
54
|
+
});
|
55
|
+
|
56
|
+
it('User should be able to enter text in Teacher scoring guidelines input field', () => {
|
57
|
+
contentBlocksPage.steps.enterTextInAcknowledgementsAndReferencesInputField('Guidelines');
|
58
|
+
});
|
59
|
+
|
60
|
+
it('CSS of additional section', { tags: 'css' }, () => {
|
61
|
+
utilities.verifyCSS(contentBlocksPage.assessmentMetricsLabel(), {
|
62
|
+
'color': css.color.labels,
|
63
|
+
'font-size': css.fontSize.default,
|
64
|
+
'font-weight': css.fontWeight.semibold
|
65
|
+
});
|
66
|
+
utilities.verifyCSS(contentBlocksPage.detailsLabel(), {
|
67
|
+
'color': css.color.labels,
|
68
|
+
'font-size': css.fontSize.default,
|
69
|
+
'font-weight': css.fontWeight.semibold
|
70
|
+
});
|
71
|
+
labels.forEach(label => {
|
72
|
+
utilities.verifyCSS(label(), {
|
73
|
+
'color': css.color.labels,
|
74
|
+
'font-size': css.fontSize.normal,
|
75
|
+
'font-weight': css.fontWeight.semibold
|
76
|
+
});
|
77
|
+
});
|
78
|
+
inputFields.forEach(inputField => {
|
79
|
+
utilities.verifyCSS(inputField(), {
|
80
|
+
'color': css.color.text,
|
81
|
+
'font-size': css.fontSize.default,
|
82
|
+
'font-weight': css.fontWeight.regular
|
83
|
+
});
|
84
|
+
});
|
85
|
+
});
|
86
|
+
|
87
|
+
it('Accessibility of additional section', { tags: 'a11y' }, () => {
|
88
|
+
cy.checkAccessibility(contentBlocksPage.assessmentMetricsLabel().parents('[class*="AssessmentMatricsWrapper"]'));
|
89
|
+
cy.checkAccessibility(contentBlocksPage.detailsLabel().parents('[class*="DetailsWrapper"]'));
|
90
|
+
});
|
91
|
+
});
|
92
|
+
});
|
@@ -67,6 +67,16 @@ describe('Content blocks - Edit tab', () => {
|
|
67
67
|
'font-size': css.fontSize.normal,
|
68
68
|
'font-weight': css.fontWeight.semibold
|
69
69
|
});
|
70
|
+
utilities.verifyCSS(contentBlocksPage.titleInputField(), {
|
71
|
+
'color': css.color.text,
|
72
|
+
'font-size': css.fontSize.default,
|
73
|
+
'font-weight': css.fontWeight.regular
|
74
|
+
});
|
75
|
+
utilities.verifyCSS(contentBlocksPage.headerSubTitleInputField(), {
|
76
|
+
'color': css.color.text,
|
77
|
+
'font-size': css.fontSize.default,
|
78
|
+
'font-weight': css.fontWeight.regular
|
79
|
+
});
|
70
80
|
});
|
71
81
|
|
72
82
|
it('Accessibility of header section', { tags: 'a11y' }, () => {
|
@@ -202,7 +212,7 @@ describe('Content blocks - Edit tab', () => {
|
|
202
212
|
});
|
203
213
|
|
204
214
|
it('When user clicks on the \'Delete\' page button then the respective body input field should get deleted, body numeration should change accordingly', () => {
|
205
|
-
contentBlocksPage.steps.
|
215
|
+
contentBlocksPage.steps.deleteContentBlock(0);
|
206
216
|
contentBlocksPage.steps.verifyNumerationText(2);
|
207
217
|
utilities.verifyElementCount(contentBlocksPage.inputFieldWrapper(), 2);
|
208
218
|
});
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { contentBlocksPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
describe('', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Header and body section - Preview tab', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
contentBlocksPage.steps.navigateToCreateResource('content blocks');
|
15
|
+
});
|
16
|
+
|
17
|
+
it('When user enters text in title input field and subtitle input field in edit tab, then title and subtitle should be displayed in preview tab', () => {
|
18
|
+
contentBlocksPage.steps.enterTextInTitleInputField('Accelerating Web Development with Efficient Testing Scripts');
|
19
|
+
contentBlocksPage.steps.enterTextInSubTitleInputField('Enhancing Code Quality and Reliability through Automated Testing');
|
20
|
+
contentBlocksPage.steps.switchToPreviewTab();
|
21
|
+
contentBlocksPage.steps.verifyTitleTextPreviewTab('Accelerating Web Development with Efficient Testing Scripts');
|
22
|
+
contentBlocksPage.steps.verifySubTitleTextPreviewTab('Enhancing Code Quality and Reliability through Automated Testing');
|
23
|
+
});
|
24
|
+
|
25
|
+
it('When user enters text in text block input field in edit tab, then text block text should be displayed in preview tab ', () => {
|
26
|
+
contentBlocksPage.steps.switchToEditTab();
|
27
|
+
contentBlocksPage.steps.enterTextInTextBlockInputField(0, 'In the fast-paced world of web development, ensuring the stability and performance of your applications is paramount. One of the most effective ways to achieve this is through the implementation of robust testing scripts.');
|
28
|
+
contentBlocksPage.steps.switchToPreviewTab();
|
29
|
+
contentBlocksPage.steps.verifyTextBlockTextPreviewTab(0, 'In the fast-paced world of web development, ensuring the stability and performance of your applications is paramount. One of the most effective ways to achieve this is through the implementation of robust testing scripts.');
|
30
|
+
});
|
31
|
+
|
32
|
+
it('When user adds group divider in edit tab then group divider should be displayed in preview tab', () => {
|
33
|
+
contentBlocksPage.steps.switchToEditTab();
|
34
|
+
contentBlocksPage.steps.addGroupDivider();
|
35
|
+
contentBlocksPage.steps.switchToPreviewTab();
|
36
|
+
contentBlocksPage.steps.verifyGroupDividerPreviewTab(0);
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When user adds subtitle and enters text in subtitle input field in edit tab then subtitle text should be displayed in preview tab', () => {
|
40
|
+
contentBlocksPage.steps.switchToEditTab();
|
41
|
+
contentBlocksPage.steps.addSubTitle();
|
42
|
+
contentBlocksPage.steps.enterTextInBodySubTitleInputField(0, 'Monitoring and Maintaining Testing Scripts')
|
43
|
+
contentBlocksPage.steps.switchToPreviewTab();
|
44
|
+
contentBlocksPage.steps.verifyBodySubTitleTextPreviewTab(0, 'Monitoring and Maintaining Testing Scripts');
|
45
|
+
});
|
46
|
+
|
47
|
+
it('CSS of preview tab', { tags: 'css' }, () => {
|
48
|
+
utilities.verifyCSS(contentBlocksPage.titlePreviewTab(), {
|
49
|
+
'color': css.color.questionHeading,
|
50
|
+
'font-size': css.fontSize.huge,
|
51
|
+
'font-weight': css.fontWeight.bold
|
52
|
+
});
|
53
|
+
utilities.verifyCSS(contentBlocksPage.subTitleLabelPreviewTab(), {
|
54
|
+
'color': css.color.questionHeading,
|
55
|
+
'font-size': css.fontSize.heading,
|
56
|
+
'font-weight': css.fontWeight.bold
|
57
|
+
});
|
58
|
+
utilities.verifyCSS(contentBlocksPage.textBlockPreviewTab(), {
|
59
|
+
'color': css.color.text,
|
60
|
+
'font-size': css.fontSize.default,
|
61
|
+
'font-weight': css.fontWeight.regular
|
62
|
+
});
|
63
|
+
utilities.verifyCSS(contentBlocksPage.groupDividerPreviewTab(), {
|
64
|
+
'border-top': `1px solid ${css.color.titleContainerBorder}`
|
65
|
+
});
|
66
|
+
utilities.verifyCSS(contentBlocksPage.bodySubTitlePreviewTab(), {
|
67
|
+
'color': css.color.questionHeading,
|
68
|
+
'font-size': css.fontSize.heading,
|
69
|
+
'font-weight': css.fontWeight.bold
|
70
|
+
});
|
71
|
+
});
|
72
|
+
|
73
|
+
it('Accessibility of preview tab', { tags: 'a11y' }, () => {
|
74
|
+
cy.checkAccessibility(contentBlocksPage.previewWrapper());
|
75
|
+
});
|
76
|
+
|
77
|
+
it('When user deletes subtitle in edit tab, then subtitle text should not be displayed in preview tab', () => {
|
78
|
+
contentBlocksPage.steps.switchToEditTab();
|
79
|
+
contentBlocksPage.steps.deleteContentBlock(2);
|
80
|
+
contentBlocksPage.steps.switchToPreviewTab();
|
81
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.bodySubTitlePreviewTab(), 'notExist');
|
82
|
+
});
|
83
|
+
|
84
|
+
it('When user deletes group divider in edit tab, then group divider should not be displayed in preview tab', () => {
|
85
|
+
contentBlocksPage.steps.switchToEditTab();
|
86
|
+
contentBlocksPage.steps.deleteContentBlock(1);
|
87
|
+
contentBlocksPage.steps.switchToPreviewTab();
|
88
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.groupDividerPreviewTab(), 'notExist');
|
89
|
+
});
|
90
|
+
});
|
91
|
+
});
|
@@ -20,7 +20,7 @@ describe('Style and layout customization section', () => {
|
|
20
20
|
it('\'Style and layout customization\' label and info icon should be displayed', () => {
|
21
21
|
utilities.verifyInnerText(contentBlocksPage.styleAndLayoutCustomizationLabel(), 'Style and layout customization');
|
22
22
|
utilities.verifyElementVisibilityState(contentBlocksPage.styleAndLayoutCustomizationLabel(), 'visible');
|
23
|
-
utilities.verifyElementVisibilityState(contentBlocksPage.styleAndLayoutCustomizationInfoIcon(), 'visible');
|
23
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.styleAndLayoutCustomizationInfoIcon(), 'visible');
|
24
24
|
});
|
25
25
|
|
26
26
|
it('\'Group navigation\' label should be displayed', () => {
|
@@ -28,7 +28,7 @@ describe('Style and layout customization section', () => {
|
|
28
28
|
utilities.verifyElementVisibilityState(contentBlocksPage.groupNavigationLabel(), 'visible');
|
29
29
|
});
|
30
30
|
|
31
|
-
it(`4 group navigation options ${groupNavigationOptions} should be displayed`, () => {
|
31
|
+
it(`4 group navigation options ${groupNavigationOptions.join('')} should be displayed`, () => {
|
32
32
|
contentBlocksPage.steps.verifyGroupNavigationOptions(groupNavigationOptions);
|
33
33
|
});
|
34
34
|
|
@@ -41,7 +41,7 @@ describe('Style and layout customization section', () => {
|
|
41
41
|
utilities.verifyElementVisibilityState(contentBlocksPage.groupDividerStyleLabel(), 'visible');
|
42
42
|
});
|
43
43
|
|
44
|
-
it(`3 group divider style options ${groupDividerStyleOptions} should be displayed`, () => {
|
44
|
+
it(`3 group divider style options ${groupDividerStyleOptions.join('')} should be displayed`, () => {
|
45
45
|
contentBlocksPage.steps.verifyGroupDividerStyleOptions(groupDividerStyleOptions);
|
46
46
|
});
|
47
47
|
|
@@ -33,6 +33,7 @@ describe('Create Item page - Desmos: four-function calculator', () => {
|
|
33
33
|
cy.log('Navigating to passage resource type');
|
34
34
|
desmosToolPage.steps.navigateToCreateResource('desmos four function calculator');
|
35
35
|
desmosToolPage.steps.switchToPreviewTab();
|
36
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
36
37
|
});
|
37
38
|
|
38
39
|
it('When user switches to preview tab, the \'Four-function calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
@@ -64,7 +65,7 @@ describe('Create Item page - Desmos: four-function calculator', () => {
|
|
64
65
|
desmosToolPage.steps.clickOnDesmosToolVisibilityButton();
|
65
66
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonLabel('Hide', 'four-function calculator');
|
66
67
|
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
67
|
-
desmosToolPage.steps.verifyPreviewTabDesmosToolKeypadIsVisible()
|
68
|
+
desmosToolPage.steps.verifyPreviewTabDesmosToolKeypadIsVisible();
|
68
69
|
desmosToolPage.steps.verifyPreviewTabDesmosToolCloseButtonIsVisible();
|
69
70
|
desmosToolPage.steps.verifyPreviewTabDesmosToolDragHandleIsVisible();
|
70
71
|
});
|
@@ -19,7 +19,6 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos four function calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
-
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
23
22
|
break;
|
24
23
|
case 'Item view':
|
25
24
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -55,6 +54,8 @@ describe('Preview tab contents for all views', () => {
|
|
55
54
|
});
|
56
55
|
|
57
56
|
it('When user switches to preview tab, the \'Four-function calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
57
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
58
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
58
59
|
desmosToolPage.steps.verifyWidthAndHeightOfDesmosTool('600', '400');
|
59
60
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonDoesNotExist();
|
60
61
|
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTool(), 'exist');
|
@@ -33,6 +33,7 @@ describe('Create Item page - Desmos: Geometry tool', () => {
|
|
33
33
|
cy.log('Navigating to passage resource type');
|
34
34
|
desmosToolPage.steps.navigateToCreateResource('desmos geometry tool');
|
35
35
|
desmosToolPage.steps.switchToPreviewTab();
|
36
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
36
37
|
});
|
37
38
|
|
38
39
|
it('When user switches to preview tab, the \'Geometry tool\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
@@ -19,7 +19,6 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos geometry tool');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
-
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolSidebarButton(), 'visible');
|
23
22
|
break;
|
24
23
|
case 'Item view':
|
25
24
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -55,6 +54,8 @@ describe('Preview tab contents for all views', () => {
|
|
55
54
|
});
|
56
55
|
|
57
56
|
it('When user switches to preview tab, the \'Geometry tool\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
57
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
58
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolSidebarButton(), 'visible');
|
58
59
|
desmosToolPage.steps.verifyWidthAndHeightOfDesmosTool('600', '400');
|
59
60
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonDoesNotExist();
|
60
61
|
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTool(), 'exist');
|
@@ -33,6 +33,7 @@ describe('Create Item page - Desmos: Graphing calculator', () => {
|
|
33
33
|
cy.log('Navigating to passage resource type');
|
34
34
|
desmosToolPage.steps.navigateToCreateResource('desmos graphing calculator');
|
35
35
|
desmosToolPage.steps.switchToPreviewTab();
|
36
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
36
37
|
});
|
37
38
|
|
38
39
|
it('When user switches to preview tab, the \'Graphing calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
@@ -19,7 +19,6 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos graphing calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
-
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTextArea(), 'exist');
|
23
22
|
break;
|
24
23
|
case 'Item view':
|
25
24
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -55,6 +54,8 @@ describe('Preview tab contents for all views', () => {
|
|
55
54
|
});
|
56
55
|
|
57
56
|
it('When user switches to preview tab, the \'Graphing calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
57
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
58
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTextArea(), 'exist');
|
58
59
|
desmosToolPage.steps.verifyWidthAndHeightOfDesmosTool('600', '400');
|
59
60
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonDoesNotExist();
|
60
61
|
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTool(), 'exist');
|
@@ -33,9 +33,9 @@ describe('Create Item page - Desmos: Matrix calculator', () => {
|
|
33
33
|
cy.log('Navigating to passage resource type');
|
34
34
|
desmosToolPage.steps.navigateToCreateResource('desmos matrix calculator');
|
35
35
|
desmosToolPage.steps.switchToPreviewTab();
|
36
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
36
37
|
});
|
37
38
|
|
38
|
-
|
39
39
|
it('When user switches to preview tab, the \'Matrix calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
40
40
|
desmosToolPage.steps.verifyWidthAndHeightOfDesmosTool('600', '400');
|
41
41
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonDoesNotExist();
|
@@ -65,7 +65,7 @@ describe('Create Item page - Desmos: Matrix calculator', () => {
|
|
65
65
|
desmosToolPage.steps.clickOnDesmosToolVisibilityButton();
|
66
66
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonLabel('Hide', 'matrix calculator');
|
67
67
|
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
68
|
-
desmosToolPage.steps.verifyPreviewTabDesmosToolKeypadIsVisible()
|
68
|
+
desmosToolPage.steps.verifyPreviewTabDesmosToolKeypadIsVisible();
|
69
69
|
desmosToolPage.steps.verifyPreviewTabDesmosToolCloseButtonIsVisible();
|
70
70
|
desmosToolPage.steps.verifyPreviewTabDesmosToolDragHandleIsVisible();
|
71
71
|
});
|
@@ -19,7 +19,6 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos matrix calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
-
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
23
22
|
break;
|
24
23
|
case 'Item view':
|
25
24
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -55,6 +54,8 @@ describe('Preview tab contents for all views', () => {
|
|
55
54
|
});
|
56
55
|
|
57
56
|
it('When user switches to preview tab, the \'Matrix calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
57
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
58
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
58
59
|
desmosToolPage.steps.verifyWidthAndHeightOfDesmosTool('600', '400');
|
59
60
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonDoesNotExist();
|
60
61
|
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTool(), 'exist');
|
@@ -14,7 +14,7 @@ describe('Create Item page - Desmos: Scientific calculator', () => {
|
|
14
14
|
desmosToolPage.steps.navigateToCreateResource('desmos scientific calculator');
|
15
15
|
});
|
16
16
|
|
17
|
-
desmosToolPage.tests.verifyCreateQuestionPageQuestionTypeHeader('
|
17
|
+
desmosToolPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Scientific calculator');
|
18
18
|
});
|
19
19
|
|
20
20
|
describe('Scientific calculator: Edit tab basic section', () => {
|
@@ -33,6 +33,7 @@ describe('Create Item page - Desmos: Scientific calculator', () => {
|
|
33
33
|
cy.log('Navigating to passage resource type');
|
34
34
|
desmosToolPage.steps.navigateToCreateResource('desmos scientific calculator');
|
35
35
|
desmosToolPage.steps.switchToPreviewTab();
|
36
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
36
37
|
});
|
37
38
|
|
38
39
|
it('When user switches to preview tab, the \'Scientific calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
@@ -64,7 +65,7 @@ describe('Create Item page - Desmos: Scientific calculator', () => {
|
|
64
65
|
desmosToolPage.steps.clickOnDesmosToolVisibilityButton();
|
65
66
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonLabel('Hide', 'scientific calculator');
|
66
67
|
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
67
|
-
desmosToolPage.steps.verifyPreviewTabDesmosToolKeypadIsVisible()
|
68
|
+
desmosToolPage.steps.verifyPreviewTabDesmosToolKeypadIsVisible();
|
68
69
|
desmosToolPage.steps.verifyPreviewTabDesmosToolCloseButtonIsVisible();
|
69
70
|
desmosToolPage.steps.verifyPreviewTabDesmosToolDragHandleIsVisible();
|
70
71
|
});
|
@@ -19,7 +19,6 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
cy.log('Navigating to passage resource type');
|
20
20
|
desmosToolPage.steps.navigateToCreateResource('desmos scientific calculator');
|
21
21
|
desmosToolPage.steps.switchToPreviewTab();
|
22
|
-
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
23
22
|
break;
|
24
23
|
case 'Item view':
|
25
24
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -55,6 +54,8 @@ describe('Preview tab contents for all views', () => {
|
|
55
54
|
});
|
56
55
|
|
57
56
|
it('When user switches to preview tab, the \'Scientific calculator\' should be displayed with \'Width (px)\' and \'Height (px)\' as 600px by 400 px respectively and the \'Show Desmos\' button should not be displayed', () => {
|
57
|
+
desmosToolPage.steps.verifyDesmosToolIsVisible();
|
58
|
+
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosToolKeypad(), 'exist');
|
58
59
|
desmosToolPage.steps.verifyWidthAndHeightOfDesmosTool('600', '400');
|
59
60
|
desmosToolPage.steps.verifyPreviewTabDesmosToolVisibilityButtonDoesNotExist();
|
60
61
|
utilities.verifyElementVisibilityState(desmosToolPage.previewTabDesmosTool(), 'exist');
|
@@ -14,7 +14,6 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
14
14
|
describe('Additional Settings accordion', () => {
|
15
15
|
abortEarlySetup();
|
16
16
|
before(() => {
|
17
|
-
cy.log('Navigating to Desmos graphing question type');
|
18
17
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
19
18
|
cy.barsPreLoaderWait();
|
20
19
|
});
|
@@ -26,7 +25,6 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
26
25
|
describe('Additional settings: Font size contents', () => {
|
27
26
|
abortEarlySetup();
|
28
27
|
before(() => {
|
29
|
-
cy.log('Navigating to Highlight question type');
|
30
28
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
31
29
|
cy.barsPreLoaderWait();
|
32
30
|
desmosGraphingPage.steps.expandAdditonalSettings();
|
@@ -38,7 +36,6 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
38
36
|
describe('Additional settings: Font size functionality preview tab', () => {
|
39
37
|
abortEarlySetup();
|
40
38
|
before(() => {
|
41
|
-
cy.log('Navigating to Highlight question type');
|
42
39
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
43
40
|
cy.barsPreLoaderWait();
|
44
41
|
desmosGraphingPage.steps.addQuestionInstructions();
|
@@ -61,7 +58,6 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
61
58
|
describe('Setting tab: Accessibility section', () => {
|
62
59
|
abortEarlySetup();
|
63
60
|
before(() => {
|
64
|
-
cy.log('Navigating to Highlight question type');
|
65
61
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
66
62
|
desmosGraphingPage.steps.expandAdditonalSettings();
|
67
63
|
});
|
@@ -107,7 +103,6 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
107
103
|
describe('Additional Settings: Details section', () => {
|
108
104
|
abortEarlySetup();
|
109
105
|
before(() => {
|
110
|
-
cy.log('Navigating to Desmos graphing question type');
|
111
106
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
112
107
|
cy.barsPreLoaderWait();
|
113
108
|
desmosGraphingPage.steps.expandAdditonalSettings();
|