UNPKG

html-reporter

Version:

Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.

1 lines 37.2 kB
(()=>{"use strict";var t,e,r,s,n={9560:(t,e,r)=>{r.d(e,{CB:()=>C,CR:()=>M,Cr:()=>T,Cx:()=>k,EX:()=>R,Fm:()=>K,G6:()=>J,KM:()=>w,Lg:()=>F,MO:()=>A,MT:()=>v,Mg:()=>_,Ne:()=>N,Ph:()=>G,R6:()=>b,S5:()=>B,SS:()=>D,by:()=>Z,ci:()=>j,dc:()=>L,e1:()=>U,hO:()=>S,iR:()=>P,jj:()=>H,kg:()=>m,nc:()=>g,qC:()=>E,sx:()=>I,wX:()=>x,zV:()=>O});var s=r(34795),n=r(96234),i=r(82841),a=r.n(i),o=r(5634),u=r(76635),c=r(883),l=r(27202),d=r(8776),p=r(40161);function f(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=Array(e);r<e;r++)s[r]=t[r];return s}var v=function(t){return o.createHash("md5").update(t,"ascii").digest("hex").substr(0,7)},y=[l.sS,l.em,l.pn,l.ES,l.Ez,l.t6,l.SH,l.MR,l.JW,l.kb],m=(0,u.pick)(console,["log","warn","error"]),_=function(t){return t===l.MR},b=function(t){return t===l.ES},g=function(t){return t===l.JW},w=function(t){return t===l.pn},I=function(t){return t===l.kb},T=function(t){return t===l.SH},k=function(t){return t===l.Ez},S=function(t){return t===l.t6},R=function(t){if(!t.length)return l.MR;for(var e=new Set(t),r=0,s=y;r<s.length;r++){var n=s[r];if(e.has(n))return n}return console.error("Unknown statuses: "+JSON.stringify(t)),null},O=function(t,e){if((0,u.isEmpty)(e))return null!=t?t:"";try{var r=new URL(null!=t?t:"",e),s=new URL(e);r.host=s.host,r.protocol=s.protocol,r.port=s.port,r.username=s.username,r.password=s.password;var i,a=f(s.searchParams);try{for(a.s();!(i=a.n()).done;){var o=(0,n.Z)(i.value,2),c=o[0],l=o[1];r.searchParams.append(c,l)}}catch(t){a.e(t)}finally{a.f()}return r.href}catch(r){return t||e||""}},E=function(t){try{var e=new URL(t);return e.pathname+e.search}catch(e){return t}},P=function(t){return(null==t?void 0:t.name)===p.G.ASSERT_VIEW},j=function(t){return(null==t?void 0:t.name)===p.G.IMAGE_DIFF},B=function(t){return(null==t?void 0:t.name)===p.G.NO_REF_IMAGE},N=function(t){return(null==t?void 0:t.name)===p.G.INVALID_REF_IMAGE},x=function(t){return P(t)||j(t)||B(t)},A=function(t){return!B(t)&&!j(t)&&!P(t)},Z=function(t){if(t)return(0,u.pick)(t,["name","message","stack","stateName","snippet"])},D=function(t){var e;if(!(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((function(t){return t.stateName&&(w(t.status)||b(t.status)||B(t)||j(t))}))}(t.imagesInfo)||I(t.status)||t.error&&A(t.error)))return l.MR;var r,s=(null!==(e=t.imagesInfo)&&void 0!==e?e:[]).map((function(t){var e;return null!==(e=t.error)&&void 0!==e?e:{}}));return s.some((function(t){return j(t)}))||(void 0===(r={assertViewResults:s}.assertViewResults)?[]:r).some((function(t){return B(t)}))?l.ES:(0,u.isEmpty)(t.error)?t.status:l.pn},C=function(t){if("string"!=typeof t)return!1;var e=c.parse(t);return!!e.host&&!!e.protocol},L=function(){var t=(0,s.Z)(a().mark((function t(e,s){var n,i,o,u,c,l;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(741),r.e(613)]).then(r.bind(r,74856));case 2:return n=t.sent,i=n.default,t.prev=4,t.next=7,i.get(e,s);case 7:return o=t.sent,u=o.data,c=o.status,t.abrupt("return",{data:u,status:c});case 13:return t.prev=13,t.t0=t.catch(4),m.warn("Error while fetching ".concat(e),t.t0),l=t.t0.response?t.t0.response.status:"unknown",t.abrupt("return",{data:null,status:l,error:t.t0});case 18:case"end":return t.stop()}}),t,null,[[4,13]])})));return function(e,r){return t.apply(this,arguments)}}(),U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=new URL(e).search;return t.map((function(t){try{var s=new URL(t,e);return function(t){try{return new URL(t),!1}catch(t){return!0}}(t)&&!s.search&&(s.search=r),s.href}catch(r){return m.warn("Can not normalize url '".concat(t," for base url '").concat(e,"'"),r),t}}))},M=function(t){return Number(t)===d.ri},G=function(t){return Number(t)===d.Km},H=function(t){return M(t)?d.wT:d.ri};var F=function(t){return t.testPath.concat(t.browserId,t.attempt.toString()).join(" ")},J=function(t){for(var e=0,r=t.length;e<t.length&&!t[e];)e++;for(;r>0&&!t[r-1];)r--;return t.slice(e,r)},V=function(t){var e=t.name;if(!e&&t.stack){var r=t.stack.indexOf(":");e=-1!==r?t.stack.slice(0,r):t.stack.slice(0,t.stack.indexOf("\n"))}return e||(e="Error"),t.message?"".concat(e,": ").concat(t.message):e},X=function(t){var e=V(t)+"\n",r=t.stack.indexOf(e);if(-1!==r)return t.stack.slice(r+e.length);var s=t.toString?t.toString()+"\n":"",n=t.stack.indexOf(s);if(s&&-1!==n)return t.stack.slice(n+s.length);var i=t.stack.indexOf(t.message),a=t.stack.indexOf("\n",i+t.message.length);return t.stack.slice(a+1)},K=function(t){if(!t||!t.snippet)return t;var e=function(t){var e=["name","message","stack"],r=new Error(t.message);e.forEach((function(t){delete r[t]}));var s=Object.getOwnPropertyNames(t);return e.concat(s).forEach((function(e){r[e]=t[e]})),r}(t);if(delete e.snippet,!t.stack)return e.stack=[V(t),t.snippet].join("\n"),e;return e.stack=[V(t),t.snippet,""+X(t)+""].join("\n"),e}},8047:(t,e,r)=>{r.d(e,{By:()=>v,fB:()=>h,pU:()=>b,vO:()=>m,xH:()=>g,xe:()=>w});var s=r(68079),n=r(56666),i=r(34795),a=r(82841),o=r.n(a),u=r(76635),c=r(69e3),l=r(9560),d=r(46126);function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e){var r=function(){var t=(0,i.Z)(o().mark((function t(r){var s,n,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s={responseType:"arraybuffer"},"function"==typeof e&&(s.onDownloadProgress=function(t){e(r,t.loaded/t.total)}),t.next=4,(0,l.dc)(r,s);case 4:return n=t.sent,i=n.data,a=n.status,t.abrupt("return",{url:r,status:a,data:i});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,c.jI)(t,{loadDbJsonUrl:function(t){return(0,l.dc)(t)},prepareUrls:function(t,e){return(0,l.e1)(t,e)},formatData:function(t){return{url:t,status:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown",data:null}},loadDbUrl:r})}function v(t){return y.apply(this,arguments)}function y(){return(y=(0,i.Z)(o().mark((function t(e){var r,n,i,a,u,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.initSqlJs();case 2:if(r=t.sent,n=e.map((function(t){return new Uint8Array(t)})),0!==(i=n.map((function(t){return new r.Database(t)}))).length){t.next=9;break}return t.abrupt("return",null);case 9:if(1!==i.length){t.next=11;break}return t.abrupt("return",i[0]);case 11:return a=n.reduce((function(t,e){return t+e.length}),0),u=new r.Database(void 0,a),l=i.map((function(t){return t.filename})),(0,c.c2)({db:u,dbPaths:l,getExistingTables:function(t){for(var e=[];t.step();)e.push.apply(e,(0,s.Z)(t.get()));return e}}),i.forEach((function(t){return t.close()})),t.abrupt("return",u);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(t){return _.apply(this,arguments)}function _(){return(_=(0,i.Z)(o().mark((function t(e){var r,s,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new URL(e),t.next=3,(0,l.dc)(r.href,{responseType:"arraybuffer"});case 3:return s=t.sent,n=s.data,t.next=7,window.initSqlJs();case 7:return i=t.sent,t.abrupt("return",new i.Database(new Uint8Array(n)));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(){return new URL(d.rW,window.location.href)}function g(t){var e=function(t,e){var r=t.exec((0,c.Vt)(e))[0];if(!r)return console.warn('Table "'.concat(e,'" is empty')),[];return r}(t,d.JL);if(!(0,u.isEmpty)(e))return e.values.sort(c.fd)}function w(t){t.close()}f(f({},c.default),{},{fetchDataFromDatabases:h,mergeDatabases:v,connectToDatabase:m,getMainDatabaseUrl:b,getSuitesTableRows:g,closeDatabase:w})},64141:(t,e,r)=>{r.r(e),r.d(e,{changeTestRetry:()=>H.iB,changeViewMode:()=>n.R4,closeModal:()=>l.M,closeSections:()=>H.DI,collapseAll:()=>H.kF,commitAcceptedImagesToTree:()=>C.GC,commitRevertedImagesToTree:()=>C.sP,createNotification:()=>d.sc,createNotificationError:()=>d.uX,deselectAll:()=>H.kR,dismissNotification:()=>d.N5,expandAll:()=>H.V1,expandErrors:()=>H.vf,expandRetries:()=>H.tp,finGuiReport:()=>u.Sc,finStaticReport:()=>u.$i,formatStaticAccepterProgress:()=>M.lT,groupTestsByKey:()=>a.I,openModal:()=>l.h,processBegin:()=>p.$,processEnd:()=>p.E,revealTreeNode:()=>G.o9,runAllTests:()=>T,runCustomGui:()=>s.u,runFailedTests:()=>S,runSuite:()=>O,runTest:()=>b,selectAll:()=>H.td,selectBrowsers:()=>n.QJ,set2UpFitMode:()=>F.Bt,setAllTreeNodesState:()=>G.Nu,setBackupSectionSizes:()=>G.Qh,setBrowserFeatures:()=>J.a,setCurrentGroupByExpression:()=>a.i,setCurrentHighlightStep:()=>G.Gm,setCurrentSortByExpression:()=>U.Q,setCurrentStep:()=>G.Bq,setCurrentTreeNode:()=>G._r,setDiffMode:()=>L.H,setGuiServerConnectionStatus:()=>o.o,setMatchCaseFilter:()=>n.cQ,setRefreshLoading:()=>n.lT,setRepeatCount:()=>g,setRepeatLeft:()=>w,setSearchLoading:()=>n.if,setSectionExpandedState:()=>G.$X,setSectionSizes:()=>G.gM,setSortByDirection:()=>U.u,setStepsExpandedState:()=>G.zE,setStrictMatchFilter:()=>G.tF,setTreeNodeExpandedState:()=>G.cI,setTreeViewMode:()=>G.KW,setUseRegexFilter:()=>n.Lf,setVisualChecksDiffMode:()=>F.MT,staticAccepterCloseConfirm:()=>M.dd,staticAccepterCommitScreenshot:()=>M.sv,staticAccepterDelayScreenshot:()=>M.A2,staticAccepterOpenConfirm:()=>M.x_,staticAccepterStageScreenshot:()=>M.FD,staticAccepterUndoDelayScreenshot:()=>M.cO,staticAccepterUnstageScreenshot:()=>M.vx,staticAccepterUpdateCommitMessage:()=>M.Lt,staticAccepterUpdateToolbarOffset:()=>M.mm,stopTests:()=>j,suiteBegin:()=>A,testBegin:()=>Z,testResult:()=>D,testsEnd:()=>N,thunkAcceptImages:()=>C.Ro,thunkFindSameDiffs:()=>i.C,thunkInitGuiReport:()=>u.dP,thunkInitStaticReport:()=>u.Kt,thunkRefreshGuiReport:()=>u.tc,thunkRevertImages:()=>C.Ku,thunkRunAllTests:()=>k,thunkRunCustomGuiAction:()=>s.M,thunkRunFailedTests:()=>R,thunkRunSuite:()=>E,thunkRunTest:()=>P,thunkRunTests:()=>I,thunkStopTests:()=>B,thunkTestsEnd:()=>x,toggle2UpDiffVisibility:()=>F.ZD,toggleBrowserCheckbox:()=>H.Z$,toggleBrowserSection:()=>H.nS,toggleGroupCheckbox:()=>H.IP,toggleLoading:()=>c.o,toggleStateResult:()=>H.qz,toggleSuiteCheckbox:()=>H.T9,toggleSuiteSection:()=>H.cd,toggleTestsGroup:()=>H.Cd,updateBaseHost:()=>L.B,updateBottomProgressBar:()=>H.LL,updateNameFilter:()=>n.QC,visualChecksPageSetCurrentNamedImage:()=>F.Ll});var s=r(70839),n=r(19272),i=r(60540),a=r(32481),o=r(48907),u=r(82931),c=r(33981),l=r(95834),d=r(48394),p=r(84787),f=r(34795),h=r(82841),v=r.n(h),y=r(87741),m=r(97566),_=r(8047),b=function(){return{type:m.Z.RETRY_TEST}},g=function(t){return{type:m.Z.SET_REPEAT_COUNT,payload:{repeatCount:t}}},w=function(t){return{type:m.Z.SET_REPEAT_LEFT,payload:{repeatLeft:t}}},I=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).tests,e=void 0===t?[]:t;return function(){var t=(0,f.Z)(v().mark((function t(r,s){var n,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s(),i=n.repeatCount,r(b()),t.prev=2,t.next=5,y.default.post("/run",{tests:e,repeatCount:i});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(2),console.error("Error while running tests:",t.t0);case 10:case"end":return t.stop()}}),t,null,[[2,7]])})));return function(e,r){return t.apply(this,arguments)}}()},T=function(){return{type:m.Z.RUN_ALL_TESTS}},k=function(){return function(){var t=(0,f.Z)(v().mark((function t(e){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e(T()),t.next=3,e(I());case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},S=function(){return{type:m.Z.RUN_FAILED_TESTS}},R=function(t){var e=t.tests;return function(){var t=(0,f.Z)(v().mark((function t(r){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(S()),t.next=3,r(I({tests:e}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},O=function(){return{type:m.Z.RETRY_SUITE}},E=function(t){var e=t.tests;return function(){var t=(0,f.Z)(v().mark((function t(r){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(O()),t.next=3,r(I({tests:e}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},P=function(t){var e=t.test;return function(){var t=(0,f.Z)(v().mark((function t(r){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(b()),t.next=3,r(I({tests:[e]}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},j=function(){return{type:m.Z.STOP_TESTS}},B=function(){return function(){var t=(0,f.Z)(v().mark((function t(e){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,y.default.post("/stop");case 3:e(j()),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Error while stopping tests:",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e){return t.apply(this,arguments)}}()},N=function(t){return{type:m.Z.TESTS_END,payload:t}},x=function(){return function(){var t=(0,f.Z)(v().mark((function t(e){var r,s;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=(0,_.pU)(),t.next=4,(0,_.vO)(r.href);case 4:s=t.sent,e(N({db:s})),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),e((0,d.uX)("testsEnd",t.t0));case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}()},A=function(t){return{type:m.Z.SUITE_BEGIN,payload:t}},Z=function(t){return{type:m.Z.TEST_BEGIN,payload:t}},D=function(t){return{type:m.Z.TEST_RESULT,payload:t}},C=r(54432),L=r(22253),U=r(58311),M=r(49012),G=r(40554),H=r(70807),F=r(84006),J=r(29909)},18601:(t,e,r)=>{var s=r(2784),n=r(17029),i=r(30266),a=r(33477),o=r(82979),u=r(64141),c=r(48907),l=r(97566),d=r(1540),p=document.getElementById("app");function f(){var t=(0,d.T)();return(0,s.useEffect)((function(){if(t)return o.Z.dispatch((0,u.thunkInitGuiReport)({isNewUi:!0})),t&&(t.addEventListener(i.JX.CONNECTED,(function(){o.Z.dispatch({type:l.Z.UPDATE_LOADING_VISIBILITY,payload:!1}),o.Z.dispatch((0,c.o)({isConnected:!0}))})),t.onerror=function(){o.Z.dispatch({type:l.Z.UPDATE_LOADING_IS_IN_PROGRESS,payload:!0}),o.Z.dispatch({type:l.Z.UPDATE_LOADING_TITLE,payload:"Lost connection to Testplane UI server. Trying to reconnect"}),o.Z.dispatch({type:l.Z.UPDATE_LOADING_VISIBILITY,payload:!0}),o.Z.dispatch((0,c.o)({isConnected:!1}))},t.addEventListener(i.JX.BEGIN_SUITE,(function(t){var e=JSON.parse(t.data);o.Z.dispatch((0,u.suiteBegin)(e))})),t.addEventListener(i.JX.BEGIN_STATE,(function(t){var e=JSON.parse(t.data);o.Z.dispatch((0,u.testBegin)(e))})),[i.JX.TEST_RESULT,i.JX.ERROR].forEach((function(e){t.addEventListener(e,(function(t){var e=JSON.parse(t.data);o.Z.dispatch((0,u.testResult)(e))}))})),t.addEventListener(i.JX.END,(function(){o.Z.dispatch((0,u.thunkTestsEnd)())})),t.addEventListener(i.JX.REPEAT_LEFT,(function(t){var e=JSON.parse(t.data);o.Z.dispatch((0,u.setRepeatLeft)(e.repeatLeft))}))),function(){o.Z.dispatch((0,u.finGuiReport)())}}),[t]),s.createElement(a.g,null)}(0,n.s)(p).render(s.createElement(d.L,null,s.createElement(f,null)))},1540:(t,e,r)=>{r.d(e,{L:()=>a,T:()=>o});var s=r(96234),n=r(2784),i=(0,n.createContext)(null),a=function(t){var e=t.children,r=(0,n.useState)(null),a=(0,s.Z)(r,2),o=a[0],u=a[1];return(0,n.useEffect)((function(){var t=new EventSource("/events");return u(t),function(){t.close()}}),[]),n.createElement(i.Provider,{value:o},e)},o=function(){return(0,n.useContext)(i)}},32444:(t,e,r)=>{r.d(e,{R:()=>a,r:()=>o});var s=r(34795),n=r(82841),i=r.n(n),a=function(t){return"error"in t},o=function(){var t=(0,s.Z)(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch("/update-time-travel-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(t){return t.json()})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},43134:(t,e,r)=>{r.d(e,{N:()=>j});var s=r(56666),n=r(9249),i=r(87371),a=r(45754),o=r(11987),u=r(95058),c=r(76635),l=r.n(c),d=r(9560),p=r(27202),f=function(){function t(e){(0,n.Z)(this,t),this._options=e}return(0,i.Z)(t,[{key:"transform",value:function(t){var e,r,s,n,i,a=(0,d.zV)(t.url,this._options.baseHost),o=l().merge(l().cloneDeep(t.meta),{url:null!==(e=null!==(r=null===(s=t.meta)||void 0===s?void 0:s.url)&&void 0!==r?r:a)&&void 0!==e?e:"",file:t.file,sessionId:t.sessionId}),u=l().omitBy(o,l().isEmpty);return{suitePath:t.testPath,suiteName:l().last(t.testPath),name:t.browserId,suiteUrl:a,metaInfo:u,history:t.history,description:t.description,error:(0,d.by)(t.error),skipReason:t.skipReason,imagesInfo:null!==(n=t.imagesInfo)&&void 0!==n?n:[],screenshot:Boolean(t.screenshot),multipleTabs:t.multipleTabs,status:t.status,timestamp:null!==(i=t.timestamp)&&void 0!==i?i:Date.now(),duration:t.duration,attachments:t.attachments}}}]),t}();function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var y=function(){function t(e){(0,n.Z)(this,t),this._transformer=new f(e)}return(0,i.Z)(t,[{key:"transform",value:function(t){var e=this._transformer.transform(t);return v(v({},l().omit(e,"imagesInfo")),{},{attempt:t.attempt,errorDetails:t.errorDetails})}}]),t}();function m(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return _(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=Array(e);r<e;r++)s[r]=t[r];return s}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.Z)(this,t),this._transformer=new y(e),this._tree={suites:{byId:{},byHash:{},allIds:[],allRootIds:[]},browsers:{byId:{},allIds:[]},results:{byId:{},allIds:[]},images:{byId:{},allIds:[]}}}return(0,i.Z)(t,[{key:"tree",get:function(){return this._tree}},{key:"sortTree",value:function(){var t=this;this._tree.suites.allRootIds.sort().forEach((function e(r){var s=t._tree.suites.byId[r];s.suiteIds&&s.suiteIds.sort().forEach(e),s.browserIds&&s.browserIds.sort()}))}},{key:"addTestResult",value:function(t){var e=this,r=t.testPath,s=t.browserId,n=t.attempt,i=t.imagesInfo,a=void 0===i?[]:i,o=t.meta.browserVersion,u=void 0===o?p.eb.UNKNOWN:o,c=this._buildId(r),l=this._buildId(c,s),d=this._buildId(l,n.toString()),f=a.map((function(t,r){return e._buildId(d,t.stateName||"".concat(t.status,"_").concat(r))}));this._addSuites(r,l),this._addBrowser({id:l,parentId:c,name:s,version:u},d,n),this._addResult({id:d,parentId:l,result:t},f),this._addImages(f,{imagesInfo:a,parentId:d}),this._setStatusForBranch(r)}},{key:"_buildId",value:function(){return[].concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).join(p.Nv)}},{key:"_addSuites",value:function(t,e){var r=this;t.reduce((function(t,s,n,i){var a=0===n,o=a?[s]:i.slice(0,n+1),u=r._buildId(o);if(!t.byId[u]){var c=a?null:r._buildId(o.slice(0,-1)),l={id:u,hash:(0,d.MT)(u),parentId:c,name:s,suitePath:o,root:a};r._addSuite(l)}var p=r._tree.suites.byId[u];if(n!==i.length-1){var f=r._buildId(u,i[n+1]);p.suiteIds?r._tree.suites.byId[f]&&p.suiteIds.includes(f)||p.suiteIds.push(f):p.suiteIds=[f]}else p.browserIds?r._tree.browsers.byId[e]&&p.browserIds.includes(e)||p.browserIds.push(e):p.browserIds=[e];return t}),this._tree.suites)}},{key:"_addSuite",value:function(t){var e=this._tree.suites;e.byId[t.id]=t,e.byHash[t.hash]=t,e.allIds.push(t.id),t.root&&e.allRootIds.push(t.id)}},{key:"_addBrowser",value:function(t,e,r){var s=t.id,n=t.parentId,i=t.name,a=t.version,o=this._tree.browsers;o.byId[s]||(o.byId[s]={id:s,parentId:n,name:i,resultIds:[],version:a},o.allIds.push(s)),this._addResultIdToBrowser(s,e,r)}},{key:"_addResultIdToBrowser",value:function(t,e,r){this._tree.browsers.byId[t].resultIds[r]=e}},{key:"_addResult",value:function(t,e){var r=t.id,s=t.parentId,n=t.result,i=this._transformer.transform(n);this._tree.results.byId[r]||this._tree.results.allIds.push(r),this._tree.results.byId[r]=g(g({attempt:0,id:r,parentId:s},i),{},{imageIds:e})}},{key:"_addImages",value:function(t,e){var r=this,s=e.imagesInfo,n=e.parentId;t.forEach((function(t,e){r._tree.images.byId[t]=g(g({},s[e]),{},{id:t,parentId:n}),r._tree.images.allIds.push(t)}))}},{key:"_setStatusForBranch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this._buildId(t);if(e){var r,s=this._tree.suites.byId[e],n=[],i=m(s.browserIds||[]);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a){var o=this._tree.browsers.byId[a].resultIds,u=o[o.length-1],c=this._tree.results.byId[u].status;c&&!n.includes(c)&&n.push(c)}}}catch(t){i.e(t)}finally{i.f()}var l,p=m(s.suiteIds||[]);try{for(p.s();!(l=p.n()).done;){var f=l.value;if(f){var h=this._tree.suites.byId[f].status;h&&!n.includes(h)&&n.push(h)}}}catch(t){p.e(t)}finally{p.f()}if(s.status=(0,d.EX)(n)||void 0,s.status)for(var v=1;v<t.length;v++){var y=t.slice(0,-v),_=this._buildId(y),b=this._tree.suites.byId[_];if(b.status===s.status)return;if(b.status){this._setStatusForBranch(y);break}b.status=s.status}}}}],[{key:"create",value:function(){return new this(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}]),t}(),I=function(t){try{return JSON.parse(t)}catch(t){return}},T=function(){function t(e,r){(0,n.Z)(this,t),this._testResult=e,this._parsedTestResult={attempt:r}}return(0,i.Z)(t,[{key:"assertViewResults",get:function(){return[]}},{key:"attempt",get:function(){return this._parsedTestResult.attempt}},{key:"browserId",get:function(){return this._testResult[p.He.name]}},{key:"description",get:function(){var t;return null!==(t=this._testResult[p.He.description])&&void 0!==t?t:void 0}},{key:"error",get:function(){return l().has(this._parsedTestResult,"error")||(this._parsedTestResult.error=I(this._testResult[p.He.error])),this._parsedTestResult.error}},{key:"errorDetails",get:function(){return null}},{key:"file",get:function(){var t;return l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=I(this._testResult[p.He.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.file}},{key:"fullName",get:function(){return l().has(this._parsedTestResult,"fullName")||(this._parsedTestResult.fullName=this.testPath.join(p.Nv)),this._parsedTestResult.fullName}},{key:"history",get:function(){return l().has(this._parsedTestResult,"history")||(this._parsedTestResult.history=I(this._testResult[p.He.history])),this._parsedTestResult.history}},{key:"id",get:function(){return this.testPath.concat(this.browserId,this.attempt.toString()).join(" ")}},{key:"imageDir",get:function(){return(0,d.Lg)(this)}},{key:"imagesInfo",get:function(){return l().has(this._parsedTestResult,"imagesInfo")||(this._parsedTestResult.imagesInfo=I(this._testResult[p.He.imagesInfo])),this._parsedTestResult.imagesInfo}},{key:"meta",get:function(){var t;l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=null!==(t=I(this._testResult[p.He.metaInfo]))&&void 0!==t?t:{});return this._parsedTestResult.meta}},{key:"multipleTabs",get:function(){return Boolean(this._testResult[p.He.multipleTabs])}},{key:"screenshot",get:function(){var t;return null===(t=this.error)||void 0===t?void 0:t.screenshot}},{key:"sessionId",get:function(){var t;return l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=I(this._testResult[p.He.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.sessionId}},{key:"skipReason",get:function(){return this._testResult[p.He.skipReason]}},{key:"state",get:function(){return{name:this.testPath.at(-1)}}},{key:"status",get:function(){return this._testResult[p.He.status]}},{key:"testPath",get:function(){return l().has(this._parsedTestResult,"testPath")||(this._parsedTestResult.testPath=I(this._testResult[p.He.suitePath])),this._parsedTestResult.testPath}},{key:"timestamp",get:function(){return Number(this._testResult[p.He.timestamp])}},{key:"url",get:function(){return this._testResult[p.He.suiteUrl]}},{key:"duration",get:function(){return this._testResult[p.He.duration]}},{key:"attachments",get:function(){return l().has(this._parsedTestResult,"attachments")||(this._parsedTestResult.attachments=I(this._testResult[p.He.attachments])),this._parsedTestResult.attachments}}]),t}();function k(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return S(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=Array(e);r<e;r++)s[r]=t[r];return s}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t){var e=P();return function(){var r,s=(0,u.Z)(t);if(e){var n=(0,u.Z)(this).constructor;r=Reflect.construct(s,arguments,n)}else r=s.apply(this,arguments);return(0,o.Z)(this,r)}}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}var j=function(t){(0,a.Z)(r,t);var e=E(r);function r(t){var s;return(0,n.Z)(this,r),(s=e.call(this,t))._stats=O(O({},{total:0,passed:0,failed:0,skipped:0,retries:0}),{},{perBrowser:{}}),s._skips=[],s._failedTestIds={},s._passedTestIds={},s._skippedTestIds={},s}return(0,i.Z)(r,[{key:"build",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=new Map,s={},n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=JSON.parse(i[p.He.suitePath]),o=i[p.He.name],u=this._buildId(a),c=this._buildId(u,o);r.set(c,r.has(c)?r.get(c)+1:0);var d=r.get(c),f=new T(i,d);B(s,f),this.addTestResult(f),this._calcStats(f,{testId:u,browserName:o})}}catch(t){n.e(t)}finally{n.f()}return this.sortTree(),{tree:this.tree,stats:this._stats,skips:this._skips,browsers:l().map(s,(function(t,e){return{id:e,versions:Array.from(t)}}))}}},{key:"_addResultIdToBrowser",value:function(t,e){this._tree.browsers.byId[t].resultIds.push(e)}},{key:"_calcStats",value:function(t,e){var r=e.testId,s=e.browserName,n=this._buildId(r,s),i=t.status,a=t.meta.browserVersion||p.eb.UNKNOWN;switch(this._stats.perBrowser[s]||(this._stats.perBrowser[s]={}),this._stats.perBrowser[s][a]||(this._stats.perBrowser[s][a]={total:0,passed:0,failed:0,skipped:0,retries:0}),i){case p.ih.FAIL:case p.ih.ERROR:return this._passedTestIds[n]?(delete this._passedTestIds[n],this._failedTestIds[n]=!0,this._stats.passed--,this._stats.failed++,this._stats.retries++,this._stats.perBrowser[s][a].passed--,this._stats.perBrowser[s][a].failed++,void this._stats.perBrowser[s][a].retries++):this._failedTestIds[n]?(this._stats.retries++,void this._stats.perBrowser[s][a].retries++):this._skippedTestIds[n]?(delete this._skippedTestIds[n],this._failedTestIds[n]=!0,this._stats.skipped--,this._stats.failed++,this._stats.retries++,this._stats.perBrowser[s][a].skipped--,this._stats.perBrowser[s][a].failed++,void this._stats.perBrowser[s][a].retries++):(this._failedTestIds[n]=!0,this._stats.failed++,this._stats.total++,this._stats.perBrowser[s][a].failed++,void this._stats.perBrowser[s][a].total++);case p.ih.SUCCESS:return this._passedTestIds[n]?(this._stats.retries++,void this._stats.perBrowser[s][a].retries++):this._failedTestIds[n]?(delete this._failedTestIds[n],this._passedTestIds[n]=!0,this._stats.failed--,this._stats.passed++,this._stats.retries++,this._stats.perBrowser[s][a].failed--,this._stats.perBrowser[s][a].passed++,void this._stats.perBrowser[s][a].retries++):this._skippedTestIds[n]?(delete this._skippedTestIds[n],this._passedTestIds[n]=!0,this._stats.skipped--,this._stats.passed++,this._stats.retries++,this._stats.perBrowser[s][a].skipped--,this._stats.perBrowser[s][a].passed++,void this._stats.perBrowser[s][a].retries++):(this._passedTestIds[n]=!0,this._stats.passed++,this._stats.total++,this._stats.perBrowser[s][a].passed++,void this._stats.perBrowser[s][a].total++);case p.ih.SKIPPED:if(this._failedTestIds[n])return delete this._failedTestIds[n],this._skippedTestIds[n]=!0,this._stats.failed--,this._stats.skipped++,this._stats.retries++,this._stats.perBrowser[s][a].failed--,this._stats.perBrowser[s][a].skipped++,this._stats.perBrowser[s][a].retries++,void this._skips.push({browser:s,suite:r,comment:t.skipReason});if(this._passedTestIds[n])return delete this._passedTestIds[n],this._skippedTestIds[n]=!0,this._stats.passed--,this._stats.skipped++,this._stats.retries++,this._stats.perBrowser[s][a].passed--,this._stats.perBrowser[s][a].skipped++,this._stats.perBrowser[s][a].retries++,void this._skips.push({browser:s,suite:r,comment:t.skipReason});if(this._skippedTestIds[n])return this._stats.retries++,void this._stats.perBrowser[s][a].retries++;this._skippedTestIds[n]=!0,this._skips.push({browser:s,suite:r,comment:t.skipReason}),this._stats.skipped++,this._stats.perBrowser[s][a].skipped++,this._stats.total++,this._stats.perBrowser[s][a].total++}}}]),r}(w);function B(t,e){var r=e.browserId;t[r]||(t[r]=new Set);var s=e.meta.browserVersion,n=void 0===s?p.eb.UNKNOWN:s;t[r].add(n)}},58672:()=>{}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=n,t=[],a.O=(e,r,s,n)=>{if(!r){var i=1/0;for(l=0;l<t.length;l++){for(var[r,s,n]=t[l],o=!0,u=0;u<r.length;u++)(!1&n||i>=n)&&Object.keys(a.O).every((t=>a.O[t](r[u])))?r.splice(u--,1):(o=!1,n<i&&(i=n));if(o){t.splice(l--,1);var c=s();void 0!==c&&(e=c)}}return e}n=n||0;for(var l=t.length;l>0&&t[l-1][2]>n;l--)t[l]=t[l-1];t[l]=[r,s,n]},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},r=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var i={};e=e||[null,r({}),r([]),r(r)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=r(o))Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,a.d(n,i),n},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,r)=>(a.f[r](t,e),e)),[])),a.u=t=>(938===t?"search-worker":t)+".min.js",a.miniCssF=t=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s={},a.l=(t,e,r,n)=>{if(s[t])s[t].push(e);else{var i,o;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var l=u[c];if(l.getAttribute("src")==t){i=l;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=t),s[t]=[e];var d=(e,r)=>{i.onerror=i.onload=null,clearTimeout(p);var n=s[t];if(delete s[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((t=>t(r))),e)return e(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),o&&document.head.appendChild(i)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!t;)t=r[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{a.b=document.baseURI||self.location.href;var t={779:0,134:0};a.f.j=(e,r)=>{var s=a.o(t,e)?t[e]:void 0;if(0!==s)if(s)r.push(s[2]);else{var n=new Promise(((r,n)=>s=t[e]=[r,n]));r.push(s[2]=n);var i=a.p+a.u(e),o=new Error;a.l(i,(r=>{if(a.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+i+")",o.name="ChunkLoadError",o.type=n,o.request=i,s[1](o)}}),"chunk-"+e,e)}},a.O.j=e=>0===t[e];var e=(e,r)=>{var s,n,[i,o,u]=r,c=0;if(i.some((e=>0!==t[e]))){for(s in o)a.o(o,s)&&(a.m[s]=o[s]);if(u)var l=u(a)}for(e&&e(r);c<i.length;c++)n=i[c],a.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return a.O(l)},r=self.webpackChunk=self.webpackChunk||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),a.O(void 0,[164,741,964,899,406,343,685],(()=>a(18601))),a.O(void 0,[164,741,964,899,406,343,685],(()=>a(87240))),a.O(void 0,[164,741,964,899,406,343,685],(()=>a(57605)));var o=a.O(void 0,[164,741,964,899,406,343,685],(()=>a(58672)));o=a.O(o)})();