diff --git a/.gitignore b/.gitignore index 51c9b24..922422b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,6 @@ dist-ssr *.local coverage /test-results/ +/blob-report/ /playwright-report/ /playwright/.cache/ diff --git a/package-lock.json b/package-lock.json index fa85571..08469cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,12 +13,12 @@ }, "devDependencies": { "@playwright/experimental-ct-solid": "^1.39.0", + "@playwright/test": "^1.39.0", "@types/node": "^20.8.10", "@vitest/browser": "^0.34.6", "@vitest/coverage-c8": "^0.33.0", "@vitest/ui": "^0.34.6", "npm-run-all": "^4.1.5", - "playwright": "^1.39.0", "release-it": "^16.2.1", "solid-js": "^1.7.0", "typescript": "^5.2.2", @@ -1238,6 +1238,21 @@ "node": ">=16" } }, + "node_modules/@playwright/test": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.39.0.tgz", + "integrity": "sha512-3u1iFqgzl7zr004bGPYiN/5EZpRUSFddQBra8Rqll5N0/vfpqlP9I9EXqAoGacuAbX6c9Ulg/Cjqglp5VkK6UQ==", + "dev": true, + "dependencies": { + "playwright": "1.39.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@pnpm/network.ca-file": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", diff --git a/package.json b/package.json index 551ccae..02475a2 100644 --- a/package.json +++ b/package.json @@ -72,12 +72,12 @@ }, "devDependencies": { "@playwright/experimental-ct-solid": "^1.39.0", + "@playwright/test": "^1.39.0", "@types/node": "^20.8.10", "@vitest/browser": "^0.34.6", "@vitest/coverage-c8": "^0.33.0", "@vitest/ui": "^0.34.6", "npm-run-all": "^4.1.5", - "playwright": "^1.39.0", "release-it": "^16.2.1", "solid-js": "^1.7.0", "typescript": "^5.2.2", diff --git a/playwright-ct.config.ts b/playwright-ct.config.ts index 881bddc..0b7803d 100644 --- a/playwright-ct.config.ts +++ b/playwright-ct.config.ts @@ -1,10 +1,9 @@ -import type { PlaywrightTestConfig } from "@playwright/experimental-ct-solid"; -import { devices } from "@playwright/experimental-ct-solid"; +import { defineConfig, devices } from "@playwright/experimental-ct-solid"; /** * See https://playwright.dev/docs/test-configuration. */ -const config: PlaywrightTestConfig = { +export default defineConfig({ testDir: "./tests/browser", /* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */ snapshotDir: "./__snapshots__", @@ -33,11 +32,7 @@ const config: PlaywrightTestConfig = { projects: [ { name: "chromium", - use: { - ...devices["Desktop Chrome"], - }, + use: { ...devices["Desktop Chrome"] }, }, ], -}; - -export default config; +}); diff --git a/playwright/index.html b/playwright/index.html index 000deea..610ddf8 100644 --- a/playwright/index.html +++ b/playwright/index.html @@ -7,6 +7,6 @@
- + diff --git a/playwright/index.tsx b/playwright/index.tsx new file mode 100644 index 0000000..ac6de14 --- /dev/null +++ b/playwright/index.tsx @@ -0,0 +1,2 @@ +// Import styles, initialize component theme here. +// import '../src/common.css';