Skip to content

Commit

Permalink
docs(components): fix hooks imports in components test examples (#30282)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfgreffier authored Apr 8, 2024
1 parent a682777 commit aef2d38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/test-components-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -669,7 +669,7 @@ beforeMount<HooksConfig>(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 }) => {
Expand Down

0 comments on commit aef2d38

Please sign in to comment.