aboutsummaryrefslogtreecommitdiffstats
path: root/integration-tests/src/test/java/org/onap
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2022-04-12 10:01:03 +0100
committerMichael Morris <michael.morris@est.tech>2022-04-27 11:07:18 +0000
commit1fdab5a0f3c89c6e011ee45c787a14a6f785fa88 (patch)
treef8e61edfe5481942b6b111a6938e999ceea164e0 /integration-tests/src/test/java/org/onap
parent1f1590b156d5a3ad86dceb93cf6369770f03ba4c (diff)
Add UI feedback when saving a interface operation
Issue-ID: SDC-3969 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ic75765473ddca16e351f9cde27a5e8d336413325
Diffstat (limited to 'integration-tests/src/test/java/org/onap')
-rw-r--r--integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/InterfaceDefinitionOperationsModal.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/InterfaceDefinitionOperationsModal.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/InterfaceDefinitionOperationsModal.java
index 5a2cb2f5d5..78828d7bbe 100644
--- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/InterfaceDefinitionOperationsModal.java
+++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/pages/component/workspace/InterfaceDefinitionOperationsModal.java
@@ -32,6 +32,8 @@ import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
+import static org.onap.sdc.frontend.ci.tests.utilities.GeneralUIUtils.waitForLoader;
+
/**
* Represents the Composition Interface Operations Modal.
*/
@@ -63,6 +65,14 @@ public class InterfaceDefinitionOperationsModal extends AbstractPageObject {
}
}
+ public void isUnloaded() {
+ waitForElementInvisibility(By.xpath(XpathSelector.TITLE_SPAN.getXPath()));
+ waitForElementInvisibility(By.xpath(XpathSelector.INTERFACE_NAME_LABEL.getXPath()));
+ waitForElementInvisibility(By.xpath(XpathSelector.OPERATION_NAME_LABEL.getXPath()));
+ waitForElementInvisibility(By.xpath(XpathSelector.SAVE_BTN.getXPath()));
+ waitForElementInvisibility(By.xpath(XpathSelector.CANCEL_BTN.getXPath()));
+ }
+
private void clickOnSave() {
waitToBeClickable(By.xpath(XpathSelector.SAVE_BTN.getXPath())).click();
}
@@ -96,9 +106,7 @@ public class InterfaceDefinitionOperationsModal extends AbstractPageObject {
addInputComponent.fillValue(inputData);
});
clickOnSave();
- //there is no feedback from the UI to check if the update was successful. Forcing a wait time trying to guarantee that,
- // although time is never a guarantee in this case.
- new Actions(webDriver).pause(Duration.ofSeconds(5)).perform();
+ waitForLoader();
}
private void fillDescription(final String description) {