@test-station/cli 0.2.29 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +47 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -295,6 +295,24 @@ Artifacts:
295
295
  - timestamped benchmark snapshots under `artifacts/e2e-performance/`
296
296
  - Playwright JSON output at `artifacts/e2e-performance/playwright-results.json`
297
297
 
298
+ Each benchmark record now also carries a `profiling` block with:
299
+
300
+ - server-side page-load timings captured during `getServerSideProps`
301
+ - browser page-ready marks for overview, project, run, operations, and runner-frame milestones
302
+ - recent client-side route-transition events
303
+ - recent browser-side traced fetches and their upstream response ids
304
+ - resource timings for `/graphql`, `/_next/data/`, and runner-report iframe requests
305
+
306
+ These profiling fields only appear once the target deployment is running a build that includes the instrumentation hooks from this repo.
307
+
308
+ The traced web responses also expose:
309
+
310
+ - `x-request-id`
311
+ - `x-test-station-trace-id`
312
+ - `x-test-station-parent-request-id` when a request is part of a larger chain
313
+ - `x-test-station-upstream-request-id` / `x-test-station-upstream-trace-id` on proxied web API responses
314
+ - `Server-Timing` for SSR page loads and GraphQL endpoint timing
315
+
298
316
  Optional environment variables:
299
317
 
300
318
  - `TEST_STATION_E2E_BASE_URL`: target deployment to benchmark
@@ -308,6 +326,35 @@ Optional environment variables:
308
326
  - `TEST_STATION_E2E_BUDGET_OPERATIONS_VIEW_SWITCH_MS`
309
327
  - `TEST_STATION_E2E_BUDGET_PROJECT_PAGE_NAVIGATION_MS`
310
328
 
329
+ ### Live UI Interaction Regressions
330
+
331
+ This repo also carries a separate live-data interaction suite for the visible navigation surfaces. Unlike the benchmark suite, these tests do not fall back to direct route changes, so they fail when a click target stops navigating.
332
+
333
+ Typical usage:
334
+
335
+ ```sh
336
+ yarn playwright install --with-deps chromium
337
+ TEST_STATION_E2E_BASE_URL=https://test-station.smysnk.com yarn test:e2e:interactions
338
+ ```
339
+
340
+ What it checks:
341
+
342
+ - clicking a home-page run row opens the run detail page
343
+ - clicking a project execution-feed run link opens the run detail page
344
+ - clicking `Operations view` switches from the runner report to the operations template
345
+ - clicking the project link on a run detail page navigates back to the related project page
346
+
347
+ Artifacts:
348
+
349
+ - Playwright JSON output at `artifacts/e2e-interactions/playwright-results.json`
350
+ - traces and screenshots under `artifacts/e2e-interactions/test-results/`
351
+
352
+ Optional environment variables:
353
+
354
+ - `TEST_STATION_E2E_BASE_URL`: target deployment to exercise
355
+ - `TEST_STATION_E2E_STORAGE_STATE`: optional Playwright storage-state file when the target requires authentication
356
+ - `TEST_STATION_E2E_INTERACTIONS_OUTPUT_DIR`: override the interaction artifact directory
357
+
311
358
  If the app redirects to `/auth/signin` and no storage state is provided, or if there are no public runs/projects visible, the benchmark suite skips rather than failing with misleading timing output.
312
359
 
313
360
  ### Publishing CI Runs To `/api/ingest`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@test-station/cli",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,8 +12,8 @@
12
12
  ".": "./src/index.js"
13
13
  },
14
14
  "dependencies": {
15
- "@test-station/core": "0.2.29",
16
- "@test-station/render-html": "0.2.29"
15
+ "@test-station/core": "0.2.31",
16
+ "@test-station/render-html": "0.2.31"
17
17
  },
18
18
  "scripts": {
19
19
  "build": "node ../../scripts/check-package.mjs ./src/index.js && node --check ./src/cli.js",