You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Merge branch 'develop' into germain-gg/notifications-labs
This commit is contained in:
@ -24,7 +24,6 @@ exports[`RoomView for a local room in state CREATING should match the snapshot 1
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 24px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</span>
|
||||
@ -107,7 +106,6 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 24px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</span>
|
||||
@ -187,7 +185,6 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
|
||||
data-type="round"
|
||||
role="button"
|
||||
style="--cpd-avatar-size: 52px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</button>
|
||||
@ -276,7 +273,6 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 24px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</span>
|
||||
@ -356,7 +352,6 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
|
||||
data-type="round"
|
||||
role="button"
|
||||
style="--cpd-avatar-size: 52px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</button>
|
||||
@ -520,7 +515,6 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 24px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</span>
|
||||
@ -599,7 +593,6 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
|
||||
data-type="round"
|
||||
role="button"
|
||||
style="--cpd-avatar-size: 52px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</button>
|
||||
|
@ -77,7 +77,6 @@ exports[`SpaceHierarchy <SpaceHierarchy /> renders 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title="room-id-2"
|
||||
>
|
||||
U
|
||||
</span>
|
||||
@ -148,7 +147,6 @@ exports[`SpaceHierarchy <SpaceHierarchy /> renders 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title="room-id-3"
|
||||
>
|
||||
U
|
||||
</span>
|
||||
@ -220,7 +218,6 @@ exports[`SpaceHierarchy <SpaceHierarchy /> renders 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title="space-id-4"
|
||||
>
|
||||
N
|
||||
</span>
|
||||
@ -298,7 +295,6 @@ exports[`SpaceHierarchy <SpaceHierarchy /> renders 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title="room-id-5"
|
||||
>
|
||||
N
|
||||
</span>
|
||||
|
@ -24,7 +24,6 @@ exports[`<UserMenu> when rendered should render as expected 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 32px;"
|
||||
title="@userId:matrix.org"
|
||||
>
|
||||
u
|
||||
</span>
|
||||
|
@ -9,7 +9,6 @@ exports[`RoomAvatar should render as expected for a DM room 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="@dm_user@example.com"
|
||||
>
|
||||
D
|
||||
</span>
|
||||
@ -25,7 +24,6 @@ exports[`RoomAvatar should render as expected for a LocalRoom 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="@local_room_user@example.com"
|
||||
>
|
||||
l
|
||||
</span>
|
||||
@ -41,7 +39,6 @@ exports[`RoomAvatar should render as expected for a Room 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="!room:example.com"
|
||||
>
|
||||
t
|
||||
</span>
|
||||
|
@ -38,7 +38,6 @@ exports[`<DialogSidebar /> renders sidebar correctly with beacons 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 32px;"
|
||||
title=""
|
||||
>
|
||||
|
||||
</span>
|
||||
|
@ -210,45 +210,73 @@ describe("<CreateRoomDialog />", () => {
|
||||
});
|
||||
|
||||
describe("for a knock room", () => {
|
||||
it("should not have the option to create a knock room", async () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockReturnValue(false);
|
||||
getComponent();
|
||||
fireEvent.click(screen.getByLabelText("Room visibility"));
|
||||
|
||||
expect(screen.queryByRole("option", { name: "Ask to join" })).not.toBeInTheDocument();
|
||||
describe("when feature is disabled", () => {
|
||||
it("should not have the option to create a knock room", async () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockReturnValue(false);
|
||||
getComponent();
|
||||
fireEvent.click(screen.getByLabelText("Room visibility"));
|
||||
expect(screen.queryByRole("option", { name: "Ask to join" })).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
it("should create a knock room", async () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((setting) => setting === "feature_ask_to_join");
|
||||
describe("when feature is enabled", () => {
|
||||
const onFinished = jest.fn();
|
||||
getComponent({ onFinished });
|
||||
await flushPromises();
|
||||
|
||||
const roomName = "Test Room Name";
|
||||
fireEvent.change(screen.getByLabelText("Name"), { target: { value: roomName } });
|
||||
|
||||
fireEvent.click(screen.getByLabelText("Room visibility"));
|
||||
fireEvent.click(screen.getByRole("option", { name: "Ask to join" }));
|
||||
beforeEach(async () => {
|
||||
onFinished.mockReset();
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation(
|
||||
(setting) => setting === "feature_ask_to_join",
|
||||
);
|
||||
getComponent({ onFinished });
|
||||
fireEvent.change(screen.getByLabelText("Name"), { target: { value: roomName } });
|
||||
fireEvent.click(screen.getByLabelText("Room visibility"));
|
||||
fireEvent.click(screen.getByRole("option", { name: "Ask to join" }));
|
||||
});
|
||||
|
||||
fireEvent.click(screen.getByText("Create room"));
|
||||
await flushPromises();
|
||||
it("should have a heading", () => {
|
||||
expect(screen.getByRole("heading")).toHaveTextContent("Create a room");
|
||||
});
|
||||
|
||||
expect(screen.getByText("Create a room")).toBeInTheDocument();
|
||||
it("should have a hint", () => {
|
||||
expect(
|
||||
screen.getByText(
|
||||
"Anyone can request to join, but admins or moderators need to grant access. You can change this later.",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
expect(
|
||||
screen.getByText(
|
||||
"Anyone can request to join, but admins or moderators need to grant access. You can change this later.",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
it("should create a knock room with private visibility", async () => {
|
||||
fireEvent.click(screen.getByText("Create room"));
|
||||
await flushPromises();
|
||||
expect(onFinished).toHaveBeenCalledWith(true, {
|
||||
createOpts: {
|
||||
name: roomName,
|
||||
visibility: Visibility.Private,
|
||||
},
|
||||
encryption: true,
|
||||
joinRule: JoinRule.Knock,
|
||||
parentSpace: undefined,
|
||||
roomType: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
expect(onFinished).toHaveBeenCalledWith(true, {
|
||||
createOpts: {
|
||||
name: roomName,
|
||||
},
|
||||
encryption: true,
|
||||
joinRule: JoinRule.Knock,
|
||||
parentSpace: undefined,
|
||||
roomType: undefined,
|
||||
it("should create a knock room with public visibility", async () => {
|
||||
fireEvent.click(
|
||||
screen.getByRole("checkbox", { name: "Make this room visible in the public room directory." }),
|
||||
);
|
||||
fireEvent.click(screen.getByText("Create room"));
|
||||
await flushPromises();
|
||||
expect(onFinished).toHaveBeenCalledWith(true, {
|
||||
createOpts: {
|
||||
name: roomName,
|
||||
visibility: Visibility.Public,
|
||||
},
|
||||
encryption: true,
|
||||
joinRule: JoinRule.Knock,
|
||||
parentSpace: undefined,
|
||||
roomType: undefined,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -77,7 +77,6 @@ exports[`<ManageRestrictedJoinRuleDialog /> should list spaces which are not par
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title="!space:server"
|
||||
>
|
||||
O
|
||||
</span>
|
||||
|
@ -89,4 +89,16 @@ describe("<LabelledCheckbox />", () => {
|
||||
expect(checkbox).toBeChecked();
|
||||
expect(checkbox).toBeDisabled();
|
||||
});
|
||||
|
||||
it("should render with a custom class name", () => {
|
||||
const className = "some class name";
|
||||
const props: CompProps = {
|
||||
label: "Hello world",
|
||||
value: false,
|
||||
onChange: jest.fn(),
|
||||
className,
|
||||
};
|
||||
const { container } = render(getComponent(props));
|
||||
expect(container.firstElementChild?.className).toContain(className);
|
||||
});
|
||||
});
|
||||
|
@ -109,7 +109,6 @@ exports[`AppTile for a pinned widget should render 1`] = `
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title=""
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
@ -197,7 +196,6 @@ exports[`AppTile for a pinned widget should render permission request 1`] = `
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title=""
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
@ -277,7 +275,6 @@ exports[`AppTile for a pinned widget should render permission request 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 38px;"
|
||||
title=""
|
||||
>
|
||||
u
|
||||
</span>
|
||||
@ -353,7 +350,6 @@ exports[`AppTile preserves non-persisted widget on container move 1`] = `
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 20px;"
|
||||
title=""
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
|
@ -16,7 +16,6 @@ exports[`<FacePile /> renders with a tooltip 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="456"
|
||||
>
|
||||
4
|
||||
</span>
|
||||
|
@ -41,7 +41,6 @@ exports[`<Pill> should render the expected pill for @room 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!room1:example.com"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -73,7 +72,6 @@ exports[`<Pill> should render the expected pill for a known user not in the room
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="@user2:example.com"
|
||||
>
|
||||
U
|
||||
</span>
|
||||
@ -105,7 +103,6 @@ exports[`<Pill> should render the expected pill for a message in another room 1`
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!room1:example.com"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -137,7 +134,6 @@ exports[`<Pill> should render the expected pill for a message in the same room 1
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="@user1:example.com"
|
||||
>
|
||||
U
|
||||
</span>
|
||||
@ -169,7 +165,6 @@ exports[`<Pill> should render the expected pill for a room alias 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!room1:example.com"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -201,7 +196,6 @@ exports[`<Pill> should render the expected pill for a space 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!space1:example.com"
|
||||
>
|
||||
S
|
||||
</span>
|
||||
@ -256,7 +250,6 @@ exports[`<Pill> when rendering a pill for a room should render the expected pill
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!room1:example.com"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -288,7 +281,6 @@ exports[`<Pill> when rendering a pill for a user in the room should render as ex
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="@user1:example.com"
|
||||
>
|
||||
U
|
||||
</span>
|
||||
|
@ -16,7 +16,6 @@ exports[`<RoomFacePile /> renders 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 28px;"
|
||||
title="@bob:example.org"
|
||||
>
|
||||
b
|
||||
</span>
|
||||
|
@ -199,7 +199,7 @@ describe("<TextualBody />", () => {
|
||||
const { container } = getComponent({ mxEvent: ev });
|
||||
const content = container.querySelector(".mx_EventTile_body");
|
||||
expect(content.innerHTML).toMatchInlineSnapshot(
|
||||
`"Chat with <span><bdi><a class="mx_Pill mx_UserPill mx_UserPill_me" href="https://matrix.to/#/@user:example.com" aria-describedby="mx_Pill_0.123456"><span title="@member:domain.bla" aria-label="Profile picture" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="8" class="_avatar_2lhia_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/image.png" crossorigin="anonymous" referrerpolicy="no-referrer" class="_image_2lhia_45" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Member</span></a></bdi></span>"`,
|
||||
`"Chat with <span><bdi><a class="mx_Pill mx_UserPill mx_UserPill_me" href="https://matrix.to/#/@user:example.com" aria-describedby="mx_Pill_0.123456"><span aria-label="Profile picture" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="8" class="_avatar_2lhia_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/image.png" crossorigin="anonymous" referrerpolicy="no-referrer" class="_image_2lhia_45" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Member</span></a></bdi></span>"`,
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -62,7 +62,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills appear for an
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="@member:domain.bla"
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
@ -112,7 +111,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills appear for eve
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!room1:example.com"
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
@ -164,7 +162,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills appear for roo
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="!room1:example.com"
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
@ -275,7 +272,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills get injected c
|
||||
data-testid="avatar-img"
|
||||
data-type="round"
|
||||
style="--cpd-avatar-size: 16px;"
|
||||
title="@member:domain.bla"
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
@ -309,7 +305,6 @@ exports[`<TextualBody /> renders plain-text m.text correctly should pillify a pe
|
||||
href="https://matrix.to/#/!room1:example.com/%event_id%"
|
||||
aria-describedby="mx_Pill_0.123456"
|
||||
><span
|
||||
title="@member:domain.bla"
|
||||
aria-label="Profile picture"
|
||||
aria-hidden="true"
|
||||
data-testid="avatar-img"
|
||||
@ -343,7 +338,6 @@ exports[`<TextualBody /> renders plain-text m.text correctly should pillify a pe
|
||||
href="https://matrix.to/#/!room2:example.com/%event_id%"
|
||||
aria-describedby="mx_Pill_0.123456"
|
||||
><span
|
||||
title="!room2:example.com"
|
||||
aria-label="Avatar"
|
||||
aria-hidden="true"
|
||||
data-testid="avatar-img"
|
||||
|
@ -26,7 +26,6 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 54px;"
|
||||
title="!room:domain.org"
|
||||
>
|
||||
!
|
||||
</span>
|
||||
@ -69,13 +68,6 @@ exports[`<RoomSummaryCard /> renders the room summary 1`] = `
|
||||
0
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="mx_AccessibleButton mx_BaseCard_Button mx_RoomSummaryCard_Button mx_RoomSummaryCard_icon_search"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
Search
|
||||
</div>
|
||||
<div
|
||||
class="mx_AccessibleButton mx_BaseCard_Button mx_RoomSummaryCard_Button mx_RoomSummaryCard_icon_files"
|
||||
role="button"
|
||||
|
@ -102,7 +102,6 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
|
||||
data-type="round"
|
||||
role="button"
|
||||
style="--cpd-avatar-size: 230.39999999999998px;"
|
||||
title="@user:example.com"
|
||||
>
|
||||
u
|
||||
</button>
|
||||
|
@ -141,7 +141,7 @@ describe("RoomKnocksBar", () => {
|
||||
expect(container.firstChild).toBeNull();
|
||||
jest.spyOn(room, "getMembersWithMembership").mockReturnValue([bob]);
|
||||
act(() => {
|
||||
room.emit(RoomStateEvent.Members, new MatrixEvent(), state, bob);
|
||||
room.emit(RoomStateEvent.Update, state);
|
||||
});
|
||||
expect(container.firstChild).not.toBeNull();
|
||||
});
|
||||
@ -151,7 +151,7 @@ describe("RoomKnocksBar", () => {
|
||||
expect(screen.getByRole("heading")).toHaveTextContent("Asking to join");
|
||||
jest.spyOn(room, "getMembersWithMembership").mockReturnValue([bob, jane]);
|
||||
act(() => {
|
||||
room.emit(RoomStateEvent.Members, new MatrixEvent(), state, jane);
|
||||
room.emit(RoomStateEvent.Update, state);
|
||||
});
|
||||
expect(screen.getByRole("heading")).toHaveTextContent("2 people asking to join");
|
||||
});
|
||||
|
@ -12,7 +12,6 @@ exports[`<PinnedEventTile /> should render pinned event 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 24px;"
|
||||
title="@alice:server.org"
|
||||
>
|
||||
a
|
||||
</span>
|
||||
|
@ -13,7 +13,6 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 40px;"
|
||||
title="!1:example.org"
|
||||
>
|
||||
!
|
||||
</span>
|
||||
@ -37,6 +36,7 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
|
||||
>
|
||||
<button
|
||||
class="_icon-button_1k9cw_17"
|
||||
data-state="closed"
|
||||
disabled=""
|
||||
style="--cpd-icon-button-size: 32px;"
|
||||
title="There's no one here to call"
|
||||
@ -45,6 +45,7 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
|
||||
</button>
|
||||
<button
|
||||
class="_icon-button_1k9cw_17"
|
||||
data-state="closed"
|
||||
disabled=""
|
||||
style="--cpd-icon-button-size: 32px;"
|
||||
title="There's no one here to call"
|
||||
@ -53,6 +54,7 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
|
||||
</button>
|
||||
<button
|
||||
class="_icon-button_1k9cw_17"
|
||||
data-state="closed"
|
||||
style="--cpd-icon-button-size: 32px;"
|
||||
title="Threads"
|
||||
>
|
||||
|
@ -29,7 +29,6 @@ exports[`<RoomPreviewBar /> message case AskToJoin renders the corresponding mes
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="RoomPreviewBar-test-room"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -55,7 +54,6 @@ exports[`<RoomPreviewBar /> message case AskToJoin renders the corresponding mes
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title=""
|
||||
>
|
||||
?
|
||||
</span>
|
||||
@ -222,7 +220,6 @@ exports[`<RoomPreviewBar /> with an invite with an invited email when client has
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="RoomPreviewBar-test-room"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -281,7 +278,6 @@ exports[`<RoomPreviewBar /> with an invite without an invited email for a dm roo
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="RoomPreviewBar-test-room"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
@ -347,7 +343,6 @@ exports[`<RoomPreviewBar /> with an invite without an invited email for a non-dm
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 36px;"
|
||||
title="RoomPreviewBar-test-room"
|
||||
>
|
||||
R
|
||||
</span>
|
||||
|
@ -20,7 +20,6 @@ exports[`RoomTile when message previews are enabled and there is a message in a
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 32px;"
|
||||
title="!1:example.org"
|
||||
>
|
||||
!
|
||||
</span>
|
||||
@ -95,7 +94,6 @@ exports[`RoomTile when message previews are enabled and there is a message in th
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 32px;"
|
||||
title="!1:example.org"
|
||||
>
|
||||
!
|
||||
</span>
|
||||
@ -170,7 +168,6 @@ exports[`RoomTile when message previews are enabled should render a room without
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 32px;"
|
||||
title="!1:example.org"
|
||||
>
|
||||
!
|
||||
</span>
|
||||
@ -233,7 +230,6 @@ exports[`RoomTile when message previews are not enabled should render the room 1
|
||||
data-type="round"
|
||||
role="presentation"
|
||||
style="--cpd-avatar-size: 32px;"
|
||||
title="!1:example.org"
|
||||
>
|
||||
!
|
||||
</span>
|
||||
|
@ -176,7 +176,7 @@ describe("PeopleRoomSettingsTab", () => {
|
||||
jest.spyOn(room, "getMembersWithMembership").mockReturnValue([]);
|
||||
getComponent(room);
|
||||
act(() => {
|
||||
room.emit(RoomStateEvent.Members, new MatrixEvent(), state, knockMember);
|
||||
room.emit(RoomStateEvent.Update, state);
|
||||
});
|
||||
expect(getParagraph()).toHaveTextContent("No requests");
|
||||
});
|
||||
@ -209,7 +209,7 @@ describe("PeopleRoomSettingsTab", () => {
|
||||
jest.spyOn(room, "getMembersWithMembership").mockReturnValue([]);
|
||||
getComponent(room);
|
||||
act(() => {
|
||||
room.emit(RoomStateEvent.Members, new MatrixEvent(), state, knockMember);
|
||||
room.emit(RoomStateEvent.Update, state);
|
||||
});
|
||||
expect(getParagraph()).toHaveTextContent("No requests");
|
||||
});
|
||||
|
@ -33,7 +33,6 @@ exports[`PeopleRoomSettingsTab with requests to join renders requests fully 1`]
|
||||
loading="lazy"
|
||||
referrerpolicy="no-referrer"
|
||||
src="mxc://example.org/albert-einstein.png"
|
||||
title="@albert.einstein:example.org"
|
||||
width="42px"
|
||||
/>
|
||||
</span>
|
||||
|
@ -31,7 +31,6 @@ exports[`<AddExistingToSpaceDialog /> looks as expected 1`] = `
|
||||
data-testid="avatar-img"
|
||||
data-type="square"
|
||||
style="--cpd-avatar-size: 40px;"
|
||||
title="!spaceid:example.com"
|
||||
>
|
||||
<img
|
||||
alt=""
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user