@testrelic/playwright-analytics 2.1.1 → 2.1.3

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 +21 -0
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -331,6 +331,27 @@ test('API data matches UI', { tag: ['@e2e', '@api'] }, async ({ page, request })
331
331
  });
332
332
  ```
333
333
 
334
+ ## Examples
335
+
336
+ Full working examples for E2E, API, and unified testing are available in the [testrelic-sdk-examples](https://github.com/testrelic-ai/testrelic-sdk-examples) repository:
337
+
338
+ | Example | Type | What It Demonstrates |
339
+ |---|---|---|
340
+ | [api-testing](https://github.com/testrelic-ai/testrelic-sdk-examples/tree/main/api-testing) | API only | CRUD operations, API chaining, response assertions, config options, error handling |
341
+ | [unified-testing](https://github.com/testrelic-ai/testrelic-sdk-examples/tree/main/unified-testing) | E2E + API | Browser navigation and API calls in the same test |
342
+ | [wikipedia](https://github.com/testrelic-ai/testrelic-sdk-examples/tree/main/wikipedia) | E2E | Homepage, search, link navigation, media-heavy pages |
343
+ | [flipkart](https://github.com/testrelic-ai/testrelic-sdk-examples/tree/main/flipkart) | E2E | Homepage, product search, product pages |
344
+ | [google](https://github.com/testrelic-ai/testrelic-sdk-examples/tree/main/google) | E2E | Search queries, results navigation |
345
+
346
+ Each example is a standalone project — clone and run:
347
+
348
+ ```bash
349
+ git clone https://github.com/testrelic-ai/testrelic-sdk-examples.git
350
+ cd testrelic-sdk-examples/api-testing
351
+ npm install
352
+ npx playwright test
353
+ ```
354
+
334
355
  ## Prerequisites
335
356
 
336
357
  - **Node.js** >= 18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testrelic/playwright-analytics",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Playwright test analytics reporter with E2E navigation tracking, API call capture, network stats, failure diagnostics, and interactive HTML reports",
5
5
  "keywords": [
6
6
  "playwright",
@@ -77,20 +77,11 @@
77
77
  "timeline-schema.json",
78
78
  "README.md"
79
79
  ],
80
- "scripts": {
81
- "build": "tsup",
82
- "test": "vitest run --exclude '**/e2e/**'",
83
- "test:watch": "vitest",
84
- "test:integration": "vitest run --config vitest.integration.config.ts",
85
- "typecheck": "tsc --noEmit",
86
- "test:e2e": "pnpm run build && npx playwright test --config __tests__/e2e/playwright.config.ts",
87
- "test:e2e:validate": "npx tsx __tests__/e2e/validate-report.ts"
88
- },
89
80
  "peerDependencies": {
90
81
  "@playwright/test": ">=1.35.0"
91
82
  },
92
83
  "dependencies": {
93
- "@testrelic/core": "workspace:*"
84
+ "@testrelic/core": "2.1.3"
94
85
  },
95
86
  "devDependencies": {
96
87
  "@playwright/test": "^1.35.0",
@@ -103,5 +94,14 @@
103
94
  "node": ">=18"
104
95
  },
105
96
  "license": "MIT",
106
- "homepage": "https://testrelic.ai"
107
- }
97
+ "homepage": "https://testrelic.ai",
98
+ "scripts": {
99
+ "build": "tsup",
100
+ "test": "vitest run --exclude '**/e2e/**'",
101
+ "test:watch": "vitest",
102
+ "test:integration": "vitest run --config vitest.integration.config.ts",
103
+ "typecheck": "tsc --noEmit",
104
+ "test:e2e": "pnpm run build && npx playwright test --config __tests__/e2e/playwright.config.ts",
105
+ "test:e2e:validate": "npx tsx __tests__/e2e/validate-report.ts"
106
+ }
107
+ }