Files
element-web/test/unit-tests/utils/__snapshots__/ErrorUtils-test.ts.snap
Michael Telatynski 1d3421417f Switch to rendering svg icons rather than css masking (#31517)
* Switch to rendering svg icons rather than masking them in left panel

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove unused stylesheet

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them for ExternalLink

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them for TabbedView

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them for JoinRuleDropdown

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them in ManageRestrictedJoinRuleDialog

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them in LeaveSpaceDialog

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them in ReplyPreview

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them in SearchBox

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Switch to rendering svg icons rather than masking them in RoomStatusBar

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix advanced.svg

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix bad merge conflict resolution

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2025-12-15 09:52:50 +00:00

142 lines
3.9 KiB
Plaintext

// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`messageForConnectionError should match snapshot for ConnectionError 1`] = `
<DocumentFragment>
<span>
<span>
Can't connect to homeserver - please check your connectivity, ensure your
<a
class="mx_ExternalLink"
href="hsUrl"
rel="noreferrer noopener"
target="_blank"
>
homeserver's SSL certificate
<svg
class="mx_ExternalLink_icon"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5 3h6a1 1 0 1 1 0 2H5v14h14v-6a1 1 0 1 1 2 0v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2"
/>
<path
d="M15 3h5a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L17.586 5H15a1 1 0 1 1 0-2"
/>
</svg>
</a>
is trusted, and that a browser extension is not blocking requests.
</span>
</span>
</DocumentFragment>
`;
exports[`messageForConnectionError should match snapshot for MatrixError M_NOT_FOUND 1`] = `
<DocumentFragment>
There was a problem communicating with the homeserver, please try again later.(M_NOT_FOUND)
</DocumentFragment>
`;
exports[`messageForConnectionError should match snapshot for mixed content error 1`] = `
<DocumentFragment>
<span>
<span>
Can't connect to homeserver via HTTP when an HTTPS URL is in your browser bar. Either use HTTPS or
<a
href="https://www.google.com/search?&q=enable%20unsafe%20scripts"
rel="noreferrer noopener"
target="_blank"
>
enable unsafe scripts
</a>
.
</span>
</span>
</DocumentFragment>
`;
exports[`messageForConnectionError should match snapshot for unknown error 1`] = `
<DocumentFragment>
There was a problem communicating with the homeserver, please try again later.
</DocumentFragment>
`;
exports[`messageForLoginError should match snapshot for 401 1`] = `
<DocumentFragment>
Incorrect username and/or password.
</DocumentFragment>
`;
exports[`messageForLoginError should match snapshot for M_RESOURCE_LIMIT_EXCEEDED 1`] = `
<DocumentFragment>
<div>
<div>
This homeserver has exceeded one of its resource limits.
</div>
<div
class="mx_Login_smallError"
>
Please contact your service administrator to continue using this service.
</div>
</div>
</DocumentFragment>
`;
exports[`messageForLoginError should match snapshot for M_USER_DEACTIVATED 1`] = `
<DocumentFragment>
This account has been deactivated.
</DocumentFragment>
`;
exports[`messageForLoginError should match snapshot for unknown error 1`] = `
<DocumentFragment>
There was a problem communicating with the homeserver, please try again later. (HTTP 400)
</DocumentFragment>
`;
exports[`messageForResourceLimitError should match snapshot for admin contact links 1`] = `
<DocumentFragment>
<span>
Please
<a
href="some@email"
rel="noreferrer noopener"
target="_blank"
>
contact your service administrator
</a>
to continue using this service.
</span>
</DocumentFragment>
`;
exports[`messageForResourceLimitError should match snapshot for monthly_active_user 1`] = `
<DocumentFragment>
This homeserver has hit its Monthly Active User limit.
</DocumentFragment>
`;
exports[`messageForSyncError should match snapshot for M_RESOURCE_LIMIT_EXCEEDED 1`] = `
<DocumentFragment>
<div>
<div>
This homeserver has exceeded one of its resource limits.
</div>
<div>
Please contact your service administrator to continue using this service.
</div>
</div>
</DocumentFragment>
`;
exports[`messageForSyncError should match snapshot for other errors 1`] = `
<DocumentFragment>
<div>
Unable to connect to Homeserver. Retrying…
</div>
</DocumentFragment>
`;