Skip to content

Commit

Permalink
Change testid into componentid
Browse files Browse the repository at this point in the history
  • Loading branch information
sahandilshan committed Jun 10, 2024
1 parent dd77934 commit 55667fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const BrandingAIBanner: FunctionComponent = (): ReactElement => {
<TextField
name="brandingAIInput"
className="branding-ai-input-field mt-5"
data-componentid="branding-ai-input-field"
placeholder={ t("branding:ai.banner.input.placeholder") }
fullWidth
inputProps={ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const LoginFlowAIBanner: FunctionComponent<IdentifiableComponentInterface> = (
>
<TextField
name="loginFlowInput"
data-testid="login-flow-ai-input-field"
data-componentid="login-flow-ai-input-field"
className="login-flow-ai-input-field"
placeholder={ t("ai:aiLoginFlow.banner.input.placeholder") }
fullWidth
Expand Down Expand Up @@ -284,7 +284,7 @@ const LoginFlowAIBanner: FunctionComponent<IdentifiableComponentInterface> = (
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") }
</Button>
Expand All @@ -303,6 +303,8 @@ const LoginFlowAIBanner: FunctionComponent<IdentifiableComponentInterface> = (
>
<Card
className="login-flow-ai-banner-history-card"
data-componentid={
`login-flow-ai-banner-history-card-${ index }` }
onClick={ () => replacePrompt(prompt) }
>
<CardContent>
Expand Down
2 changes: 1 addition & 1 deletion features/common.ai.v1/components/ai-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
</Button>
Expand Down
2 changes: 1 addition & 1 deletion features/common.ai.v1/components/ai-loading-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const AILoadingScreen = (props: AILoadingScreenProps): ReactElement => {
!isAnimatedBotDisabled && (
<div
className="ai-loading-screen-animation-container"
data-testid="ai-loading-screen-animation"
data-componentid="ai-loading-screen-animation-container"
>
<AIBotAnimatedWithBackGround />
</div>
Expand Down

0 comments on commit 55667fc

Please sign in to comment.