@andwhy/e2e-pipeline 0.14.5 → 0.14.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andwhy/e2e-pipeline",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "description": "Scaffolds the full e2e testing pipeline: agent-assisted Playwright tests, CI runs against Vercel previews, and Checkly monitors that follow production deploys",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "e2e-pipeline",
3
3
  "displayName": "&why e2e pipeline",
4
- "version": "0.14.5",
4
+ "version": "0.14.6",
5
5
  "description": "Agent-assisted Playwright e2e tests: planner, generator and healer agents plus the playwright-test-pipeline skill that drives Plan → Generate → Heal, Checkly preview validation and deployment.",
6
6
  "author": {
7
7
  "name": "&why",
@@ -7,7 +7,7 @@ description: Guides the full workflow for creating and maintaining Playwright
7
7
  tests, asks to "test" a page/feature/flow, or asks how the test pipeline
8
8
  works.
9
9
  metadata:
10
- version: "0.14.5"
10
+ version: "0.14.6"
11
11
  ---
12
12
 
13
13
  # Playwright Test Pipeline
@@ -1,5 +1,9 @@
1
1
  import { defineConfig, devices } from "@playwright/test";
2
2
 
3
+ // Checkly sets CHECKLY=1 but not CI. Without this, monitors run with the
4
+ // local settings: no retries, so one stalled page load fails the check.
5
+ const isCI = !!process.env.CI || process.env.CHECKLY === "1";
6
+
3
7
  export default defineConfig({
4
8
  // e2e specs live here so other suites elsewhere under tests/ are not picked
5
9
  // up. If the repo already has such a suite (unit, a11y), give it its own
@@ -9,9 +13,9 @@ export default defineConfig({
9
13
  // Seeds are run directly by the Playwright MCP, not as tests of their own.
10
14
  testIgnore: "**/seed.spec.*",
11
15
  fullyParallel: true,
12
- forbidOnly: !!process.env.CI,
13
- retries: process.env.CI ? 2 : 0,
14
- workers: process.env.CI ? 1 : undefined,
16
+ forbidOnly: isCI,
17
+ retries: isCI ? 2 : 0,
18
+ workers: isCI ? 1 : undefined,
15
19
  reporter: "html",
16
20
  use: {
17
21
  baseURL: process.env.BASE_URL ?? "http://localhost:3000",
@@ -1,5 +1,9 @@
1
1
  import { defineConfig, devices } from "@playwright/test";
2
2
 
3
+ // Checkly sets CHECKLY=1 but not CI. Without this, monitors run with the
4
+ // local settings: no retries, so one stalled page load fails the check.
5
+ const isCI = !!process.env.CI || process.env.CHECKLY === "1";
6
+
3
7
  export default defineConfig({
4
8
  // e2e specs live here so other suites elsewhere under tests/ are not picked
5
9
  // up. If the repo already has such a suite (unit, a11y), give it its own
@@ -9,9 +13,9 @@ export default defineConfig({
9
13
  // Seeds are run directly by the Playwright MCP, not as tests of their own.
10
14
  testIgnore: "**/seed.spec.*",
11
15
  fullyParallel: true,
12
- forbidOnly: !!process.env.CI,
13
- retries: process.env.CI ? 2 : 0,
14
- workers: process.env.CI ? 1 : undefined,
16
+ forbidOnly: isCI,
17
+ retries: isCI ? 2 : 0,
18
+ workers: isCI ? 1 : undefined,
15
19
  reporter: "html",
16
20
  use: {
17
21
  baseURL: process.env.BASE_URL ?? "http://localhost:3000",