aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2019-11-25 11:51:14 +0000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-12-01 15:41:05 +0000
commitd6890fce461c040c2776dfdedd47be282a29f877 (patch)
tree4c24ed63e1cfab2fcbc0c01da6068de1a2d04d68 /catalog-ui
parent4082d3936832a2b6e3ba6c025ed5decf97baacbc (diff)
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 <andre.schmid@est.tech>
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/view-models/welcome/welcome-view.ts9
1 files changed, 5 insertions, 4 deletions
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 => {