diff --git a/apps/ledger-live-desktop/src/renderer/icons/ExternalLink.tsx b/apps/ledger-live-desktop/src/renderer/icons/ExternalLink.tsx index 2547d369bfc5..2ec0e88243ba 100644 --- a/apps/ledger-live-desktop/src/renderer/icons/ExternalLink.tsx +++ b/apps/ledger-live-desktop/src/renderer/icons/ExternalLink.tsx @@ -5,9 +5,18 @@ const path = ( d="M12.19 2.75H10a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75v4a.75.75 0 1 1-1.5 0V3.81L7.197 9.865a.75.75 0 0 1-1.06-1.061l6.052-6.053zm-.94 5.917a.75.75 0 1 1 1.5 0v4c0 1.15-.933 2.083-2.083 2.083H3.333a2.083 2.083 0 0 1-2.083-2.083V5.333c0-1.15.933-2.083 2.083-2.083h4a.75.75 0 1 1 0 1.5h-4a.583.583 0 0 0-.583.583v7.334c0 .322.261.583.583.583h7.334a.583.583 0 0 0 .583-.583v-4z" /> ); -const ExternalLink = ({ size, dataTestId }: { size: number; dataTestId?: string }) => ( - +const ExternalLink = ({ + size, + dataTestId, + url, +}: { + size: number; + dataTestId?: string; + url?: string; +}) => ( + {path} ); + export default ExternalLink; diff --git a/apps/ledger-live-desktop/src/renderer/screens/settings/RowItem.tsx b/apps/ledger-live-desktop/src/renderer/screens/settings/RowItem.tsx index 1c1da3c943bb..1c195764600c 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/settings/RowItem.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/settings/RowItem.tsx @@ -21,7 +21,7 @@ const AboutRowItem = ({ url, title, desc, dataTestId }: Props) => { cursor: "pointer", }} > - + ); diff --git a/apps/ledger-live-desktop/src/renderer/screens/settings/sections/Help/index.tsx b/apps/ledger-live-desktop/src/renderer/screens/settings/sections/Help/index.tsx index 6dc057559e2c..e36515b9c698 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/settings/sections/Help/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/settings/sections/Help/index.tsx @@ -31,7 +31,12 @@ const SectionHelp = () => { url={urls.chatbot} /> ) : ( - + )} { }, ); }); + +test.describe("Ledger Support (web link)", () => { + test.use({ + userdata: "skip-onboarding", + }); + + test( + "Verify that user can access to Ledger Support (Web Link)", + { + annotation: { + type: "TMS", + description: "B2CQA-820", + }, + }, + async ({ app }) => { + await addTmsLink(getDescription(test.info().annotations, "TMS").split(", ")); + + await app.layout.goToSettings(); + await app.settings.goToHelpTab(); + + await app.settings.expectLedgerSupportUrlToBeCorrect(); + }, + ); +});