@appsurify-testmap/rrweb-cypress-plugin 3.1.1-alpha.3 → 3.2.0-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/dist/index.js +131 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +131 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var g=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var O=(e,t)=>{for(var n in t)g(e,n,{get:t[n],enumerable:!0})},P=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of M(t))!N.call(e,s)&&s!==n&&g(e,s,{get:()=>t[s],enumerable:!(r=A(t,s))||r.enumerable});return e};var L=e=>P(g({},"__esModule",{value:!0}),e);var X={};O(X,{initializeTestmap:()=>T});module.exports=L(X);var b=new Map;function v(e,t){b.set(e,t)}function
|
|
1
|
+
"use strict";var g=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var O=(e,t)=>{for(var n in t)g(e,n,{get:t[n],enumerable:!0})},P=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of M(t))!N.call(e,s)&&s!==n&&g(e,s,{get:()=>t[s],enumerable:!(r=A(t,s))||r.enumerable});return e};var L=e=>P(g({},"__esModule",{value:!0}),e);var X={};O(X,{initializeTestmap:()=>T});module.exports=L(X);var b=new Map;function v(e,t){b.set(e,t)}function u(e){return b.get(e)}function d(e){return e.filter(t=>typeof t=="object"&&t!==null&&"log"in t&&t.log===!1?!1:typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t===null)}function l(e){return e.titlePath().join(" > ")}function D(e){if(e)return{id:e.id,file:e.file,invocationDetails:w(e.invocationDetails),pending:e.pending,root:e.root,title:e.title,type:e.type}}function w(e){return{absoluteFile:e?.absoluteFile??"",column:e?.column??0,fileUrl:e?.fileUrl??"",function:e?.function??"",line:e?.line??0,originalFile:e?.originalFile??"",relativeFile:e?.relativeFile??""}}function x(e){return{runner:e.runner,spec:F(e.spec),browser:z(e.browser),test:U(e.test),recorderEvents:Array.isArray(e.recorderEvents)?e.recorderEvents:[]}}function F(e){return{name:e.name??"",absolute:e.absolute??"",relative:e.relative??"",specFilter:e.specFilter??"",specType:e.specType??"integration",baseName:e.baseName??"",fileExtension:e.fileExtension??"",fileName:e.fileName??"",id:e.id??""}}function z(e){return{name:e.name??"",version:e.version??"",displayName:e.displayName??"",family:e.family??"",majorVersion:e.majorVersion??"",channel:e.channel??"",path:e.path??""}}function U(e){return{suite:D(e.parent),file:e.file??"",duration:e.duration??0,id:e.id??"",invocationDetails:w(e.invocationDetails),pending:e.pending??!1,state:e.state??"unknown",sync:e.sync??!1,timedOut:e.timedOut??!1,title:e.title??"",titlePath:typeof e.titlePath=="function"?e.titlePath():[],fullTitle:typeof e.fullTitle=="function"?e.fullTitle():"",type:e.type??"test"}}var $=require("@appsurify-testmap/rrweb"),k=require("@appsurify-testmap/rrweb-plugin-sequential-id-record");var S=`(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrweb", [], f);} else if ("object" == typeof exports) {exports["rrweb"] = f();} else {g["rrweb"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __defProps = Object.defineProperties;
|
|
@@ -13930,6 +13930,30 @@ class MutationBuffer {
|
|
|
13930
13930
|
this.shadowDomManager.reset();
|
|
13931
13931
|
this.canvasManager.reset();
|
|
13932
13932
|
}
|
|
13933
|
+
/**
|
|
13934
|
+
* Clear all accumulated mutation data without emitting.
|
|
13935
|
+
* Used after freeze+debounce checkout \u2014 FullSnapshot already captured the state.
|
|
13936
|
+
*/
|
|
13937
|
+
resetBuffers() {
|
|
13938
|
+
this.addedSet = /* @__PURE__ */ new Set();
|
|
13939
|
+
this.movedSet = /* @__PURE__ */ new Set();
|
|
13940
|
+
this.droppedSet = /* @__PURE__ */ new Set();
|
|
13941
|
+
this.removesSubTreeCache = /* @__PURE__ */ new Set();
|
|
13942
|
+
this.mapRemoves = [];
|
|
13943
|
+
this.movedMap = {};
|
|
13944
|
+
this.attributes = [];
|
|
13945
|
+
this.texts = [];
|
|
13946
|
+
this.attributeMap = /* @__PURE__ */ new WeakMap();
|
|
13947
|
+
this.removes = [];
|
|
13948
|
+
}
|
|
13949
|
+
/**
|
|
13950
|
+
* Clear frozen flag without triggering emit.
|
|
13951
|
+
* Used after freeze+debounce checkout \u2014 buffers already cleared by resetBuffers().
|
|
13952
|
+
*/
|
|
13953
|
+
unsetFrozen() {
|
|
13954
|
+
this.frozen = false;
|
|
13955
|
+
this.canvasManager.unfreeze();
|
|
13956
|
+
}
|
|
13933
13957
|
}
|
|
13934
13958
|
function deepDelete(addsSet, n2) {
|
|
13935
13959
|
addsSet.delete(n2);
|
|
@@ -16350,11 +16374,15 @@ class VisibilityManager {
|
|
|
16350
16374
|
}
|
|
16351
16375
|
flushBuffer() {
|
|
16352
16376
|
var _a2;
|
|
16377
|
+
if (this.frozen || this.locked)
|
|
16378
|
+
return;
|
|
16353
16379
|
if (this.buffer.size === 0)
|
|
16354
16380
|
return;
|
|
16355
|
-
|
|
16356
|
-
|
|
16381
|
+
const mutations = Array.from(this.buffer.values());
|
|
16382
|
+
const count = mutations.length;
|
|
16357
16383
|
this.buffer.clear();
|
|
16384
|
+
this.mutationCb({ mutations });
|
|
16385
|
+
(_a2 = this.notifyActivity) == null ? void 0 : _a2.call(this, count);
|
|
16358
16386
|
}
|
|
16359
16387
|
observe(el) {
|
|
16360
16388
|
if (this.disabled)
|
|
@@ -16370,6 +16398,10 @@ class VisibilityManager {
|
|
|
16370
16398
|
}
|
|
16371
16399
|
freeze() {
|
|
16372
16400
|
this.frozen = true;
|
|
16401
|
+
if (this.debounceTimer) {
|
|
16402
|
+
clearTimeout(this.debounceTimer);
|
|
16403
|
+
this.debounceTimer = null;
|
|
16404
|
+
}
|
|
16373
16405
|
}
|
|
16374
16406
|
unfreeze() {
|
|
16375
16407
|
this.frozen = false;
|
|
@@ -16377,9 +16409,33 @@ class VisibilityManager {
|
|
|
16377
16409
|
}
|
|
16378
16410
|
lock() {
|
|
16379
16411
|
this.locked = true;
|
|
16412
|
+
if (this.debounceTimer) {
|
|
16413
|
+
clearTimeout(this.debounceTimer);
|
|
16414
|
+
this.debounceTimer = null;
|
|
16415
|
+
}
|
|
16380
16416
|
}
|
|
16381
16417
|
unlock() {
|
|
16382
16418
|
this.locked = false;
|
|
16419
|
+
this.buffer.clear();
|
|
16420
|
+
if (this.debounceTimer) {
|
|
16421
|
+
clearTimeout(this.debounceTimer);
|
|
16422
|
+
this.debounceTimer = null;
|
|
16423
|
+
}
|
|
16424
|
+
if (!this.disabled && this.elements.size > 0) {
|
|
16425
|
+
this.previousState = computeVisibility(this.elements, /* @__PURE__ */ new Map(), {
|
|
16426
|
+
root: this.root,
|
|
16427
|
+
threshold: this.threshold,
|
|
16428
|
+
sensitivity: this.sensitivity,
|
|
16429
|
+
rootMargin: this.rootMargin
|
|
16430
|
+
});
|
|
16431
|
+
}
|
|
16432
|
+
}
|
|
16433
|
+
/**
|
|
16434
|
+
* Clear frozen flag without triggering flush.
|
|
16435
|
+
* Used after freeze+debounce checkout \u2014 buffer already cleared by unlock().
|
|
16436
|
+
*/
|
|
16437
|
+
unsetFrozen() {
|
|
16438
|
+
this.frozen = false;
|
|
16383
16439
|
}
|
|
16384
16440
|
reset() {
|
|
16385
16441
|
this.elements.clear();
|
|
@@ -16536,6 +16592,7 @@ function record(options = {}) {
|
|
|
16536
16592
|
checkoutEveryNms,
|
|
16537
16593
|
checkoutEveryNth,
|
|
16538
16594
|
checkoutEveryNvm,
|
|
16595
|
+
checkoutDebounce,
|
|
16539
16596
|
blockClass = "rr-block",
|
|
16540
16597
|
blockSelector = null,
|
|
16541
16598
|
ignoreClass = "rr-ignore",
|
|
@@ -16630,6 +16687,10 @@ function record(options = {}) {
|
|
|
16630
16687
|
let lastFullSnapshotEvent;
|
|
16631
16688
|
let incrementalSnapshotCount = 0;
|
|
16632
16689
|
let visibilityMutationCount = 0;
|
|
16690
|
+
let checkoutId = 0;
|
|
16691
|
+
let checkoutPending = false;
|
|
16692
|
+
let checkoutDebounceTimer = null;
|
|
16693
|
+
let checkoutFreezeTimestamp = null;
|
|
16633
16694
|
const eventProcessor = (e2) => {
|
|
16634
16695
|
for (const plugin3 of plugins || []) {
|
|
16635
16696
|
if (plugin3.eventProcessor) {
|
|
@@ -16642,11 +16703,25 @@ function record(options = {}) {
|
|
|
16642
16703
|
}
|
|
16643
16704
|
return e2;
|
|
16644
16705
|
};
|
|
16706
|
+
const executeCheckout = () => {
|
|
16707
|
+
checkoutDebounceTimer = null;
|
|
16708
|
+
checkoutPending = false;
|
|
16709
|
+
checkoutFreezeTimestamp = null;
|
|
16710
|
+
takeFullSnapshot$1(true);
|
|
16711
|
+
mutationBuffers.forEach((buf) => {
|
|
16712
|
+
buf.resetBuffers();
|
|
16713
|
+
buf.unsetFrozen();
|
|
16714
|
+
});
|
|
16715
|
+
if (visibilityManager) {
|
|
16716
|
+
visibilityManager.unsetFrozen();
|
|
16717
|
+
}
|
|
16718
|
+
};
|
|
16645
16719
|
wrappedEmit = (r2, isCheckout) => {
|
|
16646
16720
|
var _a2;
|
|
16647
16721
|
const e2 = r2;
|
|
16648
16722
|
e2.timestamp = nowTimestamp();
|
|
16649
|
-
|
|
16723
|
+
e2.checkoutId = checkoutId;
|
|
16724
|
+
if (((_a2 = mutationBuffers[0]) == null ? void 0 : _a2.isFrozen()) && !checkoutPending && e2.type !== EventType.FullSnapshot && !(e2.type === EventType.IncrementalSnapshot && e2.data.source === IncrementalSource.Mutation)) {
|
|
16650
16725
|
mutationBuffers.forEach((buf) => buf.unfreeze());
|
|
16651
16726
|
visibilityManager == null ? void 0 : visibilityManager.unfreeze();
|
|
16652
16727
|
}
|
|
@@ -16673,7 +16748,29 @@ function record(options = {}) {
|
|
|
16673
16748
|
const exceedCount = checkoutEveryNth && incrementalSnapshotCount >= checkoutEveryNth;
|
|
16674
16749
|
const exceedTime = checkoutEveryNms && e2.timestamp - lastFullSnapshotEvent.timestamp > checkoutEveryNms;
|
|
16675
16750
|
if (exceedCount || exceedTime) {
|
|
16676
|
-
|
|
16751
|
+
if (checkoutDebounce) {
|
|
16752
|
+
if (!checkoutPending) {
|
|
16753
|
+
checkoutPending = true;
|
|
16754
|
+
checkoutFreezeTimestamp = nowTimestamp();
|
|
16755
|
+
mutationBuffers.forEach((buf) => buf.freeze());
|
|
16756
|
+
visibilityManager == null ? void 0 : visibilityManager.freeze();
|
|
16757
|
+
}
|
|
16758
|
+
if (checkoutDebounceTimer) {
|
|
16759
|
+
clearTimeout(checkoutDebounceTimer);
|
|
16760
|
+
}
|
|
16761
|
+
const frozenDuration = nowTimestamp() - checkoutFreezeTimestamp;
|
|
16762
|
+
const maxFreeze = checkoutDebounce * 3;
|
|
16763
|
+
if (frozenDuration >= maxFreeze) {
|
|
16764
|
+
executeCheckout();
|
|
16765
|
+
} else {
|
|
16766
|
+
checkoutDebounceTimer = setTimeout(
|
|
16767
|
+
() => executeCheckout(),
|
|
16768
|
+
checkoutDebounce
|
|
16769
|
+
);
|
|
16770
|
+
}
|
|
16771
|
+
} else {
|
|
16772
|
+
takeFullSnapshot$1(true);
|
|
16773
|
+
}
|
|
16677
16774
|
}
|
|
16678
16775
|
}
|
|
16679
16776
|
}
|
|
@@ -16783,8 +16880,30 @@ function record(options = {}) {
|
|
|
16783
16880
|
notifyActivity: checkoutEveryNvm != null ? (count) => {
|
|
16784
16881
|
visibilityMutationCount += count;
|
|
16785
16882
|
if (visibilityMutationCount >= checkoutEveryNvm) {
|
|
16786
|
-
takeFullSnapshot$1(true);
|
|
16787
16883
|
visibilityMutationCount = 0;
|
|
16884
|
+
if (checkoutDebounce) {
|
|
16885
|
+
if (!checkoutPending) {
|
|
16886
|
+
checkoutPending = true;
|
|
16887
|
+
checkoutFreezeTimestamp = nowTimestamp();
|
|
16888
|
+
mutationBuffers.forEach((buf) => buf.freeze());
|
|
16889
|
+
visibilityManager == null ? void 0 : visibilityManager.freeze();
|
|
16890
|
+
}
|
|
16891
|
+
if (checkoutDebounceTimer) {
|
|
16892
|
+
clearTimeout(checkoutDebounceTimer);
|
|
16893
|
+
}
|
|
16894
|
+
const frozenDuration = nowTimestamp() - checkoutFreezeTimestamp;
|
|
16895
|
+
const maxFreeze = checkoutDebounce * 3;
|
|
16896
|
+
if (frozenDuration >= maxFreeze) {
|
|
16897
|
+
executeCheckout();
|
|
16898
|
+
} else {
|
|
16899
|
+
checkoutDebounceTimer = setTimeout(
|
|
16900
|
+
() => executeCheckout(),
|
|
16901
|
+
checkoutDebounce
|
|
16902
|
+
);
|
|
16903
|
+
}
|
|
16904
|
+
} else {
|
|
16905
|
+
takeFullSnapshot$1(true);
|
|
16906
|
+
}
|
|
16788
16907
|
}
|
|
16789
16908
|
} : void 0
|
|
16790
16909
|
});
|
|
@@ -16793,6 +16912,7 @@ function record(options = {}) {
|
|
|
16793
16912
|
if (!recordDOM) {
|
|
16794
16913
|
return;
|
|
16795
16914
|
}
|
|
16915
|
+
checkoutId++;
|
|
16796
16916
|
wrappedEmit(
|
|
16797
16917
|
{
|
|
16798
16918
|
type: EventType.Meta,
|
|
@@ -17064,6 +17184,10 @@ function record(options = {}) {
|
|
|
17064
17184
|
);
|
|
17065
17185
|
}
|
|
17066
17186
|
return () => {
|
|
17187
|
+
if (checkoutDebounceTimer) {
|
|
17188
|
+
clearTimeout(checkoutDebounceTimer);
|
|
17189
|
+
checkoutDebounceTimer = null;
|
|
17190
|
+
}
|
|
17067
17191
|
flushCustomEventQueue$1();
|
|
17068
17192
|
handlers.forEach((h) => h());
|
|
17069
17193
|
processedNodeManager.destroy();
|
|
@@ -17134,5 +17258,5 @@ exports.record = record;
|
|
|
17134
17258
|
return module.exports;
|
|
17135
17259
|
}))
|
|
17136
17260
|
//# sourceMappingURL=rrweb-record.umd.cjs.map
|
|
17137
|
-
`;var B={slimDOMOptions:"all",inlineStylesheet:!0,recordDOM:!0,recordCanvas:!0,collectFonts:!0,inlineImages:!0,maskInputOptions:{password:!0},sampling:{mousemove:!1,mouseInteraction:{MouseUp:!1,MouseDown:!1,Click:!0,ContextMenu:!0,DblClick:!0,Focus:!0,Blur:!0,TouchStart:!1,TouchEnd:!1},scroll:100,media:100,input:"last",canvas:"all",visibility:{mode:"none",debounce:50,threshold:.5,sensitivity:.05,rafThrottle:50}},flushCustomEvent:"after",recordAfter:"DOMContentLoaded",userTriggeredOnInput:!0};function C(e,t){let n={...e};for(let r in t){let s=t[r],o=e[r];s&&typeof s=="object"&&!Array.isArray(s)&&o&&typeof o=="object"&&!Array.isArray(o)?n[r]=C(o,s):s!==void 0&&(n[r]=s)}return n}var p=class{recordFn=null;stopFn=null;targetWindow=null;context;eventCounter=0;events=[];recordOptions;pendingEvents=[];recorderScriptVersion="unknown";recorderLibVersion=$.version;constructor(t){this.recordOptions=C(B,t??{}),this.context={pushEvent:n=>this.events.push(n)}}handleEmit(t){if(t.type===0||t.type===1)return;let n={...t};this.context.pushEvent(n)}inject(t){let n=t;if(this.targetWindow=t,n.rrweb){this.recordFn=n.rrweb.record??null;return}let r=t.document.createElement("script");r.type="text/javascript",r.innerHTML=S,t.document.head.appendChild(r);let s=t.rrweb;if(!s||!s.record){console.error(`[${Date.now()}] [recorder] Failed to load rrweb.record`);return}this.recordFn=s.record,this.recorderScriptVersion=this.recordFn.getVersion()}start(){if(!this.targetWindow||!this.recordFn){console.debug(`[${Date.now()}] [recorder] Not ready to start`);return}if(this.stopFn){console.debug(`[${Date.now()}] [recorder] Already recording`);return}this.stopFn=this.recordFn({emit:t=>this.handleEmit(t),plugins:[(0,k.getRecordSequentialIdPlugin)({key:"id",getId:()=>++this.eventCounter})],...this.recordOptions}),this.flush()}stop(){this.flush(),this.stopFn?.(),this.stopFn=null}reset(){this.eventCounter=0,this.events=[],this.stop(),this.context={pushEvent:t=>this.events.push(t)}}flush(){if(!this.recordFn)return;let t=[];for(let n of this.pendingEvents)try{this.recordFn.addCustomEvent(n.tag,n.payload)}catch{console.debug(`[${Date.now()}] [recorder] flush failed for custom event: ${n.tag}`),t.push(n)}this.pendingEvents=t}addCustomEvent(t,n){let r={tag:t,payload:n};if(!this.recordFn||!this.stopFn){console.debug(`[${Date.now()}] [recorder] queued custom event (recorder not ready): ${t}`),this.pendingEvents.push(r);return}try{this.recordFn.addCustomEvent(t,n)}catch(s){console.debug(`[${Date.now()}] [recorder] error adding custom event: ${t}`,s),this.pendingEvents.push(r)}}isRecordingReady(){return!!this.recordFn&&!!this.stopFn}isRecording(){return this.recordFn?.isRecording()||!1}getScriptVersion(){return`@appsurify-testmap/rrweb-record:${this.recorderScriptVersion}`}getLibVersion(){return`@appsurify-testmap/rrweb:${this.recorderLibVersion}`}getEvents(){return this.events}getMirror(){return this.recordFn?.mirror}bind(t){this.context=t}setEventCounter(t){this.eventCounter=t}};var h=p;var y=Cypress.env("testmap")??{},H=typeof y=="object"&&"recordingOpts"in y?y.recordingOpts:h,i=new h(H),_=()=>{Cypress.on("test:before:run",j).on("window:before:load",K).on("window:before:unload",V).on("window:unload",G).on("window:load",Y).on("test:after:run",J).on("command:queue:end",q).on("fail",Z),afterEach(()=>{let e=Cypress.currentTest;if(!e)return;let t=l({titlePath:()=>e.titlePath}),n=
|
|
17261
|
+
`;var B={slimDOMOptions:"all",inlineStylesheet:!0,recordDOM:!0,recordCanvas:!0,collectFonts:!0,inlineImages:!0,maskInputOptions:{password:!0},sampling:{mousemove:!1,mouseInteraction:{MouseUp:!1,MouseDown:!1,Click:!0,ContextMenu:!0,DblClick:!0,Focus:!0,Blur:!0,TouchStart:!1,TouchEnd:!1},scroll:100,media:100,input:"last",canvas:"all",visibility:{mode:"none",debounce:50,threshold:.5,sensitivity:.05,rafThrottle:50}},flushCustomEvent:"after",recordAfter:"DOMContentLoaded",userTriggeredOnInput:!0};function C(e,t){let n={...e};for(let r in t){let s=t[r],o=e[r];s&&typeof s=="object"&&!Array.isArray(s)&&o&&typeof o=="object"&&!Array.isArray(o)?n[r]=C(o,s):s!==void 0&&(n[r]=s)}return n}var p=class{recordFn=null;stopFn=null;targetWindow=null;context;eventCounter=0;events=[];recordOptions;pendingEvents=[];recorderScriptVersion="unknown";recorderLibVersion=$.version;constructor(t){this.recordOptions=C(B,t??{}),this.context={pushEvent:n=>this.events.push(n)}}handleEmit(t){if(t.type===0||t.type===1)return;let n={...t};this.context.pushEvent(n)}inject(t){let n=t;if(this.targetWindow=t,n.rrweb){this.recordFn=n.rrweb.record??null;return}let r=t.document.createElement("script");r.type="text/javascript",r.innerHTML=S,t.document.head.appendChild(r);let s=t.rrweb;if(!s||!s.record){console.error(`[${Date.now()}] [recorder] Failed to load rrweb.record`);return}this.recordFn=s.record,this.recorderScriptVersion=this.recordFn.getVersion()}start(){if(!this.targetWindow||!this.recordFn){console.debug(`[${Date.now()}] [recorder] Not ready to start`);return}if(this.stopFn){console.debug(`[${Date.now()}] [recorder] Already recording`);return}this.stopFn=this.recordFn({emit:t=>this.handleEmit(t),plugins:[(0,k.getRecordSequentialIdPlugin)({key:"id",getId:()=>++this.eventCounter})],...this.recordOptions}),this.flush()}stop(){this.flush(),this.stopFn?.(),this.stopFn=null}reset(){this.eventCounter=0,this.events=[],this.stop(),this.context={pushEvent:t=>this.events.push(t)}}flush(){if(!this.recordFn)return;let t=[];for(let n of this.pendingEvents)try{this.recordFn.addCustomEvent(n.tag,n.payload)}catch{console.debug(`[${Date.now()}] [recorder] flush failed for custom event: ${n.tag}`),t.push(n)}this.pendingEvents=t}addCustomEvent(t,n){let r={tag:t,payload:n};if(!this.recordFn||!this.stopFn){console.debug(`[${Date.now()}] [recorder] queued custom event (recorder not ready): ${t}`),this.pendingEvents.push(r);return}try{this.recordFn.addCustomEvent(t,n)}catch(s){console.debug(`[${Date.now()}] [recorder] error adding custom event: ${t}`,s),this.pendingEvents.push(r)}}isRecordingReady(){return!!this.recordFn&&!!this.stopFn}isRecording(){return this.recordFn?.isRecording()||!1}getScriptVersion(){return`@appsurify-testmap/rrweb-record:${this.recorderScriptVersion}`}getLibVersion(){return`@appsurify-testmap/rrweb:${this.recorderLibVersion}`}getEvents(){return this.events}getMirror(){return this.recordFn?.mirror}bind(t){this.context=t}setEventCounter(t){this.eventCounter=t}};var h=p;var y=Cypress.env("testmap")??{},H=typeof y=="object"&&"recordingOpts"in y?y.recordingOpts:h,i=new h(H),_=()=>{Cypress.on("test:before:run",j).on("window:before:load",K).on("window:before:unload",V).on("window:unload",G).on("window:load",Y).on("test:after:run",J).on("command:queue:end",q).on("fail",Z),afterEach(()=>{let e=Cypress.currentTest;if(!e)return;let t=l({titlePath:()=>e.titlePath}),n=u(t);if(!n)return;n.recorderEvents.map(s=>{if(s.type!==5)return s;let o=n.commandLiveRefs.get(s.data.payload.id);return s.data.payload.state=o?.state??"unknown",s.data.payload.args=d(o?.get("args")),s.data.payload.query=o?.get("query"),s.data.payload.timeout=o?.get("timeout"),s.data.payload.name=o?.get("name"),s.data.payload.type=o?.get("type"),o?.get("prev")&&(s.data.payload.prev={state:o?.get("prev").state,name:o?.get("prev").get("name"),args:d(o?.get("prev").get("args")),type:o?.get("prev").get("type"),query:o?.get("prev").get("query"),id:o?.get("prev").get("id")}),o?.get("next")&&(s.data.payload.next={state:o?.get("next").state,name:o?.get("next").get("name"),args:d(o?.get("next").get("args")),type:o?.get("next").get("type"),query:o?.get("next").get("query"),id:o?.get("next").get("id")}),s}),console.debug(`[${Date.now()}] [cypress] afterEach:`,n.recorderEvents);let r=x(n);try{cy.task("saveRRWebReport",{testRunResult:r},{log:!1})}catch(s){console.error(`[${Date.now()}] [cypress] afterEach:saveRRWebReport`,s)}})},j=(e,t)=>{let n=l(t),r={runner:{source:"cypress",type:Cypress.testingType,version:Cypress.version,platform:Cypress.platform,arch:Cypress.arch,recorder:{scriptVersion:i.getLibVersion()||"unknown",libVersion:i.getLibVersion()||"unknown"}},spec:Cypress.spec,test:t,browser:Cypress.browser,autWindow:null,waitForPaint:()=>Promise.resolve(void 0),paintComplete:!1,recorderEvents:[],commandLiveRefs:new Map};v(n,r),i.bind({pushEvent:s=>{if(console.debug(`[${Date.now()}] [cypress] pushEvent`,s),r.recorderEvents.push(s),s.type===5){let f=r.commandLiveRefs.get(s.data.payload.id)?.get("subject"),m=f?.selector,c=i.getMirror()?.getMeta(f?.[0]);s.data.payload.element={...c,selector:m,childNodes:[]}}}})};var V=e=>{},G=e=>{try{i.stop()}catch{}},K=e=>{i.inject(e);let t=Cypress.currentTest;if(!t)return;let n=l({titlePath:()=>t.titlePath}),r=u(n);r&&(r.runner.recorder.scriptVersion=i.getScriptVersion(),r.autWindow=e,r.paintComplete=!1)},Y=e=>{console.debug(`[${Date.now()}] [cypress] onWindowLoad`,e);let t=Cypress.currentTest;if(!t)return;let n=l({titlePath:()=>t.titlePath}),r=u(n);r&&(r.autWindow||(r.autWindow=e,r.paintComplete=!1),r.waitForPaint=s=>new Promise(o=>{let m=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{o(s)})})},a=(()=>{let c=!1;return()=>{c||(c=!0,m())}})();["interactive","complete"].includes(e.document.readyState)?a():(e.addEventListener("DOMContentLoaded",a,{once:!0}),e.addEventListener("load",a,{once:!0}),setTimeout(()=>{console.warn("\u23F3 Timeout: forcing resolution"),a()},5e3))}),r.waitForPaint().then(async()=>{r.paintComplete=!0,i.inject(e),i.start()}))};var q=()=>{},Z=(e,t)=>{throw e},J=async(e,t)=>{console.debug(`[${Date.now()}] [cypress] onTestAfterRun`,e,t),i.stop()};var E=()=>{Cypress.mocha.getRunner().on("hook",Q)},Q=()=>{},I=()=>{beforeEach("",()=>{}),afterEach("",()=>{})};var R=()=>{_(),E(),I()};var T=()=>{R()};0&&(module.exports={initializeTestmap});
|
|
17138
17262
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/browser/runtime.ts","../src/browser/utils.ts","../src/recorder/RRWebRecorder.ts","../src/recorder/index.ts","../src/browser/events/cypress.ts","../src/browser/events/mocha.ts","../src/browser/events/index.ts","../src/browser/index.ts"],"sourcesContent":["import { initializeTestmap } from './browser'\n\nexport { initializeTestmap };\n","import type { TestRunContext } from '../types';\n\n\nexport const testContexts = new Map<string, TestRunContext>();\n\nexport function setCurrentTestContext(key: string, ctx: TestRunContext): void {\n testContexts.set(key, ctx);\n}\n\nexport function getCurrentTestContext(key: string): TestRunContext | undefined {\n return testContexts.get(key);\n}\n\nexport function clearTestContext(key: string): void {\n testContexts.delete(key);\n}\n\n\n","/// <reference types=\"cypress\" />\nimport type {\n TestSuiteInfo,\n TestInfo,\n TestInfoInvocationDetails,\n TestRunResult,\n TestRunContext, SpecInfo, BrowserInfo,\n} from '../types';\n\n\nexport function safeSerializeArray(arr: unknown[]): (string | number | boolean | null)[] {\n return arr\n .filter((value): value is string | number | boolean | null => {\n // Удаляем { log: false }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (typeof value === 'object' && value !== null && 'log' in value && (value as any).log === false) {\n return false;\n }\n\n // Пропускаем только примитивы\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n value === null\n );\n });\n}\n\nexport function getTestKey(test: Mocha.Test | { titlePath: () => string[] }): string {\n return test.titlePath().join(' > ');\n}\n\nexport function getSizeInBytes(data: unknown): number {\n let str: string;\n\n if (typeof data === 'string') {\n str = data;\n } else {\n try {\n str = JSON.stringify(data);\n } catch {\n return 0;\n }\n }\n\n return new TextEncoder().encode(str).length;\n}\n\nexport function formatBytes(bytes: number): string {\n const kb = bytes / 1024;\n const mb = kb / 1024;\n\n if (mb >= 1) return `${mb.toFixed(2)} MB`;\n if (kb >= 1) return `${kb.toFixed(2)} KB`;\n return `${bytes} B`;\n}\n\nexport async function createHash(data: object): Promise<string> {\n const json = JSON.stringify(data);\n const buffer = new TextEncoder().encode(json);\n const hashBuffer = await crypto.subtle.digest('SHA-256', buffer);\n const hashArray = Array.from(new Uint8Array(hashBuffer));\n return hashArray.map(b => b.toString(16).padStart(2, '0')).join('');\n}\n\n\nexport function prepareTestSuite(suite: Mocha.Suite & {id: string, type: string} | undefined): TestSuiteInfo | undefined {\n if (!suite) return undefined;\n\n\n return {\n id: suite.id,\n file: suite.file,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n invocationDetails: safeInvocationDetails(suite.invocationDetails),\n pending: suite.pending,\n root: suite.root,\n title: suite.title,\n type: suite.type,\n }\n}\n\nexport function prepareTest(test: Mocha.Test & {id: string, type: string, parent: Mocha.Suite | undefined}): TestInfo {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const suite = prepareTestSuite(test.parent);\n console.log(\"Suite\", suite);\n return {\n suite: suite,\n file: test.file,\n duration: test.duration,\n id: test.id,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n invocationDetails: safeInvocationDetails(test.invocationDetails),\n pending: test.pending,\n state: test.state,\n sync: test.sync,\n timedOut: test.timedOut,\n title: test.title,\n titlePath: test.titlePath(),\n fullTitle: test.fullTitle(),\n type: test.type,\n }\n}\n\nexport function safeInvocationDetails(details?: Partial<TestInfoInvocationDetails>): TestInfoInvocationDetails {\n return {\n absoluteFile: details?.absoluteFile ?? '',\n column: details?.column ?? 0,\n fileUrl: details?.fileUrl ?? '',\n function: details?.function ?? '',\n line: details?.line ?? 0,\n originalFile: details?.originalFile ?? '',\n relativeFile: details?.relativeFile ?? '',\n };\n}\n\n\nexport function mapTestRunContextToResult(ctx: TestRunContext): TestRunResult {\n\n return {\n runner: ctx.runner,\n spec: mapSpec(ctx.spec),\n browser: mapBrowser(ctx.browser),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n test: mapTest(ctx.test),\n recorderEvents: Array.isArray(ctx.recorderEvents) ? ctx.recorderEvents : [],\n };\n}\n\nexport function mapSpec(spec: Cypress.Spec): SpecInfo {\n return {\n name: spec.name ?? '',\n absolute: spec.absolute ?? '',\n relative: spec.relative ?? '',\n specFilter: spec.specFilter ?? '',\n specType: spec.specType ?? 'integration',\n baseName: spec.baseName ?? '',\n fileExtension: spec.fileExtension ?? '',\n fileName: spec.fileName ?? '',\n id: spec.id ?? '',\n };\n}\n\nexport function mapBrowser(browser: Cypress.Browser): BrowserInfo {\n return {\n name: browser.name ?? '',\n version: browser.version ?? '',\n displayName: browser.displayName ?? '',\n family: browser.family ?? '',\n majorVersion: browser.majorVersion ?? '',\n channel: browser.channel ?? '',\n path: browser.path ?? '',\n };\n}\n\nexport function mapTest(test: Mocha.Test & {id: string}): TestInfo {\n\n\n return {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n suite: prepareTestSuite(test.parent),\n file: test.file ?? '',\n duration: test.duration ?? 0,\n id: test.id ?? '',\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n invocationDetails: safeInvocationDetails(test.invocationDetails),\n pending: test.pending ?? false,\n state: test.state ?? 'unknown',\n sync: test.sync ?? false,\n timedOut: test.timedOut ?? false,\n title: test.title ?? '',\n titlePath: typeof test.titlePath === 'function' ? test.titlePath() : [],\n fullTitle: typeof test.fullTitle === 'function' ? test.fullTitle() : '',\n type: test.type ?? 'test',\n };\n}\n","import type { record, recordOptions } from '@appsurify-testmap/rrweb';\nimport { version as libVersion, utils } from '@appsurify-testmap/rrweb';\nimport type { Mirror } from '@appsurify-testmap/rrweb-snapshot';\nimport { getRecordSequentialIdPlugin } from '@appsurify-testmap/rrweb-plugin-sequential-id-record';\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport rrSrc from './releases/rrweb-record.umd.cjs.src';\n\nimport type { RecorderContext, RecorderEvent } from './types';\nimport { eventWithTime } from '@appsurify-testmap/rrweb-types';\n\n\ninterface WindowWithRRWeb extends Window {\n rrweb?: {\n record: typeof record | null;\n };\n}\n\nexport const defaultRecordOptions: recordOptions<eventWithTime> = {\n slimDOMOptions: 'all',\n inlineStylesheet: true,\n recordDOM: true,\n recordCanvas: true,\n collectFonts: true,\n inlineImages: true,\n // checkoutEveryNvm: 10,\n // excludeAttribute: /data-(cy|test(id)?|cypress|highlight-el|cypress-el)/i,\n maskInputOptions: { password: true },\n sampling: {\n mousemove: false,\n mouseInteraction: {\n MouseUp: false,\n MouseDown: false,\n Click: true,\n ContextMenu: true,\n DblClick: true,\n Focus: true,\n Blur: true,\n TouchStart: false,\n TouchEnd: false,\n },\n scroll: 100,\n media: 100,\n input: 'last',\n canvas: 'all',\n visibility: {\n mode: 'none',\n debounce: 50,\n threshold: 0.5,\n sensitivity: 0.05,\n rafThrottle: 50\n }\n },\n flushCustomEvent: 'after',\n // recordAfter: 'DOMContentStabilized',\n recordAfter: 'DOMContentLoaded',\n userTriggeredOnInput: true,\n}\n\nfunction deepMerge<T>(target: T, source: Partial<T>): T {\n const result = { ...target };\n\n for (const key in source) {\n const sourceValue = source[key];\n const targetValue = target[key];\n\n if (\n sourceValue &&\n typeof sourceValue === 'object' &&\n !Array.isArray(sourceValue) &&\n targetValue &&\n typeof targetValue === 'object' &&\n !Array.isArray(targetValue)\n ) {\n result[key] = deepMerge(targetValue, sourceValue);\n } else if (sourceValue !== undefined) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n result[key] = sourceValue as any;\n }\n }\n\n return result;\n}\n\nexport class RRWebRecorder {\n private recordFn: typeof record | null = null;\n private stopFn: (() => void) | undefined | null = null;\n private targetWindow: Window | null = null;\n private context: RecorderContext;\n private eventCounter = 0;\n private events: RecorderEvent[] = [];\n private recordOptions?: recordOptions<eventWithTime>;\n private pendingEvents: {\n tag: string;\n payload: Record<string, unknown>;\n }[] = [];\n private recorderScriptVersion = 'unknown';\n private recorderLibVersion = libVersion;\n\n constructor(options?: recordOptions<eventWithTime>) {\n this.recordOptions = deepMerge(defaultRecordOptions, options ?? {});\n this.context = {\n pushEvent: (event) => this.events.push(event),\n };\n }\n\n private handleEmit(event: RecorderEvent) {\n if (event.type === 0 || event.type === 1) {\n return;\n }\n const rrEvent: RecorderEvent = {\n ...event,\n };\n this.context.pushEvent(rrEvent);\n }\n\n public inject(win: Window) {\n const w = win as WindowWithRRWeb;\n\n this.targetWindow = win;\n\n if (w.rrweb) {\n this.recordFn = w.rrweb.record ?? null;\n return;\n }\n\n const script = win.document.createElement('script');\n script.type = 'text/javascript';\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n script.innerHTML = rrSrc;\n win.document.head.appendChild(script);\n\n const recheck = (win as WindowWithRRWeb).rrweb;\n if (!recheck || !recheck.record) {\n console.error(`[${Date.now()}] [recorder] Failed to load rrweb.record`);\n return;\n }\n\n this.recordFn = recheck.record;\n // console.debug(`[${Date.now()}] [recorder] Recorder loaded: `, this.recordFn.getVersion());\n this.recorderScriptVersion = this.recordFn.getVersion();\n }\n\n public start() {\n if (!this.targetWindow || !this.recordFn) {\n console.debug(`[${Date.now()}] [recorder] Not ready to start`);\n return;\n }\n\n if (this.stopFn) {\n console.debug(`[${Date.now()}] [recorder] Already recording`);\n return;\n }\n\n\n this.stopFn = this.recordFn({\n emit: (event: RecorderEvent) => this.handleEmit(event),\n plugins: [\n getRecordSequentialIdPlugin({\n key: 'id',\n getId: () => ++this.eventCounter,\n }),\n ],\n ...this.recordOptions\n });\n\n this.flush();\n }\n\n public stop() {\n this.flush();\n this.stopFn?.();\n this.stopFn = null;\n }\n\n public reset() {\n this.eventCounter = 0;\n this.events = [];\n this.stop();\n this.context = {\n pushEvent: (event) => this.events.push(event),\n };\n }\n\n public flush() {\n if (!this.recordFn) return;\n\n const stillPending: typeof this.pendingEvents = [];\n\n for (const evt of this.pendingEvents) {\n try {\n this.recordFn.addCustomEvent(evt.tag, evt.payload);\n } catch (err) {\n console.debug(`[${Date.now()}] [recorder] flush failed for custom event: ${evt.tag}`);\n stillPending.push(evt);\n }\n }\n\n this.pendingEvents = stillPending;\n }\n\n public addCustomEvent(tag: string, payload: Record<string, unknown>) {\n const event = { tag, payload };\n\n if (!this.recordFn || !this.stopFn) {\n console.debug(`[${Date.now()}] [recorder] queued custom event (recorder not ready): ${tag}`);\n this.pendingEvents.push(event);\n return;\n }\n\n try {\n this.recordFn.addCustomEvent(tag, payload);\n } catch (error) {\n console.debug(`[${Date.now()}] [recorder] error adding custom event: ${tag}`, error);\n this.pendingEvents.push(event);\n }\n }\n\n public isRecordingReady(): boolean {\n return !!this.recordFn && !!this.stopFn;\n }\n\n public isRecording(): boolean {\n return this.recordFn?.isRecording() || false;\n }\n\n public getScriptVersion(): string {\n return `@appsurify-testmap/rrweb-record:${this.recorderScriptVersion}`;\n }\n\n public getLibVersion(): string {\n return `@appsurify-testmap/rrweb:${this.recorderLibVersion}`;\n }\n\n public getEvents(): readonly RecorderEvent[] {\n return this.events;\n }\n\n public getMirror(): Mirror | undefined {\n return (this.recordFn as unknown as { mirror?: Mirror })?.mirror;\n }\n\n public bind(ctx: RecorderContext) {\n this.context = ctx;\n }\n\n public setEventCounter(value: number) {\n this.eventCounter = value;\n }\n\n}\n","import { RRWebRecorder } from './RRWebRecorder';\n\n\nexport default RRWebRecorder;\n","/// <reference types=\"cypress\" />\n\nimport {getCurrentTestContext, setCurrentTestContext} from '../runtime';\nimport {safeSerializeArray, getTestKey, mapTestRunContextToResult} from '../utils';\nimport RRWebRecorder from '../../recorder';\nimport defaultRecordOptions from '../../recorder';\nimport type {RecorderEvent} from '../../recorder/types';\nimport type {TestRunContext} from '../../types';\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst testmapEnv = Cypress.env('testmap') ?? {};\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst recordingOpts = typeof testmapEnv === 'object' && 'recordingOpts' in testmapEnv\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n ? testmapEnv.recordingOpts\n : defaultRecordOptions;\n// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\nconst recorder = new RRWebRecorder(recordingOpts);\n\nexport const registerCypressEventListeners = () => {\n\n Cypress\n .on('test:before:run', onTestBeforeRun)\n // .on('log:added', onLogAdded)\n // .on('log:changed', onLogChanged)\n .on('window:before:load', onWindowBeforeLoad)\n .on('window:before:unload', onWindowBeforeUnload)\n .on('window:unload', onWindowUnload)\n .on('window:load', onWindowLoad)\n // .on('command:enqueued', onCommandEnqueued)\n // .on('command:start', onCommandStart)\n // .on('command:end', onCommandEnd)\n // .on('command:retry', onCommandRetry)\n // .on('skipped:command:end', onSkippedCommandEnd)\n .on('test:after:run', onTestAfterRun)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // .on('command:failed', onCommandFailed)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n .on('command:queue:end', onCommandQueueEnd)\n .on('fail', onFail);\n\n\n afterEach(() => {\n // console.debug(`[${Date.now()}] [cypress] afterEach:`);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // console.debug(`[${Date.now()}] [cypress] afterEach:`, ctx);\n ctx.recorderEvents.map((event) => {\n if (event.type !== 5 ) return event;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n const liveCommand = ctx.commandLiveRefs.get(event.data.payload.id) as Cypress.CommandQueue;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // event.data.payload.element = element;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n event.data.payload.state = liveCommand?.state ?? 'unknown';\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // event.data.payload.args = liveCommand?.get('args');\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-call\n event.data.payload.args = safeSerializeArray(liveCommand?.get('args'));\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.query = liveCommand?.get('query');\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.timeout = liveCommand?.get('timeout');\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.name = liveCommand?.get('name');\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.type = liveCommand?.get('type');\n\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (liveCommand?.get('prev')) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n event.data.payload.prev = {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call\n state: liveCommand?.get('prev').state,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call\n name: liveCommand?.get('prev').get('name'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n args: safeSerializeArray(liveCommand?.get('prev').get('args')),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n type: liveCommand?.get('prev').get('type'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n query: liveCommand?.get('prev').get('query'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n id: liveCommand?.get('prev').get('id'),\n };\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (liveCommand?.get('next')) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n event.data.payload.next = {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n state: liveCommand?.get('next').state,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n name: liveCommand?.get('next').get('name'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n args: safeSerializeArray(liveCommand?.get('next').get('args')),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n type: liveCommand?.get('next').get('type'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n query: liveCommand?.get('next').get('query'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n id: liveCommand?.get('next').get('id'),\n };\n }\n return event;\n })\n console.debug(`[${Date.now()}] [cypress] afterEach:`, ctx.recorderEvents);\n\n // const testRunResult: TestRunResult = {\n // spec: ctx.spec as unknown as SpecInfo,\n // test: prepareTest(ctx.test),\n // browser: ctx.browser as BrowserInfo,\n // recorderEvents: ctx.recorderEvents,\n // }\n\n const testRunResult = mapTestRunContextToResult(ctx);\n\n\n // const testRunResultSize = getSizeInBytes(testRunResult);\n // console.debug(`[${Date.now()}] [cypress] afterEach:testResult:`, testRunResult);\n // console.debug(`[${Date.now()}] [cypress] afterEach:testResult:size:`, formatBytes(testRunResultSize));\n // const debugReport = new UICoverageReport(testRunResult);\n // console.debug(`[${Date.now()}] [cypress] afterEach:testResult:debugReport:`, debugReport.toJSON());\n\n try {\n cy.task('saveRRWebReport', {\n testRunResult\n }, { log: false });\n } catch (e) {\n console.error(`[${Date.now()}] [cypress] afterEach:saveRRWebReport`, e);\n }\n\n });\n\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // Cypress.Commands.overwrite('type', (originalFn, subject, text, options) => {\n // // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // // @ts-expect-error\n // return originalFn(subject, text, options).then(() => {\n // if (Cypress.dom.isElement(subject[0])) {\n // const el = subject[0];\n // if (el) {\n // // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // // @ts-expect-error\n // // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n // el.dispatchEvent(new Event('input', { bubbles: true }));\n // // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // // @ts-expect-error\n // // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n // el.dispatchEvent(new Event('change', { bubbles: true }));\n // }\n // }\n // });\n // });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onTestBeforeRun = (attributes: Cypress.ObjectLike, test: Mocha.Test) => {\n // console.debug(`[${Date.now()}] [cypress] onTestBeforeRun`, attributes, test);\n const testKey = getTestKey(test);\n const testRunContext: TestRunContext = {\n runner: {\n source: 'cypress',\n type: Cypress.testingType,\n version: Cypress.version,\n platform: Cypress.platform,\n arch: Cypress.arch,\n recorder: {\n scriptVersion: recorder.getLibVersion() || 'unknown',\n libVersion: recorder.getLibVersion() || 'unknown'\n }\n\n },\n spec: Cypress.spec,\n test: test,\n browser: Cypress.browser,\n autWindow: null,\n waitForPaint: () => Promise.resolve(undefined),\n paintComplete: false,\n recorderEvents: [] as RecorderEvent[],\n commandLiveRefs: new Map<string, Cypress.CommandQueue>()\n };\n\n setCurrentTestContext(testKey, testRunContext);\n\n recorder.bind({\n pushEvent: (event) => {\n console.debug(`[${Date.now()}] [cypress] pushEvent`, event);\n testRunContext.recorderEvents.push(event)\n if (event.type === 5) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n const liveCommand = testRunContext.commandLiveRefs.get(event.data.payload.id) as Cypress.CommandQueue;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n const subject = liveCommand?.get('subject')\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n const selector = subject?.selector;\n\n const mirror = recorder.getMirror();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n const element = mirror?.getMeta(subject?.[0]);\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n event.data.payload.element = {\n ...element,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n selector,\n childNodes: []\n };\n }\n },\n });\n\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onLogAdded = (attributes: Cypress.ObjectLike, log: Cypress.Log) => {\n // console.debug(`[${Date.now()}] [cypress] onLogAdded`, attributes, log);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onLogChanged = (attributes: Cypress.ObjectLike, log: Cypress.Log) => {\n // console.debug(`[${Date.now()}] [cypress] onLogChanged`, attributes, log);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onWindowBeforeUnload = (event: BeforeUnloadEvent) => {\n // console.debug(`[${Date.now()}] [cypress] onWindowBeforeUnload`, event);\n // try {\n // recorder.stop();\n // // eslint-disable-next-line @typescript-eslint/no-unused-vars\n // } catch (e) { /* empty */ }\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onWindowUnload = (event: BeforeUnloadEvent) => {\n // console.debug(`[${Date.now()}] [cypress] onWindowUnload`, event);\n try {\n recorder.stop();\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (e) { /* empty */ }\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onWindowBeforeLoad = (win: Cypress.AUTWindow) => {\n // console.debug(`[${Date.now()}] [cypress] onWindowBeforeLoad`, win);\n recorder.inject(win);\n // recorder.start();\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n ctx.runner.recorder!.scriptVersion = recorder.getScriptVersion();\n ctx.autWindow = win;\n ctx.paintComplete = false;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onWindowLoad = (win: Cypress.AUTWindow) => {\n console.debug(`[${Date.now()}] [cypress] onWindowLoad`, win);\n // recorder.inject(win);\n // recorder.start();\n // console.debug(`[${Date.now()}] [cypress] onWindowLoad after start`, recorder.isRecording());\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n if (!ctx.autWindow) {\n ctx.autWindow = win;\n ctx.paintComplete = false;\n }\n\n ctx.waitForPaint = (value?: unknown): Promise<unknown> => {\n return new Promise<unknown>((resolve) => {\n const maxWaitMs = 5000;\n\n const captureAfterPaint = () => {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n resolve(value);\n });\n });\n };\n\n const safeResolve = (() => {\n let called = false;\n return () => {\n if (!called) {\n called = true;\n captureAfterPaint();\n }\n };\n })();\n\n if (['interactive', 'complete'].includes(win.document.readyState)) {\n safeResolve();\n } else {\n win.addEventListener('DOMContentLoaded', safeResolve, { once: true });\n win.addEventListener('load', safeResolve, { once: true });\n setTimeout(() => {\n console.warn('⏳ Timeout: forcing resolution');\n safeResolve();\n }, maxWaitMs);\n }\n });\n };\n\n // eslint-disable-next-line @typescript-eslint/require-await\n void ctx.waitForPaint().then(async () => {\n ctx.paintComplete = true;\n recorder.inject(win);\n recorder.start();\n });\n // console.debug(`[${Date.now()}] [cypress] onWindowLoad after waitForPaint`);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onCommandEnqueued = (command: Cypress.EnqueuedCommandAttributes) => {\n // console.debug(`[${Date.now()}] [cypress] onCommandEnqueued`, command);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // Control and store live object\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n ctx.commandLiveRefs.set(command.id, command);\n\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onCommandRetry = (command: Cypress.CommandQueue) => {\n // console.debug(`[${Date.now()}] [cypress] onCommandRetry`, command);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onCommandStart = (command: Cypress.CommandQueue) => {\n // console.debug(`[${Date.now()}] [cypress] onCommandStart`, command);\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // Control and store live object\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n ctx.commandLiveRefs.set(command.attributes.id, command);\n\n // If need before state\n // recorder.addCustomEvent(`${command.attributes.name}`, {\n // id: command.attributes.id,\n // });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onCommandEnd = (command: Cypress.CommandQueue) => {\n console.debug(`[${Date.now()}] [cypress] onCommandEnd`, command);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n const waitWindowLoaded = async () => {\n if (!ctx.paintComplete && typeof ctx.waitForPaint === 'function') {\n await ctx.waitForPaint();\n ctx.paintComplete = true;\n }\n }\n void waitWindowLoaded();\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions\n recorder.addCustomEvent(`${command.attributes.name}`, {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n id: command.attributes.id,\n });\n // void waitWindowLoaded();\n\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onCommandFailed = (command: Cypress.CommandQueue, err: unknown) => {\n console.debug(`[${Date.now()}] [cypress] onCommandFailed`, command);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions\n recorder.addCustomEvent(`${command.attributes.name}`, {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n id: command.attributes.id,\n });\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onSkippedCommandEnd = (command: Cypress.CommandQueue) => {\n console.debug(`[${Date.now()}] [cypress] onSkippedCommandEnd`, command);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // Control and store live object\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n ctx.commandLiveRefs.set(command.attributes.id, command);\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions\n recorder.addCustomEvent(`${command.attributes.name}`, {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n id: command.attributes.id,\n });\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onCommandQueueEnd = () => {\n // console.debug(`[${Date.now()}] [cypress] onCommandQueueEnd`);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onFail = (error: Cypress.CypressError, mocha: Mocha.Runnable) => {\n // console.debug(`[${Date.now()}] [cypress] onFail`, {error, mocha});\n throw error;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/require-await\nconst onTestAfterRun = async (attributes: Cypress.ObjectLike, test: Mocha.Test) => {\n console.debug(`[${Date.now()}] [cypress] onTestAfterRun`, attributes, test);\n recorder.stop();\n\n // const testKey = getTestKey(test);\n // const ctx = getCurrentTestContext(testKey);\n // if (!ctx) return;\n //\n // console.debug(`[${Date.now()}] [cypress] onTestAfterRun`, ctx.recorderEvents);\n};\n\n\n","/// <reference types=\"cypress\" />\n\n\nexport const registerMochaEventListeners = () => {\n // ⚠️ Плохой стиль, отключает всю типизацию\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ((Cypress as any).mocha.getRunner() as Mocha.Runner)\n .on('hook', onHook);\n};\n\nconst onHook = () => {\n // console.debug(`🟡 [${Date.now()}] [mocha] onHook:`);\n};\n\nexport const injectMochaHookFunctions = () => {\n\n beforeEach('', ()=> {\n // console.debug(`🟡 [${Date.now()}] [mocha] beforeEach:`);\n });\n\n afterEach('', ()=> {\n // console.debug(`🟡 [${Date.now()}] [mocha] afterEach:`);\n // const currentTest = Cypress.currentTest;\n // const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n //\n // const ctx = getCurrentTestContext(testKey);\n // if (!ctx) return;\n // const serializedReport = serializeTestRunContextToJson(ctx);\n // console.log(`${Date.now()} [afterEach]`, currentTest, serializedReport);\n // cy.task('saveSnapshotReport', serializedReport)\n });\n\n};\n","import { registerCypressEventListeners } from \"./cypress\";\nimport { registerMochaEventListeners, injectMochaHookFunctions } from \"./mocha\";\n\nexport const enableTestmap = () => {\n registerCypressEventListeners();\n registerMochaEventListeners();\n injectMochaHookFunctions();\n};\n","import { enableTestmap } from './events';\n\nexport const initializeTestmap = () => {\n // if (isTestmap().Initialized) {\n // return;\n // }\n enableTestmap();\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uBAAAE,IAAA,eAAAC,EAAAH,GCGO,IAAMI,EAAe,IAAI,IAEzB,SAASC,EAAsBC,EAAaC,EAA2B,CAC5EH,EAAa,IAAIE,EAAKC,CAAG,CAC3B,CAEO,SAASC,EAAsBF,EAAyC,CAC7E,OAAOF,EAAa,IAAIE,CAAG,CAC7B,CCDO,SAASG,EAAmBC,EAAsD,CACvF,OAAOA,EACJ,OAAQC,GAGH,OAAOA,GAAU,UAAYA,IAAU,MAAQ,QAASA,GAAUA,EAAc,MAAQ,GACnF,GAKP,OAAOA,GAAU,UACjB,OAAOA,GAAU,UACjB,OAAOA,GAAU,WACjBA,IAAU,IAEb,CACL,CAEO,SAASC,EAAWC,EAA0D,CACjF,OAAOA,EAAK,UAAU,EAAE,KAAK,KAAK,CACtC,CAoCO,SAASC,EAAiBC,EAAwF,CACrH,GAAKA,EAGP,MAAO,CACD,GAAIA,EAAM,GACV,KAAMA,EAAM,KAIZ,kBAAmBC,EAAsBD,EAAM,iBAAiB,EAChE,QAASA,EAAM,QACf,KAAMA,EAAM,KACZ,MAAOA,EAAM,MACb,KAAMA,EAAM,IAChB,CACJ,CA2BO,SAASE,EAAsBC,EAAyE,CAC7G,MAAO,CACL,aAAcA,GAAS,cAAgB,GACvC,OAAQA,GAAS,QAAU,EAC3B,QAASA,GAAS,SAAW,GAC7B,SAAUA,GAAS,UAAY,GAC/B,KAAMA,GAAS,MAAQ,EACvB,aAAcA,GAAS,cAAgB,GACvC,aAAcA,GAAS,cAAgB,EAC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AChB,EAAG,GAAS,EAEhB,CAAC,EAIEN,EAAI,aAAa,EAAE,KAAK,SAAY,CACrCA,EAAI,cAAgB,GACpBN,EAAS,OAAOE,CAAG,EACnBF,EAAS,MAAM,CACnB,CAAC,EAEL,EA6GA,IAAMc,EAAoB,IAAM,CAEhC,EAIMC,EAAS,CAACC,EAA6BC,IAA0B,CAEnE,MAAMD,CACV,EAKME,EAAiB,MAAOC,EAAgCC,IAAqB,CAC/E,QAAQ,MAAM,IAAI,KAAK,IAAI,8BAA+BD,EAAYC,CAAI,EAC1EC,EAAS,KAAK,CAOlB,EC/fO,IAAMC,EAA8B,IAAM,CAG7C,QAAgB,MAAM,UAAU,EAC7B,GAAG,OAAQC,CAAM,CACxB,EAEMA,EAAS,IAAM,CAErB,EAEaC,EAA2B,IAAM,CAE5C,WAAW,GAAI,IAAK,CAEpB,CAAC,EAED,UAAU,GAAI,IAAK,CAUnB,CAAC,CAEH,EC7BO,IAAMC,EAAgB,IAAM,CACjCC,EAA8B,EAC9BC,EAA4B,EAC5BC,EAAyB,CAC3B,ECLO,IAAMC,EAAoB,IAAM,CAInCC,EAAc,CAClB","names":["src_exports","__export","initializeTestmap","__toCommonJS","testContexts","setCurrentTestContext","key","ctx","getCurrentTestContext","safeSerializeArray","arr","value","getTestKey","test","prepareTestSuite","suite","safeInvocationDetails","safeInvocationDetails","details","mapTestRunContextToResult","ctx","mapSpec","mapBrowser","mapTest","spec","browser","test","prepareTestSuite","import_rrweb","import_rrweb_plugin_sequential_id_record","defaultRecordOptions","deepMerge","target","source","result","key","sourceValue","targetValue","RRWebRecorder","libVersion","options","event","rrEvent","win","w","script","rrweb_record_umd_cjs_default","recheck","stillPending","evt","tag","payload","error","ctx","value","recorder_default","RRWebRecorder","testmapEnv","recordingOpts","recorder_default","recorder","registerCypressEventListeners","onTestBeforeRun","onWindowBeforeLoad","onWindowBeforeUnload","onWindowUnload","onWindowLoad","onTestAfterRun","onCommandQueueEnd","onFail","currentTest","testKey","getTestKey","ctx","getCurrentTestContext","event","liveCommand","safeSerializeArray","testRunResult","mapTestRunContextToResult","e","attributes","test","testRunContext","setCurrentTestContext","subject","selector","element","onWindowBeforeUnload","event","onWindowUnload","recorder","onWindowBeforeLoad","win","currentTest","testKey","getTestKey","ctx","getCurrentTestContext","onWindowLoad","value","resolve","captureAfterPaint","safeResolve","called","onCommandQueueEnd","onFail","error","mocha","onTestAfterRun","attributes","test","recorder","registerMochaEventListeners","onHook","injectMochaHookFunctions","enableTestmap","registerCypressEventListeners","registerMochaEventListeners","injectMochaHookFunctions","initializeTestmap","enableTestmap"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/browser/runtime.ts","../src/browser/utils.ts","../src/recorder/RRWebRecorder.ts","../src/recorder/index.ts","../src/browser/events/cypress.ts","../src/browser/events/mocha.ts","../src/browser/events/index.ts","../src/browser/index.ts"],"sourcesContent":["import { initializeTestmap } from './browser'\n\nexport { initializeTestmap };\n","import type { TestRunContext } from '../types';\n\n\nexport const testContexts = new Map<string, TestRunContext>();\n\nexport function setCurrentTestContext(key: string, ctx: TestRunContext): void {\n testContexts.set(key, ctx);\n}\n\nexport function getCurrentTestContext(key: string): TestRunContext | undefined {\n return testContexts.get(key);\n}\n\nexport function clearTestContext(key: string): void {\n testContexts.delete(key);\n}\n\n\n","/// <reference types=\"cypress\" />\nimport type {\n TestSuiteInfo,\n TestInfo,\n TestInfoInvocationDetails,\n TestRunResult,\n TestRunContext, SpecInfo, BrowserInfo,\n} from '../types';\n\n\nexport function safeSerializeArray(arr: unknown[]): (string | number | boolean | null)[] {\n return arr\n .filter((value): value is string | number | boolean | null => {\n // Удаляем { log: false }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (typeof value === 'object' && value !== null && 'log' in value && (value as any).log === false) {\n return false;\n }\n\n // Пропускаем только примитивы\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n value === null\n );\n });\n}\n\nexport function getTestKey(test: Mocha.Test | { titlePath: () => string[] }): string {\n return test.titlePath().join(' > ');\n}\n\nexport function getSizeInBytes(data: unknown): number {\n let str: string;\n\n if (typeof data === 'string') {\n str = data;\n } else {\n try {\n str = JSON.stringify(data);\n } catch {\n return 0;\n }\n }\n\n return new TextEncoder().encode(str).length;\n}\n\nexport function formatBytes(bytes: number): string {\n const kb = bytes / 1024;\n const mb = kb / 1024;\n\n if (mb >= 1) return `${mb.toFixed(2)} MB`;\n if (kb >= 1) return `${kb.toFixed(2)} KB`;\n return `${bytes} B`;\n}\n\nexport async function createHash(data: object): Promise<string> {\n const json = JSON.stringify(data);\n const buffer = new TextEncoder().encode(json);\n const hashBuffer = await crypto.subtle.digest('SHA-256', buffer);\n const hashArray = Array.from(new Uint8Array(hashBuffer));\n return hashArray.map(b => b.toString(16).padStart(2, '0')).join('');\n}\n\n\nexport function prepareTestSuite(suite: Mocha.Suite & {id: string, type: string} | undefined): TestSuiteInfo | undefined {\n if (!suite) return undefined;\n\n\n return {\n id: suite.id,\n file: suite.file,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n invocationDetails: safeInvocationDetails(suite.invocationDetails),\n pending: suite.pending,\n root: suite.root,\n title: suite.title,\n type: suite.type,\n }\n}\n\nexport function prepareTest(test: Mocha.Test & {id: string, type: string, parent: Mocha.Suite | undefined}): TestInfo {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const suite = prepareTestSuite(test.parent);\n console.log(\"Suite\", suite);\n return {\n suite: suite,\n file: test.file,\n duration: test.duration,\n id: test.id,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n invocationDetails: safeInvocationDetails(test.invocationDetails),\n pending: test.pending,\n state: test.state,\n sync: test.sync,\n timedOut: test.timedOut,\n title: test.title,\n titlePath: test.titlePath(),\n fullTitle: test.fullTitle(),\n type: test.type,\n }\n}\n\nexport function safeInvocationDetails(details?: Partial<TestInfoInvocationDetails>): TestInfoInvocationDetails {\n return {\n absoluteFile: details?.absoluteFile ?? '',\n column: details?.column ?? 0,\n fileUrl: details?.fileUrl ?? '',\n function: details?.function ?? '',\n line: details?.line ?? 0,\n originalFile: details?.originalFile ?? '',\n relativeFile: details?.relativeFile ?? '',\n };\n}\n\n\nexport function mapTestRunContextToResult(ctx: TestRunContext): TestRunResult {\n\n return {\n runner: ctx.runner,\n spec: mapSpec(ctx.spec),\n browser: mapBrowser(ctx.browser),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n test: mapTest(ctx.test),\n recorderEvents: Array.isArray(ctx.recorderEvents) ? ctx.recorderEvents : [],\n };\n}\n\nexport function mapSpec(spec: Cypress.Spec): SpecInfo {\n return {\n name: spec.name ?? '',\n absolute: spec.absolute ?? '',\n relative: spec.relative ?? '',\n specFilter: spec.specFilter ?? '',\n specType: spec.specType ?? 'integration',\n baseName: spec.baseName ?? '',\n fileExtension: spec.fileExtension ?? '',\n fileName: spec.fileName ?? '',\n id: spec.id ?? '',\n };\n}\n\nexport function mapBrowser(browser: Cypress.Browser): BrowserInfo {\n return {\n name: browser.name ?? '',\n version: browser.version ?? '',\n displayName: browser.displayName ?? '',\n family: browser.family ?? '',\n majorVersion: browser.majorVersion ?? '',\n channel: browser.channel ?? '',\n path: browser.path ?? '',\n };\n}\n\nexport function mapTest(test: Mocha.Test & {id: string}): TestInfo {\n\n\n return {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n suite: prepareTestSuite(test.parent),\n file: test.file ?? '',\n duration: test.duration ?? 0,\n id: test.id ?? '',\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n invocationDetails: safeInvocationDetails(test.invocationDetails),\n pending: test.pending ?? false,\n state: test.state ?? 'unknown',\n sync: test.sync ?? false,\n timedOut: test.timedOut ?? false,\n title: test.title ?? '',\n titlePath: typeof test.titlePath === 'function' ? test.titlePath() : [],\n fullTitle: typeof test.fullTitle === 'function' ? test.fullTitle() : '',\n type: test.type ?? 'test',\n };\n}\n","import type { record, recordOptions } from '@appsurify-testmap/rrweb';\nimport { version as libVersion, utils } from '@appsurify-testmap/rrweb';\nimport type { Mirror } from '@appsurify-testmap/rrweb-snapshot';\nimport { getRecordSequentialIdPlugin } from '@appsurify-testmap/rrweb-plugin-sequential-id-record';\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport rrSrc from './releases/rrweb-record.umd.cjs.src';\n\nimport type { RecorderContext, RecorderEvent } from './types';\nimport { eventWithTime } from '@appsurify-testmap/rrweb-types';\n\n\ninterface WindowWithRRWeb extends Window {\n rrweb?: {\n record: typeof record | null;\n };\n}\n\nexport const defaultRecordOptions: recordOptions<eventWithTime> = {\n slimDOMOptions: 'all',\n inlineStylesheet: true,\n recordDOM: true,\n recordCanvas: true,\n collectFonts: true,\n inlineImages: true,\n // checkoutEveryNvm: 10,\n // excludeAttribute: /data-(cy|test(id)?|cypress|highlight-el|cypress-el)/i,\n maskInputOptions: { password: true },\n sampling: {\n mousemove: false,\n mouseInteraction: {\n MouseUp: false,\n MouseDown: false,\n Click: true,\n ContextMenu: true,\n DblClick: true,\n Focus: true,\n Blur: true,\n TouchStart: false,\n TouchEnd: false,\n },\n scroll: 100,\n media: 100,\n input: 'last',\n canvas: 'all',\n visibility: {\n mode: 'none',\n debounce: 50,\n threshold: 0.5,\n sensitivity: 0.05,\n rafThrottle: 50\n }\n },\n flushCustomEvent: 'after',\n // recordAfter: 'DOMContentStabilized',\n recordAfter: 'DOMContentLoaded',\n userTriggeredOnInput: true,\n}\n\nfunction deepMerge<T>(target: T, source: Partial<T>): T {\n const result = { ...target };\n\n for (const key in source) {\n const sourceValue = source[key];\n const targetValue = target[key];\n\n if (\n sourceValue &&\n typeof sourceValue === 'object' &&\n !Array.isArray(sourceValue) &&\n targetValue &&\n typeof targetValue === 'object' &&\n !Array.isArray(targetValue)\n ) {\n result[key] = deepMerge(targetValue, sourceValue);\n } else if (sourceValue !== undefined) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n result[key] = sourceValue as any;\n }\n }\n\n return result;\n}\n\nexport class RRWebRecorder {\n private recordFn: typeof record | null = null;\n private stopFn: (() => void) | undefined | null = null;\n private targetWindow: Window | null = null;\n private context: RecorderContext;\n private eventCounter = 0;\n private events: RecorderEvent[] = [];\n private recordOptions?: recordOptions<eventWithTime>;\n private pendingEvents: {\n tag: string;\n payload: Record<string, unknown>;\n }[] = [];\n private recorderScriptVersion = 'unknown';\n private recorderLibVersion = libVersion;\n\n constructor(options?: recordOptions<eventWithTime>) {\n this.recordOptions = deepMerge(defaultRecordOptions, options ?? {});\n this.context = {\n pushEvent: (event) => this.events.push(event),\n };\n }\n\n private handleEmit(event: RecorderEvent) {\n if (event.type === 0 || event.type === 1) {\n return;\n }\n const rrEvent: RecorderEvent = {\n ...event,\n };\n this.context.pushEvent(rrEvent);\n }\n\n public inject(win: Window) {\n const w = win as WindowWithRRWeb;\n\n this.targetWindow = win;\n\n if (w.rrweb) {\n this.recordFn = w.rrweb.record ?? null;\n return;\n }\n\n const script = win.document.createElement('script');\n script.type = 'text/javascript';\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n script.innerHTML = rrSrc;\n win.document.head.appendChild(script);\n\n const recheck = (win as WindowWithRRWeb).rrweb;\n if (!recheck || !recheck.record) {\n console.error(`[${Date.now()}] [recorder] Failed to load rrweb.record`);\n return;\n }\n\n this.recordFn = recheck.record;\n // console.debug(`[${Date.now()}] [recorder] Recorder loaded: `, this.recordFn.getVersion());\n this.recorderScriptVersion = this.recordFn.getVersion();\n }\n\n public start() {\n if (!this.targetWindow || !this.recordFn) {\n console.debug(`[${Date.now()}] [recorder] Not ready to start`);\n return;\n }\n\n if (this.stopFn) {\n console.debug(`[${Date.now()}] [recorder] Already recording`);\n return;\n }\n\n\n this.stopFn = this.recordFn({\n emit: (event: RecorderEvent) => this.handleEmit(event),\n plugins: [\n getRecordSequentialIdPlugin({\n key: 'id',\n getId: () => ++this.eventCounter,\n }),\n ],\n ...this.recordOptions\n });\n\n this.flush();\n }\n\n public stop() {\n this.flush();\n this.stopFn?.();\n this.stopFn = null;\n }\n\n public reset() {\n this.eventCounter = 0;\n this.events = [];\n this.stop();\n this.context = {\n pushEvent: (event) => this.events.push(event),\n };\n }\n\n public flush() {\n if (!this.recordFn) return;\n\n const stillPending: typeof this.pendingEvents = [];\n\n for (const evt of this.pendingEvents) {\n try {\n this.recordFn.addCustomEvent(evt.tag, evt.payload);\n } catch (err) {\n console.debug(`[${Date.now()}] [recorder] flush failed for custom event: ${evt.tag}`);\n stillPending.push(evt);\n }\n }\n\n this.pendingEvents = stillPending;\n }\n\n public addCustomEvent(tag: string, payload: Record<string, unknown>) {\n const event = { tag, payload };\n\n if (!this.recordFn || !this.stopFn) {\n console.debug(`[${Date.now()}] [recorder] queued custom event (recorder not ready): ${tag}`);\n this.pendingEvents.push(event);\n return;\n }\n\n try {\n this.recordFn.addCustomEvent(tag, payload);\n } catch (error) {\n console.debug(`[${Date.now()}] [recorder] error adding custom event: ${tag}`, error);\n this.pendingEvents.push(event);\n }\n }\n\n public isRecordingReady(): boolean {\n return !!this.recordFn && !!this.stopFn;\n }\n\n public isRecording(): boolean {\n return this.recordFn?.isRecording() || false;\n }\n\n public getScriptVersion(): string {\n return `@appsurify-testmap/rrweb-record:${this.recorderScriptVersion}`;\n }\n\n public getLibVersion(): string {\n return `@appsurify-testmap/rrweb:${this.recorderLibVersion}`;\n }\n\n public getEvents(): readonly RecorderEvent[] {\n return this.events;\n }\n\n public getMirror(): Mirror | undefined {\n return (this.recordFn as unknown as { mirror?: Mirror })?.mirror;\n }\n\n public bind(ctx: RecorderContext) {\n this.context = ctx;\n }\n\n public setEventCounter(value: number) {\n this.eventCounter = value;\n }\n\n}\n","import { RRWebRecorder } from './RRWebRecorder';\n\n\nexport default RRWebRecorder;\n","/// <reference types=\"cypress\" />\n\nimport {getCurrentTestContext, setCurrentTestContext} from '../runtime';\nimport {safeSerializeArray, getTestKey, mapTestRunContextToResult} from '../utils';\nimport RRWebRecorder from '../../recorder';\nimport defaultRecordOptions from '../../recorder';\nimport type {RecorderEvent} from '../../recorder/types';\nimport type {TestRunContext} from '../../types';\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst testmapEnv = Cypress.env('testmap') ?? {};\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst recordingOpts = typeof testmapEnv === 'object' && 'recordingOpts' in testmapEnv\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n ? testmapEnv.recordingOpts\n : defaultRecordOptions;\n// eslint-disable-next-line @typescript-eslint/no-unsafe-argument\nconst recorder = new RRWebRecorder(recordingOpts);\n\nexport const registerCypressEventListeners = () => {\n\n Cypress\n .on('test:before:run', onTestBeforeRun)\n // .on('log:added', onLogAdded)\n // .on('log:changed', onLogChanged)\n .on('window:before:load', onWindowBeforeLoad)\n .on('window:before:unload', onWindowBeforeUnload)\n .on('window:unload', onWindowUnload)\n .on('window:load', onWindowLoad)\n // .on('command:enqueued', onCommandEnqueued)\n // .on('command:start', onCommandStart)\n // .on('command:end', onCommandEnd)\n // .on('command:retry', onCommandRetry)\n // .on('skipped:command:end', onSkippedCommandEnd)\n .on('test:after:run', onTestAfterRun)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // .on('command:failed', onCommandFailed)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n .on('command:queue:end', onCommandQueueEnd)\n .on('fail', onFail);\n\n\n afterEach(() => {\n // console.debug(`[${Date.now()}] [cypress] afterEach:`);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // console.debug(`[${Date.now()}] [cypress] afterEach:`, ctx);\n ctx.recorderEvents.map((event) => {\n if (event.type !== 5 ) return event;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n const liveCommand = ctx.commandLiveRefs.get(event.data.payload.id) as Cypress.CommandQueue;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // event.data.payload.element = element;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n event.data.payload.state = liveCommand?.state ?? 'unknown';\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // event.data.payload.args = liveCommand?.get('args');\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-call\n event.data.payload.args = safeSerializeArray(liveCommand?.get('args'));\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.query = liveCommand?.get('query');\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.timeout = liveCommand?.get('timeout');\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.name = liveCommand?.get('name');\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n event.data.payload.type = liveCommand?.get('type');\n\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (liveCommand?.get('prev')) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n event.data.payload.prev = {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call\n state: liveCommand?.get('prev').state,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call\n name: liveCommand?.get('prev').get('name'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n args: safeSerializeArray(liveCommand?.get('prev').get('args')),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n type: liveCommand?.get('prev').get('type'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n query: liveCommand?.get('prev').get('query'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n id: liveCommand?.get('prev').get('id'),\n };\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (liveCommand?.get('next')) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n event.data.payload.next = {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n state: liveCommand?.get('next').state,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n name: liveCommand?.get('next').get('name'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n args: safeSerializeArray(liveCommand?.get('next').get('args')),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n type: liveCommand?.get('next').get('type'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n query: liveCommand?.get('next').get('query'),\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-argument\n id: liveCommand?.get('next').get('id'),\n };\n }\n return event;\n })\n console.debug(`[${Date.now()}] [cypress] afterEach:`, ctx.recorderEvents);\n\n // const testRunResult: TestRunResult = {\n // spec: ctx.spec as unknown as SpecInfo,\n // test: prepareTest(ctx.test),\n // browser: ctx.browser as BrowserInfo,\n // recorderEvents: ctx.recorderEvents,\n // }\n\n const testRunResult = mapTestRunContextToResult(ctx);\n\n\n // const testRunResultSize = getSizeInBytes(testRunResult);\n // console.debug(`[${Date.now()}] [cypress] afterEach:testResult:`, testRunResult);\n // console.debug(`[${Date.now()}] [cypress] afterEach:testResult:size:`, formatBytes(testRunResultSize));\n // const debugReport = new UICoverageReport(testRunResult);\n // console.debug(`[${Date.now()}] [cypress] afterEach:testResult:debugReport:`, debugReport.toJSON());\n\n try {\n cy.task('saveRRWebReport', {\n testRunResult\n }, { log: false });\n } catch (e) {\n console.error(`[${Date.now()}] [cypress] afterEach:saveRRWebReport`, e);\n }\n\n });\n\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // Cypress.Commands.overwrite('type', (originalFn, subject, text, options) => {\n // // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // // @ts-expect-error\n // return originalFn(subject, text, options).then(() => {\n // if (Cypress.dom.isElement(subject[0])) {\n // const el = subject[0];\n // if (el) {\n // // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // // @ts-expect-error\n // // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n // el.dispatchEvent(new Event('input', { bubbles: true }));\n // // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // // @ts-expect-error\n // // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n // el.dispatchEvent(new Event('change', { bubbles: true }));\n // }\n // }\n // });\n // });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onTestBeforeRun = (attributes: Cypress.ObjectLike, test: Mocha.Test) => {\n // console.debug(`[${Date.now()}] [cypress] onTestBeforeRun`, attributes, test);\n const testKey = getTestKey(test);\n const testRunContext: TestRunContext = {\n runner: {\n source: 'cypress',\n type: Cypress.testingType,\n version: Cypress.version,\n platform: Cypress.platform,\n arch: Cypress.arch,\n recorder: {\n scriptVersion: recorder.getLibVersion() || 'unknown',\n libVersion: recorder.getLibVersion() || 'unknown'\n }\n\n },\n spec: Cypress.spec,\n test: test,\n browser: Cypress.browser,\n autWindow: null,\n waitForPaint: () => Promise.resolve(undefined),\n paintComplete: false,\n recorderEvents: [] as RecorderEvent[],\n commandLiveRefs: new Map<string, Cypress.CommandQueue>()\n };\n\n setCurrentTestContext(testKey, testRunContext);\n\n recorder.bind({\n pushEvent: (event) => {\n console.debug(`[${Date.now()}] [cypress] pushEvent`, event);\n testRunContext.recorderEvents.push(event)\n if (event.type === 5) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n const liveCommand = testRunContext.commandLiveRefs.get(event.data.payload.id) as Cypress.CommandQueue;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call\n const subject = liveCommand?.get('subject')\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n const selector = subject?.selector;\n\n const mirror = recorder.getMirror();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n const element = mirror?.getMeta(subject?.[0]);\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n event.data.payload.element = {\n ...element,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n selector,\n childNodes: []\n };\n }\n },\n });\n\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onLogAdded = (attributes: Cypress.ObjectLike, log: Cypress.Log) => {\n // console.debug(`[${Date.now()}] [cypress] onLogAdded`, attributes, log);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onLogChanged = (attributes: Cypress.ObjectLike, log: Cypress.Log) => {\n // console.debug(`[${Date.now()}] [cypress] onLogChanged`, attributes, log);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onWindowBeforeUnload = (event: BeforeUnloadEvent) => {\n // console.debug(`[${Date.now()}] [cypress] onWindowBeforeUnload`, event);\n // try {\n // recorder.stop();\n // // eslint-disable-next-line @typescript-eslint/no-unused-vars\n // } catch (e) { /* empty */ }\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onWindowUnload = (event: BeforeUnloadEvent) => {\n // console.debug(`[${Date.now()}] [cypress] onWindowUnload`, event);\n try {\n recorder.stop();\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (e) { /* empty */ }\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onWindowBeforeLoad = (win: Cypress.AUTWindow) => {\n // console.debug(`[${Date.now()}] [cypress] onWindowBeforeLoad`, win);\n recorder.inject(win);\n // recorder.start();\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n ctx.runner.recorder!.scriptVersion = recorder.getScriptVersion();\n ctx.autWindow = win;\n ctx.paintComplete = false;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onWindowLoad = (win: Cypress.AUTWindow) => {\n console.debug(`[${Date.now()}] [cypress] onWindowLoad`, win);\n // recorder.inject(win);\n // recorder.start();\n // console.debug(`[${Date.now()}] [cypress] onWindowLoad after start`, recorder.isRecording());\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n if (!ctx.autWindow) {\n ctx.autWindow = win;\n ctx.paintComplete = false;\n }\n\n ctx.waitForPaint = (value?: unknown): Promise<unknown> => {\n return new Promise<unknown>((resolve) => {\n const maxWaitMs = 5000;\n\n const captureAfterPaint = () => {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n resolve(value);\n });\n });\n };\n\n const safeResolve = (() => {\n let called = false;\n return () => {\n if (!called) {\n called = true;\n captureAfterPaint();\n }\n };\n })();\n\n if (['interactive', 'complete'].includes(win.document.readyState)) {\n safeResolve();\n } else {\n win.addEventListener('DOMContentLoaded', safeResolve, { once: true });\n win.addEventListener('load', safeResolve, { once: true });\n setTimeout(() => {\n console.warn('⏳ Timeout: forcing resolution');\n safeResolve();\n }, maxWaitMs);\n }\n });\n };\n\n // eslint-disable-next-line @typescript-eslint/require-await\n void ctx.waitForPaint().then(async () => {\n ctx.paintComplete = true;\n recorder.inject(win);\n recorder.start();\n });\n // console.debug(`[${Date.now()}] [cypress] onWindowLoad after waitForPaint`);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onCommandEnqueued = (command: Cypress.EnqueuedCommandAttributes) => {\n // console.debug(`[${Date.now()}] [cypress] onCommandEnqueued`, command);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // Control and store live object\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n ctx.commandLiveRefs.set(command.id, command);\n\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onCommandRetry = (command: Cypress.CommandQueue) => {\n // console.debug(`[${Date.now()}] [cypress] onCommandRetry`, command);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onCommandStart = (command: Cypress.CommandQueue) => {\n // console.debug(`[${Date.now()}] [cypress] onCommandStart`, command);\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // Control and store live object\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n ctx.commandLiveRefs.set(command.attributes.id, command);\n\n // If need before state\n // recorder.addCustomEvent(`${command.attributes.name}`, {\n // id: command.attributes.id,\n // });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onCommandEnd = (command: Cypress.CommandQueue) => {\n console.debug(`[${Date.now()}] [cypress] onCommandEnd`, command);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n const waitWindowLoaded = async () => {\n if (!ctx.paintComplete && typeof ctx.waitForPaint === 'function') {\n await ctx.waitForPaint();\n ctx.paintComplete = true;\n }\n }\n void waitWindowLoaded();\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions\n recorder.addCustomEvent(`${command.attributes.name}`, {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n id: command.attributes.id,\n });\n // void waitWindowLoaded();\n\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onCommandFailed = (command: Cypress.CommandQueue, err: unknown) => {\n console.debug(`[${Date.now()}] [cypress] onCommandFailed`, command);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions\n recorder.addCustomEvent(`${command.attributes.name}`, {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n id: command.attributes.id,\n });\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onSkippedCommandEnd = (command: Cypress.CommandQueue) => {\n console.debug(`[${Date.now()}] [cypress] onSkippedCommandEnd`, command);\n\n const currentTest = Cypress.currentTest;\n if (!currentTest) return;\n\n const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n const ctx = getCurrentTestContext(testKey);\n if (!ctx) return;\n\n // Control and store live object\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access\n ctx.commandLiveRefs.set(command.attributes.id, command);\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions\n recorder.addCustomEvent(`${command.attributes.name}`, {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n id: command.attributes.id,\n });\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst onCommandQueueEnd = () => {\n // console.debug(`[${Date.now()}] [cypress] onCommandQueueEnd`);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst onFail = (error: Cypress.CypressError, mocha: Mocha.Runnable) => {\n // console.debug(`[${Date.now()}] [cypress] onFail`, {error, mocha});\n throw error;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/require-await\nconst onTestAfterRun = async (attributes: Cypress.ObjectLike, test: Mocha.Test) => {\n console.debug(`[${Date.now()}] [cypress] onTestAfterRun`, attributes, test);\n recorder.stop();\n\n // const testKey = getTestKey(test);\n // const ctx = getCurrentTestContext(testKey);\n // if (!ctx) return;\n //\n // console.debug(`[${Date.now()}] [cypress] onTestAfterRun`, ctx.recorderEvents);\n};\n\n\n","/// <reference types=\"cypress\" />\n\n\nexport const registerMochaEventListeners = () => {\n // ⚠️ Плохой стиль, отключает всю типизацию\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ((Cypress as any).mocha.getRunner() as Mocha.Runner)\n .on('hook', onHook);\n};\n\nconst onHook = () => {\n // console.debug(`🟡 [${Date.now()}] [mocha] onHook:`);\n};\n\nexport const injectMochaHookFunctions = () => {\n\n beforeEach('', ()=> {\n // console.debug(`🟡 [${Date.now()}] [mocha] beforeEach:`);\n });\n\n afterEach('', ()=> {\n // console.debug(`🟡 [${Date.now()}] [mocha] afterEach:`);\n // const currentTest = Cypress.currentTest;\n // const testKey = getTestKey({ titlePath: () => currentTest.titlePath });\n //\n // const ctx = getCurrentTestContext(testKey);\n // if (!ctx) return;\n // const serializedReport = serializeTestRunContextToJson(ctx);\n // console.log(`${Date.now()} [afterEach]`, currentTest, serializedReport);\n // cy.task('saveSnapshotReport', serializedReport)\n });\n\n};\n","import { registerCypressEventListeners } from \"./cypress\";\nimport { registerMochaEventListeners, injectMochaHookFunctions } from \"./mocha\";\n\nexport const enableTestmap = () => {\n registerCypressEventListeners();\n registerMochaEventListeners();\n injectMochaHookFunctions();\n};\n","import { enableTestmap } from './events';\n\nexport const initializeTestmap = () => {\n // if (isTestmap().Initialized) {\n // return;\n // }\n enableTestmap();\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uBAAAE,IAAA,eAAAC,EAAAH,GCGO,IAAMI,EAAe,IAAI,IAEzB,SAASC,EAAsBC,EAAaC,EAA2B,CAC5EH,EAAa,IAAIE,EAAKC,CAAG,CAC3B,CAEO,SAASC,EAAsBF,EAAyC,CAC7E,OAAOF,EAAa,IAAIE,CAAG,CAC7B,CCDO,SAASG,EAAmBC,EAAsD,CACvF,OAAOA,EACJ,OAAQC,GAGH,OAAOA,GAAU,UAAYA,IAAU,MAAQ,QAASA,GAAUA,EAAc,MAAQ,GACnF,GAKP,OAAOA,GAAU,UACjB,OAAOA,GAAU,UACjB,OAAOA,GAAU,WACjBA,IAAU,IAEb,CACL,CAEO,SAASC,EAAWC,EAA0D,CACjF,OAAOA,EAAK,UAAU,EAAE,KAAK,KAAK,CACtC,CAoCO,SAASC,EAAiBC,EAAwF,CACrH,GAAKA,EAGP,MAAO,CACD,GAAIA,EAAM,GACV,KAAMA,EAAM,KAIZ,kBAAmBC,EAAsBD,EAAM,iBAAiB,EAChE,QAASA,EAAM,QACf,KAAMA,EAAM,KACZ,MAAOA,EAAM,MACb,KAA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D,EAAQD,CAAK,CACjB,CAAC,CACL,CAAC,CACL,EAEMG,GAAe,IAAM,CACvB,IAAIC,EAAS,GACb,MAAO,IAAM,CACJA,IACDA,EAAS,GACTF,EAAkB,EAE1B,CACJ,GAAG,EAEC,CAAC,cAAe,UAAU,EAAE,SAAST,EAAI,SAAS,UAAU,EAC5DU,EAAY,GAEZV,EAAI,iBAAiB,mBAAoBU,EAAa,CAAE,KAAM,EAAK,CAAC,EACpEV,EAAI,iBAAiB,OAAQU,EAAa,CAAE,KAAM,EAAK,CAAC,EACxD,WAAW,IAAM,CACb,QAAQ,KAAK,oCAA+B,EAC5CA,EAAY,CAChB,EAAG,GAAS,EAEhB,CAAC,EAIEN,EAAI,aAAa,EAAE,KAAK,SAAY,CACrCA,EAAI,cAAgB,GACpBN,EAAS,OAAOE,CAAG,EACnBF,EAAS,MAAM,CACnB,CAAC,EAEL,EA6GA,IAAMc,EAAoB,IAAM,CAEhC,EAIMC,EAAS,CAACC,EAA6BC,IAA0B,CAEnE,MAAMD,CACV,EAKME,EAAiB,MAAOC,EAAgCC,IAAqB,CAC/E,QAAQ,MAAM,IAAI,KAAK,IAAI,8BAA+BD,EAAYC,CAAI,EAC1EC,EAAS,KAAK,CAOlB,EC/fO,IAAMC,EAA8B,IAAM,CAG7C,QAAgB,MAAM,UAAU,EAC7B,GAAG,OAAQC,CAAM,CACxB,EAEMA,EAAS,IAAM,CAErB,EAEaC,EAA2B,IAAM,CAE5C,WAAW,GAAI,IAAK,CAEpB,CAAC,EAED,UAAU,GAAI,IAAK,CAUnB,CAAC,CAEH,EC7BO,IAAMC,EAAgB,IAAM,CACjCC,EAA8B,EAC9BC,EAA4B,EAC5BC,EAAyB,CAC3B,ECLO,IAAMC,EAAoB,IAAM,CAInCC,EAAc,CAClB","names":["src_exports","__export","initializeTestmap","__toCommonJS","testContexts","setCurrentTestContext","key","ctx","getCurrentTestContext","safeSerializeArray","arr","value","getTestKey","test","prepareTestSuite","suite","safeInvocationDetails","safeInvocationDetails","details","mapTestRunContextToResult","ctx","mapSpec","mapBrowser","mapTest","spec","browser","test","prepareTestSuite","import_rrweb","import_rrweb_plugin_sequential_id_record","defaultRecordOptions","deepMerge","target","source","result","key","sourceValue","targetValue","RRWebRecorder","libVersion","options","event","rrEvent","win","w","script","rrweb_record_umd_cjs_default","recheck","stillPending","evt","tag","payload","error","ctx","value","recorder_default","RRWebRecorder","testmapEnv","recordingOpts","recorder_default","recorder","registerCypressEventListeners","onTestBeforeRun","onWindowBeforeLoad","onWindowBeforeUnload","onWindowUnload","onWindowLoad","onTestAfterRun","onCommandQueueEnd","onFail","currentTest","testKey","getTestKey","ctx","getCurrentTestContext","event","liveCommand","safeSerializeArray","testRunResult","mapTestRunContextToResult","e","attributes","test","testRunContext","setCurrentTestContext","subject","selector","element","onWindowBeforeUnload","event","onWindowUnload","recorder","onWindowBeforeLoad","win","currentTest","testKey","getTestKey","ctx","getCurrentTestContext","onWindowLoad","value","resolve","captureAfterPaint","safeResolve","called","onCommandQueueEnd","onFail","error","mocha","onTestAfterRun","attributes","test","recorder","registerMochaEventListeners","onHook","injectMochaHookFunctions","enableTestmap","registerCypressEventListeners","registerMochaEventListeners","injectMochaHookFunctions","initializeTestmap","enableTestmap"]}
|