html-reporter 9.10.0 → 9.10.2

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 (400) hide show
  1. package/build/gemini.d.ts +2 -0
  2. package/{gemini.js → build/gemini.js} +1 -1
  3. package/build/gemini.js.map +1 -0
  4. package/build/hermione.d.ts +2 -0
  5. package/{hermione.js → build/hermione.js} +3 -21
  6. package/build/hermione.js.map +1 -0
  7. package/build/lib/cli-commands/gui.d.ts +2 -0
  8. package/{lib → build/lib}/cli-commands/gui.js +5 -7
  9. package/build/lib/cli-commands/gui.js.map +1 -0
  10. package/build/lib/cli-commands/index.d.ts +3 -0
  11. package/{lib → build/lib}/cli-commands/index.js +1 -1
  12. package/build/lib/cli-commands/index.js.map +1 -0
  13. package/build/lib/cli-commands/merge-reports.d.ts +2 -0
  14. package/{lib → build/lib}/cli-commands/merge-reports.js +11 -11
  15. package/build/lib/cli-commands/merge-reports.js.map +1 -0
  16. package/build/lib/cli-commands/remove-unused-screens/index.d.ts +2 -0
  17. package/{lib → build/lib}/cli-commands/remove-unused-screens/index.js +61 -110
  18. package/build/lib/cli-commands/remove-unused-screens/index.js.map +1 -0
  19. package/build/lib/cli-commands/remove-unused-screens/utils.d.ts +16 -0
  20. package/{lib → build/lib}/cli-commands/remove-unused-screens/utils.js +10 -48
  21. package/build/lib/cli-commands/remove-unused-screens/utils.js.map +1 -0
  22. package/build/lib/common-utils.d.ts +24 -0
  23. package/build/lib/common-utils.js +116 -0
  24. package/build/lib/common-utils.js.map +1 -0
  25. package/build/lib/config/custom-gui-asserts.d.ts +1 -0
  26. package/{lib → build/lib}/config/custom-gui-asserts.js +2 -12
  27. package/build/lib/config/custom-gui-asserts.js.map +1 -0
  28. package/build/lib/config/index.d.ts +21 -0
  29. package/{lib → build/lib}/config/index.js +7 -32
  30. package/build/lib/config/index.js.map +1 -0
  31. package/build/lib/constants/browser.d.ts +3 -0
  32. package/build/lib/constants/browser.js +5 -0
  33. package/build/lib/constants/browser.js.map +1 -0
  34. package/build/lib/constants/checked-statuses.d.ts +3 -0
  35. package/{lib → build/lib}/constants/checked-statuses.js +1 -1
  36. package/build/lib/constants/checked-statuses.js.map +1 -0
  37. package/build/lib/constants/database.d.ts +25 -0
  38. package/build/lib/constants/database.js +47 -0
  39. package/build/lib/constants/database.js.map +1 -0
  40. package/build/lib/constants/defaults.d.ts +18 -0
  41. package/{lib → build/lib}/constants/defaults.js +1 -2
  42. package/build/lib/constants/defaults.js.map +1 -0
  43. package/build/lib/constants/diff-modes.d.ts +53 -0
  44. package/{lib → build/lib}/constants/diff-modes.js +2 -0
  45. package/build/lib/constants/diff-modes.js.map +1 -0
  46. package/build/lib/constants/errors.d.ts +5 -0
  47. package/{lib → build/lib}/constants/errors.js +1 -1
  48. package/build/lib/constants/errors.js.map +1 -0
  49. package/build/lib/constants/expand-modes.d.ts +4 -0
  50. package/{lib → build/lib}/constants/expand-modes.js +1 -1
  51. package/build/lib/constants/expand-modes.js.map +1 -0
  52. package/build/lib/constants/extension-points.d.ts +4 -0
  53. package/build/lib/constants/extension-points.js +8 -0
  54. package/build/lib/constants/extension-points.js.map +1 -0
  55. package/build/lib/constants/group-tests.d.ts +7 -0
  56. package/{lib → build/lib}/constants/group-tests.js +2 -0
  57. package/build/lib/constants/group-tests.js.map +1 -0
  58. package/build/lib/constants/paths.d.ts +2 -0
  59. package/{lib → build/lib}/constants/paths.js +1 -1
  60. package/build/lib/constants/paths.js.map +1 -0
  61. package/build/lib/constants/plugin-events.d.ts +5 -0
  62. package/{lib → build/lib}/constants/plugin-events.js +2 -4
  63. package/build/lib/constants/plugin-events.js.map +1 -0
  64. package/build/lib/constants/save-formats.d.ts +1 -0
  65. package/{lib → build/lib}/constants/save-formats.js +1 -1
  66. package/build/lib/constants/save-formats.js.map +1 -0
  67. package/build/lib/constants/test-statuses.d.ts +8 -0
  68. package/{lib → build/lib}/constants/test-statuses.js +1 -1
  69. package/build/lib/constants/test-statuses.js.map +1 -0
  70. package/build/lib/constants/view-modes.d.ts +5 -0
  71. package/{lib → build/lib}/constants/view-modes.js +1 -1
  72. package/build/lib/constants/view-modes.js.map +1 -0
  73. package/build/lib/db-utils/client.d.ts +19 -0
  74. package/{lib → build/lib}/db-utils/client.js +18 -45
  75. package/build/lib/db-utils/client.js.map +1 -0
  76. package/build/lib/db-utils/common.d.ts +10 -0
  77. package/build/lib/db-utils/common.js +56 -0
  78. package/build/lib/db-utils/common.js.map +1 -0
  79. package/build/lib/db-utils/server.d.ts +16 -0
  80. package/{lib → build/lib}/db-utils/server.js +15 -41
  81. package/build/lib/db-utils/server.js.map +1 -0
  82. package/build/lib/gui/api/facade.d.ts +8 -0
  83. package/{lib → build/lib}/gui/api/facade.js +1 -4
  84. package/build/lib/gui/api/facade.js.map +1 -0
  85. package/build/lib/gui/api/index.d.ts +9 -0
  86. package/{lib → build/lib}/gui/api/index.js +1 -5
  87. package/build/lib/gui/api/index.js.map +1 -0
  88. package/build/lib/gui/app.d.ts +62 -0
  89. package/{lib → build/lib}/gui/app.js +2 -21
  90. package/build/lib/gui/app.js.map +1 -0
  91. package/build/lib/gui/constants/client-events.d.ts +6 -0
  92. package/{lib → build/lib}/gui/constants/client-events.js +1 -4
  93. package/build/lib/gui/constants/client-events.js.map +1 -0
  94. package/build/lib/gui/constants/custom-gui-control-types.d.ts +2 -0
  95. package/{lib → build/lib}/gui/constants/custom-gui-control-types.js +1 -1
  96. package/build/lib/gui/constants/custom-gui-control-types.js.map +1 -0
  97. package/build/lib/gui/constants/gui-events.d.ts +2 -0
  98. package/{lib → build/lib}/gui/constants/gui-events.js +1 -1
  99. package/build/lib/gui/constants/gui-events.js.map +1 -0
  100. package/build/lib/gui/constants/server.d.ts +3 -0
  101. package/{lib → build/lib}/gui/constants/server.js +1 -1
  102. package/build/lib/gui/constants/server.js.map +1 -0
  103. package/build/lib/gui/event-source.d.ts +6 -0
  104. package/{lib → build/lib}/gui/event-source.js +2 -5
  105. package/build/lib/gui/event-source.js.map +1 -0
  106. package/build/lib/gui/index.d.ts +12 -0
  107. package/build/lib/gui/index.js +22 -0
  108. package/build/lib/gui/index.js.map +1 -0
  109. package/build/lib/gui/routes/plugins.d.ts +2 -0
  110. package/{lib → build/lib}/gui/routes/plugins.js +9 -24
  111. package/build/lib/gui/routes/plugins.js.map +1 -0
  112. package/build/lib/gui/server.d.ts +8 -0
  113. package/{lib → build/lib}/gui/server.js +32 -51
  114. package/build/lib/gui/server.js.map +1 -0
  115. package/build/lib/gui/tool-runner/index.d.ts +123 -0
  116. package/{lib → build/lib}/gui/tool-runner/index.js +42 -122
  117. package/build/lib/gui/tool-runner/index.js.map +1 -0
  118. package/build/lib/gui/tool-runner/report-subscriber.d.ts +2 -0
  119. package/{lib → build/lib}/gui/tool-runner/report-subscriber.js +7 -30
  120. package/build/lib/gui/tool-runner/report-subscriber.js.map +1 -0
  121. package/build/lib/gui/tool-runner/runner/all-test-runner.d.ts +4 -0
  122. package/{lib → build/lib}/gui/tool-runner/runner/all-test-runner.js +1 -3
  123. package/build/lib/gui/tool-runner/runner/all-test-runner.js.map +1 -0
  124. package/build/lib/gui/tool-runner/runner/index.d.ts +3 -0
  125. package/{lib → build/lib}/gui/tool-runner/runner/index.js +1 -2
  126. package/build/lib/gui/tool-runner/runner/index.js.map +1 -0
  127. package/build/lib/gui/tool-runner/runner/runner.d.ts +6 -0
  128. package/{lib → build/lib}/gui/tool-runner/runner/runner.js +1 -2
  129. package/build/lib/gui/tool-runner/runner/runner.js.map +1 -0
  130. package/build/lib/gui/tool-runner/runner/specific-test-runner.d.ts +7 -0
  131. package/{lib → build/lib}/gui/tool-runner/runner/specific-test-runner.js +2 -8
  132. package/build/lib/gui/tool-runner/runner/specific-test-runner.js.map +1 -0
  133. package/build/lib/gui/tool-runner/utils.d.ts +7 -0
  134. package/{lib → build/lib}/gui/tool-runner/utils.js +11 -35
  135. package/build/lib/gui/tool-runner/utils.js.map +1 -0
  136. package/build/lib/history-utils.d.ts +1 -0
  137. package/{lib → build/lib}/history-utils.js +5 -20
  138. package/build/lib/history-utils.js.map +1 -0
  139. package/build/lib/local-images-saver.d.ts +4 -0
  140. package/build/lib/local-images-saver.js +9 -0
  141. package/build/lib/local-images-saver.js.map +1 -0
  142. package/build/lib/merge-reports/index.d.ts +4 -0
  143. package/{lib → build/lib}/merge-reports/index.js +3 -8
  144. package/build/lib/merge-reports/index.js.map +1 -0
  145. package/build/lib/plugin-adapter.d.ts +32 -0
  146. package/{lib → build/lib}/plugin-adapter.js +8 -25
  147. package/build/lib/plugin-adapter.js.map +1 -0
  148. package/build/lib/plugin-api.d.ts +57 -0
  149. package/{lib → build/lib}/plugin-api.js +2 -20
  150. package/build/lib/plugin-api.js.map +1 -0
  151. package/build/lib/plugin-utils.d.ts +3 -0
  152. package/{lib → build/lib}/plugin-utils.js +3 -5
  153. package/build/lib/plugin-utils.js.map +1 -0
  154. package/build/lib/report-builder/gui.d.ts +73 -0
  155. package/{lib → build/lib}/report-builder/gui.js +33 -92
  156. package/build/lib/report-builder/gui.js.map +1 -0
  157. package/build/lib/report-builder/static.d.ts +32 -0
  158. package/{lib → build/lib}/report-builder/static.js +25 -64
  159. package/build/lib/report-builder/static.js.map +1 -0
  160. package/build/lib/reporter-helpers.d.ts +3 -0
  161. package/{lib → build/lib}/reporter-helpers.js +2 -11
  162. package/build/lib/reporter-helpers.js.map +1 -0
  163. package/build/lib/server-utils.d.ts +42 -0
  164. package/{lib → build/lib}/server-utils.js +37 -92
  165. package/build/lib/server-utils.js.map +1 -0
  166. package/build/lib/sqlite-adapter.d.ts +78 -0
  167. package/{lib → build/lib}/sqlite-adapter.js +15 -56
  168. package/build/lib/sqlite-adapter.js.map +1 -0
  169. package/build/lib/static/gui.min.css +1 -0
  170. package/build/lib/static/gui.min.js +124 -0
  171. package/build/lib/static/modules/utils.d.ts +31 -0
  172. package/{lib → build/lib}/static/modules/utils.js +16 -56
  173. package/build/lib/static/modules/utils.js.map +1 -0
  174. package/build/lib/static/report.min.css +1 -0
  175. package/build/lib/static/report.min.js +124 -0
  176. package/build/lib/suite-adapter.d.ts +15 -0
  177. package/{lib → build/lib}/suite-adapter.js +2 -18
  178. package/build/lib/suite-adapter.js.map +1 -0
  179. package/build/lib/test-adapter.d.ts +118 -0
  180. package/{lib → build/lib}/test-adapter.js +38 -156
  181. package/build/lib/test-adapter.js.map +1 -0
  182. package/build/lib/tests-tree-builder/base.d.ts +70 -0
  183. package/{lib → build/lib}/tests-tree-builder/base.js +34 -74
  184. package/build/lib/tests-tree-builder/base.js.map +1 -0
  185. package/build/lib/tests-tree-builder/gui.d.ts +47 -0
  186. package/{lib → build/lib}/tests-tree-builder/gui.js +12 -63
  187. package/build/lib/tests-tree-builder/gui.js.map +1 -0
  188. package/build/lib/tests-tree-builder/static.d.ts +55 -0
  189. package/{lib → build/lib}/tests-tree-builder/static.js +11 -42
  190. package/build/lib/tests-tree-builder/static.js.map +1 -0
  191. package/build/lib/workers/create-workers.d.ts +2 -0
  192. package/{lib → build/lib}/workers/create-workers.js +1 -2
  193. package/build/lib/workers/create-workers.js.map +1 -0
  194. package/build/lib/workers/worker.d.ts +1 -0
  195. package/build/lib/workers/worker.js +13 -0
  196. package/build/lib/workers/worker.js.map +1 -0
  197. package/build/package.json +178 -0
  198. package/package.json +44 -23
  199. package/CHANGELOG.md +0 -2896
  200. package/docs/en/html-reporter-api.md +0 -198
  201. package/docs/en/html-reporter-commands.md +0 -96
  202. package/docs/en/html-reporter-custom-gui.md +0 -99
  203. package/docs/en/html-reporter-events.md +0 -125
  204. package/docs/en/html-reporter-plugins.md +0 -265
  205. package/docs/en/html-reporter-setup.md +0 -378
  206. package/docs/en/html-reporter.md +0 -8
  207. package/docs/ru/html-reporter-api.md +0 -198
  208. package/docs/ru/html-reporter-commands.md +0 -96
  209. package/docs/ru/html-reporter-custom-gui.md +0 -99
  210. package/docs/ru/html-reporter-events.md +0 -125
  211. package/docs/ru/html-reporter-plugins.md +0 -265
  212. package/docs/ru/html-reporter-setup.md +0 -378
  213. package/docs/ru/html-reporter.md +0 -8
  214. package/lib/common-utils.js +0 -123
  215. package/lib/constants/browser.js +0 -3
  216. package/lib/constants/database.js +0 -49
  217. package/lib/constants/extension-points.js +0 -6
  218. package/lib/db-utils/common.js +0 -76
  219. package/lib/gui/index.js +0 -19
  220. package/lib/local-images-saver.js +0 -11
  221. package/lib/static/components/bottom-progress-bar/index.js +0 -42
  222. package/lib/static/components/bullet.js +0 -30
  223. package/lib/static/components/controls/accept-opened-button.js +0 -39
  224. package/lib/static/components/controls/base-host-input.js +0 -39
  225. package/lib/static/components/controls/browser-list/index.js +0 -239
  226. package/lib/static/components/controls/browser-list/index.styl +0 -52
  227. package/lib/static/components/controls/browser-list/label.js +0 -60
  228. package/lib/static/components/controls/browser-list/label.styl +0 -18
  229. package/lib/static/components/controls/browser-list/utils.js +0 -43
  230. package/lib/static/components/controls/common-controls.js +0 -75
  231. package/lib/static/components/controls/common-filters.js +0 -34
  232. package/lib/static/components/controls/control-button.js +0 -54
  233. package/lib/static/components/controls/controls.less +0 -109
  234. package/lib/static/components/controls/custom-gui-controls.js +0 -70
  235. package/lib/static/components/controls/find-same-diffs-button.js +0 -47
  236. package/lib/static/components/controls/gui-controls.js +0 -46
  237. package/lib/static/components/controls/menu-bar.js +0 -47
  238. package/lib/static/components/controls/report-controls.js +0 -21
  239. package/lib/static/components/controls/report-info.js +0 -31
  240. package/lib/static/components/controls/run-button/index.js +0 -129
  241. package/lib/static/components/controls/run-button/index.styl +0 -49
  242. package/lib/static/components/controls/selects/control.js +0 -51
  243. package/lib/static/components/controls/selects/group-tests.js +0 -94
  244. package/lib/static/components/controls/selects/index.styl +0 -57
  245. package/lib/static/components/controls/show-checkboxes-input.js +0 -24
  246. package/lib/static/components/controls/strict-match-filter-input.js +0 -39
  247. package/lib/static/components/controls/test-name-filter-input.js +0 -42
  248. package/lib/static/components/custom-scripts.js +0 -23
  249. package/lib/static/components/details.js +0 -58
  250. package/lib/static/components/error-boundary.js +0 -26
  251. package/lib/static/components/extension-point.js +0 -106
  252. package/lib/static/components/favicon-changer.js +0 -56
  253. package/lib/static/components/group-tests/item.js +0 -66
  254. package/lib/static/components/group-tests/list.js +0 -71
  255. package/lib/static/components/group-tests/prop-types.js +0 -12
  256. package/lib/static/components/gui.js +0 -105
  257. package/lib/static/components/header/header.css +0 -5
  258. package/lib/static/components/header/index.js +0 -26
  259. package/lib/static/components/header/summary/dbBtn.js +0 -36
  260. package/lib/static/components/header/summary/dbSummary.js +0 -49
  261. package/lib/static/components/header/summary/index.js +0 -43
  262. package/lib/static/components/header/summary/item.js +0 -28
  263. package/lib/static/components/header/summary/summary.css +0 -77
  264. package/lib/static/components/icons/arrow.js +0 -24
  265. package/lib/static/components/icons/arrows-close.js +0 -25
  266. package/lib/static/components/icons/arrows-move.js +0 -24
  267. package/lib/static/components/icons/arrows-open.js +0 -25
  268. package/lib/static/components/icons/view-in-browser/index.js +0 -59
  269. package/lib/static/components/icons/view-in-browser/index.styl +0 -28
  270. package/lib/static/components/loading.js +0 -25
  271. package/lib/static/components/main-tree.js +0 -23
  272. package/lib/static/components/modals/find-same-diffs.js +0 -34
  273. package/lib/static/components/modals/index.js +0 -6
  274. package/lib/static/components/modals/modal.css +0 -3
  275. package/lib/static/components/modals/modal.js +0 -27
  276. package/lib/static/components/modals/screenshot-accepter/body.js +0 -88
  277. package/lib/static/components/modals/screenshot-accepter/header.js +0 -192
  278. package/lib/static/components/modals/screenshot-accepter/index.js +0 -228
  279. package/lib/static/components/modals/screenshot-accepter/meta.js +0 -32
  280. package/lib/static/components/modals/screenshot-accepter/style.css +0 -115
  281. package/lib/static/components/popup/index.js +0 -89
  282. package/lib/static/components/popup/index.styl +0 -43
  283. package/lib/static/components/progress-bar/index.js +0 -13
  284. package/lib/static/components/progress-bar/index.styl +0 -24
  285. package/lib/static/components/report.js +0 -72
  286. package/lib/static/components/retry-switcher/index.js +0 -36
  287. package/lib/static/components/retry-switcher/item.js +0 -55
  288. package/lib/static/components/section/body/description.js +0 -24
  289. package/lib/static/components/section/body/history/index.js +0 -29
  290. package/lib/static/components/section/body/history/index.styl +0 -4
  291. package/lib/static/components/section/body/index.js +0 -114
  292. package/lib/static/components/section/body/meta-info/content.js +0 -114
  293. package/lib/static/components/section/body/meta-info/index.js +0 -33
  294. package/lib/static/components/section/body/result.js +0 -41
  295. package/lib/static/components/section/body/tabs.js +0 -52
  296. package/lib/static/components/section/section-browser.js +0 -113
  297. package/lib/static/components/section/section-common.js +0 -100
  298. package/lib/static/components/section/section-wrapper.js +0 -20
  299. package/lib/static/components/section/title/browser-skipped.js +0 -39
  300. package/lib/static/components/section/title/browser.js +0 -81
  301. package/lib/static/components/section/title/simple.js +0 -86
  302. package/lib/static/components/state/error-details.js +0 -18
  303. package/lib/static/components/state/index.js +0 -208
  304. package/lib/static/components/state/screenshot/diff-circle.js +0 -66
  305. package/lib/static/components/state/screenshot/full.js +0 -28
  306. package/lib/static/components/state/screenshot/resized.js +0 -90
  307. package/lib/static/components/state/screenshot/with-encode-uri.js +0 -44
  308. package/lib/static/components/state/screenshot/with-synced-scale.js +0 -116
  309. package/lib/static/components/state/state-error.js +0 -140
  310. package/lib/static/components/state/state-fail/index.js +0 -161
  311. package/lib/static/components/state/state-fail/index.styl +0 -31
  312. package/lib/static/components/state/state-fail/onion-skin-diff/index.js +0 -43
  313. package/lib/static/components/state/state-fail/onion-skin-diff/index.styl +0 -19
  314. package/lib/static/components/state/state-fail/prop-types.js +0 -16
  315. package/lib/static/components/state/state-fail/swipe-diff/index.js +0 -138
  316. package/lib/static/components/state/state-fail/swipe-diff/index.styl +0 -82
  317. package/lib/static/components/state/state-fail/switch-diff/index.js +0 -36
  318. package/lib/static/components/state/state-fail/switch-diff/index.styl +0 -12
  319. package/lib/static/components/state/state-fail/useFitImages.js +0 -63
  320. package/lib/static/components/state/state-success.js +0 -23
  321. package/lib/static/components/sticky-header/gui.js +0 -12
  322. package/lib/static/components/sticky-header/index.js +0 -36
  323. package/lib/static/components/sticky-header/index.styl +0 -37
  324. package/lib/static/components/sticky-header/report.js +0 -14
  325. package/lib/static/components/suites.js +0 -157
  326. package/lib/static/containers/array/array.styl +0 -32
  327. package/lib/static/containers/array/index.js +0 -61
  328. package/lib/static/containers/modal.js +0 -43
  329. package/lib/static/gui.css +0 -177
  330. package/lib/static/gui.js +0 -14
  331. package/lib/static/gui.min.css +0 -1
  332. package/lib/static/gui.min.js +0 -124
  333. package/lib/static/hooks/useElementSize.js +0 -30
  334. package/lib/static/hooks/useEventListener.js +0 -25
  335. package/lib/static/hooks/useLocalStorage.js +0 -39
  336. package/lib/static/hooks/useWindowSize.js +0 -25
  337. package/lib/static/index.js +0 -14
  338. package/lib/static/modules/action-names.js +0 -60
  339. package/lib/static/modules/actions.js +0 -335
  340. package/lib/static/modules/custom-queries.js +0 -27
  341. package/lib/static/modules/default-state.js +0 -84
  342. package/lib/static/modules/load-plugin.js +0 -109
  343. package/lib/static/modules/local-storage-wrapper.js +0 -54
  344. package/lib/static/modules/middlewares/local-storage.js +0 -30
  345. package/lib/static/modules/middlewares/metrika.js +0 -121
  346. package/lib/static/modules/plugins.js +0 -52
  347. package/lib/static/modules/query-params.js +0 -98
  348. package/lib/static/modules/reducers/api-values.js +0 -25
  349. package/lib/static/modules/reducers/auto-run.js +0 -14
  350. package/lib/static/modules/reducers/bottom-progress-bar.js +0 -16
  351. package/lib/static/modules/reducers/browsers.js +0 -43
  352. package/lib/static/modules/reducers/close-ids.js +0 -12
  353. package/lib/static/modules/reducers/config.js +0 -48
  354. package/lib/static/modules/reducers/date.js +0 -16
  355. package/lib/static/modules/reducers/db.js +0 -30
  356. package/lib/static/modules/reducers/fetch-db-details.js +0 -13
  357. package/lib/static/modules/reducers/grouped-tests/by/meta.js +0 -31
  358. package/lib/static/modules/reducers/grouped-tests/by/result.js +0 -57
  359. package/lib/static/modules/reducers/grouped-tests/helpers.js +0 -91
  360. package/lib/static/modules/reducers/grouped-tests/index.js +0 -52
  361. package/lib/static/modules/reducers/gui.js +0 -16
  362. package/lib/static/modules/reducers/index.js +0 -56
  363. package/lib/static/modules/reducers/loading.js +0 -12
  364. package/lib/static/modules/reducers/modals.js +0 -16
  365. package/lib/static/modules/reducers/notifications.js +0 -12
  366. package/lib/static/modules/reducers/plugins.js +0 -25
  367. package/lib/static/modules/reducers/processing.js +0 -21
  368. package/lib/static/modules/reducers/running.js +0 -19
  369. package/lib/static/modules/reducers/skips.js +0 -15
  370. package/lib/static/modules/reducers/stats.js +0 -21
  371. package/lib/static/modules/reducers/stopping.js +0 -16
  372. package/lib/static/modules/reducers/tree/helpers.js +0 -44
  373. package/lib/static/modules/reducers/tree/index.js +0 -369
  374. package/lib/static/modules/reducers/tree/nodes/browsers.js +0 -116
  375. package/lib/static/modules/reducers/tree/nodes/images.js +0 -59
  376. package/lib/static/modules/reducers/tree/nodes/results.js +0 -39
  377. package/lib/static/modules/reducers/tree/nodes/suites.js +0 -271
  378. package/lib/static/modules/reducers/view.js +0 -93
  379. package/lib/static/modules/selectors/grouped-tests.js +0 -8
  380. package/lib/static/modules/selectors/index.js +0 -3
  381. package/lib/static/modules/selectors/stats.js +0 -33
  382. package/lib/static/modules/selectors/tree.js +0 -269
  383. package/lib/static/modules/selectors/view.js +0 -5
  384. package/lib/static/modules/store.js +0 -25
  385. package/lib/static/modules/web-vitals.js +0 -13
  386. package/lib/static/modules/yandex-metrika.js +0 -50
  387. package/lib/static/report.min.css +0 -1
  388. package/lib/static/report.min.js +0 -124
  389. package/lib/static/styles.css +0 -937
  390. package/lib/static/template.html +0 -13
  391. package/lib/workers/worker.js +0 -15
  392. package/webpack.common.js +0 -95
  393. package/webpack.dev.js +0 -25
  394. package/webpack.prod.js +0 -19
  395. /package/{lib → build/lib}/static/gui.html +0 -0
  396. /package/{lib → build/lib}/static/icons/favicon-failure.png +0 -0
  397. /package/{lib → build/lib}/static/icons/favicon-running.png +0 -0
  398. /package/{lib → build/lib}/static/icons/favicon-success.png +0 -0
  399. /package/{lib → build/lib}/static/icons/favicon.png +0 -0
  400. /package/{lib → build/lib}/static/index.html +0 -0
@@ -1,31 +0,0 @@
1
- import React, {Component} from 'react';
2
- import {connect} from 'react-redux';
3
- import {Label} from 'semantic-ui-react';
4
- import {version} from '../../../../package.json';
5
-
6
- class ReportInfo extends Component {
7
- render() {
8
- const {gui, date} = this.props;
9
-
10
- return (
11
- <div className="report-info">
12
- <Label className="control-label">
13
- Version
14
- <Label.Detail>
15
- {version}
16
- </Label.Detail>
17
- </Label>
18
- {!gui && <Label className="control-label">
19
- Created at
20
- <Label.Detail>
21
- {date}
22
- </Label.Detail>
23
- </Label>}
24
- </div>
25
- );
26
- }
27
- }
28
-
29
- export default connect(
30
- ({gui, date}) => ({gui, date})
31
- )(ReportInfo);
@@ -1,129 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {useEffect, useState} from 'react';
4
- import {bindActionCreators} from 'redux';
5
- import {isEmpty} from 'lodash';
6
- import {connect} from 'react-redux';
7
- import PropTypes from 'prop-types';
8
- import classNames from 'classnames';
9
- import * as actions from '../../../modules/actions';
10
- import Popup from '../../popup';
11
- import {getFailedTests, getCheckedTests} from '../../../modules/selectors/tree';
12
- import useLocalStorage from '../../../hooks/useLocalStorage';
13
-
14
- import './index.styl';
15
-
16
- const RunMode = Object.freeze({
17
- ALL: 'All',
18
- FAILED: 'Failed',
19
- CHECKED: 'Checked'
20
- });
21
-
22
- const RunButton = ({actions, autoRun, isDisabled, isRunning, failedTests, checkedTests}) => {
23
- const [mode, setMode] = useState(RunMode.ALL);
24
- const [showCheckboxes] = useLocalStorage('showCheckboxes', false);
25
-
26
- const btnClassName = classNames('btn', {'button_blink': isRunning});
27
-
28
- const shouldDisableFailed = isEmpty(failedTests);
29
- const shouldDisableChecked = !showCheckboxes || isEmpty(checkedTests);
30
-
31
- const selectAllTests = () => setMode(RunMode.ALL);
32
- const selectFailedTests = () => !shouldDisableFailed && setMode(RunMode.FAILED);
33
- const selectCheckedTests = () => !shouldDisableChecked && setMode(RunMode.CHECKED);
34
-
35
- const runAllTests = () => actions.runAllTests();
36
- const runFailedTests = () => actions.runFailedTests(failedTests);
37
- const runCheckedTests = () => actions.retrySuite(checkedTests);
38
-
39
- const handleRunClick = () => {
40
- const action = {
41
- [RunMode.ALL]: runAllTests,
42
- [RunMode.FAILED]: runFailedTests,
43
- [RunMode.CHECKED]: runCheckedTests
44
- }[mode];
45
-
46
- action();
47
- };
48
-
49
- useEffect(() => {
50
- if (autoRun) {
51
- runAllTests();
52
- }
53
- }, []);
54
-
55
- useEffect(() => {
56
- selectCheckedTests();
57
- }, [shouldDisableChecked]);
58
-
59
- useEffect(() => {
60
- const shouldResetFailedMode = mode === RunMode.FAILED && shouldDisableFailed;
61
- const shouldResetCheckedMode = mode === RunMode.CHECKED && shouldDisableChecked;
62
-
63
- if (shouldResetFailedMode || shouldResetCheckedMode) {
64
- setMode(RunMode.ALL);
65
- }
66
- }, [shouldDisableFailed, shouldDisableChecked]);
67
-
68
- return (
69
- <div className='run-button'>
70
- <button disabled={isDisabled} onClick={handleRunClick} className={btnClassName}>
71
- {isRunning ? 'Running' : `Run ${mode.toLowerCase()} tests`}
72
- </button>
73
- {!isDisabled && <Popup
74
- action='hover'
75
- hideOnClick={true}
76
- target={<div className='run-button__dropdown' />}
77
- >
78
- <ul className='run-mode'>
79
- <li
80
- className='run-mode__item'
81
- onClick={selectAllTests}
82
- >
83
- {RunMode.ALL}
84
- </li>
85
- <li
86
- className={classNames('run-mode__item', {'run-mode__item_disabled': shouldDisableFailed})}
87
- onClick={selectFailedTests}>{RunMode.FAILED}
88
- </li>
89
- <li
90
- className={classNames('run-mode__item', {'run-mode__item_disabled': shouldDisableChecked})}
91
- onClick={selectCheckedTests}
92
- >
93
- {RunMode.CHECKED}
94
- </li>
95
- </ul>
96
- </Popup>}
97
- </div>
98
- );
99
- };
100
-
101
- RunButton.propTypes = {
102
- // from store
103
- autoRun: PropTypes.bool.isRequired,
104
- isDisabled: PropTypes.bool,
105
- isRunning: PropTypes.bool,
106
- failedTests: PropTypes.arrayOf(PropTypes.shape({
107
- testName: PropTypes.string,
108
- browserName: PropTypes.string
109
- })).isRequired,
110
- checkedTests: PropTypes.arrayOf(PropTypes.shape({
111
- testName: PropTypes.string,
112
- browserName: PropTypes.string
113
- })).isRequired
114
- };
115
-
116
- export default connect(
117
- (state) => {
118
- const autoRun = state.autoRun;
119
- const allRootSuiteIds = state.tree.suites.allRootIds;
120
- const processing = state.processing;
121
- const isDisabled = !allRootSuiteIds.length || processing;
122
- const isRunning = state.running;
123
- const failedTests = getFailedTests(state);
124
- const checkedTests = getCheckedTests(state);
125
-
126
- return {autoRun, isDisabled, isRunning, failedTests, checkedTests};
127
- },
128
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
129
- )(RunButton);
@@ -1,49 +0,0 @@
1
- .run-button {
2
- display: inline-flex;
3
- align-items: center;
4
- cursor: pointer;
5
- width: 143px;
6
- font-size: 11px;
7
- line-height: 11px;
8
- border: 1px solid #ccc;
9
- border-radius: 2px;
10
- background-color: #ffeba0;
11
-
12
- .btn {
13
- flex-grow: 1;
14
- height: 100%;
15
- background-color: #ffeba0;
16
- cursor: pointer;
17
- border: none;
18
- }
19
-
20
- .run-button__dropdown {
21
- font-family: Dropdown;
22
-
23
- &::before {
24
- content: '\f0d7';
25
- padding: 5px;
26
- border-left: 1px solid #ccc;
27
- }
28
- }
29
-
30
- .popup__content {
31
- padding: 0;
32
- }
33
-
34
- .run-mode {
35
- padding: 0;
36
-
37
- .run-mode__item {
38
- font-size: 13px;
39
- padding: 5px 10px;
40
- list-style: none;
41
- user-select: none;
42
-
43
- &.run-mode__item_disabled {
44
- color: #939393;
45
- cursor: auto;
46
- }
47
- }
48
- }
49
- }
@@ -1,51 +0,0 @@
1
- import React, {Component} from 'react';
2
- import PropTypes from 'prop-types';
3
- import {Label, Dropdown} from 'semantic-ui-react';
4
- import classNames from 'classnames';
5
-
6
- import './index.styl';
7
-
8
- export default class ControlSelect extends Component {
9
- static propTypes = {
10
- label: PropTypes.string.isRequired,
11
- value: PropTypes.string.isRequired,
12
- handler: PropTypes.func.isRequired,
13
- options: PropTypes.arrayOf(PropTypes.shape({
14
- value: PropTypes.string,
15
- text: PropTypes.string
16
- })).isRequired,
17
- extendClassNames: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
18
- }
19
-
20
- _onChange = (_, dom) => {
21
- this.props.handler(dom.value);
22
- }
23
-
24
- render() {
25
- const {value, label, options, extendClassNames} = this.props;
26
- const formattedOpts = options.map(({value, text}) => ({
27
- value,
28
- text,
29
- key: value
30
- }));
31
-
32
- const className = classNames(
33
- 'select',
34
- 'select_type_control',
35
- extendClassNames
36
- );
37
-
38
- return (
39
- <div className={className}>
40
- <Label className="select__label">{label}</Label>
41
- <Dropdown
42
- className="select__dropdown"
43
- selection
44
- options={formattedOpts}
45
- value={value}
46
- onChange={this._onChange}
47
- />
48
- </div>
49
- );
50
- }
51
- }
@@ -1,94 +0,0 @@
1
- import React, {Component, Fragment} from 'react';
2
- import {bindActionCreators} from 'redux';
3
- import {connect} from 'react-redux';
4
- import PropTypes from 'prop-types';
5
- import {Label, Dropdown} from 'semantic-ui-react';
6
- import classNames from 'classnames';
7
- import {isEmpty} from 'lodash';
8
-
9
- import * as actions from '../../../modules/actions';
10
- import {groupedTestsType} from '../../group-tests/prop-types';
11
- import {SECTIONS, KEY_DELIMITER} from '../../../../constants/group-tests';
12
- import {getParsedKeyToGroupTestsBy} from '../../../modules/selectors/grouped-tests';
13
-
14
- import './index.styl';
15
-
16
- class GroupTestsSelect extends Component {
17
- static propTypes = {
18
- actions: PropTypes.object.isRequired,
19
- // from store
20
- keyToGroupTestsBy: PropTypes.string.isRequired,
21
- groupedTests: groupedTestsType.isRequired,
22
- selectedGroupSection: PropTypes.string,
23
- selectedGroupKey: PropTypes.string
24
- }
25
-
26
- _groupTestsByKey = (_, dom) => {
27
- if (dom.value !== this.props.keyToGroupTestsBy) {
28
- this.props.actions.groupTestsByKey(dom.value);
29
- }
30
- }
31
-
32
- _renderSection(sectionName) {
33
- const {groupedTests} = this.props;
34
- const keys = groupedTests[sectionName].allKeys;
35
-
36
- if (isEmpty(keys)) {
37
- return null;
38
- }
39
-
40
- return (
41
- <Fragment key={sectionName}>
42
- <Dropdown.Divider/>
43
- <Dropdown.Header content={sectionName} />
44
- <Dropdown.Divider/>
45
- {keys.map(key => {
46
- const id = getGroupElemId(sectionName, key);
47
- const isActive = id === this.props.keyToGroupTestsBy;
48
-
49
- return <Dropdown.Item key={id} value={id} active={isActive} onClick={this._groupTestsByKey}>{key}</Dropdown.Item>;
50
- })}
51
- </Fragment>
52
- );
53
- }
54
-
55
- render() {
56
- const {selectedGroupKey} = this.props;
57
- const className = classNames(
58
- 'select',
59
- 'select_type_group'
60
- );
61
-
62
- return (
63
- <div className={className}>
64
- <Label className="select__label">Group by</Label>
65
- <Dropdown
66
- className="select__dropdown selection"
67
- value={selectedGroupKey}
68
- text={selectedGroupKey}
69
- onChange={this._groupTestsByKey}
70
- placeholder="select key"
71
- clearable={Boolean(selectedGroupKey)}
72
- >
73
- <Dropdown.Menu>
74
- {Object.values(SECTIONS).map((sectionName) => this._renderSection(sectionName))}
75
- </Dropdown.Menu>
76
- </Dropdown>
77
- </div>
78
- );
79
- }
80
- }
81
-
82
- export default connect(
83
- (state) =>{
84
- const {view: {keyToGroupTestsBy}, groupedTests} = state;
85
- const [selectedGroupSection, selectedGroupKey] = getParsedKeyToGroupTestsBy(state);
86
-
87
- return {keyToGroupTestsBy, groupedTests, selectedGroupSection, selectedGroupKey};
88
- },
89
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
90
- )(GroupTestsSelect);
91
-
92
- function getGroupElemId(groupName, groupKey) {
93
- return `${groupName}${KEY_DELIMITER}${groupKey}`;
94
- }
@@ -1,57 +0,0 @@
1
- .select
2
- display: inline-flex
3
- height: 25px
4
-
5
- .select__label
6
- font-size: 11px
7
- margin: 0
8
- padding: 0 5px
9
- line-height: 25px
10
- background-color: #e7e7e7
11
- border-radius: 2px
12
- border-top-right-radius: 0
13
- border-bottom-right-radius: 0
14
-
15
- .select__dropdown.ui.dropdown
16
- min-height: 25px
17
- min-width: 70px
18
- font-size: 11px
19
- line-height: 13px
20
- padding: 5px
21
- padding-right: 25px
22
- border: 1px solid #ccc
23
- border-radius: 2px
24
- border-top-left-radius: 0
25
- border-bottom-left-radius: 0
26
-
27
- &:hover
28
- border: 1px solid #555;
29
-
30
- &.active
31
- &:hover
32
- .menu
33
- border-color: #ffd947
34
-
35
- .icon.dropdown
36
- padding: 0
37
- margin: 0
38
- line-height: initial
39
-
40
- &.diff-mode
41
- .select__dropdown.ui.dropdown
42
- min-width: 95px
43
-
44
- &.select_type_group
45
- .select__dropdown.ui.dropdown
46
- min-width: 110px
47
-
48
- .menu > .header
49
- margin: 0
50
- padding: 0 0 0 5px
51
- border-bottom: 0
52
-
53
- .menu > .divider
54
- margin: 5px 0
55
-
56
- .menu > .item
57
- padding-left: 10px !important
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- import React from 'react';
4
- import {Checkbox} from 'semantic-ui-react';
5
- import useLocalStorage from '../../hooks/useLocalStorage';
6
-
7
- const ShowCheckboxesInput = () => {
8
- const [showCheckboxes, setShowCheckboxes] = useLocalStorage('showCheckboxes', false);
9
-
10
- const onChange = () => setShowCheckboxes(!showCheckboxes);
11
-
12
- return (
13
- <div className="toggle-control">
14
- <Checkbox
15
- toggle
16
- label="Checkboxes"
17
- onChange={onChange}
18
- checked={showCheckboxes}
19
- />
20
- </div>
21
- );
22
- };
23
-
24
- export default ShowCheckboxesInput;
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {useState} from 'react';
4
- import PropTypes from 'prop-types';
5
- import {bindActionCreators} from 'redux';
6
- import {connect} from 'react-redux';
7
- import {Checkbox} from 'semantic-ui-react';
8
- import * as actions from '../../modules/actions';
9
-
10
- const StrictMatchFilterInput = ({strictMatchFilter, actions}) => {
11
- const [checked, setChecked] = useState(strictMatchFilter);
12
-
13
- const onChange = () => {
14
- const newState = !checked;
15
- setChecked(newState);
16
- actions.setStrictMatchFilter(newState);
17
- };
18
-
19
- return (
20
- <div className="toggle-control">
21
- <Checkbox
22
- toggle
23
- label="Strict match"
24
- onChange={onChange}
25
- checked={checked}
26
- />
27
- </div>
28
- );
29
- };
30
-
31
- StrictMatchFilterInput.propTypes = {
32
- strictMatchFilter: PropTypes.bool.isRequired,
33
- actions: PropTypes.object.isRequired
34
- };
35
-
36
- export default connect(
37
- (state) => ({strictMatchFilter: state.view.strictMatchFilter}),
38
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
39
- )(StrictMatchFilterInput);
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {useState, useCallback} from 'react';
4
- import PropTypes from 'prop-types';
5
- import {bindActionCreators} from 'redux';
6
- import {connect} from 'react-redux';
7
- import {debounce} from 'lodash';
8
- import * as actions from '../../modules/actions';
9
-
10
- const TestNameFilterInput = ({actions, testNameFilter: testNameFilterProp}) => {
11
- const [testNameFilter, setTestNameFilter] = useState(testNameFilterProp);
12
-
13
- const _debouncedUpdate = useCallback(debounce(
14
- (testName) => actions.updateTestNameFilter(testName),
15
- 500,
16
- {maxWait: 3000}
17
- ), []);
18
-
19
- const onChange = (event) => {
20
- setTestNameFilter(event.target.value);
21
- _debouncedUpdate(event.target.value);
22
- };
23
-
24
- return (
25
- <input
26
- className="filter__input-name"
27
- value={testNameFilter}
28
- placeholder="filter by test name"
29
- onChange={onChange}
30
- />
31
- );
32
- };
33
-
34
- TestNameFilterInput.propTypes = {
35
- testNameFilter: PropTypes.string.isRequired,
36
- actions: PropTypes.object.isRequired
37
- };
38
-
39
- export default connect(
40
- (state) => ({testNameFilter: state.view.testNameFilter}),
41
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
42
- )(TestNameFilterInput);
@@ -1,23 +0,0 @@
1
- import React, {useEffect, useRef} from 'react';
2
- import {isEmpty} from 'lodash';
3
-
4
- export default function CustomScripts(props) {
5
- const {scripts} = props;
6
-
7
- if (isEmpty(scripts)) {
8
- return null;
9
- }
10
-
11
- const ref = useRef(null);
12
-
13
- useEffect(() => {
14
- scripts.forEach((script) => {
15
- const s = document.createElement('script');
16
- s.type = 'text/javascript';
17
- s.innerHTML = `(${script})();`;
18
- ref.current.appendChild(s);
19
- });
20
- }, [scripts]);
21
-
22
- return <div className="custom-scripts" ref={ref}></div>;
23
- }
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import PropTypes from 'prop-types';
5
- import classNames from 'classnames';
6
- import {isEmpty, isFunction} from 'lodash';
7
-
8
- export default class Details extends Component {
9
- static propTypes = {
10
- title: PropTypes.oneOfType([PropTypes.element, PropTypes.string]).isRequired,
11
- content: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.element, PropTypes.array]).isRequired,
12
- extendClassNames: PropTypes.oneOfType([PropTypes.array, PropTypes.string]),
13
- onClick: PropTypes.func
14
- };
15
-
16
- state = {isOpened: false};
17
-
18
- handleClick = () => {
19
- this.setState((state, props) => {
20
- const newState = {isOpened: !state.isOpened};
21
-
22
- if (props.onClick) {
23
- props.onClick(newState);
24
- }
25
-
26
- return newState;
27
- });
28
- }
29
-
30
- render() {
31
- const {title, content, extendClassNames} = this.props;
32
- const className = classNames(
33
- 'details',
34
- extendClassNames
35
- );
36
-
37
- return (
38
- isEmpty(content) && !isFunction(content) ? (
39
- <div className={className}>
40
- {title}
41
- </div>
42
- ) : (
43
- <details className={className}>
44
- <summary className='details__summary' onClick={this.handleClick}>
45
- {title}
46
- </summary>
47
- {
48
- this.state.isOpened
49
- ? <div className='details__content'>
50
- {isFunction(content) ? content() : content}
51
- </div>
52
- : null
53
- }
54
- </details>
55
- )
56
- );
57
- }
58
- }
@@ -1,26 +0,0 @@
1
- import {Component} from 'react';
2
- import PropTypes from 'prop-types';
3
-
4
- export default class ErrorBoundary extends Component {
5
- static propTypes = {
6
- fallback: PropTypes.oneOfType([PropTypes.element, PropTypes.string])
7
- };
8
- state = {hasError: false};
9
-
10
- static getDerivedStateFromError() {
11
- return {hasError: true};
12
- }
13
-
14
- componentDidCatch(error, errorInfo) {
15
- console.error('Something failed but catched by error boundary.');
16
- console.error(error);
17
- console.error(errorInfo);
18
- }
19
-
20
- render() {
21
- if (this.state.hasError) {
22
- return this.props.fallback || null;
23
- }
24
- return this.props.children;
25
- }
26
- }