mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 11:51:36 +02:00
Delint
This commit is contained in:
parent
e31efda9b4
commit
c2f4535153
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user