From a732fcc6045537da95d05d5cc7d53791773497b3 Mon Sep 17 00:00:00 2001 From: fkwp Date: Fri, 30 May 2025 14:46:35 +0200 Subject: [PATCH] linting --- playwright/fixtures/widget-user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright/fixtures/widget-user.ts b/playwright/fixtures/widget-user.ts index 49aaecf5..a55166ee 100644 --- a/playwright/fixtures/widget-user.ts +++ b/playwright/fixtures/widget-user.ts @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { type Page, test, expect, type JSHandle } from "@playwright/test"; +import { type Browser, type Page, test, expect, type JSHandle } from "@playwright/test"; import type { MatrixClient } from "matrix-js-sdk"; @@ -78,7 +78,7 @@ async function setDevToolElementCallDevUrl(page: Page): Promise { * Registers a new user and returns page, clientHandle and mxId. */ async function registerUser( - browser: (typeof test)["browser"], + browser: Browser, username: string, ): Promise<{ page: Page; clientHandle: JSHandle; mxId: string }> { const userContext = await browser.newContext({ @@ -113,7 +113,7 @@ async function registerUser( window.mxMatrixClientPeg.get(), ); const mxId = (await clientHandle.evaluate( - (cli) => cli.getUserId(), + (cli: MatrixClient) => cli.getUserId(), clientHandle, ))!;