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.
- package/build/gemini.d.ts +2 -0
- package/{gemini.js → build/gemini.js} +1 -1
- package/build/gemini.js.map +1 -0
- package/build/hermione.d.ts +2 -0
- package/{hermione.js → build/hermione.js} +3 -21
- package/build/hermione.js.map +1 -0
- package/build/lib/cli-commands/gui.d.ts +2 -0
- package/{lib → build/lib}/cli-commands/gui.js +5 -7
- package/build/lib/cli-commands/gui.js.map +1 -0
- package/build/lib/cli-commands/index.d.ts +3 -0
- package/{lib → build/lib}/cli-commands/index.js +1 -1
- package/build/lib/cli-commands/index.js.map +1 -0
- package/build/lib/cli-commands/merge-reports.d.ts +2 -0
- package/{lib → build/lib}/cli-commands/merge-reports.js +11 -11
- package/build/lib/cli-commands/merge-reports.js.map +1 -0
- package/build/lib/cli-commands/remove-unused-screens/index.d.ts +2 -0
- package/{lib → build/lib}/cli-commands/remove-unused-screens/index.js +61 -110
- package/build/lib/cli-commands/remove-unused-screens/index.js.map +1 -0
- package/build/lib/cli-commands/remove-unused-screens/utils.d.ts +16 -0
- package/{lib → build/lib}/cli-commands/remove-unused-screens/utils.js +10 -48
- package/build/lib/cli-commands/remove-unused-screens/utils.js.map +1 -0
- package/build/lib/common-utils.d.ts +24 -0
- package/build/lib/common-utils.js +116 -0
- package/build/lib/common-utils.js.map +1 -0
- package/build/lib/config/custom-gui-asserts.d.ts +1 -0
- package/{lib → build/lib}/config/custom-gui-asserts.js +2 -12
- package/build/lib/config/custom-gui-asserts.js.map +1 -0
- package/build/lib/config/index.d.ts +21 -0
- package/{lib → build/lib}/config/index.js +7 -32
- package/build/lib/config/index.js.map +1 -0
- package/build/lib/constants/browser.d.ts +3 -0
- package/build/lib/constants/browser.js +5 -0
- package/build/lib/constants/browser.js.map +1 -0
- package/build/lib/constants/checked-statuses.d.ts +3 -0
- package/build/lib/constants/checked-statuses.js +7 -0
- package/build/lib/constants/checked-statuses.js.map +1 -0
- package/build/lib/constants/database.d.ts +25 -0
- package/build/lib/constants/database.js +47 -0
- package/build/lib/constants/database.js.map +1 -0
- package/build/lib/constants/defaults.d.ts +18 -0
- package/{lib → build/lib}/constants/defaults.js +1 -2
- package/build/lib/constants/defaults.js.map +1 -0
- package/build/lib/constants/diff-modes.d.ts +53 -0
- package/{lib → build/lib}/constants/diff-modes.js +2 -0
- package/build/lib/constants/diff-modes.js.map +1 -0
- package/build/lib/constants/errors.d.ts +5 -0
- package/{lib → build/lib}/constants/errors.js +1 -1
- package/build/lib/constants/errors.js.map +1 -0
- package/build/lib/constants/expand-modes.d.ts +4 -0
- package/{lib → build/lib}/constants/expand-modes.js +1 -1
- package/build/lib/constants/expand-modes.js.map +1 -0
- package/build/lib/constants/extension-points.d.ts +4 -0
- package/build/lib/constants/extension-points.js +8 -0
- package/build/lib/constants/extension-points.js.map +1 -0
- package/build/lib/constants/group-tests.d.ts +7 -0
- package/{lib → build/lib}/constants/group-tests.js +2 -0
- package/build/lib/constants/group-tests.js.map +1 -0
- package/build/lib/constants/paths.d.ts +2 -0
- package/{lib → build/lib}/constants/paths.js +1 -1
- package/build/lib/constants/paths.js.map +1 -0
- package/build/lib/constants/plugin-events.d.ts +5 -0
- package/{lib → build/lib}/constants/plugin-events.js +2 -4
- package/build/lib/constants/plugin-events.js.map +1 -0
- package/build/lib/constants/save-formats.d.ts +1 -0
- package/{lib → build/lib}/constants/save-formats.js +1 -1
- package/build/lib/constants/save-formats.js.map +1 -0
- package/build/lib/constants/test-statuses.d.ts +8 -0
- package/{lib → build/lib}/constants/test-statuses.js +1 -1
- package/build/lib/constants/test-statuses.js.map +1 -0
- package/build/lib/constants/view-modes.d.ts +5 -0
- package/{lib → build/lib}/constants/view-modes.js +1 -1
- package/build/lib/constants/view-modes.js.map +1 -0
- package/build/lib/db-utils/client.d.ts +19 -0
- package/{lib → build/lib}/db-utils/client.js +18 -45
- package/build/lib/db-utils/client.js.map +1 -0
- package/build/lib/db-utils/common.d.ts +10 -0
- package/build/lib/db-utils/common.js +56 -0
- package/build/lib/db-utils/common.js.map +1 -0
- package/build/lib/db-utils/server.d.ts +16 -0
- package/{lib → build/lib}/db-utils/server.js +15 -41
- package/build/lib/db-utils/server.js.map +1 -0
- package/build/lib/gui/api/facade.d.ts +8 -0
- package/{lib → build/lib}/gui/api/facade.js +1 -4
- package/build/lib/gui/api/facade.js.map +1 -0
- package/build/lib/gui/api/index.d.ts +9 -0
- package/{lib → build/lib}/gui/api/index.js +1 -5
- package/build/lib/gui/api/index.js.map +1 -0
- package/build/lib/gui/app.d.ts +62 -0
- package/{lib → build/lib}/gui/app.js +2 -21
- package/build/lib/gui/app.js.map +1 -0
- package/build/lib/gui/constants/client-events.d.ts +6 -0
- package/{lib → build/lib}/gui/constants/client-events.js +1 -4
- package/build/lib/gui/constants/client-events.js.map +1 -0
- package/build/lib/gui/constants/custom-gui-control-types.d.ts +2 -0
- package/{lib → build/lib}/gui/constants/custom-gui-control-types.js +1 -1
- package/build/lib/gui/constants/custom-gui-control-types.js.map +1 -0
- package/build/lib/gui/constants/gui-events.d.ts +2 -0
- package/{lib → build/lib}/gui/constants/gui-events.js +1 -1
- package/build/lib/gui/constants/gui-events.js.map +1 -0
- package/build/lib/gui/constants/server.d.ts +3 -0
- package/{lib → build/lib}/gui/constants/server.js +1 -1
- package/build/lib/gui/constants/server.js.map +1 -0
- package/build/lib/gui/event-source.d.ts +6 -0
- package/{lib → build/lib}/gui/event-source.js +2 -5
- package/build/lib/gui/event-source.js.map +1 -0
- package/build/lib/gui/index.d.ts +12 -0
- package/build/lib/gui/index.js +22 -0
- package/build/lib/gui/index.js.map +1 -0
- package/build/lib/gui/routes/plugins.d.ts +2 -0
- package/{lib → build/lib}/gui/routes/plugins.js +9 -24
- package/build/lib/gui/routes/plugins.js.map +1 -0
- package/build/lib/gui/server.d.ts +8 -0
- package/{lib → build/lib}/gui/server.js +32 -51
- package/build/lib/gui/server.js.map +1 -0
- package/build/lib/gui/tool-runner/index.d.ts +123 -0
- package/{lib → build/lib}/gui/tool-runner/index.js +42 -122
- package/build/lib/gui/tool-runner/index.js.map +1 -0
- package/build/lib/gui/tool-runner/report-subscriber.d.ts +2 -0
- package/{lib → build/lib}/gui/tool-runner/report-subscriber.js +7 -30
- package/build/lib/gui/tool-runner/report-subscriber.js.map +1 -0
- package/build/lib/gui/tool-runner/runner/all-test-runner.d.ts +4 -0
- package/{lib → build/lib}/gui/tool-runner/runner/all-test-runner.js +1 -3
- package/build/lib/gui/tool-runner/runner/all-test-runner.js.map +1 -0
- package/build/lib/gui/tool-runner/runner/index.d.ts +3 -0
- package/{lib → build/lib}/gui/tool-runner/runner/index.js +1 -2
- package/build/lib/gui/tool-runner/runner/index.js.map +1 -0
- package/build/lib/gui/tool-runner/runner/runner.d.ts +6 -0
- package/{lib → build/lib}/gui/tool-runner/runner/runner.js +1 -2
- package/build/lib/gui/tool-runner/runner/runner.js.map +1 -0
- package/build/lib/gui/tool-runner/runner/specific-test-runner.d.ts +7 -0
- package/{lib → build/lib}/gui/tool-runner/runner/specific-test-runner.js +2 -8
- package/build/lib/gui/tool-runner/runner/specific-test-runner.js.map +1 -0
- package/build/lib/gui/tool-runner/utils.d.ts +7 -0
- package/{lib → build/lib}/gui/tool-runner/utils.js +11 -35
- package/build/lib/gui/tool-runner/utils.js.map +1 -0
- package/build/lib/history-utils.d.ts +1 -0
- package/{lib → build/lib}/history-utils.js +5 -20
- package/build/lib/history-utils.js.map +1 -0
- package/build/lib/local-images-saver.d.ts +4 -0
- package/build/lib/local-images-saver.js +9 -0
- package/build/lib/local-images-saver.js.map +1 -0
- package/build/lib/merge-reports/index.d.ts +4 -0
- package/{lib → build/lib}/merge-reports/index.js +3 -8
- package/build/lib/merge-reports/index.js.map +1 -0
- package/build/lib/plugin-adapter.d.ts +32 -0
- package/{lib → build/lib}/plugin-adapter.js +8 -25
- package/build/lib/plugin-adapter.js.map +1 -0
- package/build/lib/plugin-api.d.ts +57 -0
- package/{lib → build/lib}/plugin-api.js +2 -20
- package/build/lib/plugin-api.js.map +1 -0
- package/build/lib/plugin-utils.d.ts +3 -0
- package/{lib → build/lib}/plugin-utils.js +3 -5
- package/build/lib/plugin-utils.js.map +1 -0
- package/build/lib/report-builder/gui.d.ts +73 -0
- package/{lib → build/lib}/report-builder/gui.js +33 -92
- package/build/lib/report-builder/gui.js.map +1 -0
- package/build/lib/report-builder/static.d.ts +32 -0
- package/{lib → build/lib}/report-builder/static.js +25 -64
- package/build/lib/report-builder/static.js.map +1 -0
- package/build/lib/reporter-helpers.d.ts +3 -0
- package/{lib → build/lib}/reporter-helpers.js +2 -11
- package/build/lib/reporter-helpers.js.map +1 -0
- package/build/lib/server-utils.d.ts +42 -0
- package/{lib → build/lib}/server-utils.js +37 -92
- package/build/lib/server-utils.js.map +1 -0
- package/build/lib/sqlite-adapter.d.ts +78 -0
- package/{lib → build/lib}/sqlite-adapter.js +15 -56
- package/build/lib/sqlite-adapter.js.map +1 -0
- package/build/lib/static/gui.min.css +1 -0
- package/build/lib/static/gui.min.js +124 -0
- package/build/lib/static/modules/utils.d.ts +31 -0
- package/{lib → build/lib}/static/modules/utils.js +16 -56
- package/build/lib/static/modules/utils.js.map +1 -0
- package/{lib → build/lib}/static/report.min.css +1 -1
- package/build/lib/static/report.min.js +124 -0
- package/build/lib/suite-adapter.d.ts +15 -0
- package/{lib → build/lib}/suite-adapter.js +2 -18
- package/build/lib/suite-adapter.js.map +1 -0
- package/build/lib/test-adapter.d.ts +118 -0
- package/{lib → build/lib}/test-adapter.js +38 -156
- package/build/lib/test-adapter.js.map +1 -0
- package/build/lib/tests-tree-builder/base.d.ts +70 -0
- package/{lib → build/lib}/tests-tree-builder/base.js +34 -74
- package/build/lib/tests-tree-builder/base.js.map +1 -0
- package/build/lib/tests-tree-builder/gui.d.ts +47 -0
- package/{lib → build/lib}/tests-tree-builder/gui.js +12 -63
- package/build/lib/tests-tree-builder/gui.js.map +1 -0
- package/build/lib/tests-tree-builder/static.d.ts +55 -0
- package/{lib → build/lib}/tests-tree-builder/static.js +11 -42
- package/build/lib/tests-tree-builder/static.js.map +1 -0
- package/build/lib/workers/create-workers.d.ts +2 -0
- package/{lib → build/lib}/workers/create-workers.js +1 -2
- package/build/lib/workers/create-workers.js.map +1 -0
- package/build/lib/workers/worker.d.ts +1 -0
- package/build/lib/workers/worker.js +13 -0
- package/build/lib/workers/worker.js.map +1 -0
- package/build/package.json +178 -0
- package/package.json +44 -23
- package/2html-reporter.iml +0 -9
- package/CHANGELOG.md +0 -2886
- package/docs/en/html-reporter-api.md +0 -198
- package/docs/en/html-reporter-commands.md +0 -96
- package/docs/en/html-reporter-custom-gui.md +0 -99
- package/docs/en/html-reporter-events.md +0 -125
- package/docs/en/html-reporter-plugins.md +0 -265
- package/docs/en/html-reporter-setup.md +0 -378
- package/docs/en/html-reporter.md +0 -8
- package/docs/ru/html-reporter-api.md +0 -198
- package/docs/ru/html-reporter-commands.md +0 -96
- package/docs/ru/html-reporter-custom-gui.md +0 -99
- package/docs/ru/html-reporter-events.md +0 -125
- package/docs/ru/html-reporter-plugins.md +0 -265
- package/docs/ru/html-reporter-setup.md +0 -378
- package/docs/ru/html-reporter.md +0 -8
- package/lib/common-utils.js +0 -117
- package/lib/constants/browser.js +0 -3
- package/lib/constants/database.js +0 -49
- package/lib/constants/extension-points.js +0 -6
- package/lib/db-utils/common.js +0 -76
- package/lib/gui/index.js +0 -19
- package/lib/local-images-saver.js +0 -11
- package/lib/static/components/bottom-progress-bar/index.js +0 -42
- package/lib/static/components/controls/accept-opened-button.js +0 -39
- package/lib/static/components/controls/base-host-input.js +0 -39
- package/lib/static/components/controls/browser-list/index.js +0 -239
- package/lib/static/components/controls/browser-list/index.styl +0 -52
- package/lib/static/components/controls/browser-list/label.js +0 -60
- package/lib/static/components/controls/browser-list/label.styl +0 -18
- package/lib/static/components/controls/browser-list/utils.js +0 -43
- package/lib/static/components/controls/common-controls.js +0 -75
- package/lib/static/components/controls/common-filters.js +0 -32
- package/lib/static/components/controls/control-button.js +0 -54
- package/lib/static/components/controls/controls.less +0 -109
- package/lib/static/components/controls/custom-gui-controls.js +0 -70
- package/lib/static/components/controls/find-same-diffs-button.js +0 -47
- package/lib/static/components/controls/gui-controls.js +0 -81
- package/lib/static/components/controls/menu-bar.js +0 -47
- package/lib/static/components/controls/report-controls.js +0 -21
- package/lib/static/components/controls/report-info.js +0 -31
- package/lib/static/components/controls/run-button.js +0 -27
- package/lib/static/components/controls/selects/control.js +0 -51
- package/lib/static/components/controls/selects/group-tests.js +0 -94
- package/lib/static/components/controls/selects/index.styl +0 -57
- package/lib/static/components/controls/strict-match-filter-input.js +0 -39
- package/lib/static/components/controls/test-name-filter-input.js +0 -42
- package/lib/static/components/custom-scripts.js +0 -23
- package/lib/static/components/details.js +0 -58
- package/lib/static/components/error-boundary.js +0 -26
- package/lib/static/components/extension-point.js +0 -106
- package/lib/static/components/favicon-changer.js +0 -56
- package/lib/static/components/group-tests/item.js +0 -39
- package/lib/static/components/group-tests/list.js +0 -71
- package/lib/static/components/group-tests/prop-types.js +0 -12
- package/lib/static/components/gui.js +0 -105
- package/lib/static/components/header/header.css +0 -5
- package/lib/static/components/header/index.js +0 -26
- package/lib/static/components/header/summary/dbBtn.js +0 -36
- package/lib/static/components/header/summary/dbSummary.js +0 -49
- package/lib/static/components/header/summary/index.js +0 -43
- package/lib/static/components/header/summary/item.js +0 -28
- package/lib/static/components/header/summary/summary.css +0 -77
- package/lib/static/components/icons/arrow.js +0 -24
- package/lib/static/components/icons/arrows-close.js +0 -25
- package/lib/static/components/icons/arrows-move.js +0 -24
- package/lib/static/components/icons/arrows-open.js +0 -25
- package/lib/static/components/icons/view-in-browser/index.js +0 -59
- package/lib/static/components/icons/view-in-browser/index.styl +0 -28
- package/lib/static/components/loading.js +0 -25
- package/lib/static/components/main-tree.js +0 -23
- package/lib/static/components/modals/find-same-diffs.js +0 -34
- package/lib/static/components/modals/index.js +0 -6
- package/lib/static/components/modals/modal.css +0 -3
- package/lib/static/components/modals/modal.js +0 -27
- package/lib/static/components/modals/screenshot-accepter/body.js +0 -88
- package/lib/static/components/modals/screenshot-accepter/header.js +0 -192
- package/lib/static/components/modals/screenshot-accepter/index.js +0 -228
- package/lib/static/components/modals/screenshot-accepter/meta.js +0 -32
- package/lib/static/components/modals/screenshot-accepter/style.css +0 -115
- package/lib/static/components/popup/index.js +0 -85
- package/lib/static/components/popup/index.styl +0 -37
- package/lib/static/components/progress-bar/index.js +0 -13
- package/lib/static/components/progress-bar/index.styl +0 -24
- package/lib/static/components/report.js +0 -72
- package/lib/static/components/retry-switcher/index.js +0 -36
- package/lib/static/components/retry-switcher/item.js +0 -55
- package/lib/static/components/section/body/description.js +0 -24
- package/lib/static/components/section/body/history/index.js +0 -29
- package/lib/static/components/section/body/history/index.styl +0 -4
- package/lib/static/components/section/body/index.js +0 -114
- package/lib/static/components/section/body/meta-info/content.js +0 -114
- package/lib/static/components/section/body/meta-info/index.js +0 -33
- package/lib/static/components/section/body/result.js +0 -41
- package/lib/static/components/section/body/tabs.js +0 -52
- package/lib/static/components/section/section-browser.js +0 -113
- package/lib/static/components/section/section-common.js +0 -100
- package/lib/static/components/section/section-wrapper.js +0 -20
- package/lib/static/components/section/title/browser-skipped.js +0 -22
- package/lib/static/components/section/title/browser.js +0 -74
- package/lib/static/components/section/title/simple.js +0 -82
- package/lib/static/components/state/error-details.js +0 -18
- package/lib/static/components/state/index.js +0 -208
- package/lib/static/components/state/screenshot/diff-circle.js +0 -66
- package/lib/static/components/state/screenshot/full.js +0 -28
- package/lib/static/components/state/screenshot/resized.js +0 -90
- package/lib/static/components/state/screenshot/with-encode-uri.js +0 -44
- package/lib/static/components/state/screenshot/with-synced-scale.js +0 -116
- package/lib/static/components/state/state-error.js +0 -140
- package/lib/static/components/state/state-fail/index.js +0 -161
- package/lib/static/components/state/state-fail/index.styl +0 -31
- package/lib/static/components/state/state-fail/onion-skin-diff/index.js +0 -43
- package/lib/static/components/state/state-fail/onion-skin-diff/index.styl +0 -19
- package/lib/static/components/state/state-fail/prop-types.js +0 -16
- package/lib/static/components/state/state-fail/swipe-diff/index.js +0 -138
- package/lib/static/components/state/state-fail/swipe-diff/index.styl +0 -82
- package/lib/static/components/state/state-fail/switch-diff/index.js +0 -36
- package/lib/static/components/state/state-fail/switch-diff/index.styl +0 -12
- package/lib/static/components/state/state-fail/useFitImages.js +0 -63
- package/lib/static/components/state/state-success.js +0 -23
- package/lib/static/components/sticky-header/gui.js +0 -12
- package/lib/static/components/sticky-header/index.js +0 -36
- package/lib/static/components/sticky-header/index.styl +0 -37
- package/lib/static/components/sticky-header/report.js +0 -14
- package/lib/static/components/suites.js +0 -157
- package/lib/static/containers/array/array.styl +0 -32
- package/lib/static/containers/array/index.js +0 -61
- package/lib/static/containers/modal.js +0 -43
- package/lib/static/gui.css +0 -161
- package/lib/static/gui.js +0 -14
- package/lib/static/gui.min.css +0 -1
- package/lib/static/gui.min.js +0 -124
- package/lib/static/hooks/useElementSize.js +0 -30
- package/lib/static/hooks/useEventListener.js +0 -25
- package/lib/static/hooks/useWindowSize.js +0 -25
- package/lib/static/index.js +0 -14
- package/lib/static/modules/action-names.js +0 -57
- package/lib/static/modules/actions.js +0 -332
- package/lib/static/modules/custom-queries.js +0 -27
- package/lib/static/modules/default-state.js +0 -84
- package/lib/static/modules/load-plugin.js +0 -109
- package/lib/static/modules/local-storage-wrapper.js +0 -54
- package/lib/static/modules/middlewares/local-storage.js +0 -30
- package/lib/static/modules/middlewares/metrika.js +0 -121
- package/lib/static/modules/plugins.js +0 -52
- package/lib/static/modules/query-params.js +0 -98
- package/lib/static/modules/reducers/api-values.js +0 -25
- package/lib/static/modules/reducers/auto-run.js +0 -14
- package/lib/static/modules/reducers/bottom-progress-bar.js +0 -16
- package/lib/static/modules/reducers/browsers.js +0 -43
- package/lib/static/modules/reducers/close-ids.js +0 -12
- package/lib/static/modules/reducers/config.js +0 -48
- package/lib/static/modules/reducers/date.js +0 -16
- package/lib/static/modules/reducers/db.js +0 -30
- package/lib/static/modules/reducers/fetch-db-details.js +0 -13
- package/lib/static/modules/reducers/grouped-tests/by/meta.js +0 -31
- package/lib/static/modules/reducers/grouped-tests/by/result.js +0 -57
- package/lib/static/modules/reducers/grouped-tests/helpers.js +0 -91
- package/lib/static/modules/reducers/grouped-tests/index.js +0 -52
- package/lib/static/modules/reducers/gui.js +0 -16
- package/lib/static/modules/reducers/index.js +0 -56
- package/lib/static/modules/reducers/loading.js +0 -12
- package/lib/static/modules/reducers/modals.js +0 -16
- package/lib/static/modules/reducers/notifications.js +0 -12
- package/lib/static/modules/reducers/plugins.js +0 -25
- package/lib/static/modules/reducers/processing.js +0 -21
- package/lib/static/modules/reducers/running.js +0 -19
- package/lib/static/modules/reducers/skips.js +0 -15
- package/lib/static/modules/reducers/stats.js +0 -21
- package/lib/static/modules/reducers/stopping.js +0 -16
- package/lib/static/modules/reducers/tree/helpers.js +0 -28
- package/lib/static/modules/reducers/tree/index.js +0 -314
- package/lib/static/modules/reducers/tree/nodes/browsers.js +0 -109
- package/lib/static/modules/reducers/tree/nodes/images.js +0 -59
- package/lib/static/modules/reducers/tree/nodes/results.js +0 -39
- package/lib/static/modules/reducers/tree/nodes/suites.js +0 -239
- package/lib/static/modules/reducers/view.js +0 -93
- package/lib/static/modules/selectors/grouped-tests.js +0 -8
- package/lib/static/modules/selectors/index.js +0 -3
- package/lib/static/modules/selectors/stats.js +0 -33
- package/lib/static/modules/selectors/tree.js +0 -256
- package/lib/static/modules/selectors/view.js +0 -5
- package/lib/static/modules/store.js +0 -25
- package/lib/static/modules/web-vitals.js +0 -13
- package/lib/static/modules/yandex-metrika.js +0 -50
- package/lib/static/report.min.js +0 -124
- package/lib/static/styles.css +0 -887
- package/lib/static/template.html +0 -13
- package/lib/workers/worker.js +0 -15
- package/webpack.common.js +0 -95
- package/webpack.dev.js +0 -25
- package/webpack.prod.js +0 -19
- /package/{lib → build/lib}/static/gui.html +0 -0
- /package/{lib → build/lib}/static/icons/favicon-failure.png +0 -0
- /package/{lib → build/lib}/static/icons/favicon-running.png +0 -0
- /package/{lib → build/lib}/static/icons/favicon-success.png +0 -0
- /package/{lib → build/lib}/static/icons/favicon.png +0 -0
- /package/{lib → build/lib}/static/index.html +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.browserlist
|
|
2
|
-
label-bg-color = #3333cc1a
|
|
3
|
-
button-hover-bg-color = #99999950
|
|
4
|
-
|
|
5
|
-
.array
|
|
6
|
-
width 220px
|
|
7
|
-
|
|
8
|
-
.rct-controls
|
|
9
|
-
width 100%
|
|
10
|
-
height 25px
|
|
11
|
-
margin-bottom 10px
|
|
12
|
-
border none
|
|
13
|
-
border-radius 5px
|
|
14
|
-
cursor pointer
|
|
15
|
-
background-color label-bg-color
|
|
16
|
-
transition background-color 150ms linear
|
|
17
|
-
|
|
18
|
-
&:hover
|
|
19
|
-
background-color button-hover-bg-color;
|
|
20
|
-
|
|
21
|
-
.rct-node-parent
|
|
22
|
-
.rct-node-leaf
|
|
23
|
-
.rct-node-icon
|
|
24
|
-
display none
|
|
25
|
-
|
|
26
|
-
.rct-node-icon
|
|
27
|
-
color black
|
|
28
|
-
text-align center
|
|
29
|
-
|
|
30
|
-
.rct-text
|
|
31
|
-
label
|
|
32
|
-
display inline-flex
|
|
33
|
-
width 100%
|
|
34
|
-
user-select none
|
|
35
|
-
|
|
36
|
-
&:not(:hover)
|
|
37
|
-
.rct-label__controls
|
|
38
|
-
visibility hidden
|
|
39
|
-
|
|
40
|
-
&:hover
|
|
41
|
-
background-color: label-bg-color
|
|
42
|
-
|
|
43
|
-
.rct-label__controls
|
|
44
|
-
visibility visible
|
|
45
|
-
|
|
46
|
-
.rct-title
|
|
47
|
-
display inherit
|
|
48
|
-
width 100%
|
|
49
|
-
|
|
50
|
-
.rct-label
|
|
51
|
-
display inherit
|
|
52
|
-
width 100%
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
import {buildComplexId} from './utils';
|
|
5
|
-
|
|
6
|
-
import './label.styl';
|
|
7
|
-
|
|
8
|
-
const Label = ({treeDataMap, browserId, version, elements, setSelected}) => {
|
|
9
|
-
const id = buildComplexId(browserId, version);
|
|
10
|
-
const isChildren = key => !version && treeDataMap[key].browserId === browserId;
|
|
11
|
-
const getLeaves = () => Object.keys(treeDataMap).filter(key => treeDataMap[key].isLeaf);
|
|
12
|
-
|
|
13
|
-
const onOnlyClick = (event) => {
|
|
14
|
-
event.stopPropagation();
|
|
15
|
-
|
|
16
|
-
const leaves = getLeaves();
|
|
17
|
-
const ids = leaves.includes(id)
|
|
18
|
-
? [id]
|
|
19
|
-
: leaves.filter(key => isChildren(key));
|
|
20
|
-
|
|
21
|
-
setSelected(ids);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const onExceptClick = (event) => {
|
|
25
|
-
event.stopPropagation();
|
|
26
|
-
|
|
27
|
-
const leaves = getLeaves();
|
|
28
|
-
const ids = leaves.includes(id)
|
|
29
|
-
? leaves.filter(key => key !== id)
|
|
30
|
-
: leaves.filter(key => !isChildren(key));
|
|
31
|
-
|
|
32
|
-
setSelected(ids);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<span className='rct-label'>
|
|
37
|
-
<span className='rct-label__title'>{version || browserId}</span>
|
|
38
|
-
{elements && elements.length === 1 && elements[0] === id
|
|
39
|
-
? <button className='rct-label__controls' onClick={onExceptClick}>Except</button>
|
|
40
|
-
: <button className='rct-label__controls' onClick={onOnlyClick}>Only</button>
|
|
41
|
-
}
|
|
42
|
-
</span>
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
Label.propTypes = {
|
|
47
|
-
treeDataMap: PropTypes.shape({
|
|
48
|
-
[PropTypes.string]: PropTypes.shape({
|
|
49
|
-
browserId: PropTypes.string.isRequired,
|
|
50
|
-
version: PropTypes.string,
|
|
51
|
-
isLeaf: PropTypes.bool.isRequired
|
|
52
|
-
})
|
|
53
|
-
}),
|
|
54
|
-
browserId: PropTypes.string.isRequired,
|
|
55
|
-
version: PropTypes.string,
|
|
56
|
-
elements: PropTypes.arrayOf(PropTypes.string),
|
|
57
|
-
setSelected: PropTypes.func.isRequired
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export default Label;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.rct-label
|
|
2
|
-
.rct-label__title
|
|
3
|
-
margin-right 25px
|
|
4
|
-
|
|
5
|
-
.rct-label__controls
|
|
6
|
-
cursor pointer
|
|
7
|
-
width 70px
|
|
8
|
-
margin-left auto
|
|
9
|
-
border none
|
|
10
|
-
border-radius 5px
|
|
11
|
-
background-color inherit
|
|
12
|
-
opacity 0.5
|
|
13
|
-
transition background-color 150ms linear,
|
|
14
|
-
opacity 150ms linear
|
|
15
|
-
|
|
16
|
-
&:hover
|
|
17
|
-
background-color #99999950
|
|
18
|
-
opacity 1
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {isString} from 'lodash';
|
|
3
|
-
|
|
4
|
-
const valueToIcon = {
|
|
5
|
-
google: 'chrome',
|
|
6
|
-
chrome: 'chrome',
|
|
7
|
-
firefox: 'firefox',
|
|
8
|
-
safari: 'safari',
|
|
9
|
-
edge: 'edge',
|
|
10
|
-
yandex: 'yandex',
|
|
11
|
-
yabro: 'yandex',
|
|
12
|
-
ie: 'internet-explorer',
|
|
13
|
-
explorer: 'internet-explorer',
|
|
14
|
-
opera: 'opera',
|
|
15
|
-
phone: 'mobile',
|
|
16
|
-
mobile: 'mobile',
|
|
17
|
-
tablet: 'tablet',
|
|
18
|
-
ipad: 'tablet'
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export function mkBrowserIcon(browser) {
|
|
22
|
-
const mkIcon = (iconName) => <i className={`fa fa-${iconName}`} aria-hidden="true" />;
|
|
23
|
-
|
|
24
|
-
if (!isString(browser)) {
|
|
25
|
-
return mkIcon('browser');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const lowerValue = browser.toLowerCase();
|
|
29
|
-
|
|
30
|
-
for (const pattern in valueToIcon) {
|
|
31
|
-
if (lowerValue.includes(pattern)) {
|
|
32
|
-
return mkIcon(valueToIcon[pattern]);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return mkIcon('browser');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function buildComplexId(browserId, version) {
|
|
40
|
-
return version
|
|
41
|
-
? `${browserId} (${version})`
|
|
42
|
-
: browserId;
|
|
43
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React, {Component} from 'react';
|
|
2
|
-
import {bindActionCreators} from 'redux';
|
|
3
|
-
import {connect} from 'react-redux';
|
|
4
|
-
import {capitalize} from 'lodash';
|
|
5
|
-
import * as actions from '../../modules/actions';
|
|
6
|
-
import ControlButton from './control-button';
|
|
7
|
-
import ControlSelect from './selects/control';
|
|
8
|
-
import GroupTestsSelect from './selects/group-tests';
|
|
9
|
-
import BaseHostInput from './base-host-input';
|
|
10
|
-
import MenuBar from './menu-bar';
|
|
11
|
-
import ReportInfo from './report-info';
|
|
12
|
-
import viewModes from '../../../constants/view-modes';
|
|
13
|
-
import diffModes from '../../../constants/diff-modes';
|
|
14
|
-
import {EXPAND_ALL, COLLAPSE_ALL, EXPAND_ERRORS, EXPAND_RETRIES} from '../../../constants/expand-modes';
|
|
15
|
-
|
|
16
|
-
class ControlButtons extends Component {
|
|
17
|
-
render() {
|
|
18
|
-
const {actions, view} = this.props;
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<React.Fragment>
|
|
22
|
-
<ControlSelect
|
|
23
|
-
label="Show tests"
|
|
24
|
-
value={view.viewMode}
|
|
25
|
-
handler={actions.changeViewMode}
|
|
26
|
-
options = {Object.values(viewModes).map((value) => ({value, text: capitalize(value)}))}
|
|
27
|
-
/>
|
|
28
|
-
<div className="control-group">
|
|
29
|
-
<ControlButton
|
|
30
|
-
label="Expand all"
|
|
31
|
-
isControlGroup={true}
|
|
32
|
-
isActive={view.expand === EXPAND_ALL}
|
|
33
|
-
handler={actions.expandAll}
|
|
34
|
-
/>
|
|
35
|
-
<ControlButton
|
|
36
|
-
label="Collapse all"
|
|
37
|
-
isControlGroup={true}
|
|
38
|
-
isActive={view.expand === COLLAPSE_ALL}
|
|
39
|
-
handler={actions.collapseAll}
|
|
40
|
-
/>
|
|
41
|
-
<ControlButton
|
|
42
|
-
label="Expand errors"
|
|
43
|
-
isControlGroup={true}
|
|
44
|
-
isActive={view.expand === EXPAND_ERRORS}
|
|
45
|
-
handler={actions.expandErrors}
|
|
46
|
-
/>
|
|
47
|
-
<ControlButton
|
|
48
|
-
label="Expand retries"
|
|
49
|
-
isControlGroup={true}
|
|
50
|
-
isActive={view.expand === EXPAND_RETRIES}
|
|
51
|
-
handler={actions.expandRetries}
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
<GroupTestsSelect />
|
|
55
|
-
<ControlSelect
|
|
56
|
-
label="Diff mode"
|
|
57
|
-
value={view.diffMode}
|
|
58
|
-
handler={actions.changeDiffMode}
|
|
59
|
-
options = {Object.values(diffModes).map((dm) => {
|
|
60
|
-
return {value: dm.id, text: dm.title};
|
|
61
|
-
})}
|
|
62
|
-
extendClassNames="diff-mode"
|
|
63
|
-
/>
|
|
64
|
-
<BaseHostInput/>
|
|
65
|
-
<MenuBar />
|
|
66
|
-
<ReportInfo />
|
|
67
|
-
</React.Fragment>
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export default connect(
|
|
73
|
-
({view}) => ({view}),
|
|
74
|
-
(dispatch) => ({actions: bindActionCreators(actions, dispatch)})
|
|
75
|
-
)(ControlButtons);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import React, {Component} from 'react';
|
|
4
|
-
import {bindActionCreators} from 'redux';
|
|
5
|
-
import {connect} from 'react-redux';
|
|
6
|
-
import * as actions from '../../modules/actions';
|
|
7
|
-
import TestNameFilterInput from './test-name-filter-input';
|
|
8
|
-
import StrictMatchFilterInput from './strict-match-filter-input';
|
|
9
|
-
import BrowserList from './browser-list';
|
|
10
|
-
|
|
11
|
-
class CommonFilters extends Component {
|
|
12
|
-
render() {
|
|
13
|
-
const {filteredBrowsers, browsers, actions} = this.props;
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<div className="control-container control-filters">
|
|
17
|
-
<BrowserList
|
|
18
|
-
available={browsers}
|
|
19
|
-
selected={filteredBrowsers}
|
|
20
|
-
onChange={actions.selectBrowsers}
|
|
21
|
-
/>
|
|
22
|
-
<TestNameFilterInput/>
|
|
23
|
-
<StrictMatchFilterInput/>
|
|
24
|
-
</div>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default connect(
|
|
30
|
-
({view, browsers}) => ({filteredBrowsers: view.filteredBrowsers, browsers}),
|
|
31
|
-
(dispatch) => ({actions: bindActionCreators(actions, dispatch)})
|
|
32
|
-
)(CommonFilters);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import React, {Component} from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
|
|
7
|
-
export default class ControlButton extends Component {
|
|
8
|
-
static propTypes = {
|
|
9
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
|
10
|
-
title: PropTypes.string,
|
|
11
|
-
handler: PropTypes.func.isRequired,
|
|
12
|
-
isActive: PropTypes.bool,
|
|
13
|
-
isAction: PropTypes.bool,
|
|
14
|
-
isDisabled: PropTypes.bool,
|
|
15
|
-
isSuiteControl: PropTypes.bool,
|
|
16
|
-
isControlGroup: PropTypes.bool,
|
|
17
|
-
isRunning: PropTypes.bool,
|
|
18
|
-
extendClassNames: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
render() {
|
|
22
|
-
const {
|
|
23
|
-
label,
|
|
24
|
-
title,
|
|
25
|
-
handler,
|
|
26
|
-
isActive,
|
|
27
|
-
isAction,
|
|
28
|
-
isSuiteControl,
|
|
29
|
-
isControlGroup,
|
|
30
|
-
isDisabled = false,
|
|
31
|
-
isRunning = false,
|
|
32
|
-
extendClassNames
|
|
33
|
-
} = this.props;
|
|
34
|
-
|
|
35
|
-
const className = classNames(
|
|
36
|
-
'button',
|
|
37
|
-
{'button_type_suite-controls': isSuiteControl},
|
|
38
|
-
{'button_checked': isActive},
|
|
39
|
-
{'button_type_action': isAction},
|
|
40
|
-
{'control-group__item': isControlGroup},
|
|
41
|
-
{'button_blink': isRunning},
|
|
42
|
-
extendClassNames
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
return <button
|
|
46
|
-
title={title}
|
|
47
|
-
onClick={handler}
|
|
48
|
-
className={className}
|
|
49
|
-
disabled={isDisabled}
|
|
50
|
-
>
|
|
51
|
-
{label}
|
|
52
|
-
</button>;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
.main-menu {
|
|
2
|
-
padding-top: 20px;
|
|
3
|
-
padding-bottom: 20px;
|
|
4
|
-
background-color: #fafaf9;
|
|
5
|
-
|
|
6
|
-
.control-container {
|
|
7
|
-
margin-bottom: 15px;
|
|
8
|
-
|
|
9
|
-
&:last-child {
|
|
10
|
-
margin-bottom: 0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.control-container {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
row-gap: 15px;
|
|
19
|
-
|
|
20
|
-
& > * {
|
|
21
|
-
margin-right: 15px;
|
|
22
|
-
|
|
23
|
-
&:last-child {
|
|
24
|
-
margin-right: 0;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.control-buttons {
|
|
30
|
-
.basehost__text {
|
|
31
|
-
margin-right: auto;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.menu-bar {
|
|
35
|
-
margin-left: 15px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.control-label {
|
|
39
|
-
border-radius: 2px;
|
|
40
|
-
height: 25px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.control-group .button {
|
|
45
|
-
margin-right: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.control-group {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
white-space: nowrap;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.browserlist {
|
|
54
|
-
.browserlist__select {
|
|
55
|
-
height: 25px;
|
|
56
|
-
width: auto;
|
|
57
|
-
min-width: 220px;
|
|
58
|
-
max-width: 400px;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.button {
|
|
63
|
-
&.control-group__item {
|
|
64
|
-
position: relative;
|
|
65
|
-
margin: 0;
|
|
66
|
-
border-radius: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.control-group__item:first-child {
|
|
70
|
-
border-radius: 2px 0 0 2px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.control-group__item:last-child {
|
|
74
|
-
border-radius: 0 2px 2px 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&.control-group__item:not(:last-child) {
|
|
78
|
-
border-right: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.control-group__item:not(:last-child):after {
|
|
82
|
-
content: "";
|
|
83
|
-
border-right: 1px solid transparent;
|
|
84
|
-
position: absolute;
|
|
85
|
-
z-index: 1;
|
|
86
|
-
top: -1px;
|
|
87
|
-
right: -1px;
|
|
88
|
-
bottom: -1px;
|
|
89
|
-
transition: border-color 200ms;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.control-group__item:first-child:after {
|
|
93
|
-
border-radius: 2px 0 0 2px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&.control-group__item:last-child:after {
|
|
97
|
-
border-radius: 0 2px 2px 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&.control-group__item:hover:after {
|
|
101
|
-
border-color: #555;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.report-info {
|
|
106
|
-
.label {
|
|
107
|
-
margin: 0 15px 0 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import React, {PureComponent} from 'react';
|
|
4
|
-
import {bindActionCreators} from 'redux';
|
|
5
|
-
import {connect} from 'react-redux';
|
|
6
|
-
import {isEmpty, map} from 'lodash';
|
|
7
|
-
import {Button} from 'semantic-ui-react';
|
|
8
|
-
|
|
9
|
-
import * as actions from '../../modules/actions';
|
|
10
|
-
|
|
11
|
-
class CustomGuiControls extends PureComponent {
|
|
12
|
-
_renderButtons(opts) {
|
|
13
|
-
const {sectionName, groupIndex, controls} = opts;
|
|
14
|
-
const {actions} = this.props;
|
|
15
|
-
|
|
16
|
-
const onClickHandler = (event, {value}) => {
|
|
17
|
-
const controlIndex = controls.findIndex((control) => control.value === value);
|
|
18
|
-
|
|
19
|
-
actions.runCustomGuiAction({sectionName, groupIndex, controlIndex});
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return map(controls, ({label, value, active}, i) =>
|
|
23
|
-
<Button
|
|
24
|
-
onClick={onClickHandler}
|
|
25
|
-
key={`${i}`}
|
|
26
|
-
value={value}
|
|
27
|
-
content={label}
|
|
28
|
-
active={Boolean(active)}
|
|
29
|
-
/>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
_renderControls(type, opts) {
|
|
34
|
-
switch (type) {
|
|
35
|
-
case 'button': {
|
|
36
|
-
return this._renderButtons(opts);
|
|
37
|
-
}
|
|
38
|
-
case 'radiobutton': {
|
|
39
|
-
return <Button.Group key={opts.sectionName}>{this._renderButtons(opts)}</Button.Group>;
|
|
40
|
-
}
|
|
41
|
-
default: {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
_renderSection(sectionName) {
|
|
48
|
-
return this.props.customGui[sectionName]
|
|
49
|
-
.map(({type, controls}, groupIndex) => this._renderControls(type, {sectionName, groupIndex, controls}))
|
|
50
|
-
.filter(Boolean)
|
|
51
|
-
.map((s) => <div className="custom-gui_section-controls" key={sectionName}>{s}</div>);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
render() {
|
|
55
|
-
const {customGui} = this.props;
|
|
56
|
-
|
|
57
|
-
const customGuiControls = Object.keys(customGui)
|
|
58
|
-
.map((sectionName) => this._renderSection(sectionName))
|
|
59
|
-
.filter((c) => !isEmpty(c));
|
|
60
|
-
|
|
61
|
-
return !isEmpty(customGuiControls)
|
|
62
|
-
? <div className="custom-gui">{customGuiControls}</div>
|
|
63
|
-
: null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export default connect(
|
|
68
|
-
(state) => ({customGui: state.config.customGui}),
|
|
69
|
-
(dispatch) => ({actions: bindActionCreators(actions, dispatch)})
|
|
70
|
-
)(CustomGuiControls);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, {Component} from 'react';
|
|
2
|
-
import {bindActionCreators} from 'redux';
|
|
3
|
-
import {connect} from 'react-redux';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import * as actions from '../../modules/actions';
|
|
6
|
-
import ControlButton from './control-button';
|
|
7
|
-
import {getFailedOpenedImageIds} from '../../modules/selectors/tree';
|
|
8
|
-
|
|
9
|
-
class FindSameDiffsButton extends Component {
|
|
10
|
-
static propTypes = {
|
|
11
|
-
imageId: PropTypes.string,
|
|
12
|
-
browserId: PropTypes.string.isRequired,
|
|
13
|
-
isDisabled: PropTypes.bool.isRequired,
|
|
14
|
-
// from store
|
|
15
|
-
browserName: PropTypes.string.isRequired,
|
|
16
|
-
failedOpenedImageIds: PropTypes.arrayOf(PropTypes.string).isRequired
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
_findSameDiffs = () => {
|
|
20
|
-
const {actions, imageId, failedOpenedImageIds, browserName} = this.props;
|
|
21
|
-
|
|
22
|
-
actions.findSameDiffs(imageId, failedOpenedImageIds, browserName);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
render() {
|
|
26
|
-
const {isDisabled} = this.props;
|
|
27
|
-
|
|
28
|
-
return <ControlButton
|
|
29
|
-
label="🔍 Find same diffs"
|
|
30
|
-
isSuiteControl={true}
|
|
31
|
-
isDisabled={isDisabled}
|
|
32
|
-
handler={this._findSameDiffs}
|
|
33
|
-
/>;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default connect(
|
|
38
|
-
(state, {browserId}) => {
|
|
39
|
-
const {name: browserName} = state.tree.browsers.byId[browserId];
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
browserName,
|
|
43
|
-
failedOpenedImageIds: getFailedOpenedImageIds(state)
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
(dispatch) => ({actions: bindActionCreators(actions, dispatch)})
|
|
47
|
-
)(FindSameDiffsButton);
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React, {Component} from 'react';
|
|
2
|
-
import {bindActionCreators} from 'redux';
|
|
3
|
-
import {connect} from 'react-redux';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import * as actions from '../../modules/actions';
|
|
6
|
-
import CommonControls from './common-controls';
|
|
7
|
-
import CustomGuiControls from './custom-gui-controls';
|
|
8
|
-
import ControlButton from './control-button';
|
|
9
|
-
import RunButton from './run-button';
|
|
10
|
-
import AcceptOpenedButton from './accept-opened-button';
|
|
11
|
-
import CommonFilters from './common-filters';
|
|
12
|
-
import {getFailedTests} from '../../modules/selectors/tree';
|
|
13
|
-
|
|
14
|
-
import './controls.less';
|
|
15
|
-
|
|
16
|
-
class GuiControls extends Component {
|
|
17
|
-
static propTypes = {
|
|
18
|
-
// from store
|
|
19
|
-
running: PropTypes.bool.isRequired,
|
|
20
|
-
processing: PropTypes.bool.isRequired,
|
|
21
|
-
stopping: PropTypes.bool.isRequired,
|
|
22
|
-
autoRun: PropTypes.bool.isRequired,
|
|
23
|
-
allRootSuiteIds: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
24
|
-
failedRootSuiteIds: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
25
|
-
failedTests: PropTypes.arrayOf(PropTypes.shape({
|
|
26
|
-
testName: PropTypes.string,
|
|
27
|
-
browserName: PropTypes.string
|
|
28
|
-
})).isRequired
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
_runFailedTests = () => {
|
|
32
|
-
const {actions, failedTests} = this.props;
|
|
33
|
-
|
|
34
|
-
return actions.runFailedTests(failedTests);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
render() {
|
|
38
|
-
const {actions, allRootSuiteIds, failedRootSuiteIds, running, autoRun, processing, stopping} = this.props;
|
|
39
|
-
return (
|
|
40
|
-
<div className="main-menu container">
|
|
41
|
-
<CustomGuiControls />
|
|
42
|
-
<div className="control-container control-buttons">
|
|
43
|
-
<RunButton
|
|
44
|
-
autoRun={autoRun}
|
|
45
|
-
isDisabled={!allRootSuiteIds.length || processing}
|
|
46
|
-
handler={actions.runAllTests}
|
|
47
|
-
isRunning={running}
|
|
48
|
-
/>
|
|
49
|
-
<ControlButton
|
|
50
|
-
label="Retry failed tests"
|
|
51
|
-
isDisabled={!failedRootSuiteIds.length || processing}
|
|
52
|
-
handler={this._runFailedTests}
|
|
53
|
-
/>
|
|
54
|
-
<ControlButton
|
|
55
|
-
label="Stop tests"
|
|
56
|
-
isDisabled={!running || stopping}
|
|
57
|
-
handler={actions.stopTests}
|
|
58
|
-
/>
|
|
59
|
-
<AcceptOpenedButton />
|
|
60
|
-
<CommonControls/>
|
|
61
|
-
</div>
|
|
62
|
-
<CommonFilters/>
|
|
63
|
-
</div>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export default connect(
|
|
69
|
-
(state) => {
|
|
70
|
-
return {
|
|
71
|
-
running: state.running,
|
|
72
|
-
processing: state.processing,
|
|
73
|
-
stopping: state.stopping,
|
|
74
|
-
autoRun: state.autoRun,
|
|
75
|
-
allRootSuiteIds: state.tree.suites.allRootIds,
|
|
76
|
-
failedRootSuiteIds: state.tree.suites.failedRootIds,
|
|
77
|
-
failedTests: getFailedTests(state)
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
(dispatch) => ({actions: bindActionCreators(actions, dispatch)})
|
|
81
|
-
)(GuiControls);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import React, {Component} from 'react';
|
|
4
|
-
import {connect} from 'react-redux';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import {Dropdown} from 'semantic-ui-react';
|
|
7
|
-
import {isEmpty} from 'lodash';
|
|
8
|
-
import ExtensionPoint from '../extension-point';
|
|
9
|
-
import plugins from '../../modules/plugins';
|
|
10
|
-
import {MENU_BAR} from '../../../constants/extension-points';
|
|
11
|
-
|
|
12
|
-
class MenuBar extends Component {
|
|
13
|
-
static propTypes = {extraItems: PropTypes.object.isRequired};
|
|
14
|
-
|
|
15
|
-
_getItems(extraItems) {
|
|
16
|
-
return Object.keys(extraItems).map((key, i) => (
|
|
17
|
-
<Dropdown.Item key={i}>
|
|
18
|
-
<a className="menu-item__link" href={extraItems[key]}>{key}</a>
|
|
19
|
-
</Dropdown.Item>
|
|
20
|
-
));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
render() {
|
|
24
|
-
const {extraItems} = this.props;
|
|
25
|
-
|
|
26
|
-
const hasMenuBarPlugins = plugins.getLoadedConfigs()
|
|
27
|
-
.some(e => e.point === MENU_BAR);
|
|
28
|
-
|
|
29
|
-
if (isEmpty(extraItems) && !hasMenuBarPlugins) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<div className="menu-bar">
|
|
35
|
-
<Dropdown item icon="bars" simple direction="left">
|
|
36
|
-
<Dropdown.Menu>
|
|
37
|
-
<ExtensionPoint name={MENU_BAR}>
|
|
38
|
-
{this._getItems(extraItems)}
|
|
39
|
-
</ExtensionPoint>
|
|
40
|
-
</Dropdown.Menu>
|
|
41
|
-
</Dropdown>
|
|
42
|
-
</div>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default connect(({apiValues: {extraItems}}) => ({extraItems}))(MenuBar);
|