mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-22 20:29:18 +01:00
test: include company context regression in browser CI
Place the regression in the default e2e discovery tree so the existing Chrome CI shards run it. Keep a focused config for fast local runs and honor the configured browser channel. The focused Chromium test passes, the default Playwright project lists it, and CI shard discovery includes it. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
e6def308b6
commit
a0b5270662
5 files changed
+20
-13
No files matched your search
+3
-1
@@ -1641,4 +1641,6 @@ module version. Production builds do not use the development cache.
|
|||||||
|
|
||||||
Run `pnpm test:e2e:browser-context` to test this with real Vite modules and
|
Run `pnpm test:e2e:browser-context` to test this with real Vite modules and
|
||||||
Chromium. The test starts its own loopback Vite server and mocks API responses;
|
Chromium. The test starts its own loopback Vite server and mocks API responses;
|
||||||
it needs no running Paperclip instance or provider credentials.
|
it needs no running Paperclip instance or provider credentials. The same spec lives
|
||||||
|
in the default `test:e2e` discovery tree, so the existing Chrome CI shards run it
|
||||||
|
on pull requests.
|
||||||
+1
-1
@@ -71,7 +71,7 @@
|
|||||||
"test:e2e:runner:models:update": "node cli/node_modules/tsx/dist/cli.mjs tests/runner-e2e/openrouter-models-update.ts",
|
"test:e2e:runner:models:update": "node cli/node_modules/tsx/dist/cli.mjs tests/runner-e2e/openrouter-models-update.ts",
|
||||||
"test:e2e:runner:history:publish": "node cli/node_modules/tsx/dist/cli.mjs tests/runner-e2e/history-publish.ts",
|
"test:e2e:runner:history:publish": "node cli/node_modules/tsx/dist/cli.mjs tests/runner-e2e/history-publish.ts",
|
||||||
"test:runner-recovery": "vitest run server/src/services/native-runtime/native-replacement-evidence.test.ts server/src/services/native-runtime/stopped-codex-turn.test.ts server/src/services/native-runtime/native-safe-replacement.test.ts",
|
"test:runner-recovery": "vitest run server/src/services/native-runtime/native-replacement-evidence.test.ts server/src/services/native-runtime/stopped-codex-turn.test.ts server/src/services/native-runtime/native-safe-replacement.test.ts",
|
||||||
"test:e2e:browser-context": "playwright test --config tests/browser-context/playwright.config.ts",
|
"test:e2e:browser-context": "playwright test --config tests/e2e/playwright-company-context.config.ts",
|
||||||
"test:e2e:runner:browser-support": "playwright test --config tests/runner-e2e/playwright-support.config.ts",
|
"test:e2e:runner:browser-support": "playwright test --config tests/runner-e2e/playwright-support.config.ts",
|
||||||
"test:e2e:runner:unit": "vitest run --config tests/runner-e2e/vitest.config.ts",
|
"test:e2e:runner:unit": "vitest run --config tests/runner-e2e/vitest.config.ts",
|
||||||
"test:e2e:runner:typecheck": "tsc -p tests/runner-e2e/tsconfig.json",
|
"test:e2e:runner:typecheck": "tsc -p tests/runner-e2e/tsconfig.json",
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import { defineConfig } from "@playwright/test";
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
testDir: ".",
|
|
||||||
testMatch: "*.spec.ts",
|
|
||||||
workers: 1,
|
|
||||||
timeout: 30_000,
|
|
||||||
use: { headless: true },
|
|
||||||
outputDir: "./test-results",
|
|
||||||
reporter: "list",
|
|
||||||
});
|
|
||||||
File renamed without changes.
@@ -0,0 +1,16 @@
|
|||||||
|
import { defineConfig } from "@playwright/test";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
testDir: ".",
|
||||||
|
testMatch: "company-context-refresh.spec.ts",
|
||||||
|
workers: 1,
|
||||||
|
timeout: 30_000,
|
||||||
|
use: {
|
||||||
|
headless: true,
|
||||||
|
...(process.env.PAPERCLIP_PLAYWRIGHT_CHANNEL
|
||||||
|
? { channel: process.env.PAPERCLIP_PLAYWRIGHT_CHANNEL }
|
||||||
|
: {}),
|
||||||
|
},
|
||||||
|
outputDir: "./test-results",
|
||||||
|
reporter: "list",
|
||||||
|
});
|
||||||
Reference in new issue
Block a user