itemengine-cypress-automation 1.0.363-IEI-5423-cypress-39d2c85.0 → 1.0.363-IEI-5423-cypress-f3d8cb0.0

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.
@@ -178,7 +178,10 @@ describe('Create Item page - Image highlight: Customize image highlight style',
178
178
  colorPopupComponent.steps.clickInColorSaturationPalette();
179
179
  imageHighlightPage.steps.clickInAlphaPicker();
180
180
  imageHighlightPage.steps.clickOnOkButton();
181
+ imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
181
182
  imageHighlightPage.steps.verifyEditedBorderOpacityInSpecifyCorrectAnswerSection(2, defaultStateBorderColorWithOpacity);
183
+ imageHighlightPage.steps.switchToPreviewTab();
184
+ imageHighlightPage.steps.verifyEditedBorderOpacityInPreviewtabSection(2, defaultStateBorderColorWithOpacity);
182
185
  });
183
186
 
184
187
  });
@@ -1349,12 +1349,17 @@ const steps = {
1349
1349
  });
1350
1350
  },
1351
1351
 
1352
- verifyEditedBorderOpacityInSpecifyCorrectAnswerSection: (index, opacity) => {
1352
+ /**
1353
+ * @param {number} index index of highlight region
1354
+ * @param {string} colorWithOpacity color to be checked in rgba format
1355
+ * @description this function verifiies the border color of highlight regions in specify correct answer section.
1356
+ */
1357
+ verifyEditedBorderOpacityInSpecifyCorrectAnswerSection: (index, colorWithOpacity) => {
1353
1358
  imageHighlightPage.specifyCorrectAnswerSectionHighlight()
1354
1359
  .eq(index)
1355
1360
  .within(() => {
1356
1361
  utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon(), {
1357
- 'stroke': opacity
1362
+ 'stroke': colorWithOpacity
1358
1363
  });
1359
1364
  });
1360
1365
  },
@@ -1376,6 +1381,23 @@ const steps = {
1376
1381
  });
1377
1382
  });
1378
1383
  },
1384
+ /**
1385
+ * @param {number} index index of highlight region
1386
+ * @param {string} colorWithOpacity color to be checked in rgba format
1387
+ * @description this function verifies the border color of highlight regions in preview tab.
1388
+ */
1389
+ verifyEditedBorderOpacityInPreviewtabSection: (index, colorWithOpacity) => {
1390
+ imageHighlightPage.previewTabQuestionWrapper()
1391
+ .within(() => {
1392
+ imageHighlightPage.previewSectionHighlight()
1393
+ .eq(index)
1394
+ .within(() => {
1395
+ utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon(), {
1396
+ 'stroke': colorWithOpacity
1397
+ });
1398
+ });
1399
+ });
1400
+ },
1379
1401
 
1380
1402
  verifyBorderStyleButtonsVisible: () => {
1381
1403
  utilities.verifyElementVisibilityState(imageHighlightPage.popupBorderStyleButtons().eq(0), 'visible');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.363-IEI-5423-cypress-39d2c85.0",
3
+ "version": "1.0.363-IEI-5423-cypress-f3d8cb0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {