Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding opt in for telemetry to start trial and upload license #22925

Merged
@@ -0,0 +1,175 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`TelemetryOptIn should display when telemetry not opted in 1`] = `
<TelemetryOptIn>
<EuiText
grow={true}
>
<div
className="euiText"
>
<p>
Gold and platinum customers: help support give you better service.
</p>
</div>
</EuiText>
<EuiSpacer
size="s"
>
<div
className="euiSpacer euiSpacer--s"
/>
</EuiSpacer>
<EuiCheckbox
checked={false}
compressed={false}
disabled={false}
id="isOptingInToTelemetry"
indeterminate={false}
label={
<span>
Send basic feature usage statistics to Elastic periodically.
<EuiPopover
anchorPosition="downCenter"
button={
<EuiLink
color="primary"
onClick={[Function]}
type="button"
>
Read more
</EuiLink>
}
closePopover={[Function]}
hasArrow={true}
id="readMorePopover"
isOpen={false}
ownFocus={true}
panelPaddingSize="m"
style={
Object {
"verticalAlign": "baseline",
}
}
>
<EuiText
grow={true}
style={
Object {
"width": 240,
}
}
>
<p>
This feature periodically sends basic feature usage statistics. This information will not be shared outside of Elastic. See an
<EuiLink
color="primary"
onClick={[Function]}
type="button"
>
example
</EuiLink>

or read our

<EuiLink
color="primary"
href="https://www.elastic.co/legal/telemetry-privacy-statement"
target="_blank"
type="button"
>
telemetry privacy statement
</EuiLink>
. You can disable this feature any time.
</p>
</EuiText>
</EuiPopover>
</span>
}
onChange={[Function]}
>
<div
className="euiCheckbox"
>
<input
checked={false}
className="euiCheckbox__input"
disabled={false}
id="isOptingInToTelemetry"
onChange={[Function]}
type="checkbox"
/>
<div
className="euiCheckbox__square"
/>
<label
className="euiCheckbox__label"
htmlFor="isOptingInToTelemetry"
>
<span>
Send basic feature usage statistics to Elastic periodically.
<EuiPopover
anchorPosition="downCenter"
button={
<EuiLink
color="primary"
onClick={[Function]}
type="button"
>
Read more
</EuiLink>
}
closePopover={[Function]}
hasArrow={true}
id="readMorePopover"
isOpen={false}
ownFocus={true}
panelPaddingSize="m"
style={
Object {
"verticalAlign": "baseline",
}
}
>
<EuiOutsideClickDetector
onOutsideClick={[Function]}
>
<div
className="euiPopover euiPopover--anchorDownCenter"
id="readMorePopover"
onClick={[Function]}
onKeyDown={[Function]}
style={
Object {
"verticalAlign": "baseline",
}
}
>
<div
className="euiPopover__anchor"
>
<EuiLink
color="primary"
onClick={[Function]}
type="button"
>
<button
className="euiLink euiLink--primary"
onClick={[Function]}
type="button"
>
Read more
</button>
</EuiLink>
</div>
</div>
</EuiOutsideClickDetector>
</EuiPopover>
</span>
</label>
</div>
</EuiCheckbox>
</TelemetryOptIn>
`;

exports[`TelemetryOptIn should not display when telemetry is opted in 1`] = `<TelemetryOptIn />`;