aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2019-12-26 11:19:26 +0100
committerSonarTech <sonartech@sonarsource.com>2019-12-30 20:46:13 +0100
commitc7b0aaff88f3550c1fc24636e5e45d6ca4da7fb4 (patch)
tree2f5afbe4125a59262e544ed521d6fe3af2aa9f75
parent79d34eddc5d477e6452867f5a466c660ef6ecbbc (diff)
downloadsonarqube-c7b0aaff88f3550c1fc24636e5e45d6ca4da7fb4.tar.gz
sonarqube-c7b0aaff88f3550c1fc24636e5e45d6ca4da7fb4.zip
ITs for branch-like's navigation
-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