summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src
diff options
context:
space:
mode:
authorikram <ikram@research.att.com>2020-07-15 17:45:37 -0400
committerIttay Stern <ittay.stern@att.com>2020-07-20 06:53:35 +0000
commitd50f96bf6dc183b49c2a5d4e7d729066ac129527 (patch)
tree1ee9f2dc36b621532f96455d9ac0055126ff96b2 /vid-webpack-master/src
parentd2a7755c029d378c531faece1ba44cef48bebae1 (diff)
Add Pause Functionality from Inside VF Module's Edit Dialog
Issue-ID: VID-858 Allow user to choose adding (and removing) Pause points from within the Edit Dialog of the VF Module. Currently, the support of adding is only from the vertical ellipsis menu. Also, there is currently no option of removing the pause point. This functionality will allow this to happen as well since inside the Edit dialog, the option is a checkbox which can now unchecked. Note: removing the pause point from within the vertical ellipse after being added will be covered in a separate user story. However, the desired functionality can still be reached using this commit as describe above. Signed-off-by: ikram <ikram@research.att.com> Change-Id: Icaf5e93bde67938836c42fc417edc278e9335e75
Diffstat (limited to 'vid-webpack-master/src')
-rw-r--r--vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.spec.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.spec.ts b/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.spec.ts
index 6ee318644..0a3e2623b 100644
--- a/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.spec.ts
+++ b/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service.spec.ts
@@ -111,6 +111,19 @@ describe('Shared Controllers Service', () => {
expect (sdncPreload.value).toBe(expected);
});
+ each(
+ [
+ [' checked', true, true],
+ [' not checked', false, false ]
+ ]
+ ).
+ test('pause-instantiation checkbox', (description: string) => {
+ const instance = null;
+ const pauseInstantiation: FormControlModel = service.getPauseInstantiation(instance);
+ expect (pauseInstantiation.displayName).toEqual('Pause upon Completion');
+ expect(pauseInstantiation.dataTestId).toEqual('pauseInstantiation');
+ });
+
test('getlegacyRegion with AAIAIC25 - isVisible true', () => {
const instance = {lcpCloudRegionId : 'AAIAIC25'};
const legacyRegionControl: FormControlModel = service.getLegacyRegion(instance);
@@ -134,6 +147,8 @@ describe('Shared Controllers Service', () => {
expect(control.dataTestId).toEqual('multi-selectPlatform');
expect(control.limitSelection).toEqual(1000);
});
+
+
});
class MockAppStore<T> {