Skip to content

Commit

Permalink
adjust tests and aria labels
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiqueclarke committed Oct 18, 2021
1 parent 3180468 commit ec404b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function SyntheticsAddData() {
return (
<EuiHeaderLink
aria-label={i18n.translate('xpack.observability.page_header.addUptimeDataLink.label', {
defaultMessage: 'Navigate to a tutorial about adding Uptime data',
defaultMessage: 'Navigate to the Elastic Synthetics integration to add Uptime data',
})}
href={kibana.services?.application?.getUrlForApp('/integrations/detail/synthetics/overview')}
color="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ describe('ActionMenuContent', () => {
it('renders Add Data link', () => {
const { getByLabelText, getByText } = render(<ActionMenuContent />);

const addDataAnchor = getByLabelText('Navigate to a tutorial about adding Uptime data');
const addDataAnchor = getByLabelText(
'Navigate to the Elastic Synthetics integration to add Uptime data'
);

// this href value is mocked, so it doesn't correspond to the real link
// that Kibana core services will provide
Expand Down

0 comments on commit ec404b8

Please sign in to comment.