html-reporter 9.9.2 → 9.10.1

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 (396) 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/build/lib/constants/checked-statuses.js +7 -0
  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/{lib → build/lib}/static/report.min.css +1 -1
  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/2html-reporter.iml +0 -9
  200. package/CHANGELOG.md +0 -2886
  201. package/docs/en/html-reporter-api.md +0 -198
  202. package/docs/en/html-reporter-commands.md +0 -96
  203. package/docs/en/html-reporter-custom-gui.md +0 -99
  204. package/docs/en/html-reporter-events.md +0 -125
  205. package/docs/en/html-reporter-plugins.md +0 -265
  206. package/docs/en/html-reporter-setup.md +0 -378
  207. package/docs/en/html-reporter.md +0 -8
  208. package/docs/ru/html-reporter-api.md +0 -198
  209. package/docs/ru/html-reporter-commands.md +0 -96
  210. package/docs/ru/html-reporter-custom-gui.md +0 -99
  211. package/docs/ru/html-reporter-events.md +0 -125
  212. package/docs/ru/html-reporter-plugins.md +0 -265
  213. package/docs/ru/html-reporter-setup.md +0 -378
  214. package/docs/ru/html-reporter.md +0 -8
  215. package/lib/common-utils.js +0 -117
  216. package/lib/constants/browser.js +0 -3
  217. package/lib/constants/database.js +0 -49
  218. package/lib/constants/extension-points.js +0 -6
  219. package/lib/db-utils/common.js +0 -76
  220. package/lib/gui/index.js +0 -19
  221. package/lib/local-images-saver.js +0 -11
  222. package/lib/static/components/bottom-progress-bar/index.js +0 -42
  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 -32
  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 -81
  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.js +0 -27
  241. package/lib/static/components/controls/selects/control.js +0 -51
  242. package/lib/static/components/controls/selects/group-tests.js +0 -94
  243. package/lib/static/components/controls/selects/index.styl +0 -57
  244. package/lib/static/components/controls/strict-match-filter-input.js +0 -39
  245. package/lib/static/components/controls/test-name-filter-input.js +0 -42
  246. package/lib/static/components/custom-scripts.js +0 -23
  247. package/lib/static/components/details.js +0 -58
  248. package/lib/static/components/error-boundary.js +0 -26
  249. package/lib/static/components/extension-point.js +0 -106
  250. package/lib/static/components/favicon-changer.js +0 -56
  251. package/lib/static/components/group-tests/item.js +0 -39
  252. package/lib/static/components/group-tests/list.js +0 -71
  253. package/lib/static/components/group-tests/prop-types.js +0 -12
  254. package/lib/static/components/gui.js +0 -105
  255. package/lib/static/components/header/header.css +0 -5
  256. package/lib/static/components/header/index.js +0 -26
  257. package/lib/static/components/header/summary/dbBtn.js +0 -36
  258. package/lib/static/components/header/summary/dbSummary.js +0 -49
  259. package/lib/static/components/header/summary/index.js +0 -43
  260. package/lib/static/components/header/summary/item.js +0 -28
  261. package/lib/static/components/header/summary/summary.css +0 -77
  262. package/lib/static/components/icons/arrow.js +0 -24
  263. package/lib/static/components/icons/arrows-close.js +0 -25
  264. package/lib/static/components/icons/arrows-move.js +0 -24
  265. package/lib/static/components/icons/arrows-open.js +0 -25
  266. package/lib/static/components/icons/view-in-browser/index.js +0 -59
  267. package/lib/static/components/icons/view-in-browser/index.styl +0 -28
  268. package/lib/static/components/loading.js +0 -25
  269. package/lib/static/components/main-tree.js +0 -23
  270. package/lib/static/components/modals/find-same-diffs.js +0 -34
  271. package/lib/static/components/modals/index.js +0 -6
  272. package/lib/static/components/modals/modal.css +0 -3
  273. package/lib/static/components/modals/modal.js +0 -27
  274. package/lib/static/components/modals/screenshot-accepter/body.js +0 -88
  275. package/lib/static/components/modals/screenshot-accepter/header.js +0 -192
  276. package/lib/static/components/modals/screenshot-accepter/index.js +0 -228
  277. package/lib/static/components/modals/screenshot-accepter/meta.js +0 -32
  278. package/lib/static/components/modals/screenshot-accepter/style.css +0 -115
  279. package/lib/static/components/popup/index.js +0 -85
  280. package/lib/static/components/popup/index.styl +0 -37
  281. package/lib/static/components/progress-bar/index.js +0 -13
  282. package/lib/static/components/progress-bar/index.styl +0 -24
  283. package/lib/static/components/report.js +0 -72
  284. package/lib/static/components/retry-switcher/index.js +0 -36
  285. package/lib/static/components/retry-switcher/item.js +0 -55
  286. package/lib/static/components/section/body/description.js +0 -24
  287. package/lib/static/components/section/body/history/index.js +0 -29
  288. package/lib/static/components/section/body/history/index.styl +0 -4
  289. package/lib/static/components/section/body/index.js +0 -114
  290. package/lib/static/components/section/body/meta-info/content.js +0 -114
  291. package/lib/static/components/section/body/meta-info/index.js +0 -33
  292. package/lib/static/components/section/body/result.js +0 -41
  293. package/lib/static/components/section/body/tabs.js +0 -52
  294. package/lib/static/components/section/section-browser.js +0 -113
  295. package/lib/static/components/section/section-common.js +0 -100
  296. package/lib/static/components/section/section-wrapper.js +0 -20
  297. package/lib/static/components/section/title/browser-skipped.js +0 -22
  298. package/lib/static/components/section/title/browser.js +0 -74
  299. package/lib/static/components/section/title/simple.js +0 -82
  300. package/lib/static/components/state/error-details.js +0 -18
  301. package/lib/static/components/state/index.js +0 -208
  302. package/lib/static/components/state/screenshot/diff-circle.js +0 -66
  303. package/lib/static/components/state/screenshot/full.js +0 -28
  304. package/lib/static/components/state/screenshot/resized.js +0 -90
  305. package/lib/static/components/state/screenshot/with-encode-uri.js +0 -44
  306. package/lib/static/components/state/screenshot/with-synced-scale.js +0 -116
  307. package/lib/static/components/state/state-error.js +0 -140
  308. package/lib/static/components/state/state-fail/index.js +0 -161
  309. package/lib/static/components/state/state-fail/index.styl +0 -31
  310. package/lib/static/components/state/state-fail/onion-skin-diff/index.js +0 -43
  311. package/lib/static/components/state/state-fail/onion-skin-diff/index.styl +0 -19
  312. package/lib/static/components/state/state-fail/prop-types.js +0 -16
  313. package/lib/static/components/state/state-fail/swipe-diff/index.js +0 -138
  314. package/lib/static/components/state/state-fail/swipe-diff/index.styl +0 -82
  315. package/lib/static/components/state/state-fail/switch-diff/index.js +0 -36
  316. package/lib/static/components/state/state-fail/switch-diff/index.styl +0 -12
  317. package/lib/static/components/state/state-fail/useFitImages.js +0 -63
  318. package/lib/static/components/state/state-success.js +0 -23
  319. package/lib/static/components/sticky-header/gui.js +0 -12
  320. package/lib/static/components/sticky-header/index.js +0 -36
  321. package/lib/static/components/sticky-header/index.styl +0 -37
  322. package/lib/static/components/sticky-header/report.js +0 -14
  323. package/lib/static/components/suites.js +0 -157
  324. package/lib/static/containers/array/array.styl +0 -32
  325. package/lib/static/containers/array/index.js +0 -61
  326. package/lib/static/containers/modal.js +0 -43
  327. package/lib/static/gui.css +0 -161
  328. package/lib/static/gui.js +0 -14
  329. package/lib/static/gui.min.css +0 -1
  330. package/lib/static/gui.min.js +0 -124
  331. package/lib/static/hooks/useElementSize.js +0 -30
  332. package/lib/static/hooks/useEventListener.js +0 -25
  333. package/lib/static/hooks/useWindowSize.js +0 -25
  334. package/lib/static/index.js +0 -14
  335. package/lib/static/modules/action-names.js +0 -57
  336. package/lib/static/modules/actions.js +0 -332
  337. package/lib/static/modules/custom-queries.js +0 -27
  338. package/lib/static/modules/default-state.js +0 -84
  339. package/lib/static/modules/load-plugin.js +0 -109
  340. package/lib/static/modules/local-storage-wrapper.js +0 -54
  341. package/lib/static/modules/middlewares/local-storage.js +0 -30
  342. package/lib/static/modules/middlewares/metrika.js +0 -121
  343. package/lib/static/modules/plugins.js +0 -52
  344. package/lib/static/modules/query-params.js +0 -98
  345. package/lib/static/modules/reducers/api-values.js +0 -25
  346. package/lib/static/modules/reducers/auto-run.js +0 -14
  347. package/lib/static/modules/reducers/bottom-progress-bar.js +0 -16
  348. package/lib/static/modules/reducers/browsers.js +0 -43
  349. package/lib/static/modules/reducers/close-ids.js +0 -12
  350. package/lib/static/modules/reducers/config.js +0 -48
  351. package/lib/static/modules/reducers/date.js +0 -16
  352. package/lib/static/modules/reducers/db.js +0 -30
  353. package/lib/static/modules/reducers/fetch-db-details.js +0 -13
  354. package/lib/static/modules/reducers/grouped-tests/by/meta.js +0 -31
  355. package/lib/static/modules/reducers/grouped-tests/by/result.js +0 -57
  356. package/lib/static/modules/reducers/grouped-tests/helpers.js +0 -91
  357. package/lib/static/modules/reducers/grouped-tests/index.js +0 -52
  358. package/lib/static/modules/reducers/gui.js +0 -16
  359. package/lib/static/modules/reducers/index.js +0 -56
  360. package/lib/static/modules/reducers/loading.js +0 -12
  361. package/lib/static/modules/reducers/modals.js +0 -16
  362. package/lib/static/modules/reducers/notifications.js +0 -12
  363. package/lib/static/modules/reducers/plugins.js +0 -25
  364. package/lib/static/modules/reducers/processing.js +0 -21
  365. package/lib/static/modules/reducers/running.js +0 -19
  366. package/lib/static/modules/reducers/skips.js +0 -15
  367. package/lib/static/modules/reducers/stats.js +0 -21
  368. package/lib/static/modules/reducers/stopping.js +0 -16
  369. package/lib/static/modules/reducers/tree/helpers.js +0 -28
  370. package/lib/static/modules/reducers/tree/index.js +0 -314
  371. package/lib/static/modules/reducers/tree/nodes/browsers.js +0 -109
  372. package/lib/static/modules/reducers/tree/nodes/images.js +0 -59
  373. package/lib/static/modules/reducers/tree/nodes/results.js +0 -39
  374. package/lib/static/modules/reducers/tree/nodes/suites.js +0 -239
  375. package/lib/static/modules/reducers/view.js +0 -93
  376. package/lib/static/modules/selectors/grouped-tests.js +0 -8
  377. package/lib/static/modules/selectors/index.js +0 -3
  378. package/lib/static/modules/selectors/stats.js +0 -33
  379. package/lib/static/modules/selectors/tree.js +0 -256
  380. package/lib/static/modules/selectors/view.js +0 -5
  381. package/lib/static/modules/store.js +0 -25
  382. package/lib/static/modules/web-vitals.js +0 -13
  383. package/lib/static/modules/yandex-metrika.js +0 -50
  384. package/lib/static/report.min.js +0 -124
  385. package/lib/static/styles.css +0 -887
  386. package/lib/static/template.html +0 -13
  387. package/lib/workers/worker.js +0 -15
  388. package/webpack.common.js +0 -95
  389. package/webpack.dev.js +0 -25
  390. package/webpack.prod.js +0 -19
  391. /package/{lib → build/lib}/static/gui.html +0 -0
  392. /package/{lib → build/lib}/static/icons/favicon-failure.png +0 -0
  393. /package/{lib → build/lib}/static/icons/favicon-running.png +0 -0
  394. /package/{lib → build/lib}/static/icons/favicon-success.png +0 -0
  395. /package/{lib → build/lib}/static/icons/favicon.png +0 -0
  396. /package/{lib → build/lib}/static/index.html +0 -0
@@ -1,114 +0,0 @@
1
- import path from 'path';
2
- import React, {Component, Fragment} from 'react';
3
- import {connect} from 'react-redux';
4
- import ClipboardButton from 'react-clipboard.js';
5
- import PropTypes from 'prop-types';
6
- import {map, mapValues, isObject, omitBy, isEmpty} from 'lodash';
7
- import {isUrl, buildUrl} from '../../../../../common-utils';
8
-
9
- const mkLinkToUrl = (url, text = url) => {
10
- return <Fragment>
11
- <a data-suite-view-link={url} className="custom-icon_view-local" target="_blank" href={url}>
12
- {text}
13
- </a>
14
- <ClipboardButton
15
- className="button custom-icon custom-icon_copy-to-clipboard"
16
- button-title="copy to clipboard"
17
- data-clipboard-text={url}>
18
- </ClipboardButton>
19
- </Fragment>;
20
- };
21
-
22
- const serializeMetaValues = (metaInfo) => mapValues(metaInfo, (v) => isObject(v) ? JSON.stringify(v) : v);
23
-
24
- const resolveUrl = (baseUrl, value) => {
25
- const parsedBaseUrl = new URL(baseUrl);
26
- const baseSearchParams = new URLSearchParams(parsedBaseUrl.search);
27
- if (baseSearchParams) {
28
- parsedBaseUrl.search = '';
29
- }
30
-
31
- const resolvedUrl = new URL(value, parsedBaseUrl.href);
32
-
33
- for (let [key, value] of baseSearchParams) {
34
- resolvedUrl.searchParams.append(key, value);
35
- }
36
-
37
- return resolvedUrl.href;
38
- };
39
-
40
- const metaToElements = (metaInfo, metaInfoBaseUrls) => {
41
- return map(metaInfo, (value, key) => {
42
- if (isUrl(value)) {
43
- value = mkLinkToUrl(value);
44
- } else if (metaInfoBaseUrls[key]) {
45
- const baseUrl = metaInfoBaseUrls[key];
46
- const link = isUrl(baseUrl) ? resolveUrl(baseUrl, value) : path.join(baseUrl, value);
47
- value = mkLinkToUrl(link, value);
48
- } else if (typeof value === 'boolean') {
49
- value = value.toString();
50
- }
51
-
52
- return <div key={key} className="meta-info__item">
53
- <span className="meta-info__item-key">{key}: </span>
54
- <div className="meta-info__item-value">{value}</div>
55
- </div>;
56
- });
57
- };
58
-
59
- class MetaInfoContent extends Component {
60
- static propTypes = {
61
- resultId: PropTypes.string.isRequired,
62
- // from store
63
- result: PropTypes.shape({
64
- metaInfo: PropTypes.object.isRequired,
65
- suiteUrl: PropTypes.string.isRequired
66
- }).isRequired,
67
- testName: PropTypes.string.isRequired,
68
- metaInfoBaseUrls: PropTypes.object.isRequired,
69
- apiValues: PropTypes.shape({
70
- extraItems: PropTypes.object.isRequired,
71
- metaInfoExtenders: PropTypes.object.isRequired
72
- }).isRequired,
73
- parsedHost: PropTypes.object
74
- };
75
-
76
- getExtraMetaInfo = () => {
77
- const {testName, apiValues: {extraItems, metaInfoExtenders}} = this.props;
78
-
79
- return omitBy(mapValues(metaInfoExtenders, (extender) => {
80
- const stringifiedFn = extender.startsWith('return') ? extender : `return ${extender}`;
81
-
82
- return new Function(stringifiedFn)()({testName}, extraItems);
83
- }), isEmpty);
84
- }
85
-
86
- render() {
87
- const {result, metaInfoBaseUrls, parsedHost} = this.props;
88
-
89
- const serializedMetaValues = serializeMetaValues(result.metaInfo);
90
- const extraMetaInfo = this.getExtraMetaInfo();
91
- const formattedMetaInfo = {
92
- ...serializedMetaValues,
93
- ...extraMetaInfo,
94
- url: mkLinkToUrl(buildUrl(result.suiteUrl, parsedHost), result.metaInfo.url)
95
- };
96
-
97
- return metaToElements(formattedMetaInfo, metaInfoBaseUrls);
98
- }
99
- }
100
-
101
- export default connect(
102
- ({tree, config: {metaInfoBaseUrls}, apiValues, view}, {resultId}) => {
103
- const result = tree.results.byId[resultId];
104
- const browser = tree.browsers.byId[result.parentId];
105
-
106
- return {
107
- result,
108
- testName: browser.parentId,
109
- metaInfoBaseUrls,
110
- apiValues,
111
- parsedHost: view.parsedHost
112
- };
113
- }
114
- )(MetaInfoContent);
@@ -1,33 +0,0 @@
1
- import React, {Component} from 'react';
2
- import {connect} from 'react-redux';
3
- import {bindActionCreators} from 'redux';
4
- import PropTypes from 'prop-types';
5
- import MetaInfoContent from './content';
6
- import * as actions from '../../../../modules/actions';
7
- import Details from '../../../details';
8
-
9
- class MetaInfo extends Component {
10
- static propTypes = {
11
- resultId: PropTypes.string.isRequired
12
- };
13
-
14
- onToggleMetaInfo = () => {
15
- this.props.actions.toggleMetaInfo();
16
- }
17
-
18
- render() {
19
- const {resultId} = this.props;
20
-
21
- return <Details
22
- title='Meta'
23
- content={<MetaInfoContent resultId={resultId}/>}
24
- extendClassNames='details_type_text'
25
- onClick={this.onToggleMetaInfo}
26
- />;
27
- }
28
- }
29
-
30
- export default connect(
31
- null,
32
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
33
- )(MetaInfo);
@@ -1,41 +0,0 @@
1
- import React, {Component, Fragment} from 'react';
2
- import {connect} from 'react-redux';
3
- import PropTypes from 'prop-types';
4
- import MetaInfo from './meta-info';
5
- import History from './history';
6
- import Description from './description';
7
- import Tabs from './tabs';
8
- import ExtensionPoint from '../../extension-point';
9
- import {RESULT_META} from '../../../../constants/extension-points';
10
-
11
- class Result extends Component {
12
- static propTypes = {
13
- resultId: PropTypes.string.isRequired,
14
- testName: PropTypes.string.isRequired,
15
- // from store
16
- result: PropTypes.shape({
17
- status: PropTypes.string.isRequired,
18
- imageIds: PropTypes.array.isRequired,
19
- description: PropTypes.string
20
- }).isRequired
21
- }
22
-
23
- render() {
24
- const {result, resultId, testName} = this.props;
25
-
26
- return (
27
- <Fragment>
28
- <ExtensionPoint name={RESULT_META} result={result} testName={testName}>
29
- <MetaInfo resultId={resultId} />
30
- <History resultId={resultId} />
31
- </ExtensionPoint>
32
- {result.description && <Description content={result.description} />}
33
- <Tabs result={result} />
34
- </Fragment>
35
- );
36
- }
37
- }
38
-
39
- export default connect(
40
- ({tree}, {resultId}) => ({result: tree.results.byId[resultId]})
41
- )(Result);
@@ -1,52 +0,0 @@
1
- import React, {Component} from 'react';
2
- import PropTypes from 'prop-types';
3
- import {isEmpty} from 'lodash';
4
- import State from '../../state';
5
- import {isSuccessStatus, isErroredStatus} from '../../../../common-utils';
6
-
7
- export default class Tabs extends Component {
8
- static propTypes = {
9
- result: PropTypes.shape({
10
- id: PropTypes.string.isRequired,
11
- status: PropTypes.string.isRequired,
12
- imageIds: PropTypes.array.isRequired,
13
- multipleTabs: PropTypes.bool.isRequired,
14
- screenshot: PropTypes.bool.isRequired
15
- }).isRequired
16
- }
17
-
18
- _shouldAddErrorTab() {
19
- const {result} = this.props;
20
-
21
- return result.multipleTabs && isErroredStatus(result.status) && !result.screenshot;
22
- }
23
-
24
- _drawTab({key, imageId = null}) {
25
- const {result} = this.props;
26
-
27
- return (
28
- <div key={key} className="tab">
29
- <div className="tab__item tab__item_active">
30
- <State result={result} imageId={imageId} />
31
- </div>
32
- </div>
33
- );
34
- }
35
-
36
- render() {
37
- const {result} = this.props;
38
- const errorTabId = `${result.id}_error`;
39
-
40
- if (isEmpty(result.imageIds)) {
41
- return isSuccessStatus(result.status)
42
- ? null
43
- : this._drawTab({key: errorTabId});
44
- }
45
-
46
- const tabs = result.imageIds.map((imageId) => this._drawTab({key: imageId, imageId}));
47
-
48
- return this._shouldAddErrorTab()
49
- ? tabs.concat(this._drawTab({key: errorTabId}))
50
- : tabs;
51
- }
52
- }
@@ -1,113 +0,0 @@
1
- import React, {Component, Fragment} from 'react';
2
- import {last} from 'lodash';
3
- import {connect} from 'react-redux';
4
- import {bindActionCreators} from 'redux';
5
- import Parser from 'html-react-parser';
6
- import PropTypes from 'prop-types';
7
- import * as actions from '../../modules/actions';
8
- import SectionWrapper from './section-wrapper';
9
- import BrowserTitle from './title/browser';
10
- import BrowserSkippedTitle from './title/browser-skipped';
11
- import Body from './body';
12
- import {isSkippedStatus} from '../../../common-utils';
13
-
14
- class SectionBrowser extends Component {
15
- static propTypes = {
16
- browserId: PropTypes.string.isRequired,
17
- // from store
18
- browser: PropTypes.shape({
19
- name: PropTypes.string.isRequired,
20
- resultIds: PropTypes.arrayOf(PropTypes.string).isRequired,
21
- parentId: PropTypes.string.isRequired
22
- }).isRequired,
23
- lastResult: PropTypes.shape({
24
- id: PropTypes.string.isRequired,
25
- status: PropTypes.string.isRequired,
26
- error: PropTypes.object,
27
- imageIds: PropTypes.arrayOf(PropTypes.string).isRequired,
28
- skipReason: PropTypes.string
29
- }).isRequired,
30
- shouldBeShown: PropTypes.bool.isRequired,
31
- shouldBeOpened: PropTypes.bool.isRequired,
32
- // from SectionCommonWrapper
33
- sectionStatusResolver: PropTypes.func.isRequired
34
- }
35
-
36
- onToggleSection = () => {
37
- const {browserId, shouldBeOpened} = this.props;
38
-
39
- this.props.actions.toggleBrowserSection({browserId, shouldBeOpened: !shouldBeOpened});
40
- }
41
-
42
- _generateSkippedTitle(skipReason) {
43
- return (
44
- <Fragment>
45
- [skipped] {this.props.browser.name}
46
- {skipReason && ', reason: '}
47
- {skipReason && Parser(skipReason)}
48
- </Fragment>
49
- );
50
- }
51
-
52
- render() {
53
- if (!this.props.shouldBeShown) {
54
- return null;
55
- }
56
-
57
- const {browser, shouldBeOpened, lastResult} = this.props;
58
-
59
- const isSkippedLastResult = isSkippedStatus(lastResult.status);
60
- const hasRetries = browser.resultIds.length > 1;
61
-
62
- const title = isSkippedLastResult
63
- ? this._generateSkippedTitle(lastResult.skipReason)
64
- : browser.name;
65
-
66
- // Detect executed test but failed and skipped
67
- const isExecutedResult = hasRetries || lastResult.error || lastResult.imageIds.length > 0;
68
- const isSkipped = isSkippedLastResult && !isExecutedResult;
69
-
70
- const body = isSkipped || !shouldBeOpened
71
- ? null
72
- : (
73
- <Body
74
- browserId={browser.id}
75
- browserName={browser.name}
76
- testName={browser.parentId}
77
- resultIds={browser.resultIds}
78
- />
79
- );
80
-
81
- const section = isSkipped
82
- ? <BrowserSkippedTitle title={title} />
83
- : (
84
- <Fragment>
85
- <BrowserTitle
86
- title={title}
87
- browserId={browser.id}
88
- browserName={browser.name}
89
- lastResultId={lastResult.id}
90
- handler={this.onToggleSection}
91
- />
92
- {body}
93
- </Fragment>
94
- );
95
-
96
- return (
97
- <div className={this.props.sectionStatusResolver({status: lastResult.status, shouldBeOpened})}>
98
- {section}
99
- </div>
100
- );
101
- }
102
- }
103
-
104
- export default connect(
105
- ({tree}, {browserId}) => {
106
- const browser = tree.browsers.byId[browserId];
107
- const {shouldBeOpened, shouldBeShown} = tree.browsers.stateById[browserId];
108
- const lastResult = tree.results.byId[last(browser.resultIds)];
109
-
110
- return {browser, lastResult, shouldBeShown, shouldBeOpened};
111
- },
112
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
113
- )(SectionWrapper(SectionBrowser));
@@ -1,100 +0,0 @@
1
- import React, {Component} from 'react';
2
- import {connect} from 'react-redux';
3
- import {bindActionCreators} from 'redux';
4
- import PropTypes from 'prop-types';
5
- import * as actions from '../../modules/actions';
6
- import SectionWrapper from './section-wrapper';
7
- import SectionBrowser from './section-browser';
8
- import Title from './title/simple';
9
-
10
- class SectionCommon extends Component {
11
- static propTypes = {
12
- suiteId: PropTypes.string.isRequired,
13
- sectionRoot: PropTypes.bool.isRequired,
14
- // from store
15
- suiteName: PropTypes.string.isRequired,
16
- suiteStatus: PropTypes.string.isRequired,
17
- suiteChildIds: PropTypes.array,
18
- suiteBrowserIds: PropTypes.array,
19
- shouldBeShown: PropTypes.bool.isRequired,
20
- shouldBeOpened: PropTypes.bool.isRequired,
21
- // from SectionCommonWrapper
22
- sectionStatusResolver: PropTypes.func.isRequired
23
- }
24
-
25
- onToggleSection = () => {
26
- const {suiteId, shouldBeOpened} = this.props;
27
-
28
- this.props.actions.toggleSuiteSection({suiteId, shouldBeOpened: !shouldBeOpened});
29
- }
30
-
31
- _drawSection() {
32
- const {
33
- suiteId,
34
- suiteName,
35
- suiteStatus,
36
- suiteChildIds,
37
- suiteBrowserIds,
38
- sectionRoot,
39
- sectionStatusResolver,
40
- shouldBeOpened
41
- } = this.props;
42
-
43
- if (!shouldBeOpened) {
44
- return (
45
- <div className={sectionStatusResolver({status: suiteStatus, shouldBeOpened, sectionRoot})}>
46
- <Title name={suiteName} suiteId={suiteId} handler={this.onToggleSection} />
47
- </div>
48
- );
49
- }
50
-
51
- const childSuitesTmpl = suiteChildIds && suiteChildIds.map((suiteId) => {
52
- return <SectionCommonWrapper
53
- key={suiteId}
54
- suiteId={suiteId}
55
- sectionRoot={false}
56
- />;
57
- });
58
-
59
- const browsersTmpl = suiteBrowserIds && suiteBrowserIds.map((browserId) => {
60
- return <SectionBrowser key={browserId} browserId={browserId} />;
61
- });
62
-
63
- return (
64
- <div className={sectionStatusResolver({status: suiteStatus, shouldBeOpened, sectionRoot})}>
65
- <Title name={suiteName} suiteId={suiteId} handler={this.onToggleSection} />
66
- <div className="section__body">
67
- {childSuitesTmpl}
68
- {browsersTmpl}
69
- </div>
70
- </div>
71
- );
72
- }
73
-
74
- render() {
75
- if (!this.props.shouldBeShown) {
76
- return null;
77
- }
78
-
79
- return this._drawSection();
80
- }
81
- }
82
-
83
- const SectionCommonWrapper = connect(
84
- ({tree}, {suiteId}) => {
85
- const suite = tree.suites.byId[suiteId];
86
- const {shouldBeOpened, shouldBeShown} = tree.suites.stateById[suiteId];
87
-
88
- return {
89
- suiteName: suite.name,
90
- suiteStatus: suite.status,
91
- suiteChildIds: suite.suiteIds,
92
- suiteBrowserIds: suite.browserIds,
93
- shouldBeShown,
94
- shouldBeOpened
95
- };
96
- },
97
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
98
- )(SectionWrapper(SectionCommon));
99
-
100
- export default SectionCommonWrapper;
@@ -1,20 +0,0 @@
1
- import React, {Component} from 'react';
2
- import classNames from 'classnames';
3
-
4
- export default (SectionComponent) => class WrappedComponent extends Component {
5
- sectionStatusResolver({status, shouldBeOpened, sectionRoot}) {
6
- const baseClasses = ['section', {'section_collapsed': !shouldBeOpened}];
7
-
8
- return classNames(baseClasses, {
9
- [`section_status_${status}`]: status,
10
- 'section_root': sectionRoot
11
- });
12
- }
13
-
14
- render() {
15
- return <SectionComponent
16
- {...this.props}
17
- sectionStatusResolver={this.sectionStatusResolver}
18
- />;
19
- }
20
- };
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import PropTypes from 'prop-types';
5
-
6
- class BrowserSkippedTitle extends Component {
7
- static propTypes = {
8
- title: PropTypes.object.isRequired
9
- }
10
-
11
- render() {
12
- const {title} = this.props;
13
-
14
- return (
15
- <div className="section__title section__title_skipped">
16
- {title}
17
- </div>
18
- );
19
- }
20
- }
21
-
22
- export default BrowserSkippedTitle;
@@ -1,74 +0,0 @@
1
- import React, {Component} from 'react';
2
- import ClipboardButton from 'react-clipboard.js';
3
- import PropTypes from 'prop-types';
4
- import {connect} from 'react-redux';
5
- import {bindActionCreators} from 'redux';
6
- import {get} from 'lodash';
7
- import * as actions from '../../../modules/actions';
8
- import {appendQuery} from '../../../modules/query-params';
9
- import viewModes from '../../../../constants/view-modes';
10
- import {EXPAND_ALL} from '../../../../constants/expand-modes';
11
- import ViewInBrowserIcon from '../../icons/view-in-browser';
12
-
13
- class BrowserTitle extends Component {
14
- static propTypes = {
15
- title: PropTypes.node.isRequired,
16
- browserId: PropTypes.string.isRequired,
17
- browserName: PropTypes.string.isRequired,
18
- lastResultId: PropTypes.string.isRequired,
19
- handler: PropTypes.func.isRequired,
20
- // from store
21
- testName: PropTypes.string.isRequired,
22
- retryIndex: PropTypes.number.isRequired,
23
- suiteUrl: PropTypes.string
24
- }
25
-
26
- _getTestUrl() {
27
- const {browserName, testName, retryIndex} = this.props;
28
-
29
- return appendQuery(window.location.href, {
30
- browser: browserName,
31
- testNameFilter: testName,
32
- strictMatchFilter: true,
33
- retryIndex,
34
- viewModes: viewModes.ALL,
35
- expand: EXPAND_ALL
36
- });
37
- }
38
-
39
- onCopyTestLink = (e) => {
40
- e.stopPropagation();
41
-
42
- this.props.actions.copyTestLink();
43
- }
44
-
45
- render() {
46
- const {title, handler, lastResultId} = this.props;
47
-
48
- return (
49
- <div className="section__title section__title_type_browser" onClick={handler}>
50
- {title}
51
- <ViewInBrowserIcon resultId={lastResultId}/>
52
- <ClipboardButton
53
- className="button custom-icon custom-icon_share"
54
- onClick={this.onCopyTestLink}
55
- button-title="copy test link"
56
- option-text={() => this._getTestUrl()}>
57
- </ClipboardButton>
58
- </div>
59
- );
60
- }
61
- }
62
-
63
- export default connect(
64
- ({tree}, {browserId}) => {
65
- const browser = tree.browsers.byId[browserId];
66
- const browserState = tree.browsers.stateById[browserId];
67
-
68
- return {
69
- testName: browser.parentId,
70
- retryIndex: get(browserState, 'retryIndex', 0)
71
- };
72
- },
73
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
74
- )(BrowserTitle);
@@ -1,82 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import {connect} from 'react-redux';
5
- import {bindActionCreators} from 'redux';
6
- import PropTypes from 'prop-types';
7
- import ClipboardButton from 'react-clipboard.js';
8
- import * as actions from '../../../modules/actions';
9
- import {mkGetTestsBySuiteId} from '../../../modules/selectors/tree';
10
-
11
- class SectionTitle extends Component {
12
- static propTypes = {
13
- name: PropTypes.string.isRequired,
14
- suiteId: PropTypes.string.isRequired,
15
- handler: PropTypes.func.isRequired,
16
- // from store
17
- gui: PropTypes.bool.isRequired,
18
- suiteTests: PropTypes.arrayOf(PropTypes.shape({
19
- testName: PropTypes.string,
20
- browserName: PropTypes.string
21
- })).isRequired
22
- }
23
-
24
- onCopySuiteName = (e) => {
25
- e.stopPropagation();
26
-
27
- this.props.actions.copySuiteName(this.props.suiteId);
28
- }
29
-
30
- onSuiteRetry = (e) => {
31
- e.stopPropagation();
32
-
33
- this.props.actions.retrySuite(this.props.suiteTests);
34
- }
35
-
36
- render() {
37
- const {name, handler, gui} = this.props;
38
-
39
- return (
40
- <div className="section__title" onClick={handler}>
41
- {name}
42
- {this._drawCopyButton()}
43
- {gui && this._drawRetryButton()}
44
- </div>
45
- );
46
- }
47
-
48
- _drawCopyButton() {
49
- return (
50
- <ClipboardButton
51
- onClick={this.onCopySuiteName}
52
- className="button custom-icon custom-icon_copy-to-clipboard"
53
- button-title="copy to clipboard"
54
- data-clipboard-text={this.props.suiteId}>
55
- </ClipboardButton>
56
- );
57
- }
58
-
59
- _drawRetryButton() {
60
- return (
61
- <button
62
- className="button custom-icon custom-icon_retry"
63
- title="retry suite"
64
- onClick={this.onSuiteRetry}>
65
- </button>
66
- );
67
- }
68
- }
69
-
70
- export default connect(
71
- () => {
72
- const getTestsBySuiteId = mkGetTestsBySuiteId();
73
-
74
- return (state, {suiteId}) => {
75
- return {
76
- gui: state.gui,
77
- suiteTests: getTestsBySuiteId(state, {suiteId})
78
- };
79
- };
80
- },
81
- (dispatch) => ({actions: bindActionCreators(actions, dispatch)})
82
- )(SectionTitle);
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- import React, {Component} from 'react';
4
- import PropTypes from 'prop-types';
5
- import Details from '../details';
6
-
7
- export default class ErrorDetails extends Component {
8
- static propTypes = {
9
- errorDetails: PropTypes.object.isRequired
10
- };
11
-
12
- render() {
13
- const {title, filePath} = this.props.errorDetails;
14
- const content = <div className="toggle-open__item"><a href={filePath} target="_blank">{title}</a></div>;
15
-
16
- return <Details title='Error details' content={content} extendClassNames='details_type_text'/>;
17
- }
18
- }