2021-12-21 17:08:22 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`DateSeparator renders the date separator correctly 1`] = `
|
2022-10-10 23:29:10 +08:00
|
|
|
<DocumentFragment>
|
2022-08-01 15:31:14 +08:00
|
|
|
<div
|
2022-03-22 18:32:35 +08:00
|
|
|
aria-label="Today"
|
2022-10-10 23:29:10 +08:00
|
|
|
class="mx_DateSeparator"
|
2022-03-22 18:32:35 +08:00
|
|
|
role="separator"
|
2022-10-10 23:29:10 +08:00
|
|
|
tabindex="-1"
|
2021-12-21 17:08:22 +08:00
|
|
|
>
|
2022-03-22 18:32:35 +08:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-08-01 15:31:14 +08:00
|
|
|
<h2
|
2022-03-22 18:32:35 +08:00
|
|
|
aria-hidden="true"
|
2021-12-21 17:08:22 +08:00
|
|
|
>
|
2022-03-22 18:32:35 +08:00
|
|
|
Today
|
2022-08-01 15:31:14 +08:00
|
|
|
</h2>
|
2022-03-22 18:32:35 +08:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-08-01 15:31:14 +08:00
|
|
|
</div>
|
2022-10-10 23:29:10 +08:00
|
|
|
</DocumentFragment>
|
2021-12-21 17:08:22 +08:00
|
|
|
`;
|
2022-01-28 06:32:12 +08:00
|
|
|
|
|
|
|
exports[`DateSeparator when feature_jump_to_date is enabled renders the date separator correctly 1`] = `
|
2022-10-10 23:29:10 +08:00
|
|
|
<DocumentFragment>
|
2022-08-01 15:31:14 +08:00
|
|
|
<div
|
2022-03-22 18:32:35 +08:00
|
|
|
aria-label="Fri, Dec 17 2021"
|
2022-10-10 23:29:10 +08:00
|
|
|
class="mx_DateSeparator"
|
2022-03-22 18:32:35 +08:00
|
|
|
role="separator"
|
2022-10-10 23:29:10 +08:00
|
|
|
tabindex="-1"
|
2022-01-28 06:32:12 +08:00
|
|
|
>
|
2022-03-22 18:32:35 +08:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-10-10 23:29:10 +08:00
|
|
|
<div
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-label="Jump to date"
|
|
|
|
class="mx_AccessibleButton mx_DateSeparator_jumpToDateMenu"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-01-28 06:32:12 +08:00
|
|
|
>
|
2022-10-10 23:29:10 +08:00
|
|
|
<h2
|
|
|
|
aria-hidden="true"
|
2022-01-28 06:32:12 +08:00
|
|
|
>
|
2022-10-10 23:29:10 +08:00
|
|
|
Fri, Dec 17 2021
|
|
|
|
</h2>
|
|
|
|
<div
|
|
|
|
class="mx_DateSeparator_chevron"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-03-22 18:32:35 +08:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-08-01 15:31:14 +08:00
|
|
|
</div>
|
2022-10-10 23:29:10 +08:00
|
|
|
</DocumentFragment>
|
2022-01-28 06:32:12 +08:00
|
|
|
`;
|