Skip to content

Commit

Permalink
[Uptime][Synthetics Integration] add browser callout (#108935)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
  • Loading branch information
3 people authored Sep 14, 2021
1 parent ee7e832 commit 4b33115
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ describe('<CustomFields />', () => {
getAllByLabelText('Zip URL').forEach((node) => {
expect(node).toBeInTheDocument();
});
expect(
getByText(
/To create a "Browser" monitor, please ensure you are using the elastic-agent-complete Docker container, which contains the dependencies to run these mon/
)
).toBeInTheDocument();

// ensure at least one browser advanced option is present
advancedOptionsButton = getByText('Advanced Browser options');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {
EuiSpacer,
EuiDescribedFormGroup,
EuiCheckbox,
EuiCallOut,
EuiLink,
} from '@elastic/eui';
import { ConfigKeys, DataStream, Validation } from './types';
import { useMonitorTypeContext } from './contexts';
Expand Down Expand Up @@ -122,6 +124,34 @@ export const CustomFields = memo<Props>(
/>
</EuiFormRow>
)}
<EuiSpacer size="s" />
{isBrowser && (
<EuiCallOut
title={
<FormattedMessage
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.browser.warning.description"
defaultMessage='To create a "Browser" monitor, please ensure you are using the elastic-agent-complete Docker container, which contains the dependencies to run these monitors. For more information, please visit our {link}.'
values={{
link: (
<EuiLink
target="_blank"
href="https://www.elastic.co/guide/en/observability/current/synthetics-quickstart-fleet.html"
external
>
<FormattedMessage
id="xpack.uptime.createPackagePolicy.stepConfigure.monitorIntegrationSettingsSection.monitorType.browser.warning.link"
defaultMessage="synthetics documentation"
/>
</EuiLink>
),
}}
/>
}
iconType="help"
size="s"
/>
)}
<EuiSpacer size="s" />
{renderSimpleFields(monitorType)}
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit 4b33115

Please sign in to comment.