itemengine-cypress-automation 1.0.220-smokeFixes-5d0ada0.0 → 1.0.220
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +10 -9
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +2 -2
- package/cypress/pages/components/createCustomCategoryFlyout.js +1 -0
- package/cypress/pages/drawingResponsePage.js +13 -3
- package/cypress/pages/matchingPage.js +8 -5
- package/package.json +2 -2
@@ -225,7 +225,8 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
225
225
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
226
226
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
227
227
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
228
|
-
|
228
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
229
|
+
// dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
229
230
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
230
231
|
});
|
231
232
|
});
|
@@ -82,8 +82,9 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
82
82
|
drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions.forEach((toolbarOption) => {
|
83
83
|
if (toolbarOption.secondaryToolbarOptions !== undefined) {
|
84
84
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(toolbarOption.displayName);
|
85
|
-
|
86
|
-
drawingResponsePage.
|
85
|
+
//Remove comment below once https://redmine.zeuslearning.com/issues/571543 is resolved
|
86
|
+
// utilities.verifyInnerText(drawingResponsePage.previewTabToolbarOptionName(), toolbarOption.displayName);
|
87
|
+
// drawingResponsePage.steps.verifyDisplayedSecondaryToolbarOptionsInPreviewTab(toolbarOption.secondaryToolbarOptions);
|
87
88
|
}
|
88
89
|
//Verifying that secondary toolbar options are not displayed for other toolbar options
|
89
90
|
else if (toolbarOption.toolType === 'tool') {
|
@@ -181,7 +182,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
181
182
|
before(() => {
|
182
183
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
183
184
|
cy.barsPreLoaderWait();
|
184
|
-
|
185
185
|
});
|
186
186
|
|
187
187
|
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]} secondary toolbar option should not be displayed`, () => {
|
@@ -211,7 +211,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
211
211
|
|
212
212
|
it('When user clicks on \'Special characters\' secondary toolbar option, then the \'Special characters\' popup should be displayed with \'Special characters\' title and a \'Close\' button', () => {
|
213
213
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
214
|
-
drawingResponsePage.
|
214
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
215
215
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
216
216
|
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCloseButton(), 'visible');
|
217
217
|
});
|
@@ -258,8 +258,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
258
258
|
});
|
259
259
|
|
260
260
|
it('When user clicks on any category icon, then the category flyout should stay open', () => {
|
261
|
-
drawingResponsePage.steps.clickOnCharacterPopupSymbol(
|
262
|
-
drawingResponsePage.
|
261
|
+
drawingResponsePage.steps.clickOnCharacterPopupSymbol('Iuml');
|
262
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
263
263
|
});
|
264
264
|
|
265
265
|
it('CSS of \'Special characters\' popup', { tags: 'css' }, () => {
|
@@ -323,7 +323,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
323
323
|
|
324
324
|
it('When user clicks on \'Math characters\' secondary toolbar option, then the \'Math characters\' popup should be displayed with \'Math characters\' title and a \'Close\' button', () => {
|
325
325
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
326
|
-
drawingResponsePage.
|
326
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
327
327
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
328
328
|
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCloseButton(), 'visible');
|
329
329
|
});
|
@@ -340,7 +340,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
340
340
|
|
341
341
|
it('When user clicks on any category icon, then the category flyout should stay open', () => {
|
342
342
|
drawingResponsePage.steps.clickOnCharacterPopupSymbol(mathCharacters[0].symbols[0]);
|
343
|
-
drawingResponsePage.
|
343
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
344
344
|
});
|
345
345
|
|
346
346
|
it('CSS of \'Math characters\' popup', { tags: 'css' }, () => {
|
@@ -971,7 +971,8 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
971
971
|
drawingResponsePage.tests.checkAccessibilityForSecondaryToolbarOptionPopup();
|
972
972
|
});
|
973
973
|
|
974
|
-
|
974
|
+
//Remove skip once https://redmine.zeuslearning.com/issues/571543 is resolved
|
975
|
+
describe.skip('Preview tab - secondary toolbar options - \'Stroke color\' - content and functionality', { tags: 'smoke' }, () => {
|
975
976
|
abortEarlySetup();
|
976
977
|
before(() => {
|
977
978
|
drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
|
@@ -202,7 +202,8 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
202
202
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
203
203
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
204
204
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
205
|
-
|
205
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
206
|
+
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
206
207
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
207
208
|
});
|
208
209
|
});
|
@@ -99,9 +99,9 @@ describe('Create item page: Number line label - Preview contents in all views',
|
|
99
99
|
});
|
100
100
|
|
101
101
|
it('The user should be able to change the plotted label on the number line', () => {
|
102
|
-
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('
|
103
|
-
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8]);
|
104
|
-
numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [9]);
|
102
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'horizontal', range, -8);
|
103
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-8]);
|
104
|
+
numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [-9]);
|
105
105
|
});
|
106
106
|
|
107
107
|
it('CSS of number line label', { tags: 'css' }, () => {
|
@@ -239,6 +239,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
239
239
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
240
240
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
241
241
|
if (view === 'Grading view') {
|
242
|
+
cy.wait(1000);
|
242
243
|
studentViewPage.steps.submitResponse();
|
243
244
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
244
245
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
@@ -38,6 +38,8 @@ describe('Create item page - Text selection : Preview contents', () => {
|
|
38
38
|
break;
|
39
39
|
case 'Item view':
|
40
40
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
41
|
+
cy.log('Adding wait for the question to load');
|
42
|
+
cy.wait(2000);
|
41
43
|
break;
|
42
44
|
case 'Item preview':
|
43
45
|
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
@@ -117,7 +117,7 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
117
117
|
videoResponsePage.steps.pausePlayback();
|
118
118
|
videoResponsePage.steps.verifyPlaybackElapsedTime((1 + (4 * playbackSpeedMultiplier[index])), 'Standard');
|
119
119
|
videoResponsePage.steps.startPlayback();
|
120
|
-
videoResponsePage.steps.verifyVideoPlaybackTimer('0:
|
120
|
+
videoResponsePage.steps.verifyVideoPlaybackTimer('0:11', '0:12');
|
121
121
|
});
|
122
122
|
}
|
123
123
|
|
@@ -1346,10 +1346,10 @@ export const equationEditorCategoriesAndSymbols = {
|
|
1346
1346
|
ariaLabel: 'GammaUpper',
|
1347
1347
|
displayText: 'Γ'
|
1348
1348
|
},
|
1349
|
-
|
1349
|
+
deltaUppercase: {
|
1350
1350
|
title: 'Delta Upper',
|
1351
1351
|
textElement: null,
|
1352
|
-
ariaLabel: '
|
1352
|
+
ariaLabel: 'DeltaUppercase',
|
1353
1353
|
displayText: 'Δ'
|
1354
1354
|
},
|
1355
1355
|
thetaUpper: {
|
@@ -191,6 +191,7 @@ const steps = {
|
|
191
191
|
cy.wrap($el)
|
192
192
|
.invoke('attr', 'aria-label')
|
193
193
|
.then((ariaLabel) => {
|
194
|
+
cy.log(`Verifying ${ariaLabel} from ${categoryAccordionDisplayName} accordion`)
|
194
195
|
const matchedSymbol = symbolsArray.find(symbol => symbol.ariaLabel.trim().toLowerCase() === ariaLabel.trim().toLowerCase());
|
195
196
|
expect(matchedSymbol).to.not.be.undefined;
|
196
197
|
if (matchedSymbol && matchedSymbol.textElement !== null) {
|
@@ -101,6 +101,7 @@ const selectors = {
|
|
101
101
|
charactersPopupTitle: () => cy.get('[class*="characters__title-container"]'),
|
102
102
|
charactersPopupCloseButton: () => cy.get('[class*="DrawingToolOptionsstyled__ButtonWrapper"]'),
|
103
103
|
charactersPopupCategoryTitle: () => cy.get('[class*="characters__container"] [class*="options__characters__title"]'),
|
104
|
+
charactersPopupCategoryWrapper: () => cy.get('.drawing-tool-options__options__accordion'),
|
104
105
|
charactersPopupCharactersCategoryWrapper: () => cy.get('[class*="characters__characters-wrapper"]'),
|
105
106
|
charactersPopupCharacterSymbol: () => cy.get('[class*="characters__button"]'),
|
106
107
|
|
@@ -662,7 +663,8 @@ const steps = {
|
|
662
663
|
*/
|
663
664
|
clickOnCharacterPopupSymbol: (ariaLabel) => {
|
664
665
|
drawingResponsePage.charactersPopupCharacterSymbol()
|
665
|
-
.
|
666
|
+
.parents('.drawing-tool-options__options__characters__characters-wrapper')
|
667
|
+
.find(`[aria-label="${ariaLabel}"]`)
|
666
668
|
.click();
|
667
669
|
},
|
668
670
|
|
@@ -726,7 +728,11 @@ const steps = {
|
|
726
728
|
.find('span[class*="icon-open"]')
|
727
729
|
.should('exist');
|
728
730
|
});
|
729
|
-
|
731
|
+
drawingResponsePage.charactersPopupCategoryWrapper()
|
732
|
+
.eq(index)
|
733
|
+
.within(() => {
|
734
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCharactersCategoryWrapper(), 'visible');
|
735
|
+
});
|
730
736
|
},
|
731
737
|
|
732
738
|
/**
|
@@ -741,7 +747,11 @@ const steps = {
|
|
741
747
|
.find('span[class*="icon-open"]')
|
742
748
|
.should('not.exist');
|
743
749
|
});
|
744
|
-
|
750
|
+
drawingResponsePage.charactersPopupCategoryWrapper()
|
751
|
+
.eq(index)
|
752
|
+
.within(() => {
|
753
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.charactersPopupCharactersCategoryWrapper(), 'notExist');
|
754
|
+
});
|
745
755
|
},
|
746
756
|
|
747
757
|
verifyPatternRadioButtonIsNotSelected: () => {
|
@@ -62,6 +62,7 @@ const selectors = {
|
|
62
62
|
optionsContainerSpecifyCorrectAnswerSection: () => cy.get('.draggable-wrapper'),
|
63
63
|
dropdownSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-wrapper [aria-haspopup="listbox"]'),
|
64
64
|
dropdownPreviewTab: () => cy.get('[class*="ResponseDropdownComponentstyles__ResponseDropdownWrapper"] [aria-haspopup="listbox"]'),
|
65
|
+
dropdownGradingView: () => cy.get('.dropdown-form-control'),
|
65
66
|
dropdownList: () => cy.get('.dropdown-list-ul'),
|
66
67
|
dropdownWrapperPreviewTab: () => cy.get('[class*="ResponseDropdownComponentstyles__ResponseDropdownWrapper"]'),
|
67
68
|
dropdownListOptions: (ariaLabel = null) => {
|
@@ -1489,10 +1490,11 @@ const steps = {
|
|
1489
1490
|
.within(() => {
|
1490
1491
|
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'exist');
|
1491
1492
|
});
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1493
|
+
//Need to remove the comment once https://redmine.zeuslearning.com/issues/575221 is resolved
|
1494
|
+
// matchingPage.dropdownWrapperPreviewTab()
|
1495
|
+
// .eq(dropdownIndex)
|
1496
|
+
// .find('.drop-down-parent')
|
1497
|
+
// .should('have.css', 'border', `1px solid ${css.color.incorrectAnswer}`);
|
1496
1498
|
},
|
1497
1499
|
|
1498
1500
|
/**
|
@@ -1530,7 +1532,8 @@ const steps = {
|
|
1530
1532
|
* @param {number} dropdownIndex - The index of the disabled dropdown.
|
1531
1533
|
*/
|
1532
1534
|
verifyDropdownIsDisabled: (dropdownIndex) => {
|
1533
|
-
utilities.
|
1535
|
+
utilities.getNthElement(matchingPage.dropdownGradingView(), dropdownIndex)
|
1536
|
+
.should('have.attr', 'disabledlabelopacity', '0.5');
|
1534
1537
|
},
|
1535
1538
|
|
1536
1539
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.220
|
3
|
+
"version": "1.0.220",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|