diff --git a/packages/element-web-playwright-common/src/expect/index.ts b/packages/element-web-playwright-common/src/expect/index.ts index b62352d3ea..3ef2a00bf1 100644 --- a/packages/element-web-playwright-common/src/expect/index.ts +++ b/packages/element-web-playwright-common/src/expect/index.ts @@ -9,10 +9,10 @@ import { mergeExpects, type Expect } from "@playwright/test"; import { expect as screenshotExpectations, - Expectations as ScreenshotExpectations, - ToMatchScreenshotOptions, + type Expectations as ScreenshotExpectations, + type ToMatchScreenshotOptions, } from "./screenshot.js"; -import { expect as axeExpectations, Expectations as AxeExpectations } from "./axe.js"; +import { expect as axeExpectations, type Expectations as AxeExpectations } from "./axe.js"; export const expect = mergeExpects(screenshotExpectations, axeExpectations) as Expect< ScreenshotExpectations & AxeExpectations diff --git a/packages/element-web-playwright-common/src/expect/screenshot.ts b/packages/element-web-playwright-common/src/expect/screenshot.ts index 86687b28e4..9936ae982b 100644 --- a/packages/element-web-playwright-common/src/expect/screenshot.ts +++ b/packages/element-web-playwright-common/src/expect/screenshot.ts @@ -9,7 +9,7 @@ Please see LICENSE files in the repository root for full details. import { test, expect as baseExpect, - ElementHandle, + type ElementHandle, type ExpectMatcherState, type Locator, type Page, diff --git a/packages/element-web-playwright-common/src/fixtures/user.ts b/packages/element-web-playwright-common/src/fixtures/user.ts index 96e358c458..a5fae14b9f 100644 --- a/packages/element-web-playwright-common/src/fixtures/user.ts +++ b/packages/element-web-playwright-common/src/fixtures/user.ts @@ -10,7 +10,7 @@ import { type Page } from "@playwright/test"; import { sample, uniqueId } from "lodash-es"; import { test as base } from "./services.js"; -import { Credentials } from "../utils/api.js"; +import { type Credentials } from "../utils/api.js"; /** Adds an initScript to the given page which will populate localStorage appropriately so that Element will use the given credentials. */ export async function populateLocalStorageWithCredentials(page: Page, credentials: Credentials) { diff --git a/packages/element-web-playwright-common/src/testcontainers/HomeserverContainer.ts b/packages/element-web-playwright-common/src/testcontainers/HomeserverContainer.ts index ccb242767b..57ceb653db 100644 --- a/packages/element-web-playwright-common/src/testcontainers/HomeserverContainer.ts +++ b/packages/element-web-playwright-common/src/testcontainers/HomeserverContainer.ts @@ -9,8 +9,8 @@ import { type AbstractStartedContainer, type GenericContainer } from "testcontai import { type APIRequestContext, type TestInfo } from "@playwright/test"; import { type StartedMatrixAuthenticationServiceContainer } from "./mas"; -import { ClientServerApi, Credentials } from "../utils/api"; -import { StartedMailpitContainer } from "./mailpit"; +import { type ClientServerApi, type Credentials } from "../utils/api"; +import { type StartedMailpitContainer } from "./mailpit"; export interface HomeserverInstance { readonly baseUrl: string; diff --git a/packages/element-web-playwright-common/src/testcontainers/synapse.ts b/packages/element-web-playwright-common/src/testcontainers/synapse.ts index 4662031473..dae17316b0 100644 --- a/packages/element-web-playwright-common/src/testcontainers/synapse.ts +++ b/packages/element-web-playwright-common/src/testcontainers/synapse.ts @@ -23,7 +23,7 @@ import { deepCopy } from "../utils/object.js"; import { type HomeserverContainer, type StartedHomeserverContainer } from "./HomeserverContainer.js"; import { type StartedMatrixAuthenticationServiceContainer } from "./mas.js"; import { Api, ClientServerApi, type Verb, type Credentials } from "../utils/api.js"; -import { StartedMailpitContainer } from "./mailpit.js"; +import { type StartedMailpitContainer } from "./mailpit.js"; const DEFAULT_CONFIG = { server_name: "localhost", diff --git a/packages/element-web-playwright-common/src/utils/config_json.ts b/packages/element-web-playwright-common/src/utils/config_json.ts index f2a98f47a4..cc97a07be5 100644 --- a/packages/element-web-playwright-common/src/utils/config_json.ts +++ b/packages/element-web-playwright-common/src/utils/config_json.ts @@ -5,9 +5,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ -import { BrowserContext, Page } from "@playwright/test"; +import { type BrowserContext, type Page } from "@playwright/test"; -import { Config, CONFIG_JSON } from "../index.js"; +import { type Config, CONFIG_JSON } from "../index.js"; /** Construct a suitable config.json for the given homeserver * diff --git a/packages/element-web-playwright-common/src/utils/context.ts b/packages/element-web-playwright-common/src/utils/context.ts index fdc45a6736..c11477fe9c 100644 --- a/packages/element-web-playwright-common/src/utils/context.ts +++ b/packages/element-web-playwright-common/src/utils/context.ts @@ -5,11 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ -import { Browser } from "playwright-core"; -import { Page } from "@playwright/test"; +import { type Browser } from "playwright-core"; +import { type Page } from "@playwright/test"; -import { Credentials } from "./api.js"; -import { Config } from "../index.js"; +import { type Credentials } from "./api.js"; +import { type Config } from "../index.js"; import { routeConfigJson } from "./config_json.js"; import { populateLocalStorageWithCredentials } from "../fixtures/user.js";