]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13755 Add full path tootip on directory facet.
authorMathieu Suen <mathieu.suen@sonarsource.com>
Fri, 4 Sep 2020 12:25:54 +0000 (14:25 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 8 Sep 2020 20:07:13 +0000 (20:07 +0000)
server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx

index 01de14c13e4cbcebcb4061592cf4d52787354c3b..d00d2b91ae598e176a5e5b49f9e948fa84100676 100644 (file)
@@ -53,7 +53,7 @@ export default class DirectoryFacet extends React.PureComponent<Props> {
   };
 
   getSearchResultText = (directory: TreeComponentWithPath) => {
-    return directory.name;
+    return directory.path;
   };
 
   handleSearch = (query: string, page: number) => {
index 503b792d70eea965e24481c4f73bcd0bd39f0f7c..d08dbe2034865813d7fd506204d0ce30d79cae6a 100644 (file)
@@ -70,7 +70,7 @@ describe("ListStyleFacet's callback props", () => {
   const instance = wrapper.instance();
 
   it('#getSearchResultText()', () => {
-    expect(instance.getSearchResultText({ name: 'bar' } as TreeComponentWithPath)).toBe('bar');
+    expect(instance.getSearchResultText({ path: 'bar' } as TreeComponentWithPath)).toBe('bar');
   });
 
   it('#getSearchResultKey()', () => {