html-reporter 11.18.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/cli/commands/gui.js +1 -1
- package/build/lib/cli/commands/gui.js.map +1 -1
- package/build/lib/config/index.js +1 -1
- package/build/lib/config/index.js.map +1 -1
- package/build/lib/constants/defaults.js +3 -2
- package/build/lib/constants/defaults.js.map +1 -1
- package/build/lib/gui/server.js +2 -2
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/server-utils.js +2 -1
- package/build/lib/server-utils.js.map +1 -1
- package/build/lib/static/180.min.js +1 -0
- package/build/lib/static/394.min.js +1 -1
- package/build/lib/static/567.min.js +1 -1
- package/build/lib/static/632.min.js +1 -1
- package/build/lib/static/{81.min.css → 646.min.css} +1 -1
- package/build/lib/static/646.min.js +1 -0
- package/build/lib/static/657.min.js +1 -0
- package/build/lib/static/899.min.js +1 -0
- package/build/lib/static/gui.html +19 -28
- package/build/lib/static/gui.min.css +1 -1
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/index.html +19 -28
- package/build/lib/static/old-ui-gui.html +29 -0
- package/build/lib/static/old-ui-report.html +29 -0
- package/build/lib/static/oldGui.min.css +1 -0
- package/build/lib/static/oldGui.min.js +1 -0
- package/build/lib/static/oldReport.min.js +1 -0
- package/build/lib/static/report.min.js +1 -1
- package/build/lib/static/search-worker.min.js +1 -1
- package/build/package.json +1 -1
- package/package.json +1 -1
- package/build/lib/static/33.min.js +0 -1
- package/build/lib/static/81.min.js +0 -1
- package/build/lib/static/842.min.js +0 -1
- package/build/lib/static/884.min.js +0 -1
- package/build/lib/static/new-ui-gui.html +0 -38
- package/build/lib/static/new-ui-report.html +0 -38
- package/build/lib/static/newGui.min.css +0 -1
- package/build/lib/static/newGui.min.js +0 -1
- package/build/lib/static/newReport.min.js +0 -1
- /package/build/lib/static/{33.min.css → 657.min.css} +0 -0
- /package/build/lib/static/{report.min.css → oldReport.min.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[567],{42694(t,e,r){r.d(e,{Az:()=>z,DH:()=>G,Df:()=>m,Du:()=>w,GX:()=>q,K2:()=>E,Oo:()=>U,Ps:()=>P,RQ:()=>j,Tj:()=>R,Tl:()=>O,Wo:()=>C,YJ:()=>S,ZQ:()=>W,ar:()=>g,bj:()=>A,eR:()=>T,f2:()=>$,fh:()=>D,gM:()=>N,gU:()=>H,i:()=>V,j0:()=>K,qq:()=>B,t2:()=>M,tX:()=>k,vF:()=>I,vG:()=>L,wD:()=>x,yf:()=>J});var s=r(86330),n=r(24586),i=r(90689),a=r(75799),o=r.n(a),u=r(88110),c=r.n(u),l=r(45250),d=r(84209),f=r(32779),h=r(81995);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 v(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.A)(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 y(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}var m=function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)%256);return c().hashBinary(e).substring(0,7)},b=[d.W2,d.I$,d.ff,d.vR,d.hh,d.fd,d.wF,d.qO,d.nY,d.$O],I=(0,l.pick)(console,["log","warn","error"]),g=function(t){return t===d.qO},w=function(t){return t===d.vR},O=function(t){return t===d.nY},k=function(t){return t===d.ff},R=function(t){return t===d.$O},T=function(t){return t===d.wF},j=function(t){return t===d.hh},P=function(t){return t===d.fd},S=function(t){if(!t.length)return d.qO;for(var e=new Set(t),r=0,s=b;r<s.length;r++){var n=s[r];if(e.has(n))return n}return console.error("Unknown statuses: "+JSON.stringify(t)),null},A=function(t,e){if((0,l.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 n,a=y(s.searchParams);try{for(a.s();!(n=a.n()).done;){var o=(0,i.A)(n.value,2),u=o[0],c=o[1];r.searchParams.append(u,c)}}catch(t){a.e(t)}finally{a.f()}return r.href}catch(r){return t||e||""}},B=function(t){try{var e=new URL(t);return e.pathname+e.search}catch(e){return t}},E=function(t){return(null==t?void 0:t.name)===h.U.ASSERT_VIEW},D=function(t){return(null==t?void 0:t.name)===h.U.IMAGE_DIFF},N=function(t){return(null==t?void 0:t.name)===h.U.NO_REF_IMAGE},U=function(t){return(null==t?void 0:t.name)===h.U.INVALID_REF_IMAGE},x=function(t){return E(t)||D(t)||N(t)},C=function(t){return!N(t)&&!D(t)&&!E(t)},F=["Tests were stopped by the user","NoRefImageError","Too many requests for session creation"],L=function(t){var e;if(t)return v(v({},(0,l.pick)(t,["name","message","stack","stateName","snippet"])),{},{stack:(e=t.stack,e&&F.some(function(t){return e.includes(t)})?e.split("\n")[0]:e)})},V=function(t){var e;if(!(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some(function(t){return t.stateName&&(k(t.status)||w(t.status)||N(t)||D(t))})}(t.imagesInfo)||R(t.status)||t.error&&C(t.error)))return d.qO;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 D(t)})||(void 0===(r={assertViewResults:s}.assertViewResults)?[]:r).some(function(t){return N(t)})?d.vR:(0,l.isEmpty)(t.error)?t.status:d.ff},H=function(t){if("string"!=typeof t)return!1;try{var e=new URL(t);return Boolean(e.host&&e.protocol)}catch(t){return!1}},M=function(){var t=(0,s.A)(o().mark(function t(e,s){var n,i,a,u,c,l;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(826),r.e(819)]).then(()=>r(92819));case 2:return n=t.sent,i=n.default,t.prev=4,t.next=7,i.get(e,s);case 7:return a=t.sent,u=a.data,c=a.status,t.abrupt("return",{data:u,status:c});case 13:return t.prev=13,t.t0=t.catch(4),I.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)}}(),q=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 I.warn("Can not normalize url '".concat(t," for base url '").concat(e,"'"),r),t}})},G=function(t){return Number(t)===f.kK},K=function(t){return Number(t)===f.Oi},W=function(t){return G(t)?f.X:f.kK};var $=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)},X=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},Y=function(t){var e=X(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)},z=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=[X(t),t.snippet].join("\n"),e;return e.stack=[X(t),t.snippet,"[90m"+Y(t)+"[39m"].join("\n"),e}},34567(t,e,r){r.d(e,{V:()=>E});var s=r(24586),n=r(55152),i=r(30414),a=r(29296),o=r(95309),u=r(72715),c=r(45250),l=r.n(c),d=r(42694),f=r(84209);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 p(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.A)(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 v=function(){function t(e){(0,n.A)(this,t),this._options=e}return(0,i.A)(t,[{key:"transform",value:function(t){var e,r,s,n,i,a=(0,d.bj)(t.url,this._options.baseHost),o=(null!==(e=t.imagesInfo)&&void 0!==e?e:[]).map(function(t){return l().isObject(t)&&"error"in t&&t.error?p(p({},t),{},{error:(0,d.vG)(t.error)}):t}),u=l().merge(l().cloneDeep(t.meta),{url:null!==(r=null!==(s=null===(n=t.meta)||void 0===n?void 0:n.url)&&void 0!==s?s:a)&&void 0!==r?r:"",file:t.file,sessionId:t.sessionId}),c=l().omitBy(u,l().isEmpty);return{suitePath:t.testPath,suiteName:l().last(t.testPath),name:t.browserId,suiteUrl:a,metaInfo:c,history:t.history,description:t.description,error:(0,d.vG)(t.error),skipReason:t.skipReason,imagesInfo:o,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 y(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 _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){(0,s.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var m=function(){function t(e){(0,n.A)(this,t),this._transformer=new v(e)}return(0,i.A)(t,[{key:"transform",value:function(t){var e=this._transformer.transform(t);return _(_({},l().omit(e,"imagesInfo")),{},{attempt:t.attempt,errorDetails:t.errorDetails})}}]),t}();function b(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 I(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)?I(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 I(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 g(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 w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){(0,s.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.A)(this,t),this._transformer=new m(e),this._tree={suites:{byId:{},byHash:{},allIds:[],allRootIds:[]},browsers:{byId:{},allIds:[]},results:{byId:{},allIds:[]},images:{byId:{},allIds:[]}}}return(0,i.A)(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?f.yp.UNKNOWN:o,c=this._buildId(r),l=this._buildId(c,s),d=this._buildId(l,n.toString()),h=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},h),this._addImages(h,{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(f.Xr)}},{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.Df)(u),parentId:c,name:s,suitePath:o,root:a};r._addSuite(l)}var f=r._tree.suites.byId[u];if(n!==i.length-1){var h=r._buildId(u,i[n+1]);f.suiteIds?r._tree.suites.byId[h]&&f.suiteIds.includes(h)||f.suiteIds.push(h):f.suiteIds=[h]}else f.browserIds?r._tree.browsers.byId[e]&&f.browserIds.includes(e)||f.browserIds.push(e):f.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]=w(w({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]=w(w({},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=b(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,f=b(s.suiteIds||[]);try{for(f.s();!(l=f.n()).done;){var h=l.value;if(h){var p=this._tree.suites.byId[h].status;p&&!n.includes(p)&&n.push(p)}}}catch(t){f.e(t)}finally{f.f()}if(s.status=(0,d.YJ)(n)||void 0,s.status)for(var v=1;v<t.length;v++){var y=t.slice(0,-v),_=this._buildId(y),m=this._tree.suites.byId[_];if(m.status===s.status)return;if(m.status){this._setStatusForBranch(y);break}m.status=s.status}}}}],[{key:"create",value:function(){return new this(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}]),t}(),k=function(t){try{return JSON.parse(t)}catch(t){return}},R=function(){function t(e,r){(0,n.A)(this,t),this._testResult=e,this._parsedTestResult={attempt:r}}return(0,i.A)(t,[{key:"assertViewResults",get:function(){return[]}},{key:"attempt",get:function(){return this._parsedTestResult.attempt}},{key:"browserId",get:function(){return this._testResult[f.do.name]}},{key:"description",get:function(){var t;return null!==(t=this._testResult[f.do.description])&&void 0!==t?t:void 0}},{key:"error",get:function(){return l().has(this._parsedTestResult,"error")||(this._parsedTestResult.error=k(this._testResult[f.do.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=k(this._testResult[f.do.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(f.Xr)),this._parsedTestResult.fullName}},{key:"history",get:function(){return l().has(this._parsedTestResult,"history")||(this._parsedTestResult.history=k(this._testResult[f.do.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.f2)(this)}},{key:"imagesInfo",get:function(){return l().has(this._parsedTestResult,"imagesInfo")||(this._parsedTestResult.imagesInfo=k(this._testResult[f.do.imagesInfo])),this._parsedTestResult.imagesInfo}},{key:"meta",get:function(){var t;l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=null!==(t=k(this._testResult[f.do.metaInfo]))&&void 0!==t?t:{});return this._parsedTestResult.meta}},{key:"multipleTabs",get:function(){return Boolean(this._testResult[f.do.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=k(this._testResult[f.do.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.sessionId}},{key:"skipReason",get:function(){return this._testResult[f.do.skipReason]}},{key:"state",get:function(){return{name:this.testPath.at(-1)}}},{key:"status",get:function(){return this._testResult[f.do.status]}},{key:"testPath",get:function(){return l().has(this._parsedTestResult,"testPath")||(this._parsedTestResult.testPath=k(this._testResult[f.do.suitePath])),this._parsedTestResult.testPath}},{key:"timestamp",get:function(){return Number(this._testResult[f.do.timestamp])}},{key:"url",get:function(){return this._testResult[f.do.suiteUrl]}},{key:"duration",get:function(){return this._testResult[f.do.duration]}},{key:"attachments",get:function(){return l().has(this._parsedTestResult,"attachments")||(this._parsedTestResult.attachments=k(this._testResult[f.do.attachments])),this._parsedTestResult.attachments}}]),t}();function T(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 j(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)?j(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 j(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 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 S(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,s.A)(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 A(t){var e=B();return function(){var r,s=(0,u.A)(t);if(e){var n=(0,u.A)(this).constructor;r=Reflect.construct(s,arguments,n)}else r=s.apply(this,arguments);return(0,o.A)(this,r)}}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!t})()}var E=function(t){(0,a.A)(r,t);var e=A(r);function r(t){var s;return(0,n.A)(this,r),(s=e.call(this,t))._stats=S(S({},{total:0,passed:0,failed:0,skipped:0,retries:0}),{},{perBrowser:{}}),s._skips=[],s._failedTestIds={},s._passedTestIds={},s._skippedTestIds={},s}return(0,i.A)(r,[{key:"build",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=new Map,s={},n=T(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=JSON.parse(i[f.do.suitePath]),o=i[f.do.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),h=new R(i,d);D(s,h),this.addTestResult(h),this._calcStats(h,{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||f.yp.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 f.Hs.FAIL:case f.Hs.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 f.Hs.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 f.Hs.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}(O);function D(t,e){var r=e.browserId;t[r]||(t[r]=new Set);var s=e.meta.browserVersion,n=void 0===s?f.yp.UNKNOWN:s;t[r].add(n)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[567],{34567(t,e,s){s.d(e,{V:()=>D});var r=s(24586),i=s(55152),n=s(30414),a=s(29296),o=s(95309),u=s(72715),d=s(45250),l=s.n(d),h=s(42694),p=s(84209);function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,r)}return s}function f(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?c(Object(s),!0).forEach(function(e){(0,r.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}var _=function(){function t(e){(0,i.A)(this,t),this._options=e}return(0,n.A)(t,[{key:"transform",value:function(t){var e,s,r,i,n,a=(0,h.bj)(t.url,this._options.baseHost),o=(null!==(e=t.imagesInfo)&&void 0!==e?e:[]).map(function(t){return l().isObject(t)&&"error"in t&&t.error?f(f({},t),{},{error:(0,h.vG)(t.error)}):t}),u=l().merge(l().cloneDeep(t.meta),{url:null!==(s=null!==(r=null===(i=t.meta)||void 0===i?void 0:i.url)&&void 0!==r?r:a)&&void 0!==s?s:"",file:t.file,sessionId:t.sessionId}),d=l().omitBy(u,l().isEmpty);return{suitePath:t.testPath,suiteName:l().last(t.testPath),name:t.browserId,suiteUrl:a,metaInfo:d,history:t.history,description:t.description,error:(0,h.vG)(t.error),skipReason:t.skipReason,imagesInfo:o,screenshot:Boolean(t.screenshot),multipleTabs:t.multipleTabs,status:t.status,timestamp:null!==(n=t.timestamp)&&void 0!==n?n:Date.now(),duration:t.duration,attachments:t.attachments}}}]),t}();function y(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,r)}return s}function b(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?y(Object(s),!0).forEach(function(e){(0,r.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}var v=function(){function t(e){(0,i.A)(this,t),this._transformer=new _(e)}return(0,n.A)(t,[{key:"transform",value:function(t){var e=this._transformer.transform(t);return b(b({},l().omit(e,"imagesInfo")),{},{attempt:t.attempt,errorDetails:t.errorDetails})}}]),t}();function I(t,e){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=function(t,e){if(t){if("string"==typeof t)return m(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){s&&(t=s);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 n,a=!0,o=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return a=t.done,t},e:function(t){o=!0,n=t},f:function(){try{a||null==s.return||s.return()}finally{if(o)throw n}}}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=Array(e);s<e;s++)r[s]=t[s];return r}function w(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,r)}return s}function g(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?w(Object(s),!0).forEach(function(e){(0,r.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):w(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}var k=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,t),this._transformer=new v(e),this._tree={suites:{byId:{},byHash:{},allIds:[],allRootIds:[]},browsers:{byId:{},allIds:[]},results:{byId:{},allIds:[]},images:{byId:{},allIds:[]}}}return(0,n.A)(t,[{key:"tree",get:function(){return this._tree}},{key:"sortTree",value:function(){var t=this;this._tree.suites.allRootIds.sort().forEach(function e(s){var r=t._tree.suites.byId[s];r.suiteIds&&r.suiteIds.sort().forEach(e),r.browserIds&&r.browserIds.sort()})}},{key:"addTestResult",value:function(t){var e=this,s=t.testPath,r=t.browserId,i=t.attempt,n=t.imagesInfo,a=void 0===n?[]:n,o=t.meta.browserVersion,u=void 0===o?p.yp.UNKNOWN:o,d=this._buildId(s),l=this._buildId(d,r),h=this._buildId(l,i.toString()),c=a.map(function(t,s){return e._buildId(h,t.stateName||"".concat(t.status,"_").concat(s))});this._addSuites(s,l),this._addBrowser({id:l,parentId:d,name:r,version:u},h,i),this._addResult({id:h,parentId:l,result:t},c),this._addImages(c,{imagesInfo:a,parentId:h}),this._setStatusForBranch(s)}},{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.Xr)}},{key:"_addSuites",value:function(t,e){var s=this;t.reduce(function(t,r,i,n){var a=0===i,o=a?[r]:n.slice(0,i+1),u=s._buildId(o);if(!t.byId[u]){var d=a?null:s._buildId(o.slice(0,-1)),l={id:u,hash:(0,h.Df)(u),parentId:d,name:r,suitePath:o,root:a};s._addSuite(l)}var p=s._tree.suites.byId[u];if(i!==n.length-1){var c=s._buildId(u,n[i+1]);p.suiteIds?s._tree.suites.byId[c]&&p.suiteIds.includes(c)||p.suiteIds.push(c):p.suiteIds=[c]}else p.browserIds?s._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,s){var r=t.id,i=t.parentId,n=t.name,a=t.version,o=this._tree.browsers;o.byId[r]||(o.byId[r]={id:r,parentId:i,name:n,resultIds:[],version:a},o.allIds.push(r)),this._addResultIdToBrowser(r,e,s)}},{key:"_addResultIdToBrowser",value:function(t,e,s){this._tree.browsers.byId[t].resultIds[s]=e}},{key:"_addResult",value:function(t,e){var s=t.id,r=t.parentId,i=t.result,n=this._transformer.transform(i);this._tree.results.byId[s]||this._tree.results.allIds.push(s),this._tree.results.byId[s]=g(g({attempt:0,id:s,parentId:r},n),{},{imageIds:e})}},{key:"_addImages",value:function(t,e){var s=this,r=e.imagesInfo,i=e.parentId;t.forEach(function(t,e){s._tree.images.byId[t]=g(g({},r[e]),{},{id:t,parentId:i}),s._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 s,r=this._tree.suites.byId[e],i=[],n=I(r.browserIds||[]);try{for(n.s();!(s=n.n()).done;){var a=s.value;if(a){var o=this._tree.browsers.byId[a].resultIds,u=o[o.length-1],d=this._tree.results.byId[u].status;d&&!i.includes(d)&&i.push(d)}}}catch(t){n.e(t)}finally{n.f()}var l,p=I(r.suiteIds||[]);try{for(p.s();!(l=p.n()).done;){var c=l.value;if(c){var f=this._tree.suites.byId[c].status;f&&!i.includes(f)&&i.push(f)}}}catch(t){p.e(t)}finally{p.f()}if(r.status=(0,h.YJ)(i)||void 0,r.status)for(var _=1;_<t.length;_++){var y=t.slice(0,-_),b=this._buildId(y),v=this._tree.suites.byId[b];if(v.status===r.status)return;if(v.status){this._setStatusForBranch(y);break}v.status=r.status}}}}],[{key:"create",value:function(){return new this(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}]),t}(),O=function(t){try{return JSON.parse(t)}catch(t){return}},R=function(){function t(e,s){(0,i.A)(this,t),this._testResult=e,this._parsedTestResult={attempt:s}}return(0,n.A)(t,[{key:"assertViewResults",get:function(){return[]}},{key:"attempt",get:function(){return this._parsedTestResult.attempt}},{key:"browserId",get:function(){return this._testResult[p.do.name]}},{key:"description",get:function(){var t;return null!==(t=this._testResult[p.do.description])&&void 0!==t?t:void 0}},{key:"error",get:function(){return l().has(this._parsedTestResult,"error")||(this._parsedTestResult.error=O(this._testResult[p.do.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=O(this._testResult[p.do.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.Xr)),this._parsedTestResult.fullName}},{key:"history",get:function(){return l().has(this._parsedTestResult,"history")||(this._parsedTestResult.history=O(this._testResult[p.do.history])),this._parsedTestResult.history}},{key:"id",get:function(){return this.testPath.concat(this.browserId,this.attempt.toString()).join(" ")}},{key:"imageDir",get:function(){return(0,h.f2)(this)}},{key:"imagesInfo",get:function(){return l().has(this._parsedTestResult,"imagesInfo")||(this._parsedTestResult.imagesInfo=O(this._testResult[p.do.imagesInfo])),this._parsedTestResult.imagesInfo}},{key:"meta",get:function(){var t;l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=null!==(t=O(this._testResult[p.do.metaInfo]))&&void 0!==t?t:{});return this._parsedTestResult.meta}},{key:"multipleTabs",get:function(){return Boolean(this._testResult[p.do.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=O(this._testResult[p.do.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.sessionId}},{key:"skipReason",get:function(){return this._testResult[p.do.skipReason]}},{key:"state",get:function(){return{name:this.testPath.at(-1)}}},{key:"status",get:function(){return this._testResult[p.do.status]}},{key:"testPath",get:function(){return l().has(this._parsedTestResult,"testPath")||(this._parsedTestResult.testPath=O(this._testResult[p.do.suitePath])),this._parsedTestResult.testPath}},{key:"timestamp",get:function(){return Number(this._testResult[p.do.timestamp])}},{key:"url",get:function(){return this._testResult[p.do.suiteUrl]}},{key:"duration",get:function(){return this._testResult[p.do.duration]}},{key:"attachments",get:function(){return l().has(this._parsedTestResult,"attachments")||(this._parsedTestResult.attachments=O(this._testResult[p.do.attachments])),this._parsedTestResult.attachments}}]),t}();function T(t,e){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=function(t,e){if(t){if("string"==typeof t)return j(t,e);var s={}.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?j(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){s&&(t=s);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 n,a=!0,o=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return a=t.done,t},e:function(t){o=!0,n=t},f:function(){try{a||null==s.return||s.return()}finally{if(o)throw n}}}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=Array(e);s<e;s++)r[s]=t[s];return r}function P(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,r)}return s}function B(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?P(Object(s),!0).forEach(function(e){(0,r.A)(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function S(t){var e=A();return function(){var s,r=(0,u.A)(t);if(e){var i=(0,u.A)(this).constructor;s=Reflect.construct(r,arguments,i)}else s=r.apply(this,arguments);return(0,o.A)(this,s)}}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(A=function(){return!!t})()}var D=function(t){(0,a.A)(s,t);var e=S(s);function s(t){var r;return(0,i.A)(this,s),(r=e.call(this,t))._stats=B(B({},{total:0,passed:0,failed:0,skipped:0,retries:0}),{},{perBrowser:{}}),r._skips=[],r._failedTestIds={},r._passedTestIds={},r._skippedTestIds={},r}return(0,n.A)(s,[{key:"build",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=new Map,r={},i=T(e);try{for(i.s();!(t=i.n()).done;){var n=t.value,a=JSON.parse(n[p.do.suitePath]),o=n[p.do.name],u=this._buildId(a),d=this._buildId(u,o);s.set(d,s.has(d)?s.get(d)+1:0);var h=s.get(d),c=new R(n,h);N(r,c),this.addTestResult(c),this._calcStats(c,{testId:u,browserName:o})}}catch(t){i.e(t)}finally{i.f()}return this.sortTree(),{tree:this.tree,stats:this._stats,skips:this._skips,browsers:l().map(r,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 s=e.testId,r=e.browserName,i=this._buildId(s,r),n=t.status,a=t.meta.browserVersion||p.yp.UNKNOWN;switch(this._stats.perBrowser[r]||(this._stats.perBrowser[r]={}),this._stats.perBrowser[r][a]||(this._stats.perBrowser[r][a]={total:0,passed:0,failed:0,skipped:0,retries:0}),n){case p.Hs.FAIL:case p.Hs.ERROR:return this._passedTestIds[i]?(delete this._passedTestIds[i],this._failedTestIds[i]=!0,this._stats.passed--,this._stats.failed++,this._stats.retries++,this._stats.perBrowser[r][a].passed--,this._stats.perBrowser[r][a].failed++,void this._stats.perBrowser[r][a].retries++):this._failedTestIds[i]?(this._stats.retries++,void this._stats.perBrowser[r][a].retries++):this._skippedTestIds[i]?(delete this._skippedTestIds[i],this._failedTestIds[i]=!0,this._stats.skipped--,this._stats.failed++,this._stats.retries++,this._stats.perBrowser[r][a].skipped--,this._stats.perBrowser[r][a].failed++,void this._stats.perBrowser[r][a].retries++):(this._failedTestIds[i]=!0,this._stats.failed++,this._stats.total++,this._stats.perBrowser[r][a].failed++,void this._stats.perBrowser[r][a].total++);case p.Hs.SUCCESS:return this._passedTestIds[i]?(this._stats.retries++,void this._stats.perBrowser[r][a].retries++):this._failedTestIds[i]?(delete this._failedTestIds[i],this._passedTestIds[i]=!0,this._stats.failed--,this._stats.passed++,this._stats.retries++,this._stats.perBrowser[r][a].failed--,this._stats.perBrowser[r][a].passed++,void this._stats.perBrowser[r][a].retries++):this._skippedTestIds[i]?(delete this._skippedTestIds[i],this._passedTestIds[i]=!0,this._stats.skipped--,this._stats.passed++,this._stats.retries++,this._stats.perBrowser[r][a].skipped--,this._stats.perBrowser[r][a].passed++,void this._stats.perBrowser[r][a].retries++):(this._passedTestIds[i]=!0,this._stats.passed++,this._stats.total++,this._stats.perBrowser[r][a].passed++,void this._stats.perBrowser[r][a].total++);case p.Hs.SKIPPED:if(this._failedTestIds[i])return delete this._failedTestIds[i],this._skippedTestIds[i]=!0,this._stats.failed--,this._stats.skipped++,this._stats.retries++,this._stats.perBrowser[r][a].failed--,this._stats.perBrowser[r][a].skipped++,this._stats.perBrowser[r][a].retries++,void this._skips.push({browser:r,suite:s,comment:t.skipReason});if(this._passedTestIds[i])return delete this._passedTestIds[i],this._skippedTestIds[i]=!0,this._stats.passed--,this._stats.skipped++,this._stats.retries++,this._stats.perBrowser[r][a].passed--,this._stats.perBrowser[r][a].skipped++,this._stats.perBrowser[r][a].retries++,void this._skips.push({browser:r,suite:s,comment:t.skipReason});if(this._skippedTestIds[i])return this._stats.retries++,void this._stats.perBrowser[r][a].retries++;this._skippedTestIds[i]=!0,this._skips.push({browser:r,suite:s,comment:t.skipReason}),this._stats.skipped++,this._stats.perBrowser[r][a].skipped++,this._stats.total++,this._stats.perBrowser[r][a].total++}}}]),s}(k);function N(t,e){var s=e.browserId;t[s]||(t[s]=new Set);var r=e.meta.browserVersion,i=void 0===r?p.yp.UNKNOWN:r;t[s].add(i)}}}]);
|