diff --git a/playwright/e2e/crypto/crypto.spec.ts b/playwright/e2e/crypto/crypto.spec.ts index 668c17d931..d223138781 100644 --- a/playwright/e2e/crypto/crypto.spec.ts +++ b/playwright/e2e/crypto/crypto.spec.ts @@ -81,7 +81,7 @@ test.describe("Cryptography", function () { * Verify that the `m.cross_signing.${keyType}` key is available on the account data on the server * @param keyType */ - async function verifyKey(app: ElementAppPage, keyType: string) { + async function verifyKey(app: ElementAppPage, keyType: "master" | "self_signing" | "user_signing") { const accountData: { encrypted: Record> } = await app.client.evaluate( (cli, keyType) => cli.getAccountDataFromServer(`m.cross_signing.${keyType}`), keyType, diff --git a/playwright/e2e/spotlight/spotlight.spec.ts b/playwright/e2e/spotlight/spotlight.spec.ts index 22513ca47a..a6396dcc42 100644 --- a/playwright/e2e/spotlight/spotlight.spec.ts +++ b/playwright/e2e/spotlight/spotlight.spec.ts @@ -6,6 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only Please see LICENSE files in the repository root for full details. */ +import type { AccountDataEvents } from "matrix-js-sdk/src/matrix"; import { test, expect } from "../../element-web-test"; import { Filter } from "../../pages/Spotlight"; import { Bot } from "../../pages/bot"; @@ -255,7 +256,9 @@ test.describe("Spotlight", () => { // Invite BotBob into existing DM with ByteBot const dmRooms = await app.client.evaluate((client, userId) => { - const map = client.getAccountData("m.direct")?.getContent>(); + const map = client + .getAccountData("m.direct" as keyof AccountDataEvents) + ?.getContent>(); return map[userId] ?? []; }, bot2UserId); expect(dmRooms).toHaveLength(1); diff --git a/src/@types/matrix-js-sdk.d.ts b/src/@types/matrix-js-sdk.d.ts index b431de094a..21299cff30 100644 --- a/src/@types/matrix-js-sdk.d.ts +++ b/src/@types/matrix-js-sdk.d.ts @@ -71,6 +71,7 @@ declare module "matrix-js-sdk/src/types" { "im.vector.setting.breadcrumbs": { recent_rooms: string[] }; "io.element.recent_emoji": { recent_emoji: string[] }; "im.vector.setting.integration_provisioning": { enabled: boolean }; + "im.vector.riot.breadcrumb_rooms": { recent_rooms: string[] }; "im.vector.web.settings": Record; // URL preview account data event