Skip to content

Commit

Permalink
[8.x] [Observability Onboarding] Add different test subjects to the f…
Browse files Browse the repository at this point in the history
…ooter links (#201383) (#201583)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Observability Onboarding] Add different test subjects to the footer
links (#201383)](#201383)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Mykola
Harmash","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-25T12:51:13Z","message":"[Observability
Onboarding] Add different test subjects to the footer links
(#201383)\n\nCloses
#201103","sha":"e44de689fbe7e829a076a5e37fc48092868adaf5","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","backport:prev-major","ci:project-deploy-observability"],"title":"[Observability
Onboarding] Add different test subjects to the footer
links","number":201383,"url":"https://github.com/elastic/kibana/pull/201383","mergeCommit":{"message":"[Observability
Onboarding] Add different test subjects to the footer links
(#201383)\n\nCloses
#201103","sha":"e44de689fbe7e829a076a5e37fc48092868adaf5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201383","number":201383,"mergeCommit":{"message":"[Observability
Onboarding] Add different test subjects to the footer links
(#201383)\n\nCloses
#201103","sha":"e44de689fbe7e829a076a5e37fc48092868adaf5"}}]}]
BACKPORT-->

Co-authored-by: Mykola Harmash <[email protected]>
  • Loading branch information
kibanamachine and mykolaharmash authored Nov 25, 2024
1 parent 2842488 commit 215516b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const Footer: FunctionComponent = () => {
{ defaultMessage: 'Explore demo' }
),
link: URL_DEMO_ENV,
testSubject: 'observabilityOnboardingFooterExploreDemoLink',
},
{
iconUrl: forumIconUrl,
Expand All @@ -65,6 +66,7 @@ export const Footer: FunctionComponent = () => {
{ defaultMessage: 'Open Elastic Discuss forum' }
),
link: URL_FORUM,
testSubject: 'observabilityOnboardingFooterDiscussForumLink',
},
{
iconUrl: docsIconUrl,
Expand All @@ -87,6 +89,7 @@ export const Footer: FunctionComponent = () => {
{ defaultMessage: 'Learn more about all Elastic features' }
),
link: docLinks.links.observability.guide,
testSubject: 'observabilityOnboardingFooterLearnMoreLink',
},
{
iconUrl: supportIconUrl,
Expand All @@ -105,6 +108,7 @@ export const Footer: FunctionComponent = () => {
{ defaultMessage: 'Open Support Hub' }
),
link: helpSupportUrl,
testSubject: 'observabilityOnboardingFooterOpenSupportHubLink',
},
];

Expand All @@ -127,7 +131,7 @@ export const Footer: FunctionComponent = () => {
<EuiText size="xs">
<p>
<EuiLink
data-test-subj="observabilityOnboardingFooterLearnMoreLink"
data-test-subj={section.testSubject}
aria-label={section.linkARIALabel}
href={section.link}
target="_blank"
Expand Down

0 comments on commit 215516b

Please sign in to comment.