From e4e96b25c659e482609d46f2d007c1d8bafbb47c Mon Sep 17 00:00:00 2001 From: Harsh Vador <58542468+harsh-vador@users.noreply.github.com> Date: Fri, 9 Feb 2024 13:23:04 +0530 Subject: [PATCH] added unit test case of forgot password (#15113) --- .../ui/src/components/AppRouter/AppRouter.tsx | 2 +- ...onent.tsx => ForgotPassword.component.tsx} | 7 +- .../ForgotPassword/ForgotPassword.test.tsx | 107 ++++++++++++++++++ 3 files changed, 113 insertions(+), 3 deletions(-) rename openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/{forgot-password.component.tsx => ForgotPassword.component.tsx} (96%) create mode 100644 openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/ForgotPassword.test.tsx diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AppRouter/AppRouter.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AppRouter/AppRouter.tsx index af24f59a9b1..653644024f9 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AppRouter/AppRouter.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AppRouter/AppRouter.tsx @@ -35,7 +35,7 @@ const PageNotFound = withSuspenseFallback( const ForgotPassword = withSuspenseFallback( React.lazy( - () => import('../../pages/ForgotPassword/forgot-password.component') + () => import('../../pages/ForgotPassword/ForgotPassword.component') ) ); diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/forgot-password.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/ForgotPassword.component.tsx similarity index 96% rename from openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/forgot-password.component.tsx rename to openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/ForgotPassword.component.tsx index 31608d8bb08..4e19c8fb768 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/forgot-password.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/ForgotPassword/ForgotPassword.component.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2022 Collate. + * Copyright 2024 Collate. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -46,7 +46,9 @@ const ForgotPassword = () => { ); return ( -
+
{