From 79960d4a9de4b9dfce800c45b24816d30bd0d4d3 Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Fri, 4 Sep 2020 14:25:54 +0200 Subject: [PATCH] SONAR-13755 Add full path tootip on directory facet. --- .../src/main/js/apps/issues/sidebar/DirectoryFacet.tsx | 2 +- .../js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx index 01de14c13e4..d00d2b91ae5 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx @@ -53,7 +53,7 @@ export default class DirectoryFacet extends React.PureComponent { }; getSearchResultText = (directory: TreeComponentWithPath) => { - return directory.name; + return directory.path; }; handleSearch = (query: string, page: number) => { diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx index 503b792d70e..d08dbe20348 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx @@ -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()', () => { -- 2.39.5