Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(client): remove playwright (#737)

Corentin Thomassetb2b76e36bc91
diff --git a/CLAUDE.md b/CLAUDE.md
index 55afa699..528c8348 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -111,7 +111,6 @@ pnpm dev
# Run tests
pnpm test
pnpm test:watch
-pnpm test:e2e # Playwright E2E tests
# Lint and typecheck
pnpm lint
@@ -217,6 +216,6 @@ Test names should explain the **why** (business logic, user scenario, or expecte
- **Frontend**: SolidJS, UnoCSS, Shadcn Solid, TanStack Query, Vite
- **Backend**: HonoJS, Drizzle ORM, Better Auth, Zod, Cadence MQ
- **Database**: SQLite/Turso (libsql)
-- **Testing**: Vitest, Playwright, Testcontainers
+- **Testing**: Vitest, Testcontainers
- **Monorepo**: PNPM workspaces with catalog for shared dependencies
- **Build**: esbuild (backend), Vite (frontend), tsdown (packages)
\ No newline at end of file
diff --git a/apps/papra-client/package.json b/apps/papra-client/package.json
index 769640e9..0e75b340 100644
--- a/apps/papra-client/package.json
+++ b/apps/papra-client/package.json
@@ -22,7 +22,6 @@
"lint:fix": "eslint --fix .",
"test": "vitest run",
"test:watch": "vitest watch",
- "test:e2e": "playwright test",
"typecheck": "tsc --noEmit",
"script:sync-i18n-key-order": "tsx src/scripts/sync-i18n-key-order.script.ts"
},
@@ -57,7 +56,6 @@
"devDependencies": {
"@antfu/eslint-config": "catalog:",
"@iconify-json/tabler": "^1.2.19",
- "@playwright/test": "^1.53.1",
"@types/node": "catalog:",
"eslint": "catalog:",
"eslint-plugin-solid": "^0.14.5",
diff --git a/apps/papra-client/playwright.config.ts b/apps/papra-client/playwright.config.ts
deleted file mode 100644
index 184d60d1..00000000
--- a/apps/papra-client/playwright.config.ts
+++ /dev/null
@@ -1,67 +0,0 @@
-import process from 'node:process';
-import { defineConfig, devices } from '@playwright/test';
-
-const port = process.env.PORT ?? '3999';
-const baseURL = process.env.BASE_URL ?? `http://localhost:${port}/`;
-const isCI = Boolean(process.env.CI);
-const startPreviewServer = Boolean(process.env.USE_PREVIEW_SERVER);
-
-/**
- * See https://playwright.dev/docs/test-configuration.
- */
-export default defineConfig({
- testDir: './e2e-tests',
- /* Run tests in files in parallel */
- fullyParallel: true,
- /* Fail the build on CI if you accidentally left test.only in the source code. */
- forbidOnly: isCI,
- /* Retry on CI only */
- retries: isCI ? 2 : 0,
- /* Opt out of parallel tests on CI. */
- workers: isCI ? 1 : undefined,
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
- reporter: 'html',
- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
- use: {
- /* Base URL to use in actions like `await page.goto('/')`. */
- baseURL,
-
- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
- trace: 'on-first-retry',
-
- testIdAttribute: 'data-test-id',
- locale: 'en-GB',
- timezoneId: 'Europe/Paris',
- },
-
- /* Configure projects for major browsers */
- projects: [
- {
- name: 'chromium',
- use: { ...devices['Desktop Chrome'] },
- },
-
- {
- name: 'firefox',
- use: { ...devices['Desktop Firefox'] },
- },
-
- {
- name: 'webkit',
- use: { ...devices['Desktop Safari'] },
- },
- ],
-
- ...(startPreviewServer
- ? {
- webServer: {
- command: 'cd dist-app && node index.cjs',
- reuseExistingServer: true,
- env: {
- PORT: port,
- },
- },
- }
- : {}),
-
-});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c891c0c7..9b64094d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -368,9 +368,6 @@ importers:
'@iconify-json/tabler':
specifier: ^1.2.19
version: 1.2.19
- '@playwright/test':
- specifier: ^1.53.1
- version: 1.53.1
'@types/node':
specifier: 'catalog:'
version: 24.0.10
@@ -3682,11 +3679,6 @@ packages:
resolution: {integrity: sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==}
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
- '@playwright/[email protected]':
- resolution: {integrity: sha512-Z4c23LHV0muZ8hfv4jw6HngPJkbbtZxTkxPNIg7cJcTc9C28N/p2q7g3JZS2SiKBBHJ3uM1dgDye66bB7LEk5w==}
- engines: {node: '>=18'}
- hasBin: true
-
resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==}
@@ -7767,11 +7759,6 @@ packages:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
- resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}
- engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
- os: [darwin]
-
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
@@ -9865,16 +9852,6 @@ packages:
resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}
- resolution: {integrity: sha512-Z46Oq7tLAyT0lGoFx4DOuB1IA9D1TPj0QkYxpPVUnGDqHHvDpCftu1J2hM2PiWsNMoZh8+LQaarAWcDfPBc6zg==}
- engines: {node: '>=18'}
- hasBin: true
-
- resolution: {integrity: sha512-LJ13YLr/ocweuwxyGf1XNFWIU4M2zUSo149Qbp+A4cpwDjsxRPj7k6H25LBrEHiEwxvRbD8HdwvQmRMSvquhYw==}
- engines: {node: '>=18'}
- hasBin: true
-
resolution: {integrity: sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==}
engines: {node: '>=10.4.0'}
@@ -15875,10 +15852,6 @@ snapshots:
'@pkgr/[email protected]': {}
- '@playwright/[email protected]':
- dependencies:
- playwright: 1.53.1
-
'@polka/[email protected]': {}
'@polka/[email protected]': {}
@@ -20915,9 +20888,6 @@ snapshots:
- optional: true
-
optional: true
@@ -23694,14 +23664,6 @@ snapshots:
exsolve: 1.0.7
pathe: 2.0.3
-
- dependencies:
- playwright-core: 1.53.1
- optionalDependencies:
- fsevents: 2.3.2
-
dependencies:
'@xmldom/xmldom': 0.8.11