@limetech/lime-scenario-harness 1.0.0 → 2.0.0

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/README.md CHANGED
@@ -25,7 +25,7 @@ stays in each package's own helpers next to its specs.
25
25
  import {
26
26
  test, // Playwright's test + fault reporter and `cleanup` fixtures
27
27
  expect,
28
- requireEnvironment, // unmet needs FAIL by default (PW_ALLOW_SKIPS=1 demotes to skips)
28
+ requireEnvironment, // unmet needs FAIL by default (LIME_SCENARIO_ALLOW_SKIPS=1 demotes to skips)
29
29
  requireConfig,
30
30
  checkpoint, // named screenshot attached to the report as evidence
31
31
  createObject, // API client: seed, read back, update, delete
@@ -51,11 +51,11 @@ scenario-test workflow in lime-workflows:
51
51
  Runner-internal knobs, defaulting to the conventional layout under the
52
52
  runner's working directory:
53
53
 
54
- | Variable | Default | Meaning |
55
- | -------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
56
- | `LIME_SCENARIO_STAGE_DIR` | `./.discovered` | Where discovery staged each package's files (one directory per Playwright project) and `versions.json`. |
57
- | `LIME_SCENARIO_AUTH_STATE` | `./.auth/state.json` | Where `authenticate()` saves the login session for `storageState`. |
58
- | `PW_ALLOW_SKIPS` | unset | `1` demotes unmet `requireEnvironment` needs to skips. Only for tiers that knowingly run under-provisioned targets (a PR-gate boot without package data). A verification run against a provisioned environment must NOT set it: a silent skip there reads as a pass. |
54
+ | Variable | Default | Meaning |
55
+ | --------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
56
+ | `LIME_SCENARIO_STAGE_DIR` | `./.discovered` | Where discovery staged each package's files (one directory per Playwright project) and `versions.json`. |
57
+ | `LIME_SCENARIO_AUTH_STATE` | `./.auth/state.json` | Where `authenticate()` saves the login session for `storageState`. |
58
+ | `LIME_SCENARIO_ALLOW_SKIPS` | unset | `1` demotes unmet `requireEnvironment` needs to skips. Only for tiers that knowingly run under-provisioned targets (a PR-gate boot without package data). A verification run against a provisioned environment must NOT set it: a silent skip there reads as a pass. |
59
59
 
60
60
  ## Runner wiring
61
61
 
@@ -15,7 +15,7 @@ export declare const test: import("@playwright/test").TestType<import("@playwrig
15
15
  * Declares what the spec needs from the target environment: the limetype
16
16
  * it drives, the config it asserts against, the wiring that produces the
17
17
  * effect. Unmet requirements fail by default - a silent skip would read
18
- * as a pass; `PW_ALLOW_SKIPS=1` demotes them to skips (see README).
18
+ * as a pass; `LIME_SCENARIO_ALLOW_SKIPS=1` demotes them to skips (see README).
19
19
  */
20
20
  export declare function requireEnvironment(provided: boolean, reason: string): asserts provided;
21
21
  /** Reads a config section and requires the target to have it, in one step. */
package/dist/fixtures.js CHANGED
@@ -11,7 +11,7 @@ const api_1 = require("./api");
11
11
  * import the harness before it runs dotenv, and this module loads with the
12
12
  * barrel import.
13
13
  */
14
- const allowSkips = () => process.env.PW_ALLOW_SKIPS === '1';
14
+ const allowSkips = () => process.env.LIME_SCENARIO_ALLOW_SKIPS === '1';
15
15
  const HTTP_CLIENT_ERROR = 400;
16
16
  /** How long a readback waits for a write the action under test triggered */
17
17
  exports.WRITE_SETTLE_MS = 15_000;
@@ -91,7 +91,7 @@ exports.test = test_1.test.extend({
91
91
  * Declares what the spec needs from the target environment: the limetype
92
92
  * it drives, the config it asserts against, the wiring that produces the
93
93
  * effect. Unmet requirements fail by default - a silent skip would read
94
- * as a pass; `PW_ALLOW_SKIPS=1` demotes them to skips (see README).
94
+ * as a pass; `LIME_SCENARIO_ALLOW_SKIPS=1` demotes them to skips (see README).
95
95
  */
96
96
  function requireEnvironment(provided, reason) {
97
97
  if (provided) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-scenario-harness",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Standard library for Lime CRM scenario tests: login, API seeding, tracked cleanup, translation assertions, evidence screenshots.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {