rrweb-browser-test 2.0.0 → 2.1.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/CHANGELOG.md +12 -0
- package/README.md +32 -0
- package/dist/index.cjs +403 -6071
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +389 -6071
- package/example/index.js +18 -0
- package/package.json +1 -1
- package/src/core.ts +12 -3
- package/src/cypress/index.ts +123 -0
- package/src/index.ts +2 -5
- package/src/playwright/index.ts +9 -3
- package/src/puppeteer/index.ts +130 -0
- package/src/selenium/index.ts +127 -0
- package/src/types.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# rrweb-browser-test
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5ecdf00: :sparle: Support for puppeteer, cypress and selenium
|
|
8
|
+
|
|
9
|
+
## 2.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 76f7ce2: Exporting browser test function
|
|
14
|
+
|
|
3
15
|
## 2.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -1 +1,33 @@
|
|
|
1
1
|
# rrweb-browser-test
|
|
2
|
+
|
|
3
|
+
Auto-generating browser tests from rrweb recording events. Following test frameworks supported:
|
|
4
|
+
|
|
5
|
+
- Playwright
|
|
6
|
+
- Puppeteer
|
|
7
|
+
- Cypress
|
|
8
|
+
- Selenium
|
|
9
|
+
|
|
10
|
+
### Example
|
|
11
|
+
|
|
12
|
+
Specify your recorded rrweb as `events.json`. The following code will generate auto-generate test script based on recorded events.
|
|
13
|
+
|
|
14
|
+
```javascript
|
|
15
|
+
import { generateBrowserTests, TestFramework } from '../dist/index.cjs';
|
|
16
|
+
import events from 'events.json' with { type: 'json' };
|
|
17
|
+
|
|
18
|
+
console.log(generateBrowserTests(events).toCode());
|
|
19
|
+
console.log(
|
|
20
|
+
generateBrowserTests(events, {
|
|
21
|
+
framework: TestFramework.PLAYWRIGHT,
|
|
22
|
+
}).toCode(),
|
|
23
|
+
);
|
|
24
|
+
console.log(
|
|
25
|
+
generateBrowserTests(events, { framework: TestFramework.CYPRESS }).toCode(),
|
|
26
|
+
);
|
|
27
|
+
console.log(
|
|
28
|
+
generateBrowserTests(events, { framework: TestFramework.SELENIUM }).toCode(),
|
|
29
|
+
);
|
|
30
|
+
console.log(
|
|
31
|
+
generateBrowserTests(events, { framework: TestFramework.PUPPETEER }).toCode(),
|
|
32
|
+
);
|
|
33
|
+
```
|