aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2023-02-06 17:15:46 +0100
committersonartech <sonartech@sonarsource.com>2023-02-07 20:02:53 +0000
commit58a84e5792b3af335fb7ac67d35e18cdd9c92336 (patch)
treed1d6f0edff004797c8ae1d52b79a3cef80c3d33b /server
parentb51a3bd354c6739b3a82e50b163992384e7b640d (diff)
downloadsonarqube-58a84e5792b3af335fb7ac67d35e18cdd9c92336.tar.gz
sonarqube-58a84e5792b3af335fb7ac67d35e18cdd9c92336.zip
SONAR-18342 Multiple links have the same programmatic links but different targets
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx5
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap4
2 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx
index 0724e81957d..305f660c19e 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx
@@ -130,6 +130,11 @@ export default class EvolutionDeprecated extends React.PureComponent<Props> {
<Link
className="link-no-underline"
to={getDeprecatedActiveRulesUrl({ qprofile: profile.key })}
+ aria-label={translateWithParameters(
+ 'quality_profile.lang_deprecated_x_rules',
+ profile.languageName,
+ profile.activeDeprecatedRuleCount
+ )}
>
{translateWithParameters(
'quality_profile.x_rules',
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
index 12606344d36..e2443422339 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
@@ -37,6 +37,7 @@ exports[`should render correctly 1`] = `
JavaScript
,
<ForwardRef(Link)
+ aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.4"
className="link-no-underline"
to={
{
@@ -83,6 +84,7 @@ exports[`should render correctly 1`] = `
JavaScript
,
<ForwardRef(Link)
+ aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.3"
className="link-no-underline"
to={
{
@@ -122,6 +124,7 @@ exports[`should render correctly 1`] = `
JavaScript
,
<ForwardRef(Link)
+ aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.2"
className="link-no-underline"
to={
{
@@ -154,6 +157,7 @@ exports[`should render correctly 1`] = `
JavaScript
,
<ForwardRef(Link)
+ aria-label="quality_profile.lang_deprecated_x_rules.JavaScript.2"
className="link-no-underline"
to={
{