Skip to content

Commit

Permalink
fix: of data-testid for elements
Browse files Browse the repository at this point in the history
  • Loading branch information
obstar committed Nov 28, 2023
1 parent d6ee3bd commit 28d58d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/ui/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Alert = ({

if (confirmButtonText && actionConfirm) {
buttons.push({
id: "confirm-alert-button",
text: confirmButtonText,
role: "confirm",
handler: () => {
Expand All @@ -30,6 +31,7 @@ const Alert = ({

if (cancelButtonText) {
buttons.push({
id: "cancel-alert-button",
text: cancelButtonText,
role: "cancel",
handler: () => {
Expand Down
6 changes: 3 additions & 3 deletions src/ui/pages/GenerateSeedPhrase/GenerateSeedPhrase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ const GenerateSeedPhrase = () => {
/>
}
>
<h2 data-testid="screen-title">
<h2 data-testid={`${pageId}-title`}>
{i18n.t("generateseedphrase.onboarding.title")}
</h2>
<p data-testid="page-paragraph-top">
<p data-testid={`${pageId}-paragraph-top`}>
{i18n.t("generateseedphrase.onboarding.paragraph.top")}
</p>
<MnemonicLengthSegment
Expand All @@ -144,7 +144,7 @@ const GenerateSeedPhrase = () => {
hideSeedPhrase={hideSeedPhrase}
setHideSeedPhrase={setHideSeedPhrase}
/>
<p data-testid="page-paragraph-bottom">
<p data-testid={`${pageId}-paragraph-bottom`}>
{i18n.t("generateseedphrase.onboarding.paragraph.bottom")}
</p>
<div className="terms-and-conditions">
Expand Down

0 comments on commit 28d58d0

Please sign in to comment.