@testrelic/playwright-analytics 2.1.2 → 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 +2 -2
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.2",
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",
@@ -81,7 +81,7 @@
81
81
  "@playwright/test": ">=1.35.0"
82
82
  },
83
83
  "dependencies": {
84
- "@testrelic/core": "2.1.2"
84
+ "@testrelic/core": "2.1.3"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@playwright/test": "^1.35.0",