mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-22 17:10:53 +03:00
d9d0ab3d98
* Provide a more detailed error message than "No known servers" Signed-off-by: Aaron Raimist <aaron@raim.ist> * Fix PR since file was refactored Signed-off-by: Aaron Raimist <aaron@raim.ist> * Fix formatting Signed-off-by: Aaron Raimist <aaron@raim.ist> * lint Signed-off-by: Aaron Raimist <aaron@raim.ist> * Update src/stores/RoomViewStore.tsx Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> * Add example identifiers and a more detailed explanation Signed-off-by: Aaron Raimist <aaron@raim.ist> * Lint Signed-off-by: Aaron Raimist <aaron@raim.ist> * Lint Signed-off-by: Aaron Raimist <aaron@raim.ist> * Revert back to original wording (except s/alias/address) Alias was a better name imo but Element calls them addresses now so changed to be consistent. Signed-off-by: Aaron Raimist <aaron@raim.ist> * Prettier Signed-off-by: Aaron Raimist <aaron@raim.ist> * Fix ts error * Add snapshot test * Check the Modal props * Add test case to reach quality gate --------- Signed-off-by: Aaron Raimist <aaron@raim.ist> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Florian Duros <florianduros@element.io>
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||
|
||
exports[`RoomViewStore should display an error message when the room is unreachable via the roomId 1`] = `
|
||
{
|
||
"description": <div>
|
||
You attempted to join using a room ID without providing a list of servers to join through. Room IDs are internal identifiers and cannot be used to join a room without additional information.
|
||
<br />
|
||
<br />
|
||
If you know a room address, try joining through that instead.
|
||
</div>,
|
||
"title": "Failed to join",
|
||
}
|
||
`;
|
||
|
||
exports[`RoomViewStore should display the generic error message when the roomId doesnt match 1`] = `
|
||
{
|
||
"description": "MatrixError: [404] my 404 error",
|
||
"title": "Failed to join",
|
||
}
|
||
`;
|
||
|
||
exports[`RoomViewStore when recording a voice broadcast and trying to view a call, it should not actually view it and show the info dialog 1`] = `
|
||
[MockFunction] {
|
||
"calls": [
|
||
[
|
||
[Function],
|
||
{
|
||
"description": <p>
|
||
You can’t start a call as you are currently recording a live broadcast. Please end your live broadcast in order to start a call.
|
||
</p>,
|
||
"hasCloseButton": true,
|
||
"title": "Can’t start a call",
|
||
},
|
||
],
|
||
],
|
||
"results": [
|
||
{
|
||
"type": "return",
|
||
"value": undefined,
|
||
},
|
||
],
|
||
}
|
||
`;
|