From d6890fce461c040c2776dfdedd47be282a29f877 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Mon, 25 Nov 2019 11:51:14 +0000 Subject: Fix welcome screen close timeout The welcome screen close timeout is triggering even if you close the welcome window. After 4 seconds it forces the user to go to the home screen even if it is already in another screen. The timeout was also the cause for one known problem in the sanity ui test "onapOnboardVNFflow". Adds also a print screen to the ui tests, to check if the resource was really clicked. Removes invalids "throws Exception" declarations that were being handled in the main test method "Vf.changeInstanceNameInVfTest", that was catching also assertions errors. Change-Id: Idff26b1ba5b199482e68cc50532fa20f4f834e34 Issue-ID: SDC-2648 Signed-off-by: andre.schmid --- catalog-ui/src/app/view-models/welcome/welcome-view.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'catalog-ui') diff --git a/catalog-ui/src/app/view-models/welcome/welcome-view.ts b/catalog-ui/src/app/view-models/welcome/welcome-view.ts index 9e88cb66f7..5ed7159d79 100644 --- a/catalog-ui/src/app/view-models/welcome/welcome-view.ts +++ b/catalog-ui/src/app/view-models/welcome/welcome-view.ts @@ -49,12 +49,13 @@ export class WelcomeViewModel { } private initScope = ():void => { - this.$scope.onCloseButtonClick = ():void => { + let timeout = window.setTimeout(():void => { this.$state.go("dashboard", {}); - }; - window.setTimeout(():void => { + }, 4000); + this.$scope.onCloseButtonClick = ():void => { + window.clearTimeout(timeout); this.$state.go("dashboard", {}); - },4000); + } }; private init = ():void => { -- cgit 1.2.3-korg