91e84f7951
* Upgrade to latest compound-web package * Use a custom render function for jest tests This way we don't need to manually wrap our components with <TooltipProvider> * Pin wrap-ansi to fix broken yarn install * Add playwright helper to find tooltip from element and use it in the failing test * Exclude floating-ui divs/spans from axe testing This is rendered outside .MatrixChat by compound and contains all the tooltips. * Wrap outermost components with TooltipProvider * Remove onChange and use onSelect for toggle * Fix jest tests and update snapshots * Use vector-im/matrix-wysiwig --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
87 lines
2 KiB
Text
87 lines
2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`ThreadPanel Header expect that All filter for ThreadPanelHeader properly renders Show: All threads 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_BaseCard_header_title"
|
|
>
|
|
<button
|
|
aria-labelledby="floating-ui-1"
|
|
class="_icon-button_bh2qc_17"
|
|
role="button"
|
|
style="--cpd-icon-button-size: 24px;"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="_indicator-icon_133tf_26"
|
|
style="--cpd-icon-button-size: 100%;"
|
|
>
|
|
<div />
|
|
</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
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`ThreadPanel Header expect that My filter for ThreadPanelHeader properly renders Show: My threads 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_BaseCard_header_title"
|
|
>
|
|
<button
|
|
aria-labelledby="floating-ui-6"
|
|
class="_icon-button_bh2qc_17"
|
|
role="button"
|
|
style="--cpd-icon-button-size: 24px;"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="_indicator-icon_133tf_26"
|
|
style="--cpd-icon-button-size: 100%;"
|
|
>
|
|
<div />
|
|
</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
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`ThreadPanel Header expect that ThreadPanelHeader has the correct option selected in the context menu 1`] = `
|
|
<div
|
|
aria-checked="true"
|
|
class="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
|
|
role="menuitemradio"
|
|
tabindex="0"
|
|
>
|
|
<span>
|
|
All threads
|
|
</span>
|
|
<span>
|
|
Shows all threads from current room
|
|
</span>
|
|
</div>
|
|
`;
|