}
private updateInterfaceOperation() {
- this.isLoading = true;
+ this.modalServiceNg2.currentModal.instance.dynamicContent.instance.isLoading = true;
const interfaceOperationHandlerComponentInstance: InterfaceOperationHandlerComponent = this.modalInstance.instance.dynamicContent.instance;
const operationUpdated: InterfaceOperationModel = interfaceOperationHandlerComponentInstance.operationToUpdate;
const isArtifactChecked = interfaceOperationHandlerComponentInstance.enableAddArtifactImplementation;
.subscribe((updatedComponentInstance: ComponentInstance) => {
this.componentInstanceSelected = new ComponentInstance(updatedComponentInstance);
this.initComponentInstanceInterfaceOperations();
+ this.modalServiceNg2.currentModal.instance.dynamicContent.instance.isLoading = false;
+ this.modalServiceNg2.closeCurrentModal();
+ }, () => {
+ this.modalServiceNg2.currentModal.instance.dynamicContent.instance.isLoading = false;
+ this.modalServiceNg2.closeCurrentModal();
});
- this.modalServiceNg2.closeCurrentModal();
- this.isLoading = false;
}
loadDeployedArtifacts() {
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.
*/
}
}
+ 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();
}
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) {