itemengine-cypress-automation 1.0.381-PR-fixes-1c28a3d.0 → 1.0.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +2 -2
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/package.json +2 -2
@@ -233,7 +233,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
233
233
|
utilities.verifyInnerText(drawingResponsePage.defaultStrokeFontColorLabel(), 'Default stroke/font colors');
|
234
234
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultStrokeColorsWrapper(), 'visible');
|
235
235
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(0, 'rgb(0, 112, 128)');
|
236
|
-
} else if(!toolbarOption.additionalOptions.includes(' StrokeFontColor')) {
|
236
|
+
} else if (!toolbarOption.additionalOptions.includes(' StrokeFontColor')) {
|
237
237
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultStrokeColorsWrapper(), 'notExist');
|
238
238
|
}
|
239
239
|
else if (toolbarOption.additionalOptions.includes(' FillColor')) {
|
@@ -241,7 +241,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
241
241
|
utilities.verifyInnerText(drawingResponsePage.defaultFillColorsLabel(), 'Default fill colors');
|
242
242
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultFillColorsWrapper(), 'visible');
|
243
243
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(1, 'rgb(0, 224, 255)');
|
244
|
-
} else if(!toolbarOption.additionalOptions.includes(' FillColor')) {
|
244
|
+
} else if (!toolbarOption.additionalOptions.includes(' FillColor')) {
|
245
245
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultNewFillColorsWrapper(), 'notExist');
|
246
246
|
}
|
247
247
|
else if (toolbarOption.additionalOptions.includes(' SpecialChar')) {
|
@@ -249,7 +249,7 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
249
249
|
utilities.verifyElementDisabledClass(drawingResponsePage.customizeSpecialCharactersLabel());
|
250
250
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersCheckbox(), 'exist');
|
251
251
|
utilities.verifyElementDisabled(drawingResponsePage.customizeSpecialCharactersCheckbox());
|
252
|
-
} else if(!toolbarOption.additionalOptions.includes(' SpecialChar')) {
|
252
|
+
} else if (!toolbarOption.additionalOptions.includes(' SpecialChar')) {
|
253
253
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersLabel(), 'notExist');
|
254
254
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersCheckbox(), 'notExist');
|
255
255
|
}
|
@@ -120,7 +120,7 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
120
120
|
|
121
121
|
it(`By default, the ${equationEditorCategoriesAndSymbols['intermediate'].displayName} category accordion should be expanded and other all accordions should be in collapsed state`, () => {
|
122
122
|
for (let index = 2; index < allCategories.length; index++) {
|
123
|
-
if (allCategories[index] === '
|
123
|
+
if (allCategories[index] === 'intermediate') {
|
124
124
|
createCustomCategoryFlyout.steps.verifyCategoryAccordionIsExpanded(`${equationEditorCategoriesAndSymbols[allCategories[index]].displayName}`);
|
125
125
|
} else {
|
126
126
|
createCustomCategoryFlyout.steps.verifyCategoryAccordionIsCollapsed(`${equationEditorCategoriesAndSymbols[allCategories[index]].displayName}`);
|
@@ -135,7 +135,7 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
135
135
|
|
136
136
|
allCategories.slice(2).forEach((categoryName) => {
|
137
137
|
it(`On clicking the ${equationEditorCategoriesAndSymbols[categoryName].displayName} category accordion the category should be expanded`, () => {
|
138
|
-
if (categoryName != '
|
138
|
+
if (categoryName != 'intermediate') {
|
139
139
|
createCustomCategoryFlyout.steps.expandCategoryAccordion(`${equationEditorCategoriesAndSymbols[categoryName].displayName}`)
|
140
140
|
}
|
141
141
|
});
|
@@ -432,7 +432,7 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
432
432
|
|
433
433
|
it('When the user enters the character less than the minimum character limit value set by the user and focus out of response field, then the warning message \'Minimum # characters are required\' should be displayed', () => {
|
434
434
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Lo');
|
435
|
-
shortTextResponsePage.steps.
|
435
|
+
shortTextResponsePage.steps.focusOutOfResponseInputFieldPreviewTab();
|
436
436
|
shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Minimum 3 characters are required.');
|
437
437
|
});
|
438
438
|
|
@@ -493,7 +493,7 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
493
493
|
it('When the user enters the word less than the minimum word limit value set by the user and focus out of response field, then the warning message \'Minimum 3 words are required\' should be displayed', () => {
|
494
494
|
cy.log('Pre-step: Clearing the response field');
|
495
495
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('abc abc');
|
496
|
-
shortTextResponsePage.steps.
|
496
|
+
shortTextResponsePage.steps.focusOutOfResponseInputFieldPreviewTab();
|
497
497
|
shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Minimum 3 words are required.');
|
498
498
|
});
|
499
499
|
|
@@ -21,7 +21,7 @@ const selectors = {
|
|
21
21
|
previewTabDesmosToolKeypad: () => cy.get('[class*="DesmosToolstyles__DesmosToolViewWrapper"] .dcg-basic-keypad-container'),
|
22
22
|
previewTabDesmosToolKeypadKeys: (ariaLabel = null) => {
|
23
23
|
if (ariaLabel) {
|
24
|
-
return cy.get(`.dcg-basic-keypad .dcg-keypad-btn[aria-label*="${ariaLabel}"]`)
|
24
|
+
return cy.get(`.dcg-basic-keypad .dcg-keypad-btn[aria-label*="${ariaLabel}"]:visible`)
|
25
25
|
} else {
|
26
26
|
return cy.get('.dcg-basic-keypad .dcg-keypad-btn')
|
27
27
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.381
|
3
|
+
"version": "1.0.381",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -52,4 +52,4 @@
|
|
52
52
|
"devDependencies": {
|
53
53
|
"@applitools/eyes-cypress": "^3.47.0"
|
54
54
|
}
|
55
|
-
}
|
55
|
+
}
|