fix(ct): import ct* flavour types from ct-core and then from pwt (#31642)

This commit is contained in:
Max Schmitt 2024-07-16 19:32:51 +02:00 committed by GitHub
parent 8021312c99
commit 6a9e60d6a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 25 deletions

View File

@ -56,4 +56,4 @@ export function defineConfig(config: PlaywrightTestConfig, ...configs: Playwrigh
export function defineConfig<T>(config: PlaywrightTestConfig<T>, ...configs: PlaywrightTestConfig[]): PlaywrightTestConfig<T>;
export function defineConfig<T, W>(config: PlaywrightTestConfig<T, W>, ...configs: PlaywrightTestConfig[]): PlaywrightTestConfig<T, W>;
export { expect, devices } from 'playwright/test';
export { expect, devices, Locator } from 'playwright/test';

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
import type { Locator } from 'playwright/test';
import type { TestType } from '@playwright/experimental-ct-core';
import type { TestType, Locator } from '@playwright/experimental-ct-core';
export interface MountOptions<HooksConfig> {
hooksConfig?: HooksConfig;
@ -33,5 +32,4 @@ export const test: TestType<{
): Promise<MountResult>;
}>;
export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core';
export { expect, devices } from 'playwright/test';
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
import type { Locator } from 'playwright/test';
import type { TestType } from '@playwright/experimental-ct-core';
import type { TestType, Locator} from '@playwright/experimental-ct-core';
export interface MountOptions<HooksConfig> {
hooksConfig?: HooksConfig;
@ -33,5 +32,4 @@ export const test: TestType<{
): Promise<MountResult>;
}>;
export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core';
export { expect, devices } from 'playwright/test';
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
import type { Locator } from 'playwright/test';
import type { TestType } from '@playwright/experimental-ct-core';
import type { TestType, Locator } from '@playwright/experimental-ct-core';
export interface MountOptions<HooksConfig> {
hooksConfig?: HooksConfig;
@ -33,5 +32,4 @@ export const test: TestType<{
): Promise<MountResult>;
}>;
export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core';
export { expect, devices } from 'playwright/test';
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';

View File

@ -14,9 +14,8 @@
* limitations under the License.
*/
import type { Locator } from 'playwright/test';
import type { SvelteComponent, ComponentProps } from 'svelte/types/runtime';
import type { TestType } from '@playwright/experimental-ct-core';
import type { TestType, Locator } from '@playwright/experimental-ct-core';
type ComponentSlot = string | string[];
type ComponentSlots = Record<string, ComponentSlot> & { default?: ComponentSlot };
@ -44,5 +43,4 @@ export const test: TestType<{
): Promise<MountResult<Component>>;
}>;
export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core';
export { expect, devices } from 'playwright/test';
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
import type { Locator } from 'playwright/test';
import type { TestType } from '@playwright/experimental-ct-core';
import type { TestType, Locator } from '@playwright/experimental-ct-core';
type ComponentSlot = string | string[];
type ComponentSlots = Record<string, ComponentSlot> & { default?: ComponentSlot };
@ -64,5 +63,4 @@ export const test: TestType<{
): Promise<MountResult<Component>>;
}>;
export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core';
export { expect, devices } from 'playwright/test';
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';

View File

@ -14,8 +14,7 @@
* limitations under the License.
*/
import type { Locator } from 'playwright/test';
import type { TestType } from '@playwright/experimental-ct-core';
import type { TestType, Locator } from '@playwright/experimental-ct-core';
type Slot = string | string[];
type ComponentSlots = Record<string, Slot> & { default?: Slot };
@ -64,5 +63,4 @@ export const test: TestType<{
): Promise<MountResult<Component>>;
}>;
export { defineConfig, PlaywrightTestConfig } from '@playwright/experimental-ct-core';
export { expect, devices } from 'playwright/test';
export { defineConfig, PlaywrightTestConfig, expect, devices } from '@playwright/experimental-ct-core';