lint
This commit is contained in:
@@ -10,9 +10,7 @@ import * as fs from "node:fs";
|
||||
import { type EventType, type MsgType } from "matrix-js-sdk/src/types";
|
||||
import { JoinRule } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import type { Locator, Page } from "@playwright/test";
|
||||
import { test, expect } from "../../element-web-test";
|
||||
import { Bot } from "../../pages/bot";
|
||||
|
||||
const ROOM_NAME = "Test room";
|
||||
const OLD_NAME = "Alan";
|
||||
@@ -44,10 +42,10 @@ test.describe("Media preview settings", () => {
|
||||
await settings.getByLabel("Hide avatars of room and inviter").click();
|
||||
await app.closeDialog();
|
||||
await app.viewRoomById(room.roomId);
|
||||
expect(page.getByRole("complementary").filter({ hasText: "Do you want to join Test room" })).toMatchScreenshot(
|
||||
"invite-no-avatar.png",
|
||||
);
|
||||
expect(
|
||||
await expect(
|
||||
page.getByRole("complementary").filter({ hasText: "Do you want to join Test room" }),
|
||||
).toMatchScreenshot("invite-no-avatar.png");
|
||||
await expect(
|
||||
page.getByRole("tree", { name: "Rooms" }).getByRole("treeitem", { name: "Test room" }),
|
||||
).toMatchScreenshot("invite-room-tree-no-avatar.png");
|
||||
|
||||
@@ -57,10 +55,10 @@ test.describe("Media preview settings", () => {
|
||||
await app.closeDialog();
|
||||
await page.goto("#/home");
|
||||
await app.viewRoomById(room.roomId);
|
||||
expect(page.getByRole("complementary").filter({ hasText: "Do you want to join Test room" })).toMatchScreenshot(
|
||||
"invite-with-avatar.png",
|
||||
);
|
||||
expect(
|
||||
await expect(
|
||||
page.getByRole("complementary").filter({ hasText: "Do you want to join Test room" }),
|
||||
).toMatchScreenshot("invite-with-avatar.png");
|
||||
await expect(
|
||||
page.getByRole("tree", { name: "Rooms" }).getByRole("treeitem", { name: "Test room" }),
|
||||
).toMatchScreenshot("invite-room-tree-with-avatar.png");
|
||||
});
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 2.8 KiB |
@@ -101,7 +101,7 @@ export const RoomAvatar: React.FC<IProps> = ({
|
||||
oobAvatar, // highest priority
|
||||
roomAvatarMxc && Avatar.avatarUrlForRoom(room ?? null, sizeInt, sizeInt, "crop"),
|
||||
]);
|
||||
}, [mediaPreviewEnabled, room, size, roomAvatarMxc]);
|
||||
}, [mediaPreviewEnabled, room, size, roomAvatarMxc, oobData]);
|
||||
|
||||
return (
|
||||
<BaseAvatar
|
||||
|
||||
Reference in New Issue
Block a user