@appsurify-testmap/rrweb-cypress-plugin 2.1.1-alpha.6 → 2.1.2-alpha.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 +63 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +13635 -0
- package/dist/index.js.map +1 -0
- package/dist/{rrweb-cypress-plugin.umd.min.cjs → index.mjs} +874 -410
- package/dist/index.mjs.map +1 -0
- package/dist/reporter.d.ts +6 -0
- package/dist/reporter.js +2 -0
- package/dist/reporter.js.map +1 -0
- package/dist/reporter.mjs +2 -0
- package/dist/reporter.mjs.map +1 -0
- package/package.json +19 -31
- package/dist/rrweb-cypress-plugin-reporter.cjs +0 -384
- package/dist/rrweb-cypress-plugin-reporter.cjs.map +0 -1
- package/dist/rrweb-cypress-plugin-reporter.d.cts +0 -16
- package/dist/rrweb-cypress-plugin-reporter.d.ts +0 -16
- package/dist/rrweb-cypress-plugin-reporter.js +0 -367
- package/dist/rrweb-cypress-plugin-reporter.js.map +0 -1
- package/dist/rrweb-cypress-plugin-reporter.umd.cjs +0 -434
- package/dist/rrweb-cypress-plugin-reporter.umd.cjs.map +0 -7
- package/dist/rrweb-cypress-plugin-reporter.umd.min.cjs +0 -32
- package/dist/rrweb-cypress-plugin-reporter.umd.min.cjs.map +0 -7
- package/dist/rrweb-cypress-plugin.cjs +0 -537
- package/dist/rrweb-cypress-plugin.cjs.map +0 -1
- package/dist/rrweb-cypress-plugin.d.cts +0 -3
- package/dist/rrweb-cypress-plugin.d.ts +0 -3
- package/dist/rrweb-cypress-plugin.js +0 -537
- package/dist/rrweb-cypress-plugin.js.map +0 -1
- package/dist/rrweb-cypress-plugin.umd.cjs +0 -590
- package/dist/rrweb-cypress-plugin.umd.cjs.map +0 -7
- package/dist/rrweb-cypress-plugin.umd.min.cjs.map +0 -7
package/Readme.md
CHANGED
|
@@ -1,2 +1,65 @@
|
|
|
1
1
|
# @appsurify-testmap/rrweb-cypress-plugin
|
|
2
2
|
|
|
3
|
+
## Notes
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
// file: cypress.config.ts
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
fixturesFolder: false,
|
|
10
|
+
env: {
|
|
11
|
+
testmap: {
|
|
12
|
+
recordingOpts: {
|
|
13
|
+
checkoutEveryNvm: 5,
|
|
14
|
+
// excludeAttribute: /data-(cy|test(id)?|cypress|highlight-el|cypress-el)/i,
|
|
15
|
+
maskInputOptions: { password: true },
|
|
16
|
+
sampling: {
|
|
17
|
+
mousemove: false,
|
|
18
|
+
mouseInteraction: {
|
|
19
|
+
MouseUp: false,
|
|
20
|
+
MouseDown: false,
|
|
21
|
+
Click: true,
|
|
22
|
+
ContextMenu: true,
|
|
23
|
+
DblClick: true,
|
|
24
|
+
Focus: true,
|
|
25
|
+
Blur: true,
|
|
26
|
+
TouchStart: false,
|
|
27
|
+
TouchEnd: false,
|
|
28
|
+
},
|
|
29
|
+
scroll: 100,
|
|
30
|
+
media: 100,
|
|
31
|
+
input: 'last',
|
|
32
|
+
canvas: 'all',
|
|
33
|
+
visibility: {
|
|
34
|
+
mode: 'debounce',
|
|
35
|
+
debounce: 100,
|
|
36
|
+
threshold: 0.5,
|
|
37
|
+
sensitivity: 0.05,
|
|
38
|
+
rafThrottle: 100
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
flushCustomEvent: 'after',
|
|
42
|
+
// recordAfter: 'DOMContentStabilized',
|
|
43
|
+
recordAfter: 'DOMContentLoaded',
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
e2e: {
|
|
48
|
+
setupNodeEvents(on, config) {
|
|
49
|
+
registerRRWebReportTasks(on, {...config, outputReportDir: 'test-results/cypress/ui'});
|
|
50
|
+
return config;
|
|
51
|
+
},
|
|
52
|
+
baseUrl: 'http://localhost:8888',
|
|
53
|
+
|
|
54
|
+
},
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
// file: support.js
|
|
61
|
+
const { initializeTestmap } = require('@appsurify-testmap/rrweb-cypress-plugin')
|
|
62
|
+
|
|
63
|
+
initializeTestmap()
|
|
64
|
+
|
|
65
|
+
```
|
package/dist/index.d.ts
ADDED