Files
ThreadNet-Web/test/unit-tests/components/structures/__snapshots__/ThreadPanel-test.tsx.snap
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

129 lines
3.5 KiB
Plaintext
Raw Normal View History

2025-11-13 10:50:33 +00:00
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2021-10-14 15:27:35 +02:00
exports[`ThreadPanel Header expect that All filter for ThreadPanelHeader properly renders Show: All threads 1`] = `
<DocumentFragment>
<div
class="mx_ThreadPanelHeader"
>
2024-03-28 17:38:21 +00:00
<button
2025-10-15 11:20:34 +00:00
aria-labelledby="_r_0_"
2026-01-16 15:30:08 +01:00
class="_icon-button_1215g_8"
2025-06-13 10:28:43 +02:00
data-kind="primary"
2024-03-28 17:38:21 +00:00
role="button"
style="--cpd-icon-button-size: 28px;"
2024-03-28 17:38:21 +00:00
tabindex="0"
>
<div
2025-12-02 09:57:28 +00:00
class="_indicator-icon_147l5_17"
2024-03-28 17:38:21 +00:00
style="--cpd-icon-button-size: 100%;"
>
<div
height="20"
width="20"
/>
2024-03-28 17:38:21 +00:00
</div>
</button>
<div
class="mx_ThreadPanel_vertical_separator"
/>
<div
aria-expanded="false"
aria-haspopup="true"
class="mx_AccessibleButton mx_ThreadPanel_dropdown"
role="button"
tabindex="0"
>
Show: All threads
<svg
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12 14.95q-.2 0-.375-.062a.9.9 0 0 1-.325-.213l-4.6-4.6a.95.95 0 0 1-.275-.7q0-.425.275-.7a.95.95 0 0 1 .7-.275q.425 0 .7.275l3.9 3.9 3.9-3.9a.95.95 0 0 1 .7-.275q.425 0 .7.275a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7l-4.6 4.6q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
</DocumentFragment>
2021-10-14 15:27:35 +02:00
`;
exports[`ThreadPanel Header expect that My filter for ThreadPanelHeader properly renders Show: My threads 1`] = `
<DocumentFragment>
<div
class="mx_ThreadPanelHeader"
>
2024-03-28 17:38:21 +00:00
<button
2025-10-15 11:20:34 +00:00
aria-labelledby="_r_6_"
2026-01-16 15:30:08 +01:00
class="_icon-button_1215g_8"
2025-06-13 10:28:43 +02:00
data-kind="primary"
2024-03-28 17:38:21 +00:00
role="button"
style="--cpd-icon-button-size: 28px;"
2024-03-28 17:38:21 +00:00
tabindex="0"
>
<div
2025-12-02 09:57:28 +00:00
class="_indicator-icon_147l5_17"
2024-03-28 17:38:21 +00:00
style="--cpd-icon-button-size: 100%;"
>
<div
height="20"
width="20"
/>
2024-03-28 17:38:21 +00:00
</div>
</button>
<div
class="mx_ThreadPanel_vertical_separator"
/>
<div
aria-expanded="false"
aria-haspopup="true"
class="mx_AccessibleButton mx_ThreadPanel_dropdown"
role="button"
tabindex="0"
>
Show: My threads
<svg
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12 14.95q-.2 0-.375-.062a.9.9 0 0 1-.325-.213l-4.6-4.6a.95.95 0 0 1-.275-.7q0-.425.275-.7a.95.95 0 0 1 .7-.275q.425 0 .7.275l3.9 3.9 3.9-3.9a.95.95 0 0 1 .7-.275q.425 0 .7.275a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7l-4.6 4.6q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
</DocumentFragment>
2021-10-14 15:27:35 +02:00
`;
exports[`ThreadPanel Header expect that ThreadPanelHeader has the correct option selected in the context menu 1`] = `
<div
aria-checked="true"
2023-09-28 12:52:26 +01:00
class="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
role="menuitemradio"
tabindex="0"
2021-10-14 15:27:35 +02:00
>
<svg
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
<span>
All threads
</span>
<span>
Shows all threads from current room
</span>
</div>
2021-10-14 15:27:35 +02:00
`;