Tidy up comments

This commit is contained in:
Half-Shot
2025-04-10 17:21:10 +01:00
parent d1213b70cf
commit 3bdd0f4cd1
3 changed files with 17 additions and 6 deletions

View File

@@ -12,18 +12,15 @@ import { JoinRule } from "matrix-js-sdk/src/matrix";
import { test, expect } from "../../element-web-test";
const ROOM_NAME = "Test room";
const OLD_NAME = "Alan";
const MEDIA_FILE = fs.readFileSync("playwright/sample-files/riot.png");
test.describe("Media preview settings", () => {
test.use({
displayName: OLD_NAME,
displayName: "Alan",
room: async ({ app, page, homeserver, bot, user }, use) => {
const mxc = (await bot.uploadContent(MEDIA_FILE, { name: "image.png", type: "image/png" })).content_uri;
const roomId = await bot.createRoom({
name: ROOM_NAME,
name: "Test room",
invite: [user.userId],
initial_state: [{ type: "m.room.avatar", content: { url: mxc }, state_key: "" }],
});