2021-10-14 13:27:35 +00: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_ThreadPanel__header"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Threads
|
|
|
|
</span>
|
|
|
|
<ContextMenuButton
|
2021-11-03 18:05:01 +00:00
|
|
|
className="mx_ThreadPanel_dropdown"
|
2021-10-14 13:27:35 +00: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_ThreadPanel__header"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Threads
|
|
|
|
</span>
|
|
|
|
<ContextMenuButton
|
2021-11-03 18:05:01 +00:00
|
|
|
className="mx_ThreadPanel_dropdown"
|
2021-10-14 13:27:35 +00: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`] = `
|
2021-12-17 17:08:56 +00:00
|
|
|
<RovingAccessibleButton
|
2021-11-29 17:42:53 +00:00
|
|
|
aria-checked={true}
|
2021-10-14 13:27:35 +00:00
|
|
|
className="mx_ThreadPanel_Header_FilterOptionItem"
|
|
|
|
onClick={[Function]}
|
2021-11-29 17:42:53 +00:00
|
|
|
role="menuitemradio"
|
2021-10-14 13:27:35 +00:00
|
|
|
>
|
2021-12-17 17:08:56 +00:00
|
|
|
<AccessibleButton
|
2021-11-29 17:42:53 +00:00
|
|
|
aria-checked={true}
|
2021-12-17 17:08:56 +00:00
|
|
|
className="mx_ThreadPanel_Header_FilterOptionItem"
|
|
|
|
element="div"
|
|
|
|
inputRef={
|
|
|
|
Object {
|
|
|
|
"current": <div
|
|
|
|
aria-checked="true"
|
|
|
|
class="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
|
|
|
|
role="menuitemradio"
|
|
|
|
tabindex="-1"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
All threads
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Shows all threads from current room
|
|
|
|
</span>
|
|
|
|
</div>,
|
|
|
|
}
|
|
|
|
}
|
2021-10-14 13:27:35 +00:00
|
|
|
onClick={[Function]}
|
2021-12-17 17:08:56 +00:00
|
|
|
onFocus={[Function]}
|
2021-11-29 17:42:53 +00:00
|
|
|
role="menuitemradio"
|
|
|
|
tabIndex={-1}
|
2021-10-14 13:27:35 +00:00
|
|
|
>
|
2021-12-17 17:08:56 +00:00
|
|
|
<div
|
|
|
|
aria-checked={true}
|
|
|
|
className="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
|
|
|
|
onClick={[Function]}
|
|
|
|
onFocus={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
role="menuitemradio"
|
|
|
|
tabIndex={-1}
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
All threads
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
Shows all threads from current room
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
</RovingAccessibleButton>
|
2021-10-14 13:27:35 +00:00
|
|
|
`;
|