Skip to content

Commit 0903942

Browse files
authored
Merge pull request #3671 from IntersectMBO/3669-missing-testids-and-typo-on-updated-landing-page-components
fix(#3669): missing testIds on home page cards
2 parents 99ba41d + c158a74 commit 0903942

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

govtool/frontend/src/components/molecules/HomeCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const HomeCard = ({ title, description, onCardClick }: Props) => (
2727
component="button"
2828
role="button"
2929
aria-label={`${title}. ${description}`}
30+
dataTestId={`home-card-${title.replace(/\s+/g, "-").toLowerCase()}`}
3031
>
3132
<Typography component="h3">{title}</Typography>
3233
<Typography variant="caption">{description}</Typography>

govtool/frontend/src/i18n/locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,10 @@
605605
},
606606
"proposeGovernanceAction": {
607607
"description": "Create a discussion for an Action, and submit it on-chain.",
608-
"title": "Propose a Governace Action"
608+
"title": "Propose a Governance Action"
609609
},
610610
"registerToVote": {
611-
"description": "Register yourself to vote on all Governace Actions",
611+
"description": "Register yourself to vote on all Governance Actions",
612612
"title": "Register to Vote"
613613
},
614614
"delegateVote": {
@@ -621,7 +621,7 @@
621621
},
622622
"voteOnGovernanceActions": {
623623
"description": "Cast your vote on Governance Actions as yourself or as a DRep.",
624-
"title": "Vote on Governace Actions"
624+
"title": "Vote on Governance Actions"
625625
}
626626
}
627627
},

0 commit comments

Comments
 (0)