You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Linkify room topic (#11631)
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
fireEvent,
|
||||
getAllByLabelText,
|
||||
getByLabelText,
|
||||
getByRole,
|
||||
getByText,
|
||||
render,
|
||||
screen,
|
||||
@@ -78,7 +79,7 @@ describe("RoomHeader", () => {
|
||||
});
|
||||
|
||||
it("renders the room topic", async () => {
|
||||
const TOPIC = "Hello World!";
|
||||
const TOPIC = "Hello World! http://element.io";
|
||||
|
||||
const roomTopic = new MatrixEvent({
|
||||
type: EventType.RoomTopic,
|
||||
@@ -96,6 +97,7 @@ describe("RoomHeader", () => {
|
||||
withClientContextRenderOptions(MatrixClientPeg.get()!),
|
||||
);
|
||||
expect(container).toHaveTextContent(TOPIC);
|
||||
expect(getByRole(container, "link")).toHaveTextContent("http://element.io");
|
||||
});
|
||||
|
||||
it("opens the room summary", async () => {
|
||||
|
Reference in New Issue
Block a user