UNPKG

html-reporter

Version:

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

1 lines 21.9 kB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[134],{9560:(t,e,s)=>{s.d(e,{CB:()=>M,CR:()=>C,Cr:()=>k,Cx:()=>R,EX:()=>O,Fm:()=>z,G6:()=>G,KM:()=>g,Lg:()=>F,MO:()=>H,MT:()=>_,Mg:()=>y,Ne:()=>N,Ph:()=>L,R6:()=>b,S5:()=>E,SS:()=>Z,by:()=>D,ci:()=>P,dc:()=>U,e1:()=>x,hO:()=>T,iR:()=>B,jj:()=>V,kg:()=>m,nc:()=>I,qC:()=>j,sx:()=>w,wX:()=>A,zV:()=>S});var r=s(34795),n=s(96234),i=s(82841),a=s.n(i),o=s(5634),u=s(76635),l=s(883),d=s(27202),c=s(8776),h=s(40161);function f(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 p(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)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){s&&(t=s);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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(){s=s.call(t)},n:function(){var t=s.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==s.return||s.return()}finally{if(o)throw i}}}}function p(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}var _=function(t){return o.createHash("md5").update(t,"ascii").digest("hex").substr(0,7)},v=[d.sS,d.em,d.pn,d.ES,d.Ez,d.t6,d.SH,d.MR,d.JW,d.kb],m=(0,u.pick)(console,["log","warn","error"]),y=function(t){return t===d.MR},b=function(t){return t===d.ES},I=function(t){return t===d.JW},g=function(t){return t===d.pn},w=function(t){return t===d.kb},k=function(t){return t===d.SH},R=function(t){return t===d.Ez},T=function(t){return t===d.t6},O=function(t){if(!t.length)return d.MR;for(var e=new Set(t),s=0,r=v;s<r.length;s++){var n=r[s];if(e.has(n))return n}return console.error("Unknown statuses: "+JSON.stringify(t)),null},S=function(t,e){if((0,u.isEmpty)(e))return null!=t?t:"";try{var s=new URL(null!=t?t:"",e),r=new URL(e);s.host=r.host,s.protocol=r.protocol,s.port=r.port,s.username=r.username,s.password=r.password;var i,a=f(r.searchParams);try{for(a.s();!(i=a.n()).done;){var o=(0,n.Z)(i.value,2),l=o[0],d=o[1];s.searchParams.append(l,d)}}catch(t){a.e(t)}finally{a.f()}return s.href}catch(s){return t||e||""}},j=function(t){try{var e=new URL(t);return e.pathname+e.search}catch(e){return t}},B=function(t){return(null==t?void 0:t.name)===h.G.ASSERT_VIEW},P=function(t){return(null==t?void 0:t.name)===h.G.IMAGE_DIFF},E=function(t){return(null==t?void 0:t.name)===h.G.NO_REF_IMAGE},N=function(t){return(null==t?void 0:t.name)===h.G.INVALID_REF_IMAGE},A=function(t){return B(t)||P(t)||E(t)},H=function(t){return!E(t)&&!P(t)&&!B(t)},D=function(t){if(t)return(0,u.pick)(t,["name","message","stack","stateName","snippet"])},Z=function(t){var e;if(!(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((function(t){return t.stateName&&(g(t.status)||b(t.status)||E(t)||P(t))}))}(t.imagesInfo)||w(t.status)||t.error&&H(t.error)))return d.MR;var s,r=(null!==(e=t.imagesInfo)&&void 0!==e?e:[]).map((function(t){var e;return null!==(e=t.error)&&void 0!==e?e:{}}));return r.some((function(t){return P(t)}))||(void 0===(s={assertViewResults:r}.assertViewResults)?[]:s).some((function(t){return E(t)}))?d.ES:(0,u.isEmpty)(t.error)?t.status:d.pn},M=function(t){if("string"!=typeof t)return!1;var e=l.parse(t);return!!e.host&&!!e.protocol},U=function(){var t=(0,r.Z)(a().mark((function t(e,r){var n,i,o,u,l,d;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([s.e(741),s.e(613)]).then(s.bind(s,74856));case 2:return n=t.sent,i=n.default,t.prev=4,t.next=7,i.get(e,r);case 7:return o=t.sent,u=o.data,l=o.status,t.abrupt("return",{data:u,status:l});case 13:return t.prev=13,t.t0=t.catch(4),m.warn("Error while fetching ".concat(e),t.t0),d=t.t0.response?t.t0.response.status:"unknown",t.abrupt("return",{data:null,status:d});case 18:case"end":return t.stop()}}),t,null,[[4,13]])})));return function(e,s){return t.apply(this,arguments)}}(),x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,s=new URL(e).search;return t.map((function(t){try{var r=new URL(t,e);return function(t){try{return new URL(t),!1}catch(t){return!0}}(t)&&!r.search&&(r.search=s),r.href}catch(s){return m.warn("Can not normalize url '".concat(t," for base url '").concat(e,"'"),s),t}}))},C=function(t){return Number(t)===c.ri},L=function(t){return Number(t)===c.Km},V=function(t){return C(t)?c.wT:c.ri};var F=function(t){return t.testPath.concat(t.browserId,t.attempt.toString()).join(" ")},G=function(t){for(var e=0,s=t.length;e<t.length&&!t[e];)e++;for(;s>0&&!t[s-1];)s--;return t.slice(e,s)},K=function(t){var e=t.name;if(!e&&t.stack){var s=t.stack.indexOf(":");e=-1!==s?t.stack.slice(0,s):t.stack.slice(0,t.stack.indexOf("\n"))}return e||(e="Error"),t.message?"".concat(e,": ").concat(t.message):e},W=function(t){var e=K(t)+"\n",s=t.stack.indexOf(e);if(-1!==s)return t.stack.slice(s+e.length);var r=t.toString?t.toString()+"\n":"",n=t.stack.indexOf(r);if(r&&-1!==n)return t.stack.slice(n+r.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"],s=new Error(t.message);e.forEach((function(t){delete s[t]}));var r=Object.getOwnPropertyNames(t);return e.concat(r).forEach((function(e){s[e]=t[e]})),s}(t);if(delete e.snippet,!t.stack)return e.stack=[K(t),t.snippet].join("\n"),e;return e.stack=[K(t),t.snippet,""+W(t)+""].join("\n"),e}},43134:(t,e,s)=>{s.d(e,{N:()=>P});var r=s(56666),n=s(9249),i=s(87371),a=s(45754),o=s(11987),u=s(95058),l=s(76635),d=s.n(l),c=s(9560),h=s(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,s,r,n,i,a=(0,c.zV)(t.url,this._options.baseHost),o=d().merge(d().cloneDeep(t.meta),{url:null!==(e=null!==(s=null===(r=t.meta)||void 0===r?void 0:r.url)&&void 0!==s?s:a)&&void 0!==e?e:"",file:t.file,sessionId:t.sessionId}),u=d().omitBy(o,d().isEmpty);return{suitePath:t.testPath,suiteName:d().last(t.testPath),name:t.browserId,suiteUrl:a,metaInfo:u,history:t.history,description:t.description,error:(0,c.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 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 _(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.Z)(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}var v=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 _(_({},d().omit(e,"imagesInfo")),{},{attempt:t.attempt,errorDetails:t.errorDetails})}}]),t}();function m(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 y(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)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){s&&(t=s);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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(){s=s.call(t)},n:function(){var t=s.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==s.return||s.return()}finally{if(o)throw i}}}}function y(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 b(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 I(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?b(Object(s),!0).forEach((function(e){(0,r.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):b(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var g=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.Z)(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,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(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,n=t.attempt,i=t.imagesInfo,a=void 0===i?[]:i,o=t.meta.browserVersion,u=void 0===o?h.eb.UNKNOWN:o,l=this._buildId(s),d=this._buildId(l,r),c=this._buildId(d,n.toString()),f=a.map((function(t,s){return e._buildId(c,t.stateName||"".concat(t.status,"_").concat(s))}));this._addSuites(s,d),this._addBrowser({id:d,parentId:l,name:r,version:u},c,n),this._addResult({id:c,parentId:d,result:t},f),this._addImages(f,{imagesInfo:a,parentId:c}),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(h.Nv)}},{key:"_addSuites",value:function(t,e){var s=this;t.reduce((function(t,r,n,i){var a=0===n,o=a?[r]:i.slice(0,n+1),u=s._buildId(o);if(!t.byId[u]){var l=a?null:s._buildId(o.slice(0,-1)),d={id:u,hash:(0,c.MT)(u),parentId:l,name:r,suitePath:o,root:a};s._addSuite(d)}var h=s._tree.suites.byId[u];if(n!==i.length-1){var f=s._buildId(u,i[n+1]);h.suiteIds?s._tree.suites.byId[f]&&h.suiteIds.includes(f)||h.suiteIds.push(f):h.suiteIds=[f]}else h.browserIds?s._tree.browsers.byId[e]&&h.browserIds.includes(e)||h.browserIds.push(e):h.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,n=t.parentId,i=t.name,a=t.version,o=this._tree.browsers;o.byId[r]||(o.byId[r]={id:r,parentId:n,name:i,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,n=t.result,i=this._transformer.transform(n);this._tree.results.byId[s]||this._tree.results.allIds.push(s),this._tree.results.byId[s]=I(I({attempt:0,id:s,parentId:r},i),{},{imageIds:e})}},{key:"_addImages",value:function(t,e){var s=this,r=e.imagesInfo,n=e.parentId;t.forEach((function(t,e){s._tree.images.byId[t]=I(I({},r[e]),{},{id:t,parentId:n}),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],n=[],i=m(r.browserIds||[]);try{for(i.s();!(s=i.n()).done;){var a=s.value;if(a){var o=this._tree.browsers.byId[a].resultIds,u=o[o.length-1],l=this._tree.results.byId[u].status;l&&!n.includes(l)&&n.push(l)}}}catch(t){i.e(t)}finally{i.f()}var d,h=m(r.suiteIds||[]);try{for(h.s();!(d=h.n()).done;){var f=d.value;if(f){var p=this._tree.suites.byId[f].status;p&&!n.includes(p)&&n.push(p)}}}catch(t){h.e(t)}finally{h.f()}if(r.status=(0,c.EX)(n)||void 0,r.status)for(var _=1;_<t.length;_++){var v=t.slice(0,-_),y=this._buildId(v),b=this._tree.suites.byId[y];if(b.status===r.status)return;if(b.status){this._setStatusForBranch(v);break}b.status=r.status}}}}],[{key:"create",value:function(){return new this(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}]),t}(),w=function(t){try{return JSON.parse(t)}catch(t){return}},k=function(){function t(e,s){(0,n.Z)(this,t),this._testResult=e,this._parsedTestResult={attempt:s}}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[h.He.name]}},{key:"description",get:function(){var t;return null!==(t=this._testResult[h.He.description])&&void 0!==t?t:void 0}},{key:"error",get:function(){return d().has(this._parsedTestResult,"error")||(this._parsedTestResult.error=w(this._testResult[h.He.error])),this._parsedTestResult.error}},{key:"errorDetails",get:function(){return null}},{key:"file",get:function(){var t;return d().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=w(this._testResult[h.He.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.file}},{key:"fullName",get:function(){return d().has(this._parsedTestResult,"fullName")||(this._parsedTestResult.fullName=this.testPath.join(h.Nv)),this._parsedTestResult.fullName}},{key:"history",get:function(){return d().has(this._parsedTestResult,"history")||(this._parsedTestResult.history=w(this._testResult[h.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,c.Lg)(this)}},{key:"imagesInfo",get:function(){return d().has(this._parsedTestResult,"imagesInfo")||(this._parsedTestResult.imagesInfo=w(this._testResult[h.He.imagesInfo])),this._parsedTestResult.imagesInfo}},{key:"meta",get:function(){var t;d().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=null!==(t=w(this._testResult[h.He.metaInfo]))&&void 0!==t?t:{});return this._parsedTestResult.meta}},{key:"multipleTabs",get:function(){return Boolean(this._testResult[h.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 d().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=w(this._testResult[h.He.metaInfo])),null===(t=this._parsedTestResult.meta)||void 0===t?void 0:t.sessionId}},{key:"skipReason",get:function(){return this._testResult[h.He.skipReason]}},{key:"state",get:function(){return{name:this.testPath.at(-1)}}},{key:"status",get:function(){return this._testResult[h.He.status]}},{key:"testPath",get:function(){return d().has(this._parsedTestResult,"testPath")||(this._parsedTestResult.testPath=w(this._testResult[h.He.suitePath])),this._parsedTestResult.testPath}},{key:"timestamp",get:function(){return Number(this._testResult[h.He.timestamp])}},{key:"url",get:function(){return this._testResult[h.He.suiteUrl]}},{key:"duration",get:function(){return this._testResult[h.He.duration]}},{key:"attachments",get:function(){return d().has(this._parsedTestResult,"attachments")||(this._parsedTestResult.attachments=w(this._testResult[h.He.attachments])),this._parsedTestResult.attachments}}]),t}();function R(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 T(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)?T(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){s&&(t=s);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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(){s=s.call(t)},n:function(){var t=s.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==s.return||s.return()}finally{if(o)throw i}}}}function T(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 O(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 S(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?O(Object(s),!0).forEach((function(e){(0,r.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):O(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function j(t){var e=B();return function(){var s,r=(0,u.Z)(t);if(e){var n=(0,u.Z)(this).constructor;s=Reflect.construct(r,arguments,n)}else s=r.apply(this,arguments);return(0,o.Z)(this,s)}}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(B=function(){return!!t})()}var P=function(t){(0,a.Z)(s,t);var e=j(s);function s(t){var r;return(0,n.Z)(this,s),(r=e.call(this,t))._stats=S(S({},{total:0,passed:0,failed:0,skipped:0,retries:0}),{},{perBrowser:{}}),r._skips=[],r._failedTestIds={},r._passedTestIds={},r._skippedTestIds={},r}return(0,i.Z)(s,[{key:"build",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=new Map,r={},n=R(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,a=JSON.parse(i[h.He.suitePath]),o=i[h.He.name],u=this._buildId(a),l=this._buildId(u,o);s.set(l,s.has(l)?s.get(l)+1:0);var c=s.get(l),f=new k(i,c);E(r,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:d().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,n=this._buildId(s,r),i=t.status,a=t.meta.browserVersion||h.eb.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}),i){case h.ih.FAIL:case h.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[r][a].passed--,this._stats.perBrowser[r][a].failed++,void this._stats.perBrowser[r][a].retries++):this._failedTestIds[n]?(this._stats.retries++,void this._stats.perBrowser[r][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[r][a].skipped--,this._stats.perBrowser[r][a].failed++,void this._stats.perBrowser[r][a].retries++):(this._failedTestIds[n]=!0,this._stats.failed++,this._stats.total++,this._stats.perBrowser[r][a].failed++,void this._stats.perBrowser[r][a].total++);case h.ih.SUCCESS:return this._passedTestIds[n]?(this._stats.retries++,void this._stats.perBrowser[r][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[r][a].failed--,this._stats.perBrowser[r][a].passed++,void this._stats.perBrowser[r][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[r][a].skipped--,this._stats.perBrowser[r][a].passed++,void this._stats.perBrowser[r][a].retries++):(this._passedTestIds[n]=!0,this._stats.passed++,this._stats.total++,this._stats.perBrowser[r][a].passed++,void this._stats.perBrowser[r][a].total++);case h.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[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[n])return delete this._passedTestIds[n],this._skippedTestIds[n]=!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[n])return this._stats.retries++,void this._stats.perBrowser[r][a].retries++;this._skippedTestIds[n]=!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}(g);function E(t,e){var s=e.browserId;t[s]||(t[s]=new Set);var r=e.meta.browserVersion,n=void 0===r?h.eb.UNKNOWN:r;t[s].add(n)}}}]);