mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
27a7263965
* Switch tooltips to use React Portals * Remove redundant React key to simplify reconciliation * Fix cleanup and it.each test * Update snapshots due to style order difference
99 lines
2.3 KiB
Plaintext
99 lines
2.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<TooltipTarget /> displays Bottom aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; top: 6px; left: 0px; transform: translate(-50%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> displays InnerBottom aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; top: -50px; left: 0px; transform: translate(-50%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> displays Left aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; right: 1030px; top: 0px; transform: translateY(-50%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> displays Natural aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; left: 6px; top: 0px; transform: translateY(-50%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> displays Right aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; left: 6px; top: 0px; transform: translateY(-50%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> displays Top aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; top: -6px; left: 0px; transform: translate(-50%, -100%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> displays TopRight aligned tooltip on mouseover 1`] = `
|
|
<div
|
|
class="mx_Tooltip test tooltipClassName mx_Tooltip_visible"
|
|
style="display: block; top: -6px; right: 1024px; transform: translateY(-100%);"
|
|
>
|
|
<div
|
|
class="mx_Tooltip_chevron"
|
|
/>
|
|
test label
|
|
</div>
|
|
`;
|
|
|
|
exports[`<TooltipTarget /> renders container 1`] = `
|
|
<div
|
|
aria-describedby="test id"
|
|
class="test tooltipTargetClassName"
|
|
data-test-id="test"
|
|
tabindex="0"
|
|
>
|
|
<span>
|
|
child
|
|
</span>
|
|
</div>
|
|
`;
|