Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
}
},
{
"files": ["packages/embed/test/**", "packages/extension-testkit/src/**"],
"files": ["packages/embed/tests/**", "packages/extension-testkit/src/**"],
"rules": {
"playwright/prefer-web-first-assertions": "error"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build": "vite build && vite build --config vite.global.config.ts && vite build --config vite.native.config.ts && tsc -p tsconfig.build.json",
"typecheck": "tsc -p tsconfig.json --noEmit",
"lint": "oxlint",
"test": "vite build --config vite.handle.config.ts && vite build --config vite.ws-probe.config.ts && vitest run",
"test": "vite build --config vite.handle.config.ts && vite build --config vite.ws-probe.config.ts && vitest run && playwright test",
"publint": "publint",
"attw": "attw --pack . --profile esm-only"
},
Expand Down Expand Up @@ -74,12 +74,12 @@
"@orpc/client": "catalog:",
"@orpc/server": "catalog:",
"@orpc/standard-server-peer": "catalog:",
"@playwright/test": "^1.61.1",
"@solid-primitives/event-listener": "^2.4.6",
"@types/node": "^26.1.0",
"@unocss/postcss": "^66.7.2",
"@unocss/reset": "^66.7.2",
"@vitest/coverage-v8": "^4.1.8",
"playwright": "^1.61.1",
"publint": "^0.3.14",
"tsdown": "^0.22.4",
"typescript": "^6.0.3",
Expand Down
21 changes: 21 additions & 0 deletions packages/embed/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {defineConfig, devices, type ReporterDescription} from '@playwright/test'

function reporters(): ReporterDescription[] {
if (!process.env.GITHUB_ACTIONS) return [['line']]
return [['line'], ['json', {outputFile: 'test-results.json'}]]
}

export default defineConfig({
testDir: './tests/e2e',
testMatch: '**/*.it.test.ts',
fullyParallel: false,
workers: 1,
timeout: 60_000,
expect: {timeout: 30_000},
reporter: reporters(),
retries: 0,
use: {
trace: 'retain-on-failure',
},
projects: [{name: 'chromium', use: {...devices['Desktop Chrome']}}],
})
100 changes: 0 additions & 100 deletions packages/embed/test/panel-focus.it.test.ts

This file was deleted.

Loading
Loading