diff --git a/packages/playwright-core/src/remote/playwrightServer.ts b/packages/playwright-core/src/remote/playwrightServer.ts index 3fceb00f20..b5ae0e4583 100644 --- a/packages/playwright-core/src/remote/playwrightServer.ts +++ b/packages/playwright-core/src/remote/playwrightServer.ts @@ -25,7 +25,7 @@ import type { ClientType } from './playwrightConnection'; import type { LaunchOptions } from '../server/types'; import { ManualPromise } from '../utils/manualPromise'; import type { AndroidDevice } from '../server/android/android'; -import { type SocksProxy } from '../common/socksProxy'; +import type { SocksProxy } from '../common/socksProxy'; import { debugLogger } from '../common/debugLogger'; import { createHttpServer } from '../utils'; diff --git a/packages/playwright-core/src/server/frameSelectors.ts b/packages/playwright-core/src/server/frameSelectors.ts index 9ef6b4fb94..072460bbbe 100644 --- a/packages/playwright-core/src/server/frameSelectors.ts +++ b/packages/playwright-core/src/server/frameSelectors.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import { type Frame } from './frames'; +import type { Frame } from './frames'; import type * as types from './types'; import { stringifySelector, type ParsedSelector, splitSelectorByFrame } from '../utils/isomorphic/selectorParser'; -import { type FrameExecutionContext, type ElementHandle } from './dom'; -import { type JSHandle } from './javascript'; -import { type InjectedScript } from './injected/injectedScript'; +import type { FrameExecutionContext, ElementHandle } from './dom'; +import type { JSHandle } from './javascript'; +import type { InjectedScript } from './injected/injectedScript'; export type SelectorInfo = { parsed: ParsedSelector, diff --git a/packages/playwright-core/src/server/injected/consoleApi.ts b/packages/playwright-core/src/server/injected/consoleApi.ts index 267922c439..f9ca10b3fe 100644 --- a/packages/playwright-core/src/server/injected/consoleApi.ts +++ b/packages/playwright-core/src/server/injected/consoleApi.ts @@ -19,7 +19,7 @@ import { getByAltTextSelector, getByLabelSelector, getByPlaceholderSelector, get import { escapeForTextSelector } from '../../utils/isomorphic/stringUtils'; import { asLocator } from '../../utils/isomorphic/locatorGenerators'; import type { Language } from '../../utils/isomorphic/locatorGenerators'; -import { type InjectedScript } from './injectedScript'; +import type { InjectedScript } from './injectedScript'; import { generateSelector } from './selectorGenerator'; const selectorSymbol = Symbol('selector'); diff --git a/packages/playwright-core/src/server/injected/recorder.ts b/packages/playwright-core/src/server/injected/recorder.ts index e26c01eb90..1c90065fb2 100644 --- a/packages/playwright-core/src/server/injected/recorder.ts +++ b/packages/playwright-core/src/server/injected/recorder.ts @@ -15,7 +15,7 @@ */ import type * as actions from '../recorder/recorderActions'; -import { type InjectedScript } from '../injected/injectedScript'; +import type { InjectedScript } from '../injected/injectedScript'; import { generateSelector, querySelector } from '../injected/selectorGenerator'; import type { Point } from '../../common/types'; import type { UIState } from '@recorder/recorderTypes'; diff --git a/packages/playwright-core/src/server/injected/selectorGenerator.ts b/packages/playwright-core/src/server/injected/selectorGenerator.ts index 5fc79d5a51..95946f85d7 100644 --- a/packages/playwright-core/src/server/injected/selectorGenerator.ts +++ b/packages/playwright-core/src/server/injected/selectorGenerator.ts @@ -15,7 +15,7 @@ */ import { cssEscape, escapeForAttributeSelector, escapeForTextSelector, normalizeWhiteSpace } from '../../utils/isomorphic/stringUtils'; -import { type InjectedScript } from './injectedScript'; +import type { InjectedScript } from './injectedScript'; import { getAriaRole, getElementAccessibleName } from './roleUtils'; import { elementText } from './selectorUtils'; diff --git a/packages/playwright-core/src/server/injected/selectorUtils.ts b/packages/playwright-core/src/server/injected/selectorUtils.ts index 867fcd4974..e05fb5ae29 100644 --- a/packages/playwright-core/src/server/injected/selectorUtils.ts +++ b/packages/playwright-core/src/server/injected/selectorUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { type AttributeSelectorPart } from '../../utils/isomorphic/selectorParser'; +import type { AttributeSelectorPart } from '../../utils/isomorphic/selectorParser'; export function matchesComponentAttribute(obj: any, attr: AttributeSelectorPart) { for (const token of attr.jsonPath) { diff --git a/packages/playwright-core/src/server/javascript.ts b/packages/playwright-core/src/server/javascript.ts index 5554e4e7fd..0de4a75bb5 100644 --- a/packages/playwright-core/src/server/javascript.ts +++ b/packages/playwright-core/src/server/javascript.ts @@ -17,7 +17,7 @@ import type * as dom from './dom'; import * as utilityScriptSource from '../generated/utilityScriptSource'; import { serializeAsCallArgument } from './isomorphic/utilityScriptSerializers'; -import { type UtilityScript } from './injected/utilityScript'; +import type { UtilityScript } from './injected/utilityScript'; import { SdkObject } from './instrumentation'; import { ScopedRace } from '../utils/manualPromise'; diff --git a/packages/playwright-test/src/index.ts b/packages/playwright-test/src/index.ts index d064b3678b..d74cc45c09 100644 --- a/packages/playwright-test/src/index.ts +++ b/packages/playwright-test/src/index.ts @@ -22,7 +22,7 @@ import { createGuid, debugMode, addInternalStackPrefix, mergeTraceFiles, saveTra import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, ScreenshotMode, TestInfo, TestType, TraceMode, VideoMode } from '../types/test'; import type { TestInfoImpl } from './worker/testInfo'; import { rootTestType } from './common/testType'; -import { type ContextReuseMode } from './common/config'; +import type { ContextReuseMode } from './common/config'; import { artifactsFolderName } from './isomorphic/folders'; import type { ClientInstrumentation, ClientInstrumentationListener } from '../../playwright-core/src/client/clientInstrumentation'; import type { ParsedStackTrace } from '../../playwright-core/src/utils/stackTrace';