From f2c0a4118c3c0b6360b639622766543bd754b59c Mon Sep 17 00:00:00 2001 From: JerzySzachniewicz Date: Fri, 12 Feb 2021 13:53:13 +0100 Subject: Creation of Vendor Licensing Model is an optional step in VSP onboarding Issue-ID: SDC-3471 Signed-off-by: JerzySzachniewicz Change-Id: Icb98d0832c49939e200ece77f4ca26744cb82222 --- .../landingPage/landingPage.test.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'openecomp-ui/test/softwareProduct/landingPage') diff --git a/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js b/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js index 0b99933a7f..3928a3de95 100644 --- a/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js +++ b/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js @@ -107,6 +107,34 @@ describe('Software Product Landing Page: ', function () { expect(vspLandingView).toBeTruthy(); }); + it('vsp licence agreement type change', () => { + const params = { + ...currentScreen.props, + currentSoftwareProduct, + componentsList: VSPComponentsFactory.buildList(2) + }; + const e = { target: { + value: 'INTERNAL' + }}; + const obj = {dummyFunction: x => true}; + const store = storeCreator(); + let vspLandingView = TestUtils.renderIntoDocument( + + + + ); + let vspLandingViewWrapper = TestUtils.findRenderedComponentWithType( + vspLandingView, + SoftwareProductLandingPageView + ); + const spy = jest.spyOn(obj, "dummyFunction"); + vspLandingViewWrapper.licenceChange(e, currentSoftwareProduct, obj.dummyFunction); + expect(spy).toHaveBeenCalled(); + expect(currentSoftwareProduct.licenseType).toBe("INTERNAL"); + expect(vspLandingViewWrapper).toBeTruthy(); + + }) + it('vsp landing handleOnDragEnter test ', () => { const params = { -- cgit