diff --git a/tests/components/ct-solid/playwright.config.ts b/tests/components/ct-solid/playwright.config.ts index 891aeb6e04..09035ac5cb 100644 --- a/tests/components/ct-solid/playwright.config.ts +++ b/tests/components/ct-solid/playwright.config.ts @@ -15,14 +15,22 @@ */ import { type PlaywrightTestConfig, devices } from '@playwright/experimental-ct-solid'; +import { resolve } from 'path'; const config: PlaywrightTestConfig = { - testDir: 'src', + testDir: 'tests', forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, reporter: 'html', use: { trace: 'on-first-retry', + ctViteConfig: { + resolve: { + alias: { + '@': resolve(__dirname, './src'), + } + } + } }, projects: [ { diff --git a/tests/components/ct-solid/src/tests.spec.tsx b/tests/components/ct-solid/src/tests.spec.tsx deleted file mode 100644 index b6876e7225..0000000000 --- a/tests/components/ct-solid/src/tests.spec.tsx +++ /dev/null @@ -1,169 +0,0 @@ -import { test, expect } from '@playwright/experimental-ct-solid'; -import App from './App'; -import Button from './components/Button'; -import Counter from './components/Counter'; -import DefaultChildren from './components/DefaultChildren'; -import MultipleChildren from './components/MultipleChildren'; -import MultiRoot from './components/MultiRoot'; -import EmptyFragment from './components/EmptyFragment'; -import type { HooksConfig } from '../playwright'; - -test.use({ viewport: { width: 500, height: 500 } }); - -test('render props', async ({ mount }) => { - const component = await mount(