From 389eb1656860a8cc2cd0f2cc78c8ed813810b07e Mon Sep 17 00:00:00 2001 From: vasraz Date: Fri, 23 Jul 2021 12:30:04 +0100 Subject: Fix intermittent 'Tooltip integration test failure' Change-Id: Ib1a494a7f9f36e4744f79e12c7a7eea5ec6715fa Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3651 --- .../pages/component/workspace/CompositionCanvasComponent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'integration-tests/src/test/java/org/onap') diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionCanvasComponent.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionCanvasComponent.java index 1c5793f3bd..e29df1583a 100644 --- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionCanvasComponent.java +++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/CompositionCanvasComponent.java @@ -135,7 +135,7 @@ public class CompositionCanvasComponent extends AbstractPageObject { int offsetFromElementCenter = 10; actions.moveToElement(canvasWebElement, positionFromCenter.getX() - offsetFromElementCenter, positionFromCenter.getY() + offsetFromElementCenter) - .pause(Duration.ofSeconds(1)) + .pause(Duration.ofMillis(500)) .click() .perform(); ExtentTestActions.takeScreenshot(Status.INFO, "canvas-node-selected", String.format("'%s' was selected", elementName)); @@ -259,11 +259,11 @@ public class CompositionCanvasComponent extends AbstractPageObject { new Actions(webDriver) .moveToElement(canvasWebElement, greenPlusPositionFromCenter.getX(), greenPlusPositionFromCenter.getY()) .moveByOffset(3, 3).moveByOffset(-3, -3) - .pause(Duration.ofSeconds(2)) + .pause(Duration.ofMillis(500)) .clickAndHold() - .pause(Duration.ofSeconds(1)) + .pause(Duration.ofMillis(500)) .moveToElement(canvasWebElement, toElementPositionFromCenter.getX(), toElementPositionFromCenter.getY()) - .pause(Duration.ofSeconds(1)) + .pause(Duration.ofMillis(500)) .release() .perform(); return new RelationshipWizardComponent(webDriver); -- cgit 1.2.3-korg