Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ test('Search icon should highlight emitter', async () => {
expect(mockedProps.onHighlightFilterSource).toHaveBeenCalled();
});
});

test('Search icon should have an accessible name', async () => {
setup(mockedProps);
await waitFor(() => {
expect(
screen.getByRole('button', { name: 'Locate the chart' }),
).toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const CrossFilterChartTitle = (props: {
data-test="cross-filters-highlight-emitter"
role="button"
tabIndex={0}
aria-label={t('Locate the chart')}
onClick={onHighlightFilterSource}
/>
</Tooltip>
Expand Down
Loading