Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(types): Global JSX namespace is deprecated (#33949)
Bill Collinse4e562cac5ea
diff --git a/packages/playwright-ct-react/hooks.d.ts b/packages/playwright-ct-react/hooks.d.tsindex 1093f1a3a3..f05ad1ffdf 100644--- a/packages/playwright-ct-react/hooks.d.ts+++ b/packages/playwright-ct-react/hooks.d.ts@@ -14,8 +14,10 @@* limitations under the License.*/+import type React from 'react';+export declare function beforeMount<HooksConfig>(- callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>+ callback: (params: { hooksConfig?: HooksConfig; App: () => React.JSX.Element }) => Promise<void | React.JSX.Element>): void;export declare function afterMount<HooksConfig>(callback: (params: { hooksConfig?: HooksConfig }) => Promise<void>diff --git a/packages/playwright-ct-react/index.d.ts b/packages/playwright-ct-react/index.d.tsindex c5e6d6d2da..d7000c5c85 100644--- a/packages/playwright-ct-react/index.d.ts+++ b/packages/playwright-ct-react/index.d.ts@@ -14,6 +14,8 @@* limitations under the License.*/+import type React from 'react';+import type { TestType, Locator } from '@playwright/experimental-ct-core';export interface MountOptions<HooksConfig> {@@ -22,12 +24,12 @@ export interface MountOptions<HooksConfig> {export interface MountResult extends Locator {unmount(): Promise<void>;- update(component: JSX.Element): Promise<void>;+ update(component: React.JSX.Element): Promise<void>;}export const test: TestType<{mount<HooksConfig>(- component: JSX.Element,+ component: React.JSX.Element,options?: MountOptions<HooksConfig>): Promise<MountResult>;}>;