From 55667fc952fad6fc794581663aa179ca126147f0 Mon Sep 17 00:00:00 2001 From: sahandilshan Date: Mon, 10 Jun 2024 08:54:09 +0530 Subject: [PATCH] Change testid into componentid --- .../admin.branding.ai.v1/components/branding-ai-banner.tsx | 1 + .../components/login-flow-ai-banner.tsx | 6 ++++-- features/common.ai.v1/components/ai-banner.tsx | 2 +- features/common.ai.v1/components/ai-loading-screen.tsx | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/features/admin.branding.ai.v1/components/branding-ai-banner.tsx b/features/admin.branding.ai.v1/components/branding-ai-banner.tsx index d765e7dd809..e6c929b4ae5 100644 --- a/features/admin.branding.ai.v1/components/branding-ai-banner.tsx +++ b/features/admin.branding.ai.v1/components/branding-ai-banner.tsx @@ -125,6 +125,7 @@ const BrandingAIBanner: FunctionComponent = (): ReactElement => { = ( > = ( color="secondary" size="small" className="login-flow-ai-banner-history-button" - data-testid="login-flow-ai-banner-history-button" + data-componentid="login-flow-ai-banner-history-button" > { t("ai:aiLoginFlow.promptsHistory") } @@ -303,6 +303,8 @@ const LoginFlowAIBanner: FunctionComponent = ( > replacePrompt(prompt) } > diff --git a/features/common.ai.v1/components/ai-banner.tsx b/features/common.ai.v1/components/ai-banner.tsx index 3ed14d2dac6..16f03539293 100644 --- a/features/common.ai.v1/components/ai-banner.tsx +++ b/features/common.ai.v1/components/ai-banner.tsx @@ -81,7 +81,7 @@ const AIBanner = (props: AIBannerProps): ReactElement => { onClick={ onActionButtonClick } color="primary" variant="contained" - data-testid="ai-banner-action-button" + data-componentid="ai-banner-action-button" > { actionButtonText } diff --git a/features/common.ai.v1/components/ai-loading-screen.tsx b/features/common.ai.v1/components/ai-loading-screen.tsx index 2306687fdf6..c7765d5475e 100644 --- a/features/common.ai.v1/components/ai-loading-screen.tsx +++ b/features/common.ai.v1/components/ai-loading-screen.tsx @@ -86,7 +86,7 @@ const AILoadingScreen = (props: AILoadingScreenProps): ReactElement => { !isAnimatedBotDisabled && (