Files
element-web/test/components/structures/__snapshots__/ThreadPanel-test.tsx.snap
T

107 lines
2.4 KiB
Plaintext
Raw Normal View History

2021-10-14 15:27:35 +02:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ThreadPanel Header expect that All filter for ThreadPanelHeader properly renders Show: All threads 1`] = `
<div
className="mx_BaseCard_header_title"
2021-10-14 15:27:35 +02:00
>
<Heading
className="mx_BaseCard_header_title_heading"
size="h4"
>
2021-10-14 15:27:35 +02:00
Threads
</Heading>
2021-10-14 15:27:35 +02:00
<ContextMenuButton
className="mx_ThreadPanel_dropdown"
2021-10-14 15:27:35 +02:00
inputRef={
Object {
"current": null,
}
}
isExpanded={false}
onClick={[Function]}
>
Show: All threads
</ContextMenuButton>
</div>
`;
exports[`ThreadPanel Header expect that My filter for ThreadPanelHeader properly renders Show: My threads 1`] = `
<div
className="mx_BaseCard_header_title"
2021-10-14 15:27:35 +02:00
>
<Heading
className="mx_BaseCard_header_title_heading"
size="h4"
>
2021-10-14 15:27:35 +02:00
Threads
</Heading>
2021-10-14 15:27:35 +02:00
<ContextMenuButton
className="mx_ThreadPanel_dropdown"
2021-10-14 15:27:35 +02:00
inputRef={
Object {
"current": null,
}
}
isExpanded={false}
onClick={[Function]}
>
Show: My threads
</ContextMenuButton>
</div>
`;
exports[`ThreadPanel Header expect that ThreadPanelHeader has the correct option selected in the context menu 1`] = `
<RovingAccessibleButton
aria-checked={true}
2021-10-14 15:27:35 +02:00
className="mx_ThreadPanel_Header_FilterOptionItem"
onClick={[Function]}
role="menuitemradio"
2021-10-14 15:27:35 +02:00
>
<AccessibleButton
aria-checked={true}
className="mx_ThreadPanel_Header_FilterOptionItem"
element="div"
inputRef={
Object {
"current": <div
aria-checked="true"
class="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem focus-visible"
data-focus-visible-added=""
role="menuitemradio"
tabindex="0"
>
<span>
All threads
</span>
<span>
Shows all threads from current room
</span>
</div>,
}
}
2021-10-14 15:27:35 +02:00
onClick={[Function]}
onFocus={[Function]}
role="menuitemradio"
tabIndex={0}
2021-10-14 15:27:35 +02:00
>
<div
aria-checked={true}
className="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onKeyUp={[Function]}
role="menuitemradio"
tabIndex={0}
>
<span>
All threads
</span>
<span>
Shows all threads from current room
</span>
</div>
</AccessibleButton>
</RovingAccessibleButton>
2021-10-14 15:27:35 +02:00
`;