html-reporter 11.17.2 → 11.18.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.
Files changed (102) hide show
  1. package/README.md +1 -1
  2. package/build/lib/adapters/config/testplane.d.ts +1 -2
  3. package/build/lib/adapters/config/testplane.js +5 -28
  4. package/build/lib/adapters/config/testplane.js.map +1 -1
  5. package/build/lib/adapters/event-handling/testplane/snapshots.d.ts +5 -6
  6. package/build/lib/adapters/event-handling/testplane/snapshots.js +65 -54
  7. package/build/lib/adapters/event-handling/testplane/snapshots.js.map +1 -1
  8. package/build/lib/adapters/test-result/playwright.js +9 -3
  9. package/build/lib/adapters/test-result/playwright.js.map +1 -1
  10. package/build/lib/adapters/tool/index.js +2 -25
  11. package/build/lib/adapters/tool/index.js.map +1 -1
  12. package/build/lib/adapters/tool/testplane/index.js +4 -25
  13. package/build/lib/adapters/tool/testplane/index.js.map +1 -1
  14. package/build/lib/adapters/tool/testplane/test-results-handler.js +11 -26
  15. package/build/lib/adapters/tool/testplane/test-results-handler.js.map +1 -1
  16. package/build/lib/bundle/index.js +2392 -176
  17. package/build/lib/cli/commands/gui.js +1 -0
  18. package/build/lib/cli/commands/gui.js.map +1 -1
  19. package/build/lib/cli/commands/merge-reports.js +1 -0
  20. package/build/lib/cli/commands/merge-reports.js.map +1 -1
  21. package/build/lib/cli/commands/remove-unused-screens/index.js +1 -0
  22. package/build/lib/cli/commands/remove-unused-screens/index.js.map +1 -1
  23. package/build/lib/cli/commands/remove-unused-screens/utils.js +1 -0
  24. package/build/lib/cli/commands/remove-unused-screens/utils.js.map +1 -1
  25. package/build/lib/cli/index.js +3 -24
  26. package/build/lib/cli/index.js.map +1 -1
  27. package/build/lib/common-utils.js +14 -29
  28. package/build/lib/common-utils.js.map +1 -1
  29. package/build/lib/constants/group-tests.js +1 -0
  30. package/build/lib/constants/group-tests.js.map +1 -1
  31. package/build/lib/db-utils/server.js +2 -2
  32. package/build/lib/db-utils/server.js.map +1 -1
  33. package/build/lib/gui/openChrome.d.ts +1 -9
  34. package/build/lib/gui/openChrome.js +1 -0
  35. package/build/lib/gui/openChrome.js.map +1 -1
  36. package/build/lib/gui/server.js +2 -25
  37. package/build/lib/gui/server.js.map +1 -1
  38. package/build/lib/image-size.d.ts +2 -0
  39. package/build/lib/image-size.js +32 -0
  40. package/build/lib/image-size.js.map +1 -0
  41. package/build/lib/images-info-saver.js +3 -3
  42. package/build/lib/images-info-saver.js.map +1 -1
  43. package/build/lib/merge-reports/index.js +1 -1
  44. package/build/lib/merge-reports/index.js.map +1 -1
  45. package/build/lib/secret-config-filter.d.ts +3 -0
  46. package/build/lib/secret-config-filter.js +36 -0
  47. package/build/lib/secret-config-filter.js.map +1 -0
  48. package/build/lib/static/102.min.js +1 -0
  49. package/build/lib/static/250.min.js +1 -0
  50. package/build/lib/static/33.min.css +1 -0
  51. package/build/lib/static/33.min.js +1 -0
  52. package/build/lib/static/361.min.js +1 -0
  53. package/build/lib/static/394.min.js +1 -0
  54. package/build/lib/static/43.min.js +1 -0
  55. package/build/lib/static/567.min.js +1 -0
  56. package/build/lib/static/632.min.css +1 -0
  57. package/build/lib/static/632.min.js +1 -0
  58. package/build/lib/static/81.min.css +31 -0
  59. package/build/lib/static/81.min.js +1 -0
  60. package/build/lib/static/819.min.js +1 -0
  61. package/build/lib/static/826.min.js +1 -0
  62. package/build/lib/static/842.min.js +1 -0
  63. package/build/lib/static/884.min.js +1 -0
  64. package/build/lib/static/gui.html +1 -1
  65. package/build/lib/static/gui.min.css +1 -2
  66. package/build/lib/static/gui.min.js +1 -1
  67. package/build/lib/static/index.html +1 -1
  68. package/build/lib/static/new-ui-gui.html +1 -1
  69. package/build/lib/static/new-ui-report.html +1 -1
  70. package/build/lib/static/newGui.min.css +1 -2
  71. package/build/lib/static/newGui.min.js +1 -1
  72. package/build/lib/static/newReport.min.js +1 -1
  73. package/build/lib/static/report.min.css +1 -1
  74. package/build/lib/static/report.min.js +1 -1
  75. package/build/lib/static/search-worker.min.js +1 -1
  76. package/build/lib/types.d.ts +2 -2
  77. package/build/package.json +37 -32
  78. package/build/testplane.js +14 -29
  79. package/build/testplane.js.map +1 -1
  80. package/package.json +37 -32
  81. package/plugins-sdk/build-ui/lib/adapters/config/testplane.d.ts +1 -2
  82. package/plugins-sdk/build-ui/lib/adapters/event-handling/testplane/snapshots.d.ts +5 -6
  83. package/plugins-sdk/build-ui/lib/image-size.d.ts +2 -0
  84. package/plugins-sdk/build-ui/lib/secret-config-filter.d.ts +3 -0
  85. package/plugins-sdk/build-ui/lib/static/modules/plugins-sdk-ui.d.ts +1 -1
  86. package/plugins-sdk/build-ui/lib/types.d.ts +2 -2
  87. package/build/lib/static/134.min.js +0 -1
  88. package/build/lib/static/212.min.css +0 -31
  89. package/build/lib/static/212.min.js +0 -1
  90. package/build/lib/static/285.min.css +0 -1
  91. package/build/lib/static/285.min.js +0 -1
  92. package/build/lib/static/389.min.css +0 -1
  93. package/build/lib/static/389.min.js +0 -1
  94. package/build/lib/static/406.min.js +0 -1
  95. package/build/lib/static/516.min.js +0 -1
  96. package/build/lib/static/533.min.js +0 -1
  97. package/build/lib/static/613.min.js +0 -1
  98. package/build/lib/static/635.min.js +0 -1
  99. package/build/lib/static/641.min.js +0 -1
  100. package/build/lib/static/73.min.js +0 -1
  101. package/build/lib/static/741.min.js +0 -1
  102. package/build/lib/static/76.min.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "11.17.2",
3
+ "version": "11.18.0",
4
4
  "description": "Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.",
5
+ "type": "commonjs",
5
6
  "files": [
6
7
  "build",
7
8
  "plugins-sdk/build",
@@ -56,7 +57,7 @@
56
57
  "precommit": "npm run lint",
57
58
  "prepublishOnly": "npm run build",
58
59
  "start": "NODE_ENV=development webpack serve --config=webpack.dev.js --progress",
59
- "commitmsg": "conventional-changelog-lint -e",
60
+ "commitmsg": "commitlint --edit",
60
61
  "release": "standard-version",
61
62
  "watch": "concurrently -c 'auto' -n 'server,client' 'npm:watch:server' 'npm:watch:client' 'npm:watch:bundle'",
62
63
  "watch:client": "npm run copy-static && NODE_ENV=development webpack watch --config=webpack.dev.js --progress",
@@ -77,7 +78,7 @@
77
78
  "url": "https://github.com/gemini-testing/html-reporter/issues"
78
79
  },
79
80
  "engines": {
80
- "node": ">= 18"
81
+ "node": ">= 22.22.0"
81
82
  },
82
83
  "keywords": [
83
84
  "testplane",
@@ -117,44 +118,47 @@
117
118
  "@gemini-testing/sql.js": "^3.0.0",
118
119
  "@inquirer/confirm": "^5.1.15",
119
120
  "ansi-html-community": "^0.0.8",
120
- "axios": "1.6.3",
121
+ "axios": "^1.20.0",
121
122
  "bluebird": "^3.5.3",
122
- "body-parser": "^1.18.2",
123
+ "body-parser": "^1.20.9",
123
124
  "chalk": "^4.1.2",
124
125
  "chokidar": "^3.5.3",
125
126
  "debug": "^4.1.1",
126
127
  "escape-html": "^1.0.3",
127
128
  "eventemitter2": "6.4.7",
128
- "express": "^4.16.2",
129
- "fast-glob": "^3.2.12",
129
+ "express": "^4.22.3",
130
+ "fast-glob": "^3.3.3",
130
131
  "filesize": "^8.0.6",
131
132
  "fs-extra": "^7.0.1",
132
133
  "gemini-configparser": "^1.4.2",
133
134
  "http-codes": "1.0.0",
134
- "image-size": "^1.0.2",
135
135
  "json-stringify-safe": "^5.0.1",
136
- "lodash": "^4.17.4",
136
+ "lodash": "^4.18.1",
137
137
  "looks-same": "^10.0.1",
138
138
  "nested-error-stacks": "^2.1.0",
139
139
  "npm-which": "^3.0.1",
140
140
  "open": "^8.4.2",
141
141
  "ora": "^5.4.1",
142
142
  "p-queue": "^5.0.0",
143
- "qs": "^6.9.1",
143
+ "probe-image-size": "^7.4.0",
144
+ "qs": "^6.16.0",
144
145
  "signal-exit": "^4.1.0",
146
+ "spark-md5": "^3.0.2",
145
147
  "strip-ansi": "^6.0.1",
146
148
  "url-join": "^4.0.1",
147
149
  "worker-farm": "^1.7.0",
148
150
  "yazl": "^3.3.1"
149
151
  },
150
152
  "devDependencies": {
151
- "@babel/core": "^7.24.7",
153
+ "@babel/core": "^7.29.1",
152
154
  "@babel/plugin-syntax-import-attributes": "^7.24.7",
153
155
  "@babel/plugin-transform-modules-commonjs": "^7.24.7",
154
156
  "@babel/plugin-transform-runtime": "^7.22.5",
155
157
  "@babel/preset-env": "^7.22.5",
156
158
  "@babel/preset-react": "^7.22.5",
157
159
  "@babel/preset-typescript": "^7.22.5",
160
+ "@commitlint/cli": "^21.2.1",
161
+ "@commitlint/config-conventional": "^21.2.0",
158
162
  "@gravity-ui/components": "^4.1.1",
159
163
  "@gravity-ui/navigation": "^3.3.4",
160
164
  "@gravity-ui/uikit": "^7.8.0",
@@ -164,9 +168,9 @@
164
168
  "@rrweb/replay": "^2.1.1",
165
169
  "@swc/core": "^1.3.64",
166
170
  "@tanstack/react-virtual": "^3.8.3",
167
- "@testing-library/react": "^16.0.0",
171
+ "@testing-library/react": "^16.3.2",
168
172
  "@testing-library/user-event": "^14.5.2",
169
- "@testplane/testing-library": "^1.0.2",
173
+ "@testplane/testing-library": "^1.0.5",
170
174
  "@types/babel__core": "^7.20.5",
171
175
  "@types/better-sqlite3": "^7.6.4",
172
176
  "@types/bluebird": "^3.5.3",
@@ -175,7 +179,7 @@
175
179
  "@types/chai-subset": "^1.3.5",
176
180
  "@types/debug": "^4.1.8",
177
181
  "@types/escape-html": "^1.0.4",
178
- "@types/express": "4.16",
182
+ "@types/express": "^4.17.25",
179
183
  "@types/fs-extra": "^7.0.0",
180
184
  "@types/gemini-testing__sql.js": "npm:@types/sql.js@^1.4.9",
181
185
  "@types/http-codes": "^1.0.4",
@@ -184,12 +188,15 @@
184
188
  "@types/lodash": "^4.14.195",
185
189
  "@types/nested-error-stacks": "^2.1.0",
186
190
  "@types/npm-which": "^3.0.3",
191
+ "@types/probe-image-size": "^7.2.5",
187
192
  "@types/proxyquire": "^1.3.28",
193
+ "@types/react": "^18.3.3",
188
194
  "@types/react-dom": "^18.3.0",
189
195
  "@types/react-virtualized": "^9.21.30",
190
196
  "@types/react-window": "^1.8.8",
191
197
  "@types/redux-mock-store": "^1.0.6",
192
198
  "@types/sinon": "^4.3.3",
199
+ "@types/spark-md5": "^3.0.5",
193
200
  "@types/strftime": "^0.9.8",
194
201
  "@types/urijs": "^1.19.19",
195
202
  "@types/yazl": "^2.4.6",
@@ -205,23 +212,21 @@
205
212
  "chai-subset": "^1.6.0",
206
213
  "classnames": "^2.2.5",
207
214
  "concurrently": "^7.6.0",
208
- "conventional-changelog-lint": "^1.0.1",
209
215
  "copyfiles": "^2.4.1",
210
216
  "cross-env": "^5.2.0",
211
- "crypto-browserify": "^3.12.0",
212
217
  "css-loader": "^6.8.1",
213
- "css-minimizer-webpack-plugin": "^5.0.1",
214
- "esbuild": "^0.23.0",
218
+ "css-minimizer-webpack-plugin": "^8.0.0",
219
+ "esbuild": "^0.28.1",
215
220
  "eslint": "^8.43.0",
216
221
  "eslint-config-gemini-testing": "^2.8.0",
217
222
  "eslint-plugin-react": "^7.32.2",
218
223
  "events": "^3.3.0",
219
- "fflate": "^0.8.2",
224
+ "fflate": "^0.8.3",
220
225
  "fork-ts-checker-webpack-plugin": "^9.0.0",
221
226
  "fuse.js": "^7.1.0",
222
227
  "hermione-global-hook": "^1.0.1",
223
228
  "hermione-test-repeater": "^0.0.8",
224
- "html-react-parser": "^5.1.12",
229
+ "html-react-parser": "^5.2.17",
225
230
  "html-reporter-basic-plugin": "file:test/func/packages/basic",
226
231
  "html-reporter-menu-bar-plugin": "file:test/func/packages/menu-bar",
227
232
  "html-reporter-redux-plugin": "file:test/func/packages/redux",
@@ -233,17 +238,17 @@
233
238
  "html-webpack-tags-plugin": "^3.0.2",
234
239
  "husky": "^0.11.9",
235
240
  "ignore-styles": "^5.0.1",
236
- "immer": "^7.0.15",
241
+ "immer": "^9.0.21",
237
242
  "jest": "^29.7.0",
238
243
  "jsdom": "^24.1.1",
239
244
  "jsdom-global": "^3.0.2",
240
245
  "less": "^3.11.1",
241
246
  "less-loader": "^11.1.3",
242
247
  "mini-css-extract-plugin": "^2.7.6",
243
- "mocha": "^10.7.0",
248
+ "mocha": "^11.8.0",
244
249
  "msw": "^2.3.4",
245
250
  "npm-run-all": "^4.1.5",
246
- "nyc": "^14.1.1",
251
+ "nyc": "^18.0.0",
247
252
  "path-browserify": "^1.0.1",
248
253
  "pirates": "^4.0.6",
249
254
  "prop-types": "^15.6.0",
@@ -255,30 +260,30 @@
255
260
  "react-dom": "^18.3.1",
256
261
  "react-hotkeys": "^2.0.0",
257
262
  "react-markdown": "^6.0.3",
258
- "react-redux": "^7.2.1",
259
- "react-router-dom": "^6.25.1",
263
+ "react-redux": "^7.2.9",
264
+ "react-router-dom": "^7.18.5",
260
265
  "react-split": "^2.0.14",
261
- "react-virtualized": "^9.22.5",
266
+ "react-virtualized": "^9.22.6",
262
267
  "react-virtualized-auto-sizer": "^1.0.24",
263
268
  "react-window": "^1.8.10",
264
- "reapop": "^4.2.2",
269
+ "reapop": "^4.3.0",
265
270
  "reduce-reducers": "^1.0.4",
266
- "redux": "^4.0.5",
271
+ "redux": "^4.2.1",
267
272
  "redux-logger": "^3.0.6",
268
273
  "redux-mock-store": "^1.5.1",
269
- "redux-thunk": "^2.2.0",
274
+ "redux-thunk": "^2.4.2",
270
275
  "reselect": "^4.1.6",
271
276
  "rimraf": "^2.6.3",
272
277
  "semantic-ui-react": "^3.0.0-beta.2",
273
278
  "sinon": "^4.0.1",
274
- "standard-version": "^4.0.0",
279
+ "standard-version": "^9.5.0",
275
280
  "stream-browserify": "^3.0.0",
276
281
  "strftime": "^0.10.3",
277
282
  "style-loader": "^3.3.3",
278
283
  "stylus": "^0.57.0",
279
284
  "stylus-loader": "^7.1.3",
280
285
  "terser-webpack-plugin": "^5.3.9",
281
- "testplane": "^8.37.0",
286
+ "testplane": "9.6.0",
282
287
  "tree-kill": "^1.2.2",
283
288
  "ts-node": "^10.9.1",
284
289
  "ts-patch": "^3.3.0",
@@ -289,7 +294,7 @@
289
294
  "web-vitals": "^1.1.2",
290
295
  "webpack": "^5.89.0",
291
296
  "webpack-cli": "^5.1.4",
292
- "webpack-dev-server": "^3.11.3",
297
+ "webpack-dev-server": "^6.0.0",
293
298
  "webpack-merge": "^4.1.1"
294
299
  }
295
300
  }
@@ -2,8 +2,7 @@ import type { Config } from 'testplane';
2
2
  import type { ConfigAdapter } from './';
3
3
  import type { TestplaneTestAdapter } from '../test/testplane';
4
4
  import type { SecretConfigFilter } from '../../types';
5
- export declare const defaultSecretConfigFilter: SecretConfigFilter;
6
- export declare const maskTokenValues: (value: unknown, secretConfigFilter?: SecretConfigFilter, configPath?: string) => unknown;
5
+ export declare const maskTokenValues: (value: unknown, secretConfigFilter?: SecretConfigFilter | null, configPath?: string) => unknown;
7
6
  export declare class TestplaneConfigAdapter implements ConfigAdapter {
8
7
  private _config;
9
8
  static create<T extends TestplaneConfigAdapter>(this: new (config: Config) => T, config: Config): T;
@@ -1,12 +1,9 @@
1
1
  import type { eventWithTime as RrwebEvent } from '@rrweb/types';
2
2
  import type Testplane from 'testplane';
3
+ import type { TestContext, NetworkRequestsData } from 'testplane/unstable';
3
4
  import { ReporterTestResult } from '../../test-result';
4
- import { SnapshotAttachment, SnapshotsSaver } from '../../../types';
5
+ import { SnapshotAttachment, SnapshotsSaver, SecretConfigFilter } from '../../../types';
5
6
  import { EventSource } from '../../../gui/event-source';
6
- export interface TestContext {
7
- testPath: string[];
8
- browserId: string;
9
- }
10
7
  export interface SnapshotsData {
11
8
  rrwebSnapshots: RrwebEvent[];
12
9
  }
@@ -20,6 +17,7 @@ interface CreateSnapshotFilePathParams {
20
17
  }
21
18
  export declare function createSnapshotFilePath({ attempt: attemptInput, hash, browserId, timestamp }: CreateSnapshotFilePathParams): string;
22
19
  export declare const handleDomSnapshotsEvent: (client: EventSource | null, context: TestContext, data: SnapshotsData) => void;
20
+ export declare const handleNetworkRequestsEvent: (context: TestContext, data: NetworkRequestsData) => void;
23
21
  interface FinalizeSnapshotsParams {
24
22
  testResult: ReporterTestResult;
25
23
  attempt: number;
@@ -28,6 +26,7 @@ interface FinalizeSnapshotsParams {
28
26
  eventName: Testplane['events'][keyof Testplane['events']];
29
27
  events: Testplane['events'];
30
28
  snapshotsSaver?: SnapshotsSaver | null;
29
+ secretConfigFilter: SecretConfigFilter | null;
31
30
  }
32
- export declare const finalizeSnapshotsForTest: ({ testResult, attempt, reportPath, timeTravelConfig, events, eventName, snapshotsSaver }: FinalizeSnapshotsParams) => Promise<SnapshotAttachment[]>;
31
+ export declare const finalizeSnapshotsForTest: ({ testResult, attempt, reportPath, timeTravelConfig, events, eventName, snapshotsSaver, secretConfigFilter }: FinalizeSnapshotsParams) => Promise<SnapshotAttachment[]>;
33
32
  export {};
@@ -0,0 +1,2 @@
1
+ import type { ImageSize } from './types';
2
+ export declare const getImageSize: (image: string | Buffer) => ImageSize;
@@ -0,0 +1,3 @@
1
+ import type { SecretConfigFilter } from './types';
2
+ export declare const defaultSecretConfigFilter: (value: string, path: string) => boolean;
3
+ export declare const maskSecret: (value: string, path: string, filter?: SecretConfigFilter | null) => string;
@@ -1,4 +1,4 @@
1
1
  export { PanelSection } from '../new-ui/components/PanelSection';
2
2
  export { CollapsibleSection } from '../new-ui/features/suites/components/CollapsibleSection';
3
- export { State } from '../new-ui/types/store';
3
+ export type { State } from '../new-ui/types/store';
4
4
  export * as Features from '../../constants/features';
@@ -216,8 +216,8 @@ export interface Badge {
216
216
  icon?: string;
217
217
  }
218
218
  export type GenerateBadges = (suite: ReporterTestResult) => Array<Badge | null>;
219
- /** Return true to mask the string value at the specified JSON Pointer path. */
220
- export type SecretConfigFilter = (value: string, path: string) => boolean;
219
+ /** Return true to mask, a string to replace, false to keep, or undefined to apply the default filter. */
220
+ export type SecretConfigFilter = (value: string, path: string) => boolean | string | undefined;
221
221
  export interface ReporterConfig {
222
222
  baseHost: string;
223
223
  commandsWithShortHistory: string[];
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[134],{9560:(t,e,r)=>{r.d(e,{CB:()=>L,CR:()=>G,Cr:()=>T,Cx:()=>j,EX:()=>S,Fm:()=>q,G6:()=>J,KM:()=>O,Lg:()=>z,MO:()=>M,MT:()=>m,Mg:()=>g,Ne:()=>H,Ph:()=>K,R6:()=>w,S5:()=>A,SS:()=>C,by:()=>x,ci:()=>D,dc:()=>V,e1:()=>F,hO:()=>P,iR:()=>N,jj:()=>W,kg:()=>I,nc:()=>k,qC:()=>E,sx:()=>R,wX:()=>Z,zV:()=>B});var s=r(34795),n=r(56666),i=r(96234),a=r(82841),o=r.n(a),u=r(5634),c=r(76635),l=r(883),d=r(27202),h=r(8776),f=r(40161);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 _(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 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 v(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)?v(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 v(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){return u.createHash("md5").update(t,"ascii").digest("hex").substr(0,7)},b=[d.sS,d.em,d.pn,d.ES,d.Ez,d.t6,d.SH,d.MR,d.JW,d.kb],I=(0,c.pick)(console,["log","warn","error"]),g=function(t){return t===d.MR},w=function(t){return t===d.ES},k=function(t){return t===d.JW},O=function(t){return t===d.pn},R=function(t){return t===d.kb},T=function(t){return t===d.SH},j=function(t){return t===d.Ez},P=function(t){return t===d.t6},S=function(t){if(!t.length)return d.MR;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},B=function(t,e){if((0,c.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.Z)(n.value,2),u=o[0],l=o[1];r.searchParams.append(u,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}},N=function(t){return(null==t?void 0:t.name)===f.G.ASSERT_VIEW},D=function(t){return(null==t?void 0:t.name)===f.G.IMAGE_DIFF},A=function(t){return(null==t?void 0:t.name)===f.G.NO_REF_IMAGE},H=function(t){return(null==t?void 0:t.name)===f.G.INVALID_REF_IMAGE},Z=function(t){return N(t)||D(t)||A(t)},M=function(t){return!A(t)&&!D(t)&&!N(t)},U=["Tests were stopped by the user","NoRefImageError","Too many requests for session creation"],x=function(t){var e;if(t)return _(_({},(0,c.pick)(t,["name","message","stack","stateName","snippet"])),{},{stack:(e=t.stack,e&&U.some((function(t){return e.includes(t)}))?e.split("\n")[0]:e)})},C=function(t){var e;if(!(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((function(t){return t.stateName&&(O(t.status)||w(t.status)||A(t)||D(t))}))}(t.imagesInfo)||R(t.status)||t.error&&M(t.error)))return d.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 D(t)}))||(void 0===(r={assertViewResults:s}.assertViewResults)?[]:r).some((function(t){return A(t)}))?d.ES:(0,c.isEmpty)(t.error)?t.status:d.pn},L=function(t){if("string"!=typeof t)return!1;var e=l.parse(t);return!!e.host&&!!e.protocol},V=function(){var t=(0,s.Z)(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(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 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)}}(),F=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)===h.ri},K=function(t){return Number(t)===h.Km},W=function(t){return G(t)?h.wT:h.ri};var z=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},$=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)},q=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,""+$(t)+""].join("\n"),e}},43134:(t,e,r)=>{r.d(e,{N:()=>N});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),h=r(27202);function f(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?f(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _=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=(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.by)(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.by)(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 v(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.Z)(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.Z)(this,t),this._transformer=new _(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 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.Z)(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 k=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.Z)(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.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?h.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(h.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 h=r._tree.suites.byId[u];if(n!==i.length-1){var f=r._buildId(u,i[n+1]);h.suiteIds?r._tree.suites.byId[f]&&h.suiteIds.includes(f)||h.suiteIds.push(f):h.suiteIds=[f]}else h.browserIds?r._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,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,h=b(s.suiteIds||[]);try{for(h.s();!(l=h.n()).done;){var f=l.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(s.status=(0,d.EX)(n)||void 0,s.status)for(var _=1;_<t.length;_++){var y=t.slice(0,-_),v=this._buildId(y),m=this._tree.suites.byId[v];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}(),O=function(t){try{return JSON.parse(t)}catch(t){return}},R=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[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 l().has(this._parsedTestResult,"error")||(this._parsedTestResult.error=O(this._testResult[h.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=O(this._testResult[h.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(h.Nv)),this._parsedTestResult.fullName}},{key:"history",get:function(){return l().has(this._parsedTestResult,"history")||(this._parsedTestResult.history=O(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,d.Lg)(this)}},{key:"imagesInfo",get:function(){return l().has(this._parsedTestResult,"imagesInfo")||(this._parsedTestResult.imagesInfo=O(this._testResult[h.He.imagesInfo])),this._parsedTestResult.imagesInfo}},{key:"meta",get:function(){var t;l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=null!==(t=O(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 l().has(this._parsedTestResult,"meta")||(this._parsedTestResult.meta=O(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 l().has(this._parsedTestResult,"testPath")||(this._parsedTestResult.testPath=O(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 l().has(this._parsedTestResult,"attachments")||(this._parsedTestResult.attachments=O(this._testResult[h.He.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.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 B(t){var e=E();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 E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}var N=function(t){(0,a.Z)(r,t);var e=B(r);function r(t){var s;return(0,n.Z)(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.Z)(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[h.He.suitePath]),o=i[h.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 R(i,d);D(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||h.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 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[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 h.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 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[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}(k);function D(t,e){var r=e.browserId;t[r]||(t[r]=new Set);var s=e.meta.browserVersion,n=void 0===s?h.eb.UNKNOWN:s;t[r].add(n)}}}]);