2021-12-21 10:08:22 +01:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`DateSeparator renders the date separator correctly 1`] = `
|
2022-10-10 17:29:10 +02:00
|
|
|
<DocumentFragment>
|
2022-08-01 09:31:14 +02:00
|
|
|
<div
|
2023-08-21 21:38:59 +02:00
|
|
|
aria-label="today"
|
2022-10-10 17:29:10 +02:00
|
|
|
class="mx_DateSeparator"
|
2022-03-22 11:32:35 +01:00
|
|
|
role="separator"
|
2021-12-21 10:08:22 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2023-03-20 17:03:36 +01:00
|
|
|
<div
|
|
|
|
class="mx_DateSeparator_dateContent"
|
2021-12-21 10:08:22 +01:00
|
|
|
>
|
2023-03-20 17:03:36 +01:00
|
|
|
<h2
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_DateSeparator_dateHeading"
|
|
|
|
>
|
2023-08-21 21:38:59 +02:00
|
|
|
today
|
2023-03-20 17:03:36 +01:00
|
|
|
</h2>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-08-01 09:31:14 +02:00
|
|
|
</div>
|
2022-10-10 17:29:10 +02:00
|
|
|
</DocumentFragment>
|
2021-12-21 10:08:22 +01:00
|
|
|
`;
|
2022-01-27 23:32:12 +01:00
|
|
|
|
|
|
|
exports[`DateSeparator when feature_jump_to_date is enabled renders the date separator correctly 1`] = `
|
2022-10-10 17:29:10 +02:00
|
|
|
<DocumentFragment>
|
2022-08-01 09:31:14 +02:00
|
|
|
<div
|
2023-08-21 21:38:59 +02:00
|
|
|
aria-label="Fri, Dec 17, 2021"
|
2022-10-10 17:29:10 +02:00
|
|
|
class="mx_DateSeparator"
|
2022-03-22 11:32:35 +01:00
|
|
|
role="separator"
|
2022-01-27 23:32:12 +01:00
|
|
|
>
|
2022-03-22 11:32:35 +01:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-10-10 17:29:10 +02:00
|
|
|
<div
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-label="Jump to date"
|
2023-03-20 17:03:36 +01:00
|
|
|
class="mx_AccessibleButton mx_DateSeparator_jumpToDateMenu mx_DateSeparator_dateContent"
|
2023-03-24 20:39:24 +01:00
|
|
|
data-testid="jump-to-date-separator-button"
|
2022-10-10 17:29:10 +02:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-01-27 23:32:12 +01:00
|
|
|
>
|
2022-10-10 17:29:10 +02:00
|
|
|
<h2
|
|
|
|
aria-hidden="true"
|
2023-03-20 17:03:36 +01:00
|
|
|
class="mx_DateSeparator_dateHeading"
|
2022-01-27 23:32:12 +01:00
|
|
|
>
|
2023-08-21 21:38:59 +02:00
|
|
|
Fri, Dec 17, 2021
|
2022-10-10 17:29:10 +02:00
|
|
|
</h2>
|
|
|
|
<div
|
|
|
|
class="mx_DateSeparator_chevron"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-03-22 11:32:35 +01:00
|
|
|
<hr
|
|
|
|
role="none"
|
|
|
|
/>
|
2022-08-01 09:31:14 +02:00
|
|
|
</div>
|
2022-10-10 17:29:10 +02:00
|
|
|
</DocumentFragment>
|
2022-01-27 23:32:12 +01:00
|
|
|
`;
|