-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and | |
limitations under the License. | ||
*/ | ||
|
||
import { Room } from "matrix-js-sdk/src/matrix"; | ||
import { MatrixError, Room } from "matrix-js-sdk/src/matrix"; | ||
import { sleep } from "matrix-js-sdk/src/utils"; | ||
|
||
import { RoomViewStore } from "../../src/stores/RoomViewStore"; | ||
|
@@ -284,6 +284,19 @@ describe("RoomViewStore", function () { | |
await viewCall(); | ||
}); | ||
|
||
it("should display an error message when the room is unreachable via the roomId", async () => { | ||
// When | ||
// View and wait for the room | ||
dis.dispatch({ action: Action.ViewRoom, room_id: roomId }); | ||
await untilDispatch(Action.ActiveRoomChanged, dis); | ||
// Generate error to display the expected error message | ||
const error = new MatrixError(undefined, 404); | ||
roomViewStore.showJoinRoomError(error, roomId); | ||
|
||
// Then | ||
expect(Modal.createDialog).toMatchSnapshot(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
florianduros
Author
Contributor
|
||
}); | ||
|
||
describe("when listening to a voice broadcast", () => { | ||
let voiceBroadcastPlayback: VoiceBroadcastPlayback; | ||
|
||
|
this is a weird thing to snapshot as it'll vary when its return type is added to