2022-01-06 09:47:03 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<Notifications /> main notification switches email switches renders email switches correctly when email 3pids exist 1`] = `
|
|
|
|
<LabelledToggleSwitch
|
|
|
|
data-test-id="notif-email-switch"
|
|
|
|
disabled={false}
|
|
|
|
key="tester@test.com"
|
|
|
|
label="Enable email notifications for tester@test.com"
|
|
|
|
onChange={[Function]}
|
|
|
|
value={false}
|
|
|
|
>
|
|
|
|
<div
|
2022-05-18 16:20:55 +00:00
|
|
|
className="mx_SettingsFlag"
|
2022-01-06 09:47:03 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_SettingsFlag_label"
|
|
|
|
>
|
|
|
|
Enable email notifications for tester@test.com
|
|
|
|
</span>
|
|
|
|
<_default
|
|
|
|
checked={false}
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
2022-10-07 18:10:17 +00:00
|
|
|
title="Enable email notifications for tester@test.com"
|
2022-01-06 09:47:03 +00:00
|
|
|
>
|
2022-10-07 18:10:17 +00:00
|
|
|
<AccessibleTooltipButton
|
2022-01-06 09:47:03 +00:00
|
|
|
aria-checked={false}
|
|
|
|
aria-disabled={false}
|
|
|
|
className="mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
|
|
onClick={[Function]}
|
|
|
|
role="switch"
|
2022-10-07 18:10:17 +00:00
|
|
|
title="Enable email notifications for tester@test.com"
|
2022-01-06 09:47:03 +00:00
|
|
|
>
|
2022-10-07 18:10:17 +00:00
|
|
|
<AccessibleButton
|
2022-01-06 09:47:03 +00:00
|
|
|
aria-checked={false}
|
|
|
|
aria-disabled={false}
|
|
|
|
aria-label="Enable email notifications for tester@test.com"
|
2022-10-07 18:10:17 +00:00
|
|
|
className="mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
|
|
element="div"
|
|
|
|
onBlur={[Function]}
|
2022-01-06 09:47:03 +00:00
|
|
|
onClick={[Function]}
|
2022-10-07 18:10:17 +00:00
|
|
|
onFocus={[Function]}
|
|
|
|
onMouseLeave={[Function]}
|
|
|
|
onMouseOver={[Function]}
|
2022-01-06 09:47:03 +00:00
|
|
|
role="switch"
|
|
|
|
tabIndex={0}
|
|
|
|
>
|
|
|
|
<div
|
2022-10-07 18:10:17 +00:00
|
|
|
aria-checked={false}
|
|
|
|
aria-disabled={false}
|
|
|
|
aria-label="Enable email notifications for tester@test.com"
|
|
|
|
className="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
|
|
onBlur={[Function]}
|
|
|
|
onClick={[Function]}
|
|
|
|
onFocus={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
onMouseLeave={[Function]}
|
|
|
|
onMouseOver={[Function]}
|
|
|
|
role="switch"
|
|
|
|
tabIndex={0}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ToggleSwitch_ball"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
</AccessibleTooltipButton>
|
2022-01-06 09:47:03 +00:00
|
|
|
</_default>
|
|
|
|
</div>
|
|
|
|
</LabelledToggleSwitch>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<Notifications /> main notification switches renders only enable notifications switch when notifications are disabled 1`] = `
|
|
|
|
<Notifications>
|
|
|
|
<div
|
|
|
|
className="mx_UserNotifSettings"
|
|
|
|
>
|
|
|
|
<LabelledToggleSwitch
|
2022-09-28 17:13:09 +00:00
|
|
|
caption="Turn off to disable notifications on all your devices and sessions"
|
2022-01-06 09:47:03 +00:00
|
|
|
data-test-id="notif-master-switch"
|
|
|
|
disabled={false}
|
2022-09-28 17:13:09 +00:00
|
|
|
label="Enable notifications for this account"
|
2022-01-06 09:47:03 +00:00
|
|
|
onChange={[Function]}
|
|
|
|
value={false}
|
|
|
|
>
|
|
|
|
<div
|
2022-05-18 16:20:55 +00:00
|
|
|
className="mx_SettingsFlag"
|
2022-01-06 09:47:03 +00:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
className="mx_SettingsFlag_label"
|
|
|
|
>
|
2022-09-28 17:13:09 +00:00
|
|
|
Enable notifications for this account
|
|
|
|
<br />
|
|
|
|
<Caption>
|
|
|
|
<span
|
|
|
|
className="mx_Caption"
|
|
|
|
>
|
|
|
|
Turn off to disable notifications on all your devices and sessions
|
|
|
|
</span>
|
|
|
|
</Caption>
|
2022-01-06 09:47:03 +00:00
|
|
|
</span>
|
|
|
|
<_default
|
|
|
|
checked={false}
|
|
|
|
disabled={false}
|
|
|
|
onChange={[Function]}
|
2022-10-07 18:10:17 +00:00
|
|
|
title="Enable notifications for this account"
|
2022-01-06 09:47:03 +00:00
|
|
|
>
|
2022-10-07 18:10:17 +00:00
|
|
|
<AccessibleTooltipButton
|
2022-01-06 09:47:03 +00:00
|
|
|
aria-checked={false}
|
|
|
|
aria-disabled={false}
|
|
|
|
className="mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
|
|
onClick={[Function]}
|
|
|
|
role="switch"
|
2022-10-07 18:10:17 +00:00
|
|
|
title="Enable notifications for this account"
|
2022-01-06 09:47:03 +00:00
|
|
|
>
|
2022-10-07 18:10:17 +00:00
|
|
|
<AccessibleButton
|
2022-01-06 09:47:03 +00:00
|
|
|
aria-checked={false}
|
|
|
|
aria-disabled={false}
|
2022-09-28 17:13:09 +00:00
|
|
|
aria-label="Enable notifications for this account"
|
2022-10-07 18:10:17 +00:00
|
|
|
className="mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
|
|
element="div"
|
|
|
|
onBlur={[Function]}
|
2022-01-06 09:47:03 +00:00
|
|
|
onClick={[Function]}
|
2022-10-07 18:10:17 +00:00
|
|
|
onFocus={[Function]}
|
|
|
|
onMouseLeave={[Function]}
|
|
|
|
onMouseOver={[Function]}
|
2022-01-06 09:47:03 +00:00
|
|
|
role="switch"
|
|
|
|
tabIndex={0}
|
|
|
|
>
|
|
|
|
<div
|
2022-10-07 18:10:17 +00:00
|
|
|
aria-checked={false}
|
|
|
|
aria-disabled={false}
|
|
|
|
aria-label="Enable notifications for this account"
|
|
|
|
className="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
|
|
onBlur={[Function]}
|
|
|
|
onClick={[Function]}
|
|
|
|
onFocus={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
onMouseLeave={[Function]}
|
|
|
|
onMouseOver={[Function]}
|
|
|
|
role="switch"
|
|
|
|
tabIndex={0}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ToggleSwitch_ball"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
</AccessibleTooltipButton>
|
2022-01-06 09:47:03 +00:00
|
|
|
</_default>
|
|
|
|
</div>
|
|
|
|
</LabelledToggleSwitch>
|
|
|
|
</div>
|
|
|
|
</Notifications>
|
|
|
|
`;
|