itemengine-cypress-automation 1.0.182-repoUpdate22April-92d01da.0 → 1.0.183-revert-48-repoUpdate22April-9974c66.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +5 -4
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +3 -64
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
- 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/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/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 +1 -0
- package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +4 -5
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
- package/cypress/fixtures/constants.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
- package/cypress/fixtures/theme/ilc.json +16 -16
- package/cypress/pages/audioPlayerPage.js +543 -55
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +4 -4
- 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 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -11
- package/cypress/pages/components/toolSettingsComponent.js +0 -6
- package/cypress/pages/contentBlocksPage.js +2 -2
- package/cypress/pages/createItemPage.js +0 -29
- package/cypress/pages/dialogBoxBase.js +2 -2
- package/cypress/pages/drawingResponsePage.js +4 -23
- package/cypress/pages/feedbackScalePage.js +0 -3
- package/cypress/pages/graphingPage.js +0 -18
- package/cypress/pages/gridFillPage.js +2 -18
- package/cypress/pages/index.js +1 -1
- package/cypress/pages/itemPreviewSettingsPage.js +0 -4
- package/cypress/pages/listOrderingPage.js +647 -122
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/multipleSelectionPage.js +1 -23
- package/cypress/pages/numberLinePage.js +59 -1196
- package/cypress/pages/rulerPage.js +2 -6
- package/cypress/pages/textSelectionPage.js +22 -460
- package/package.json +1 -1
- package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +0 -162
- 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/allOrNothingForAllViews.smoke.js +0 -243
- package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -128
- package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +0 -176
- package/cypress/e2e/ILC/NumberLine/LayoutSection.js +0 -530
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +0 -119
- package/cypress/e2e/ILC/NumberLine/numberLineSection.js +0 -263
- package/cypress/e2e/ILC/TextSelection/additionalSettings.js +0 -125
- package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -73
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.smoke.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/styleAndLayoutCustomizationAccordionComponent.js +0 -46
@@ -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)';
|
@@ -9,11 +9,11 @@ const selectors = {
|
|
9
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,5 +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';
|
@@ -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
|
@@ -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
|
|
@@ -591,8 +591,8 @@ const steps = {
|
|
591
591
|
.within(() => {
|
592
592
|
utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
|
593
593
|
utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
|
594
|
-
utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab(), questionInstructions);
|
595
|
-
utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab(), 'visible');
|
594
|
+
utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab().eq(questionIndex), questionInstructions);
|
595
|
+
utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab().eq(questionIndex), 'visible');
|
596
596
|
});
|
597
597
|
},
|
598
598
|
}
|
@@ -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'),
|
@@ -505,35 +504,7 @@ const steps = {
|
|
505
504
|
});
|
506
505
|
},
|
507
506
|
|
508
|
-
/**
|
509
|
-
* This function verifies the Panel width is half of the item width
|
510
|
-
* @param {number} panelIndex index of the panel
|
511
|
-
*/
|
512
|
-
verifyPanelWidthIsHalfOfItemWidth: (panelIndex) => {
|
513
|
-
createItemPage.itemContainer()
|
514
|
-
.then(($el) => {
|
515
|
-
const itemWidth = $el[0].clientWidth;
|
516
|
-
const expectedPanelWidth = itemWidth / 2
|
517
|
-
createItemPage.panelWrapper()
|
518
|
-
.eq(panelIndex)
|
519
|
-
.then(($el) => {
|
520
|
-
const panelWidth = $el[0].clientWidth;
|
521
|
-
expect(expectedPanelWidth).to.be.closeTo(Math.floor(panelWidth), 1);
|
522
|
-
});
|
523
|
-
});
|
524
|
-
},
|
525
507
|
|
526
|
-
verifyPanelWidthEqualToItemWidth: () => {
|
527
|
-
createItemPage.itemContainer()
|
528
|
-
.then(($el) => {
|
529
|
-
const itemWidth = $el[0].clientWidth;
|
530
|
-
createItemPage.panelWrapper()
|
531
|
-
.then(($el) => {
|
532
|
-
const panelWidth = $el[0].clientWidth;
|
533
|
-
expect(itemWidth).to.be.eq(panelWidth);
|
534
|
-
});
|
535
|
-
});
|
536
|
-
}
|
537
508
|
}
|
538
509
|
|
539
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,24 +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
|
-
},
|
1242
|
-
|
1243
|
-
clickOnPlayButtonInGradingView: () => {
|
1244
|
-
drawingResponsePage.gradingViewPlayFeatureButton()
|
1245
|
-
.click();
|
1246
|
-
}
|
1247
1228
|
}
|
1248
1229
|
|
1249
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.
|
@@ -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
|
|
@@ -787,7 +787,7 @@ const steps = {
|
|
787
787
|
const element = $element[0];
|
788
788
|
const pseudoStyle = win.getComputedStyle(element, '::after');
|
789
789
|
const pseudoBackgroundColor = pseudoStyle.getPropertyValue('background-color');
|
790
|
-
expect(pseudoBackgroundColor).to.equal(css.color.
|
790
|
+
expect(pseudoBackgroundColor).to.equal(css.color.gridCellSelectedStateBg);
|
791
791
|
});
|
792
792
|
});
|
793
793
|
});
|
@@ -954,11 +954,7 @@ const steps = {
|
|
954
954
|
* @param {number} lengthRows - The expected count of rows.
|
955
955
|
*/
|
956
956
|
verifyRowsCountPreviewTab: (lengthRows) => {
|
957
|
-
gridFillPage.
|
958
|
-
.eq(0)
|
959
|
-
.within(() => {
|
960
|
-
utilities.verifyElementCount(gridFillPage.rowsWrapperPreviewTab(), lengthRows);
|
961
|
-
});
|
957
|
+
utilities.verifyElementCount(gridFillPage.rowsWrapperPreviewTab(), lengthRows);
|
962
958
|
},
|
963
959
|
|
964
960
|
/**
|
@@ -972,18 +968,6 @@ const steps = {
|
|
972
968
|
});
|
973
969
|
},
|
974
970
|
|
975
|
-
/**
|
976
|
-
* @description Verifies the count of cells in a grid in the preview tab.
|
977
|
-
* @param {number} expectedCount - The expected count of cells in the grid.
|
978
|
-
*/
|
979
|
-
getCellCountInGridPreviewTab:(expectedCount)=>{
|
980
|
-
gridFillPage.gridWrapperPreviewTab()
|
981
|
-
.eq(0)
|
982
|
-
.within(() => {
|
983
|
-
utilities.verifyElementCount(gridFillPage.cellInPreviewTab(), expectedCount);
|
984
|
-
});
|
985
|
-
},
|
986
|
-
|
987
971
|
expandOpenTheGridSelectorDropdown: () => {
|
988
972
|
gridFillPage.openTheGridSelectorDropdownButton()
|
989
973
|
.click()
|
package/cypress/pages/index.js
CHANGED
@@ -7,8 +7,6 @@ import { scoringSectionBase } from "./components";
|
|
7
7
|
import { questionInstructionsComponent } from "./components";
|
8
8
|
import { contentBlocksPage } from "./contentBlocksPage";
|
9
9
|
import { createQuestionBasePage } from "./components";
|
10
|
-
import { graphingPage } from "./graphingPage";
|
11
|
-
import { drawingResponsePage } from "./drawingResponsePage";
|
12
10
|
|
13
11
|
const selectors = {
|
14
12
|
...createItemPage,
|
@@ -107,8 +105,6 @@ const steps = {
|
|
107
105
|
...scoringSectionBase.steps,
|
108
106
|
...questionInstructionsComponent.steps,
|
109
107
|
...selectQuestionResourceToolPage.steps,
|
110
|
-
...graphingPage.steps,
|
111
|
-
...drawingResponsePage.steps,
|
112
108
|
|
113
109
|
verifyEnableSideBySidePanelsCheckboxUnchecked: () => {
|
114
110
|
itemPreviewSettingsPage.enableSideBySidePanelsCheckbox()
|