@sentinelqa/playwright 0.1.0 → 0.1.1

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
@@ -34,6 +34,12 @@ Set your ingest token in CI:
34
34
  SENTINEL_TOKEN=your_project_ingest_token
35
35
  ```
36
36
 
37
+ Optional local upload guardrail:
38
+
39
+ ```bash
40
+ SENTINEL_UPLOAD_LOCAL=1
41
+ ```
42
+
37
43
  Then keep your existing Playwright command:
38
44
 
39
45
  ```bash
@@ -50,5 +56,5 @@ npx playwright test
50
56
  ## Notes
51
57
 
52
58
  - Uploads run only when `SENTINEL_TOKEN` is set
53
- - Uploads currently require GitHub Actions, GitLab CI, or CircleCI metadata
54
- - Local runs keep working; upload is skipped outside supported CI providers
59
+ - CI uploads work on GitHub Actions, GitLab CI, and CircleCI
60
+ - Local uploads are disabled by default and require `SENTINEL_UPLOAD_LOCAL=1`
package/dist/reporter.js CHANGED
@@ -28,9 +28,11 @@ class SentinelReporter {
28
28
  if (!process.env.SENTINEL_TOKEN) {
29
29
  return;
30
30
  }
31
- if (!(0, node_1.hasSupportedCiEnv)(process.env)) {
31
+ const hasCiEnv = (0, node_1.hasSupportedCiEnv)(process.env);
32
+ const localUploadEnabled = (0, node_1.isLocalUploadEnabled)(process.env);
33
+ if (!hasCiEnv && !localUploadEnabled) {
32
34
  console.log("");
33
- console.log("Skipping Sentinel upload because no supported CI environment was detected.");
35
+ console.log("Sentinel local upload disabled. Set SENTINEL_UPLOAD_LOCAL=1 to enable.");
34
36
  return;
35
37
  }
36
38
  console.log("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentinelqa/playwright",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "Playwright config wrapper and reporter for SentinelQA",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "@playwright/test": ">=1.40.0"
35
35
  },
36
36
  "dependencies": {
37
- "@sentinelqa/uploader": "^0.1.20"
37
+ "@sentinelqa/uploader": "^0.1.21"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "tsc -p tsconfig.json",