Merge pull request #14116 from awanlin/topic/set-search-tooltip-to-filter

Set searchTooltip to Filter
This commit is contained in:
Johan Haals
2022-10-19 10:36:37 +02:00
committed by GitHub
3 changed files with 13 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Set the `searchTooltip` to "Filter" to follow how the `searchPlaceholder` is set making this more consistent
@@ -516,7 +516,9 @@ export function Table<T extends object = {}>(props: TableProps<T>) {
}
data={typeof data === 'function' ? data : tableData}
style={{ width: '100%' }}
localization={{ toolbar: { searchPlaceholder: 'Filter' } }}
localization={{
toolbar: { searchPlaceholder: 'Filter', searchTooltip: 'Filter' },
}}
{...restProps}
/>
</div>
@@ -31,6 +31,10 @@ describe('ProblemsTable', () => {
<ProblemsTable problems={problems} dynatraceBaseUrl="__dynatrace__" />,
</ApiProvider>,
);
expect(await rendered.findByTitle('Search')).toBeInTheDocument();
// Checking for Title from mocked problems
expect(
await rendered.findByText('this IS a big problem'),
).toBeInTheDocument();
});
});