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>
103 lines
2.7 KiB
Text
103 lines
2.7 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`MLocationBody <MLocationBody> with error displays correct fallback content when map_style_url is misconfigured 1`] = `
|
|
<div
|
|
class="mx_EventTile_body mx_MLocationBody"
|
|
>
|
|
<span
|
|
class="mx_EventTile_tileError"
|
|
>
|
|
Unable to load map: This homeserver is not configured correctly to display maps, or the configured map server may be unreachable.
|
|
</span>
|
|
<br />
|
|
Shared a location: Found at geo:51.5076,-0.1276 at 2021-12-21T12:22+0000
|
|
</div>
|
|
`;
|
|
|
|
exports[`MLocationBody <MLocationBody> with error displays correct fallback content without error style when map_style_url is not configured 1`] = `
|
|
<div
|
|
class="mx_EventTile_body mx_MLocationBody"
|
|
>
|
|
<span
|
|
class=""
|
|
>
|
|
Unable to load map: This homeserver is not configured to display maps.
|
|
</span>
|
|
<br />
|
|
Shared a location: Found at geo:51.5076,-0.1276 at 2021-12-21T12:22+0000
|
|
</div>
|
|
`;
|
|
|
|
exports[`MLocationBody <MLocationBody> without error renders map correctly 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_MLocationBody"
|
|
>
|
|
<div
|
|
aria-labelledby="floating-ui-18"
|
|
class="mx_MLocationBody_map"
|
|
>
|
|
<div
|
|
class="mx_Map mx_MLocationBody_map"
|
|
id="mx_Map_mx_MLocationBody_$2_vY7Q4uEh"
|
|
>
|
|
<span>
|
|
<div
|
|
class="mx_Marker mx_Marker_defaultColor"
|
|
id="mx_MLocationBody_$2_vY7Q4uEh-marker"
|
|
>
|
|
<div
|
|
class="mx_Marker_border"
|
|
>
|
|
<div
|
|
class="mx_Marker_icon"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`MLocationBody <MLocationBody> without error renders marker correctly for a self share 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_MLocationBody"
|
|
>
|
|
<div
|
|
aria-labelledby="floating-ui-30"
|
|
class="mx_MLocationBody_map"
|
|
>
|
|
<div
|
|
class="mx_Map mx_MLocationBody_map"
|
|
id="mx_Map_mx_MLocationBody_$3_vY7Q4uEh"
|
|
>
|
|
<span>
|
|
<div
|
|
class="mx_Marker mx_Marker_defaultColor"
|
|
id="mx_MLocationBody_$3_vY7Q4uEh-marker"
|
|
>
|
|
<div
|
|
class="mx_Marker_border"
|
|
>
|
|
<span
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
data-color="3"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 36px;"
|
|
title="@user:server"
|
|
>
|
|
u
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|