itemengine-cypress-automation 1.0.420 → 1.0.422-fixedFlakyChartFile23July-d805336.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.
@@ -336,8 +336,8 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
336
336
|
});
|
337
337
|
|
338
338
|
//Point labels
|
339
|
-
it('When user updates a point label, then the undo and reset button should be displayed in enabled state',
|
340
|
-
chartsLinePage.steps.
|
339
|
+
it('When user updates a point label, then the undo and reset button should be displayed in enabled state', () => {
|
340
|
+
chartsLinePage.steps.editPointLabelInPreviewTabUsingMouseOver(0, 'Edited point 1');
|
341
341
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
342
342
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsResetButton());
|
343
343
|
});
|
@@ -280,6 +280,21 @@ const steps = {
|
|
280
280
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), pointIndex), pointLabel);
|
281
281
|
},
|
282
282
|
|
283
|
+
/**
|
284
|
+
* @description Edit point label in preview tab for line chart with alternate hover method
|
285
|
+
* @param {number} pointIndex Index of the point to be edited
|
286
|
+
* @param {string} pointLabel Label to be given to the point
|
287
|
+
*/
|
288
|
+
editPointLabelInPreviewTabUsingMouseOver: (pointIndex, pointLabel) => {
|
289
|
+
utilities.triggerMouseover(utilities.getNthElement(chartsLinePage.previewTabPoint(), pointIndex));
|
290
|
+
chartsLinePage.barAndPointTooltipLabelButton()
|
291
|
+
.click();
|
292
|
+
chartsLinePage.steps.addInputToChartLabelPopupInputField(pointLabel);
|
293
|
+
chartsLinePage.steps.saveGraphLabelPopup();
|
294
|
+
utilities.hoverAwayFromElement();
|
295
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), pointIndex), pointLabel);
|
296
|
+
},
|
297
|
+
|
283
298
|
/**
|
284
299
|
* @description Delete point in select chart type section
|
285
300
|
* @param {number} pointIndex Index of the point to be deleted
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.422-fixedFlakyChartFile23July-d805336.0",
|
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
|
+
}
|