aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts
index c725e33fc..6d4c343a7 100644
--- a/vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/pauseInstantiationOnVfModule.e2e.ts
@@ -44,6 +44,8 @@ describe('Create Instance page: Pause after vfModule instantiation ', () => {
addALaCarteVfModuleEcompGeneratedNamingTrue(vnfName, vfModulesNames[0], uuidAndVfModuleNames[0]);
addALaCarteVfModuleEcompGeneratedNamingTrue(vnfName, vfModulesNames[1], uuidAndVfModuleNames[1]);
pauseOnVfModuleInstantiation('node-' + uuidAndVfModuleNames[1], 0)
+ pauseOnVfModuleInstantiation('node-' + uuidAndVfModuleNames[0], 0)
+ removePauseInstantiation('node-'+uuidAndVfModuleNames[0], 0)
mockAsyncBulkResponse();
cy.getDrawingBoardDeployBtn().click();
@@ -53,7 +55,7 @@ describe('Create Instance page: Pause after vfModule instantiation ', () => {
let unPausedVModule = vfModules[vfModulesNames[0]];
const unPausedVModuleObject = unPausedVModule[Object.keys(unPausedVModule)[0]];
- expect(unPausedVModuleObject.pauseInstantiation).equals(undefined);
+ expect(unPausedVModuleObject.pauseInstantiation).equals(null);
let pausedVModule = vfModules[vfModulesNames[1]];
const pausedVModuleObject = pausedVModule[Object.keys(pausedVModule)[0]];
@@ -94,4 +96,12 @@ describe('Create Instance page: Pause after vfModule instantiation ', () => {
.getElementByDataTestsId('context-menu-pause').click({force: true});
}
+ function removePauseInstantiation(nodeId: string, index: number){
+ cy.getElementByDataTestsId(nodeId + '-menu-btn')
+ .click({force: true}).then(() => {
+ cy.wait(500);
+ cy.getElementByDataTestsId('context-menu-removePause').click();
+ })
+ }
+
});