aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx4
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap12
2 files changed, 9 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx
index 133f3442c61..00bbdddccfc 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx
@@ -104,7 +104,9 @@ export function CurrentBranchLike(props: CurrentBranchLikeProps) {
return (
<span className="display-flex-center flex-shrink text-ellipsis">
<BranchLikeIcon branchLike={currentBranchLike} />
- <span className="spacer-left spacer-right flex-shrink text-ellipsis" title={displayName}>
+ <span
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
+ title={displayName}>
{displayName}
</span>
{additionalIcon()}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
index 98676917267..40ee3ab13ab 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`CurrentBranchLikeRenderer should render correctly for application when
}
/>
<span
- className="spacer-left spacer-right flex-shrink text-ellipsis"
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
title="master"
>
master
@@ -39,7 +39,7 @@ exports[`CurrentBranchLikeRenderer should render correctly for application when
}
/>
<span
- className="spacer-left spacer-right flex-shrink text-ellipsis"
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
title="master"
>
master
@@ -62,7 +62,7 @@ exports[`CurrentBranchLikeRenderer should render correctly for application when
}
/>
<span
- className="spacer-left spacer-right flex-shrink text-ellipsis"
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
title="master"
>
master
@@ -117,7 +117,7 @@ exports[`CurrentBranchLikeRenderer should render correctly for project when bran
}
/>
<span
- className="spacer-left spacer-right flex-shrink text-ellipsis"
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
title="master"
>
master
@@ -149,7 +149,7 @@ exports[`CurrentBranchLikeRenderer should render correctly for project when ther
}
/>
<span
- className="spacer-left spacer-right flex-shrink text-ellipsis"
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
title="master"
>
master
@@ -173,7 +173,7 @@ exports[`CurrentBranchLikeRenderer should render correctly for project when ther
}
/>
<span
- className="spacer-left spacer-right flex-shrink text-ellipsis"
+ className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
title="master"
>
master