itemengine-cypress-automation 1.0.185-repoUpdate26April-b17eb46.0 → 1.0.186-packageUpdate-5632086.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +8 -5
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +28 -417
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +1 -29
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
- package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +3 -11
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +1 -57
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -2
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -49
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -0
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +4 -5
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -6
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/fixtures/constants.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
- package/cypress/fixtures/theme/ilc.json +18 -20
- package/cypress/pages/audioPlayerPage.js +504 -274
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +5 -5
- package/cypress/pages/components/commonComponents.js +0 -1
- package/cypress/pages/components/draggableOptionContainer.js +0 -1
- package/cypress/pages/components/equationEditorFlyout.js +2 -3
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -8
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -1
- package/cypress/pages/components/imageCanvasComponent.js +1 -2
- package/cypress/pages/components/index.js +0 -3
- package/cypress/pages/components/optionsWrapperComponent.js +2 -13
- package/cypress/pages/components/playbackControlsBaseComponent.js +13 -20
- package/cypress/pages/components/toolSettingsComponent.js +0 -6
- package/cypress/pages/contentBlocksPage.js +2 -18
- package/cypress/pages/createItemPage.js +8 -75
- package/cypress/pages/dialogBoxBase.js +2 -2
- package/cypress/pages/drawingResponsePage.js +4 -24
- package/cypress/pages/feedbackScalePage.js +0 -3
- package/cypress/pages/graphingPage.js +1 -19
- package/cypress/pages/gridFillPage.js +8 -25
- package/cypress/pages/index.js +1 -2
- package/cypress/pages/itemPreviewSettingsPage.js +0 -4
- package/cypress/pages/listOrderingPage.js +557 -435
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/multipleSelectionPage.js +1 -23
- package/cypress/pages/numberLinePage.js +132 -1370
- package/cypress/pages/rulerPage.js +2 -6
- package/cypress/pages/textSelectionPage.js +23 -461
- package/package.json +1 -1
- package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +0 -79
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +0 -345
- package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +0 -429
- package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +0 -162
- package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +0 -489
- package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +0 -313
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +0 -230
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +0 -124
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +0 -201
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -216
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -214
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -251
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +0 -52
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +0 -128
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -279
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +0 -109
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -278
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -278
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +0 -335
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -250
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +0 -161
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -216
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -252
- package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +0 -118
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -243
- package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -128
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -155
- package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +0 -195
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +0 -78
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -194
- package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +0 -176
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -112
- package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +0 -244
- package/cypress/e2e/ILC/NumberLine/LayoutSection.js +0 -181
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +0 -33
- package/cypress/e2e/ILC/NumberLine/numberLineSection.js +0 -46
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -696
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +0 -173
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +0 -183
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +0 -73
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +0 -204
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -288
- package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +0 -153
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -164
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +0 -120
- package/cypress/e2e/ILC/TextSelection/additionalSettings.js +0 -125
- package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -73
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +0 -179
- package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +0 -89
- package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +0 -436
- package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +0 -277
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +0 -222
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +0 -260
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -380
- package/cypress/pages/components/layoutSectionComponent.js +0 -1191
- package/cypress/pages/components/numberLineCommonComponent.js +0 -36
- package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +0 -46
- package/cypress/pages/numberLineLabelPage.js +0 -333
@@ -112,7 +112,7 @@ const tests = {
|
|
112
112
|
...scoringSectionBaseEditTab.tests,
|
113
113
|
...additionalSettingsPanel.tests,
|
114
114
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
115
|
-
...toolSettingsComponent.
|
115
|
+
...toolSettingsComponent.steps,
|
116
116
|
}
|
117
117
|
|
118
118
|
export const brainingCampManipulativePage = {
|
@@ -183,8 +183,8 @@ const tests = {
|
|
183
183
|
case 'list sorting':
|
184
184
|
helpText = 'You can set the correct answer by sorting the correct answer(s) in the response area(s).';
|
185
185
|
break;
|
186
|
-
case '
|
187
|
-
helpText = 'You can set the correct answer by
|
186
|
+
case 'highlight':
|
187
|
+
helpText = 'You can set the correct answer by highlighting the correct answer(s) in the response area(s).';
|
188
188
|
break;
|
189
189
|
case 'highlight image':
|
190
190
|
helpText = 'You can set the correct answer by selecting the correct answer(s) in the response area(s).';
|
@@ -205,7 +205,7 @@ const tests = {
|
|
205
205
|
helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
|
206
206
|
break;
|
207
207
|
case 'grid fill':
|
208
|
-
helpText = 'You can set the correct answer by selecting the correct
|
208
|
+
helpText = 'You can set the correct answer by selecting the correct cell(s) in the grid.';
|
209
209
|
break;
|
210
210
|
case 'number line':
|
211
211
|
helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
|
@@ -6,14 +6,14 @@ const css = Cypress.env('css');
|
|
6
6
|
const selectors = {
|
7
7
|
allowStudentToCheckAnswerLabel: () => cy.get('[data-ngie-testid="allow-students-to-check-answer-checkbox"] .MuiFormControlLabel-label'),
|
8
8
|
//Note: update after https://redmine.zeuslearning.com/issues/565666 gets resolved
|
9
|
-
allowStudentToCheckAnswerCheckbox: () => cy.get('[data-ngie-testid="allow-
|
9
|
+
allowStudentToCheckAnswerCheckbox: () => cy.get('[data-ngie-testid="allow-students-to-check-answer-checkbox"] input'),
|
10
10
|
maximumCheckAnswerAttemptsDropdownLabel: () => cy.get('#Maximum-check-answer-attempts-dropdown-label'),
|
11
11
|
maximumCheckAnswerAttemptsDropdown: () => cy.get('#Maximum-check-answer-attempts-select'),
|
12
|
-
maximumCheckAnswerAttemptsDropdownListOptions: (
|
13
|
-
if (
|
14
|
-
return cy.get(`[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"][
|
12
|
+
maximumCheckAnswerAttemptsDropdownListOptions: (ariaLabel = null) => {
|
13
|
+
if (ariaLabel) {
|
14
|
+
return cy.get(`[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"][aria-label*="${ariaLabel}"]`)
|
15
15
|
} else {
|
16
|
-
return cy.get('[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"]')
|
16
|
+
return cy.get('[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"]')
|
17
17
|
}
|
18
18
|
},
|
19
19
|
disablePreviousIncorrectOptionLabel: () => cy.get('[data-ngie-testid="disable-previous-incorrect-options-checkbox"] .MuiFormControlLabel-label'),
|
@@ -11,7 +11,6 @@ const selectors = {
|
|
11
11
|
errorMessage: () => cy.get('.error-text-message:visible'),
|
12
12
|
nextGenCreateItemWrapper: () => cy.get('#nextgen-assess-create-item'),
|
13
13
|
dropdownList: () => cy.get('.dropdown-list'),
|
14
|
-
dropdownListOption: () => cy.get('.dropdown-menu-item'),
|
15
14
|
dragHandleButton: () => cy.get('.dragicon-button'),
|
16
15
|
deleteButton: () => cy.get('button[aria-label*="Delete option"]'),
|
17
16
|
tickIconForOptionButtons: () => cy.get('.ngie-toggle-button-tick-icon'),
|
@@ -470,7 +470,6 @@ const tests = {
|
|
470
470
|
|
471
471
|
it('When the user enters text in options input fields then the entered text should be displayed in the respective draggable options in a group in the options container of the specify correct answer section', () => {
|
472
472
|
optionsWrapperComponent.steps.addInputToOptionsInputField(options);
|
473
|
-
cy.wait(200) //Added wait as this is failing due to page updating
|
474
473
|
draggableOptionContainer.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, options);
|
475
474
|
});
|
476
475
|
|
@@ -244,7 +244,7 @@ const steps = {
|
|
244
244
|
equationEditorFlyout.categoryCharacters('Comma')
|
245
245
|
.click();
|
246
246
|
equationEditorFlyout.previewInputField()
|
247
|
-
.type('What is the value of x');
|
247
|
+
.type('What is the value of x?');
|
248
248
|
equationEditorFlyout.categoryCharacters('QuestionMark')
|
249
249
|
.click();
|
250
250
|
equationEditorFlyout.previewInputField()
|
@@ -383,10 +383,9 @@ const tests = {
|
|
383
383
|
|
384
384
|
verifyEquationEditorFlyoutSymbolCategoriesTabs: (categoryName) => {
|
385
385
|
it(`On clicking the ${equationEditorCategoriesAndSymbols[categoryName].displayName} category in the Equation Editor flyout, then the ${equationEditorCategoriesAndSymbols[categoryName].displayName} category tab should get selected`, () => {
|
386
|
-
equationEditorFlyout.
|
386
|
+
equationEditorFlyout.categoryTab()
|
387
387
|
.contains(`${equationEditorCategoriesAndSymbols[categoryName].displayName}`, { matchCase: false })
|
388
388
|
.click()
|
389
|
-
.parents('.tool-wrapper')
|
390
389
|
.within(() => {
|
391
390
|
equationEditorFlyout.categoryTabTitle()
|
392
391
|
.verifyInnerText(`${equationEditorCategoriesAndSymbols[categoryName].displayName}`)
|
@@ -369,14 +369,8 @@ const steps = {
|
|
369
369
|
essayResponseCommonComponents.customizeFormattingOptionsTiles()
|
370
370
|
.each(($button, count) => {
|
371
371
|
cy.wrap($button)
|
372
|
-
.
|
373
|
-
.
|
374
|
-
const normalizedAriaLabel = ariaLabel.trim();
|
375
|
-
const isOptionIncluded = customizeOptions.some(option => normalizedAriaLabel.includes(option));
|
376
|
-
expect(isOptionIncluded).to.be.true;
|
377
|
-
cy.wrap($button)
|
378
|
-
.and('have.attr', 'data-aria-pressed', stateOfFormattingOption[count])
|
379
|
-
});
|
372
|
+
.should('have.attr', 'title', customizeOptions[count])
|
373
|
+
.and('have.attr', 'data-aria-pressed', stateOfFormattingOption[count])
|
380
374
|
});
|
381
375
|
},
|
382
376
|
|
@@ -683,7 +683,6 @@ const tests = {
|
|
683
683
|
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsDropdownCommonComponent.dropdownLabelSpecifyCorrectAnswerSection(), 1), 'Dropdown 2');
|
684
684
|
});
|
685
685
|
|
686
|
-
//Note: Need to find a solution for this, not working
|
687
686
|
it('When user expands and collapses the dropdown without selecting any option, \'Error: Please set a correct answer.\' error message should be displayed', () => {
|
688
687
|
fillInTheGapsDropdownCommonComponent.steps.expandAndCollapseDropdownInSpecifyCorrectAnswerSection(0);
|
689
688
|
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
@@ -568,8 +568,7 @@ const steps = {
|
|
568
568
|
imageCanvasComponent.responseAreaStyle()
|
569
569
|
.eq(index)
|
570
570
|
.trigger('mouseover', { force: true });
|
571
|
-
commonComponents.tooltipText()
|
572
|
-
.should('have.text', dropzonePointer, { matchCase: true });
|
571
|
+
utilities.verifyInnerText(commonComponents.tooltipText(), dropzonePointer);
|
573
572
|
imageCanvasComponent.responseAreaStyle()
|
574
573
|
.eq(index)
|
575
574
|
.trigger('mouseout', { force: true });
|
@@ -63,7 +63,4 @@ export * from './specifyRowsAndColumnsComponent'
|
|
63
63
|
export * from './toolsAndControlsComponent';
|
64
64
|
export * from './resetPopupComponent';
|
65
65
|
export * from './setPointsPopupBase';
|
66
|
-
export * from './styleAndLayoutCustomizationAccordionComponent';
|
67
66
|
export * from './defaultToolDropdown';
|
68
|
-
export * from './numberLineCommonComponent';
|
69
|
-
export * from './layoutSectionComponent';
|
@@ -6,7 +6,7 @@ import { equationEditorFlyout } from "./equationEditorFlyout";
|
|
6
6
|
const css = Cypress.env('css');
|
7
7
|
|
8
8
|
const selectors = {
|
9
|
-
optionsLabel: () => cy.get('.options-label
|
9
|
+
optionsLabel: () => cy.get('.options-label'),
|
10
10
|
optionsSectionWrapper: () => cy.get('[data-rbd-droppable-id="assessment-option-item-options"]'),
|
11
11
|
optionWrapper: () => cy.get('[data-rbd-draggable-id*="option-draggable"]'),
|
12
12
|
addOptionButton: () => cy.get('.add-option-wrapper-cls button').contains('Add option'),
|
@@ -140,17 +140,6 @@ const steps = {
|
|
140
140
|
.should('have.text', 'This is a bold option');
|
141
141
|
},
|
142
142
|
|
143
|
-
/**
|
144
|
-
* @param {number} index of the option input field
|
145
|
-
* @description this function add input to options input field which contains an image
|
146
|
-
*/
|
147
|
-
addTextInputToOptionsInputFieldWithImage: (index) => {
|
148
|
-
optionsWrapperComponent.optionsInputField()
|
149
|
-
.eq(index)
|
150
|
-
.type('Petals')
|
151
|
-
.should('have.text', 'Petals');
|
152
|
-
},
|
153
|
-
|
154
143
|
/**
|
155
144
|
* @param {number} index of option
|
156
145
|
* @description this function verifies bold text in options input fields
|
@@ -427,7 +416,7 @@ const tests = {
|
|
427
416
|
utilities.triggerMouseover(commonComponents.dragHandleButton());
|
428
417
|
});
|
429
418
|
utilities.verifyElementVisibilityState(commonComponents.tooltipText(), 'visible')
|
430
|
-
cy.checkAccessibility(commonComponents.
|
419
|
+
cy.checkAccessibility(commonComponents.tooltipText());
|
431
420
|
optionsWrapperComponent.optionWrapper()
|
432
421
|
.eq(0)
|
433
422
|
.within(() => {
|
@@ -174,13 +174,10 @@ const steps = {
|
|
174
174
|
.should('be.disabled');
|
175
175
|
},
|
176
176
|
|
177
|
-
|
178
|
-
|
179
|
-
* @param {string[]} playbackSpeedOptions Array of playback speed list options
|
180
|
-
*/
|
181
|
-
verifyPlaybackSpeedListOptions: (playbackSpeedOptions) => {
|
177
|
+
verifyPlaybackSpeedListOptions: () => {
|
178
|
+
const playbackSpeedOptions = ['1x', '1.25x', '1.5x', '2x'];
|
182
179
|
playbackSpeedOptions.forEach((option, optionIndex) => {
|
183
|
-
utilities.verifyInnerText(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), optionIndex),
|
180
|
+
utilities.verifyInnerText(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), optionIndex), option);
|
184
181
|
});
|
185
182
|
},
|
186
183
|
|
@@ -191,7 +188,7 @@ const steps = {
|
|
191
188
|
*/
|
192
189
|
verifyPlaybackSpeedOptionSelectedState: (speed) => {
|
193
190
|
playbackControlsBaseComponent.playbackSpeedOption(speed)
|
194
|
-
.should('have.
|
191
|
+
.should('have.class', 'selected-speed-option')
|
195
192
|
},
|
196
193
|
|
197
194
|
/**
|
@@ -275,34 +272,30 @@ const tests = {
|
|
275
272
|
});
|
276
273
|
},
|
277
274
|
|
278
|
-
|
279
|
-
|
280
|
-
* @param {string[]} playbackSpeedOptions Array of playback speed list options
|
281
|
-
*/
|
282
|
-
verifyPlaybackSpeedContents: (playbackSpeedOptions) => {
|
283
|
-
it(`When the user hovers overs the playback button, a list of ${playbackSpeedOptions.length} playback speed options - ${playbackSpeedOptions.join(' ')} should be displayed and by default 1x should be in selected state`, () => {
|
275
|
+
verifyPlaybackSpeedContents: () => {
|
276
|
+
it('When the user hovers overs the playback button, a list of 4 playback speed options - 1x, 1.25x, 1.5x, 2x should be displayed and by default 1x should be in selected state', () => {
|
284
277
|
playbackControlsBaseComponent.playbackSpeedButton()
|
285
278
|
.trigger('mouseover');
|
286
|
-
utilities.verifyElementVisibilityState(playbackControlsBaseComponent.
|
287
|
-
utilities.verifyElementCount(playbackControlsBaseComponent.playbackSpeedOption(),
|
288
|
-
playbackControlsBaseComponent.steps.verifyPlaybackSpeedListOptions(
|
279
|
+
utilities.verifyElementVisibilityState(playbackControlsBaseComponent.playbackSpeedOptionsList(), 'visible');
|
280
|
+
utilities.verifyElementCount(playbackControlsBaseComponent.playbackSpeedOption(), 4);
|
281
|
+
playbackControlsBaseComponent.steps.verifyPlaybackSpeedListOptions();
|
289
282
|
playbackControlsBaseComponent.steps.verifyPlaybackSpeedOptionSelectedState('1x');
|
290
283
|
playbackControlsBaseComponent.steps.selectPlaybackSpeed('1x');
|
291
284
|
});
|
292
285
|
|
293
286
|
it('CSS of playback speed options', { tags: 'css' }, () => {
|
294
287
|
utilities.hoverOverElement(playbackControlsBaseComponent.playbackSpeedButton());
|
295
|
-
utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedButton().find('path')
|
288
|
+
utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedButton().find('[id="playback-speed"] path'), {
|
296
289
|
'fill': css.color.activeButtons
|
297
290
|
});
|
298
|
-
utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedOption()
|
291
|
+
utilities.verifyCSS(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), 0), {
|
299
292
|
'color': css.color.liText,
|
300
293
|
'background-color': css.color.liTextSelectedBg,
|
301
294
|
'font-size': css.fontSize.small
|
302
295
|
});
|
303
|
-
utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedOption()
|
296
|
+
utilities.verifyCSS(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), 1), {
|
304
297
|
'color': css.color.liText,
|
305
|
-
'background-color': css.color.
|
298
|
+
'background-color': css.color.defaultBackground,
|
306
299
|
'font-size': css.fontSize.small
|
307
300
|
});
|
308
301
|
});
|
@@ -13,7 +13,6 @@ const selectors = {
|
|
13
13
|
toolLabel: () => cy.get('.tool-settings-customization-wrapper [class*="DragItemstyles__ButtonLabel"]'),
|
14
14
|
toolDragHandleButton: () => cy.get('.tool-settings-customization-wrapper [class*="DragItemstyles__DragIconWrapper"]'),
|
15
15
|
toolEditIcon: () => cy.get('.tool-settings-customization-wrapper [class*="DragItemstyles__ItemContainer"] .icon-pencil'),
|
16
|
-
okButton: () => cy.get('.action-button').eq(1)
|
17
16
|
}
|
18
17
|
|
19
18
|
const steps = {
|
@@ -88,11 +87,6 @@ const steps = {
|
|
88
87
|
clickOnToolEditIcon: (toolIndex) => {
|
89
88
|
utilities.getNthElement(toolSettingsComponent.toolEditIcon(), toolIndex)
|
90
89
|
.click();
|
91
|
-
},
|
92
|
-
|
93
|
-
clickOnOkButton: () => {
|
94
|
-
toolSettingsComponent.okButton()
|
95
|
-
.click();
|
96
90
|
}
|
97
91
|
}
|
98
92
|
|
@@ -6,7 +6,6 @@ const css = Cypress.env('css');
|
|
6
6
|
const selectors = {
|
7
7
|
...commonComponents,
|
8
8
|
...createQuestionBasePage,
|
9
|
-
...createItemPage,
|
10
9
|
headerLabel: () => cy.get('[class*="ContentBlocksstyles__LabelContent"]'),
|
11
10
|
titleLabel: () => cy.get('.inline-text-property-label').eq(0),
|
12
11
|
titleInputField: () => cy.get('.input-field input').eq(0),
|
@@ -592,25 +591,10 @@ const steps = {
|
|
592
591
|
.within(() => {
|
593
592
|
utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
|
594
593
|
utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
|
595
|
-
utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab(), questionInstructions);
|
596
|
-
utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab(), 'visible');
|
594
|
+
utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab().eq(questionIndex), questionInstructions);
|
595
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab().eq(questionIndex), 'visible');
|
597
596
|
});
|
598
597
|
},
|
599
|
-
|
600
|
-
/**
|
601
|
-
* @param {number} panel denotes panel number
|
602
|
-
* @param {string} questionInstruction denotes question instruction
|
603
|
-
* @description verify question content
|
604
|
-
*/
|
605
|
-
verifyContentBlockContentsPreviewPreviewTab: ({ questionInstructions, panel = 0 }) => {
|
606
|
-
createItemPage.panelWrapper()
|
607
|
-
.eq(panel)
|
608
|
-
.within(() => {
|
609
|
-
utilities.verifyElementVisibilityState(createItemPage.questionTitle(), 'notExist');
|
610
|
-
utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab(), questionInstructions);
|
611
|
-
utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab(), 'visible');
|
612
|
-
});
|
613
|
-
}
|
614
598
|
}
|
615
599
|
|
616
600
|
export const contentBlocksPage = {
|
@@ -21,7 +21,6 @@ const selectors = {
|
|
21
21
|
rowQuestionWrapper: () => cy.get('[class*="Widgetstyles__RowWrapper"]'),
|
22
22
|
columnQuestionWrapper: () => cy.get('[class*="ColumnComponentstyles__WidgetsWrapper"]'),
|
23
23
|
panelWrapper: () => cy.get('.column-tab-without-scroll'),
|
24
|
-
itemContainer: () => cy.get('.item-layout-columns-wrapper-without-scroll'),
|
25
24
|
questionTitle: () => cy.get('.question-type-text'),
|
26
25
|
sectionsTitleWrapper: () => cy.get('[class*="TabsComponentstyles__TabListWrapper"]'),
|
27
26
|
sectionsTitleBoxWrapper: () => cy.get('[class*="TabsComponentstyles__TabListWrapper"] .ngie-tablist-box-wrapper'),
|
@@ -30,7 +29,6 @@ const selectors = {
|
|
30
29
|
selectedSectionUnderline: () => cy.get('[class*="MuiTabs-indicator"]').eq(1),
|
31
30
|
sectionsNumber1Label: () => cy.get('.tablist-numbered-label').eq(0),
|
32
31
|
sectionsNumber2Label: () => cy.get('.tablist-numbered-label').eq(1),
|
33
|
-
noPreviewText: () => cy.get('[class*="__NoPreview"]')
|
34
32
|
}
|
35
33
|
|
36
34
|
const steps = {
|
@@ -168,39 +166,22 @@ const steps = {
|
|
168
166
|
.click();
|
169
167
|
},
|
170
168
|
|
171
|
-
/**
|
172
|
-
* @param {number} panel denotes panel number
|
173
|
-
* @param {number} questionNumber denotes question number
|
174
|
-
* @param {string} questionTitle denotes question title
|
175
|
-
* @param {string} questionInstruction denotes question instruction
|
176
|
-
* @description verify question content
|
177
|
-
*/
|
178
|
-
verifyBasicQuestionContentsPreview: ({ questionIndex, questionTitle, questionInstructions, panel = 0 }) => {
|
179
|
-
createItemPage.panelWrapper()
|
180
|
-
.eq(panel)
|
181
|
-
.within(() => {
|
182
|
-
utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
|
183
|
-
utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
|
184
|
-
utilities.verifyInnerText(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), questionInstructions);
|
185
|
-
utilities.verifyElementVisibilityState(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), 'exist');
|
186
|
-
});
|
187
|
-
},
|
188
|
-
|
189
169
|
/**
|
190
170
|
* @param {number} panel denotes panel number
|
191
|
-
* @param {number}
|
192
|
-
* @param {string}
|
171
|
+
* @param {number} questionNumber denotes question number
|
172
|
+
* @param {string} questionTitle denotes question title
|
193
173
|
* @param {string} questionInstruction denotes question instruction
|
194
174
|
* @description verify question content
|
195
175
|
*/
|
196
176
|
|
197
|
-
|
177
|
+
verifyBasicQuestionContentsPreview: ({ questionIndex, questionTitle, questionInstructions, panel = 0 }) => {
|
198
178
|
createItemPage.panelWrapper()
|
199
179
|
.eq(panel)
|
200
180
|
.within(() => {
|
201
|
-
utilities.
|
181
|
+
utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
|
182
|
+
utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
|
202
183
|
utilities.verifyInnerText(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), questionInstructions);
|
203
|
-
utilities.verifyElementVisibilityState(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), '
|
184
|
+
utilities.verifyElementVisibilityState(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), 'visible');
|
204
185
|
});
|
205
186
|
},
|
206
187
|
|
@@ -452,9 +433,9 @@ const steps = {
|
|
452
433
|
|
453
434
|
verifyNumberedSectionNavigationStyle: () => {
|
454
435
|
utilities.verifyInnerText(createItemPage.sectionsNumber1Label(), '1');
|
455
|
-
utilities.verifyElementVisibilityState(createItemPage.sectionsNumber1Label(), '
|
436
|
+
utilities.verifyElementVisibilityState(createItemPage.sectionsNumber1Label(), 'visible');
|
456
437
|
utilities.verifyInnerText(createItemPage.sectionsNumber2Label(), '2');
|
457
|
-
utilities.verifyElementVisibilityState(createItemPage.sectionsNumber2Label(), '
|
438
|
+
utilities.verifyElementVisibilityState(createItemPage.sectionsNumber2Label(), 'visible');
|
458
439
|
},
|
459
440
|
|
460
441
|
/**
|
@@ -523,55 +504,7 @@ const steps = {
|
|
523
504
|
});
|
524
505
|
},
|
525
506
|
|
526
|
-
/**
|
527
|
-
* This function verifies the Panel width is half of the item width
|
528
|
-
* @param {number} panelIndex index of the panel
|
529
|
-
*/
|
530
|
-
verifyPanelWidthIsHalfOfItemWidth: (panelIndex) => {
|
531
|
-
createItemPage.itemContainer()
|
532
|
-
.then(($el) => {
|
533
|
-
const itemWidth = $el[0].clientWidth;
|
534
|
-
const expectedPanelWidth = itemWidth / 2
|
535
|
-
createItemPage.panelWrapper()
|
536
|
-
.eq(panelIndex)
|
537
|
-
.then(($el) => {
|
538
|
-
const panelWidth = $el[0].clientWidth;
|
539
|
-
expect(expectedPanelWidth).to.be.closeTo(Math.floor(panelWidth), 1);
|
540
|
-
});
|
541
|
-
});
|
542
|
-
},
|
543
507
|
|
544
|
-
verifyPanelWidthEqualToItemWidth: () => {
|
545
|
-
createItemPage.itemContainer()
|
546
|
-
.then(($el) => {
|
547
|
-
const itemWidth = $el[0].clientWidth;
|
548
|
-
createItemPage.panelWrapper()
|
549
|
-
.then(($el) => {
|
550
|
-
const panelWidth = $el[0].clientWidth;
|
551
|
-
expect(itemWidth).to.be.eq(panelWidth);
|
552
|
-
});
|
553
|
-
});
|
554
|
-
},
|
555
|
-
|
556
|
-
verifyPanelWidthAndSectionWidthEqualToItemWidth: () => {
|
557
|
-
createItemPage.itemContainer()
|
558
|
-
.then(($item) => {
|
559
|
-
const itemWidth = $item[0].clientWidth;
|
560
|
-
let panelWidth = 0;
|
561
|
-
let sectionWidth = 0;
|
562
|
-
cy.get('[class*="ColumnComponentstyles__TabsComponentWrapper"]')
|
563
|
-
.then(($section) => {
|
564
|
-
sectionWidth = $section[0].clientWidth;
|
565
|
-
})
|
566
|
-
cy.get('[class*="ColumnComponentstyles__WidgetsWrapper"]')
|
567
|
-
.then(($panelWidth) => {
|
568
|
-
panelWidth = $panelWidth[0].clientWidth;
|
569
|
-
})
|
570
|
-
.then(() => {
|
571
|
-
expect(panelWidth + sectionWidth).to.be.closeTo(itemWidth, 1);
|
572
|
-
});
|
573
|
-
});
|
574
|
-
}
|
575
508
|
}
|
576
509
|
|
577
510
|
export const createItemPage = {
|
@@ -6,8 +6,8 @@ const selectors = {
|
|
6
6
|
dialogBox: () => cy.get('[aria-labelledby="alert-dialog-title"]'),
|
7
7
|
dialogBoxTitle: () => cy.get('.dialog-title'),
|
8
8
|
dialogBoxContent: () => cy.get('[class*="dialog-content"]'),
|
9
|
-
buttonReject: () => cy.get('
|
10
|
-
buttonAccept: () => cy.get('
|
9
|
+
buttonReject: () => cy.get('.save-action-btn-wrapper button').eq(0),
|
10
|
+
buttonAccept: () => cy.get('.save-action-btn-wrapper button').eq(1),
|
11
11
|
buttonClose: () => cy.get('[aria-label="CLOSE"]')
|
12
12
|
}
|
13
13
|
|
@@ -59,8 +59,8 @@ const selectors = {
|
|
59
59
|
}
|
60
60
|
},
|
61
61
|
previewTabToolbarOptionTooltip: () => cy.get('.edit-question-preview-wrapper [role="tooltip"][class*="Tooltipstyles__TooltipContent"]'),
|
62
|
-
previewTabLowerCanvas: () => cy.get('.question-preview-wrapper .lower-canvas'),
|
63
|
-
previewTabUpperCanvas: () => cy.get('.question-preview-wrapper .upper-canvas'),
|
62
|
+
previewTabLowerCanvas: () => cy.get('.edit-question-preview-wrapper .lower-canvas'),
|
63
|
+
previewTabUpperCanvas: () => cy.get('.edit-question-preview-wrapper .upper-canvas'),
|
64
64
|
previewTabSecondaryToolbarOptionLabel: () => cy.get('.edit-question-preview-wrapper .drawing-tool__secondary-toolbar__tool-name'),
|
65
65
|
previewTabSecondaryToolbarOption: (ariaLabel = null) => {
|
66
66
|
if (ariaLabel) {
|
@@ -198,7 +198,7 @@ const selectors = {
|
|
198
198
|
editTabColorPickerPopupOpacityPalette: () => cy.get('.react-colorful__last-control .react-colorful__interactive'),
|
199
199
|
editTabColorPickerPopupOpacityPicker: () => cy.get('.react-colorful__last-control .react-colorful__pointer'),
|
200
200
|
editTabColorPickerPopupCancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
|
201
|
-
editTabColorPickerPopupOkButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(
|
201
|
+
editTabColorPickerPopupOkButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(2),
|
202
202
|
|
203
203
|
//TODO: Student view: Need to remove once https://redmine.zeuslearning.com/issues/556302 is fixed
|
204
204
|
studentAndGradingViewDrawingToolbarOption: (drawingOption = null) => {
|
@@ -208,8 +208,7 @@ const selectors = {
|
|
208
208
|
return cy.get('.drawing-tool__button')
|
209
209
|
}
|
210
210
|
},
|
211
|
-
studentViewUpperCanvas: () => cy.get('.upper-canvas').eq(0)
|
212
|
-
gradingViewPlayFeatureButton: () => cy.get('[class*="DrawingResponsePreviewstyles__PlayBtnWrapper"] button')
|
211
|
+
studentViewUpperCanvas: () => cy.get('.upper-canvas').eq(0)
|
213
212
|
}
|
214
213
|
|
215
214
|
const steps = {
|
@@ -1226,25 +1225,6 @@ const steps = {
|
|
1226
1225
|
});
|
1227
1226
|
});
|
1228
1227
|
},
|
1229
|
-
|
1230
|
-
/**
|
1231
|
-
* This function sets basic question and saves it
|
1232
|
-
* @param {string} inputQuestion input for the question instruction
|
1233
|
-
* @param {number} points for the question
|
1234
|
-
*/
|
1235
|
-
createBasicDrawingResponseQuestion: (inputQuestion, points) => {
|
1236
|
-
drawingResponsePage.questionInstructionsInputField()
|
1237
|
-
.type(inputQuestion);
|
1238
|
-
drawingResponsePage.pointsInputField()
|
1239
|
-
.type(points);
|
1240
|
-
drawingResponsePage.saveQuestionButton()
|
1241
|
-
.click();
|
1242
|
-
},
|
1243
|
-
|
1244
|
-
clickOnPlayButtonInGradingView: () => {
|
1245
|
-
drawingResponsePage.gradingViewPlayFeatureButton()
|
1246
|
-
.click();
|
1247
|
-
}
|
1248
1228
|
}
|
1249
1229
|
|
1250
1230
|
const tests = {
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import { additionalSettingsPanel, commonComponents, createQuestionBasePage, questionInstructionsComponent, autoScoredScoringPreviewTab, studentViewSettingsLabelComponent } from "./components"
|
2
2
|
import utilities from "../support/helpers/utilities";
|
3
|
-
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
4
3
|
const css = Cypress.env('css');
|
5
4
|
|
6
5
|
const selectors = {
|
7
6
|
...questionInstructionsComponent,
|
8
7
|
...commonComponents,
|
9
8
|
...additionalSettingsPanel,
|
10
|
-
...selectQuestionResourceToolPage,
|
11
9
|
specifyFeedbackScaleOptionsLabel: () => cy.get('[class*="FeedbackScalestyles__SpecifyFeedbackLabel"]'),
|
12
10
|
feedbackScaleStyleDropdownLabel: () => cy.get('#feedback-scale-style-dropdown-label'),
|
13
11
|
feedbackScaleStyleDropdown: () => cy.get('#feedback-scale-style-select'),
|
@@ -105,7 +103,6 @@ const steps = {
|
|
105
103
|
...additionalSettingsPanel.steps,
|
106
104
|
...questionInstructionsComponent.steps,
|
107
105
|
...autoScoredScoringPreviewTab.steps,
|
108
|
-
...selectQuestionResourceToolPage.steps,
|
109
106
|
/**
|
110
107
|
* Adds legend text to a specific option in the Legend Text accordion.
|
111
108
|
* @param {number} optionIndex - The index of the option in the Legend Text accordion.
|
@@ -1554,7 +1554,7 @@ const steps = {
|
|
1554
1554
|
*/
|
1555
1555
|
selectGraphToolOptionPreviewTab: (toolOption) => {
|
1556
1556
|
graphingPage.graphToolOptionPreviewTab(toolOption)
|
1557
|
-
.
|
1557
|
+
.click();
|
1558
1558
|
},
|
1559
1559
|
|
1560
1560
|
/**
|
@@ -1664,24 +1664,6 @@ const steps = {
|
|
1664
1664
|
|
1665
1665
|
verifyCorrectAnswerSectionNotExist: () => {
|
1666
1666
|
utilities.verifyElementVisibilityState(utilities.getNthElement(graphingPage.graphCorrectAnswerSection(), 1), 'notExist');
|
1667
|
-
},
|
1668
|
-
|
1669
|
-
/**
|
1670
|
-
* This function sets basic question and saves it
|
1671
|
-
* @param {string} inputQuestion input for the question instruction
|
1672
|
-
* @param {number} points for the question
|
1673
|
-
*/
|
1674
|
-
createBasicGraphingResponseQuestion: (inputQuestion, points) => {
|
1675
|
-
graphingPage.questionInstructionsInputField()
|
1676
|
-
.type(inputQuestion);
|
1677
|
-
graphingPage.pointsInputField()
|
1678
|
-
.type(points);
|
1679
|
-
graphingPage.steps.selectGraphToolOptionEditTab('Line');
|
1680
|
-
graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
1681
|
-
graphingPage.steps.selectGraphToolOptionSpecifyCorrectAnswer('Line');
|
1682
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: -4, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 4, yRange: 20 }]);
|
1683
|
-
graphingPage.saveQuestionButton()
|
1684
|
-
.click();
|
1685
1667
|
}
|
1686
1668
|
}
|
1687
1669
|
|
@@ -31,7 +31,6 @@ const selectors = {
|
|
31
31
|
makeResponsiveCheckbox: () => cy.get('.mobile-responsive-wrapper input'),
|
32
32
|
makeResponsiveCheckboxIcon: () => cy.get('.mobile-responsive-wrapper .MuiSwitch-thumb'),
|
33
33
|
whatIsThisLabel: () => cy.get('.what-is-wrapper [class*="StyledLink"]'),
|
34
|
-
makeResponsiveHelpText: () => cy.get('[class*="WhatIsThisDescriptionWrapper"]'),
|
35
34
|
columnsInputField: () => cy.get('[class*="GridFillstyles__RowsColWrapper"] .input-stepper-textfield').eq(0),
|
36
35
|
columnsLabel: () => cy.get('[class*="GridFillstyles__RowsColWrapper"] [class*="GridFillstyles__CanvasInputLabelWrapper"]').eq(0),
|
37
36
|
columnsIncreaseButton: () => cy.get('[class*="GridFillstyles__RowsColWrapper"] [aria-label="Increase count"]').eq(0),
|
@@ -480,10 +479,10 @@ const steps = {
|
|
480
479
|
.click()
|
481
480
|
.invoke('attr', 'aria-label')
|
482
481
|
.should('include', 'Hide cell');
|
483
|
-
utilities.getNthElement(gridFillPage.cellInCustomizeLayout(), columnIndex)
|
484
|
-
|
485
|
-
|
486
|
-
|
482
|
+
/* utilities.getNthElement(gridFillPage.cellInCustomizeLayout(), columnIndex)
|
483
|
+
.within(() => {
|
484
|
+
utilities.verifyElementVisibilityState(gridFillPage.hiddenCellIcon(), 'exist');
|
485
|
+
});*/
|
487
486
|
});
|
488
487
|
},
|
489
488
|
|
@@ -788,7 +787,7 @@ const steps = {
|
|
788
787
|
const element = $element[0];
|
789
788
|
const pseudoStyle = win.getComputedStyle(element, '::after');
|
790
789
|
const pseudoBackgroundColor = pseudoStyle.getPropertyValue('background-color');
|
791
|
-
expect(pseudoBackgroundColor).to.equal(css.color.
|
790
|
+
expect(pseudoBackgroundColor).to.equal(css.color.gridCellSelectedStateBg);
|
792
791
|
});
|
793
792
|
});
|
794
793
|
});
|
@@ -955,11 +954,7 @@ const steps = {
|
|
955
954
|
* @param {number} lengthRows - The expected count of rows.
|
956
955
|
*/
|
957
956
|
verifyRowsCountPreviewTab: (lengthRows) => {
|
958
|
-
gridFillPage.
|
959
|
-
.eq(0)
|
960
|
-
.within(() => {
|
961
|
-
utilities.verifyElementCount(gridFillPage.rowsWrapperPreviewTab(), lengthRows);
|
962
|
-
});
|
957
|
+
utilities.verifyElementCount(gridFillPage.rowsWrapperPreviewTab(), lengthRows);
|
963
958
|
},
|
964
959
|
|
965
960
|
/**
|
@@ -973,18 +968,6 @@ const steps = {
|
|
973
968
|
});
|
974
969
|
},
|
975
970
|
|
976
|
-
/**
|
977
|
-
* @description Verifies the count of cells in a grid in the preview tab.
|
978
|
-
* @param {number} expectedCount - The expected count of cells in the grid.
|
979
|
-
*/
|
980
|
-
getCellCountInGridPreviewTab: (expectedCount) => {
|
981
|
-
gridFillPage.gridWrapperPreviewTab()
|
982
|
-
.eq(0)
|
983
|
-
.within(() => {
|
984
|
-
utilities.verifyElementCount(gridFillPage.cellInPreviewTab(), expectedCount);
|
985
|
-
});
|
986
|
-
},
|
987
|
-
|
988
971
|
expandOpenTheGridSelectorDropdown: () => {
|
989
972
|
gridFillPage.openTheGridSelectorDropdownButton()
|
990
973
|
.click()
|
@@ -3002,8 +2985,8 @@ const tests = {
|
|
3002
2985
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
3003
2986
|
});
|
3004
2987
|
|
3005
|
-
it(`\'
|
3006
|
-
utilities.verifyInnerText(gridFillPage.matchExactPositionLabel(), '
|
2988
|
+
it(`\'Exact match position of cells\' label and checkbox should be displayed in the ${accordionName} accordion and the checkbox should be checked`, () => {
|
2989
|
+
utilities.verifyInnerText(gridFillPage.matchExactPositionLabel(), 'Exact match position of cells');
|
3007
2990
|
utilities.verifyElementVisibilityState(gridFillPage.matchExactPositionLabel(), 'visible');
|
3008
2991
|
utilities.verifyElementVisibilityState(gridFillPage.matchExactPositionCheckbox(), 'exist');
|
3009
2992
|
gridFillPage.steps.verifyMatchExactPositionOfCellsCheckboxIsChecked();
|
package/cypress/pages/index.js
CHANGED
@@ -47,5 +47,4 @@ export * from './geoGebraToolsPage';
|
|
47
47
|
export * from './matchingPage';
|
48
48
|
export * from './brainingCampManipulativePage';
|
49
49
|
export * from './numberLinePage';
|
50
|
-
export * from './textSelectionPage';
|
51
|
-
export * from './numberLineLabelPage';
|
50
|
+
export * from './textSelectionPage';
|