From: Einat Vinouze Date: Wed, 1 Jan 2020 11:40:56 +0000 (+0200) Subject: Remove network after loading a template - cypress test X-Git-Tag: 6.0.1~19^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6e55393f61a75e24429af4dac1dfd14327b4c7c5;p=vid.git Remove network after loading a template - cypress test Issue-ID: VID-724 Signed-off-by: Einat Vinouze Change-Id: Id711480e3f48646516874a70711cc2d0d0912b19 Signed-off-by: Einat Vinouze --- diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts index e481c3e8b..c83f92d4e 100644 --- a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts @@ -261,6 +261,24 @@ describe('Drawing Board: Instantiation Templates', function () { assertThatBodyFromDeployRequestEqualsToTemplateFromBackEnd_network(); }); + it(`Given a stored template of Network - User can remove existing network`, () => { + + loadDrawingBoardWithRecreateModeNetwork(); + + nodeAction('node-01f4c475-3f89-4f00-a2f4-39a873dba0ae-SR-IOV Provider 2-1', 'Remove'); + let removed_network_Path = [ + "networks", "SR-IOV Provider 2-1", + ]; + + let removed_network_counter_Path = [ + "existingNetworksCounterMap", "f6b6d141-0d4c-427d-ad35-797f3d1abe71", + ]; + + assertThatBodyFromDeployRequestEqualsToTemplateFromBackEnd_network([ + {path: removed_network_Path, value: undefined}, + {path: removed_network_counter_Path, value: 0}, + ]); + }); }); });