From aef2d3879c80423bc58b179edf9fa85a017e6c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Greffier?= Date: Mon, 8 Apr 2024 09:46:01 +0200 Subject: [PATCH] docs(components): fix hooks imports in components test examples (#30282) --- docs/src/test-components-js.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.md index 2d9d115bd6..3467f3c068 100644 --- a/docs/src/test-components-js.md +++ b/docs/src/test-components-js.md @@ -312,7 +312,7 @@ You can use `beforeMount` and `afterMount` hooks to configure your app. This let ```js title="src/pages/ProductsPage.spec.tsx" import { test, expect } from '@playwright/experimental-ct-react'; - import type { HooksConfig } from '@playwright/test'; + import type { HooksConfig } from '../playwright'; import { ProductsPage } from './pages/ProductsPage'; test('configure routing through hooks config', async ({ page, mount }) => { @@ -343,7 +343,7 @@ You can use `beforeMount` and `afterMount` hooks to configure your app. This let ```js title="src/pages/ProductsPage.spec.tsx" import { test, expect } from '@playwright/experimental-ct-solid'; - import type { HooksConfig } from '@playwright/test'; + import type { HooksConfig } from '../playwright'; import { ProductsPage } from './pages/ProductsPage'; test('configure routing through hooks config', async ({ page, mount }) => { @@ -374,7 +374,7 @@ You can use `beforeMount` and `afterMount` hooks to configure your app. This let ```js title="src/pages/ProductsPage.spec.ts" import { test, expect } from '@playwright/experimental-ct-vue'; - import type { HooksConfig } from '@playwright/test'; + import type { HooksConfig } from '../playwright'; import ProductsPage from './pages/ProductsPage.vue'; test('configure routing through hooks config', async ({ page, mount }) => { @@ -408,7 +408,7 @@ You can use `beforeMount` and `afterMount` hooks to configure your app. This let ```js title="src/pages/ProductsPage.spec.ts" import { test, expect } from '@playwright/experimental-ct-vue2'; - import type { HooksConfig } from '@playwright/test'; + import type { HooksConfig } from '../playwright'; import ProductsPage from './pages/ProductsPage.vue'; test('configure routing through hooks config', async ({ page, mount }) => { @@ -669,7 +669,7 @@ beforeMount(async ({ hooksConfig }) => { ```js title="src/pinia.spec.ts" import { test, expect } from '@playwright/experimental-ct-vue'; -import type { HooksConfig } from '@playwright/test'; +import type { HooksConfig } from '../playwright'; import Store from './Store.vue'; test('override initialState ', async ({ mount }) => {