@allurereport/web-awesome 3.8.2 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -0
- package/allurerc-dev.mjs +10 -0
- package/dist/multi/121.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/173.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/174.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/252.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/282.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/29.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/310.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/{416.app-f008fb8342025f2b1ace.js → 416.app-d36b0855e3e7a53eeee9.js} +1 -1
- package/dist/multi/{507.app-f008fb8342025f2b1ace.js → 507.app-d36b0855e3e7a53eeee9.js} +1 -1
- package/dist/multi/527.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/600.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/605.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/638.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/672.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/686.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/725.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/741.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/749.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/755.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/779.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/{894.app-f008fb8342025f2b1ace.js → 894.app-d36b0855e3e7a53eeee9.js} +1 -1
- package/dist/multi/943.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/980.app-d36b0855e3e7a53eeee9.js +1 -0
- package/dist/multi/app-d36b0855e3e7a53eeee9.js +2 -0
- package/dist/multi/manifest.json +26 -23
- package/dist/multi/styles-212da6c68fa0beb4c6c5.css +1 -0
- package/dist/multi/styles-468416ffee9a9dea6cae.css +58 -0
- package/dist/multi/styles-5c882b14b6f3112e40c4.css +1 -0
- package/dist/single/app-62171f5f51b5954a787c.js +2 -0
- package/dist/single/manifest.json +1 -1
- package/package.json +12 -7
- package/src/assets/scss/_common.scss +2 -2
- package/src/assets/scss/index.scss +8 -6
- package/src/components/BaseLayout/index.tsx +14 -2
- package/src/components/BaseLayout/styles.scss +5 -5
- package/src/components/Categories/CategoryHeaderItem/styles.scss +2 -2
- package/src/components/Categories/CategoryTreeItem/styles.scss +2 -2
- package/src/components/Categories/GroupTreeItem/styles.scss +4 -5
- package/src/components/Categories/HistoryTreeItem/styles.scss +2 -2
- package/src/components/Categories/LabelTreeItem/styles.scss +2 -2
- package/src/components/Categories/MessageTreeItem/index.tsx +1 -1
- package/src/components/Categories/MessageTreeItem/styles.scss +18 -18
- package/src/components/Categories/sticky.ts +1 -1
- package/src/components/Footer/styles.scss +2 -2
- package/src/components/Header/CiInfo/styles.scss +1 -1
- package/src/components/Header/styles.scss +2 -2
- package/src/components/HotkeysProvider/index.tsx +556 -0
- package/src/components/KeyboardShortcuts/index.tsx +73 -0
- package/src/components/KeyboardShortcuts/shortcutsConfig.ts +91 -0
- package/src/components/KeyboardShortcuts/styles.scss +69 -0
- package/src/components/MainReport/index.tsx +89 -72
- package/src/components/MainReport/styles.scss +40 -4
- package/src/components/Metadata/styles.scss +9 -9
- package/src/components/MetadataButton/index.tsx +2 -0
- package/src/components/MetadataButton/styles.scss +1 -1
- package/src/components/NavTabs/styles.scss +8 -8
- package/src/components/ReportBody/index.tsx +11 -2
- package/src/components/ReportBody/styles.scss +24 -4
- package/src/components/ReportCategories/styles.scss +1 -1
- package/src/components/ReportFilters/styles.scss +1 -1
- package/src/components/ReportGlobalAttachments/styles.scss +1 -1
- package/src/components/ReportGlobalErrors/styles.scss +1 -1
- package/src/components/ReportHeader/styles.scss +2 -2
- package/src/components/ReportMetadata/index.tsx +9 -11
- package/src/components/ReportMetadata/styles.scss +6 -6
- package/src/components/ReportQualityGateResults/styles.scss +2 -2
- package/src/components/ReportSearch/index.tsx +1 -5
- package/src/components/ReportTabs/styles.scss +9 -9
- package/src/components/SectionSwitcher/index.tsx +87 -10
- package/src/components/SideBySide/index.tsx +20 -2
- package/src/components/SideBySide/styles.scss +9 -1
- package/src/components/SplitLayout/index.tsx +10 -1
- package/src/components/SplitLayout/styles.scss +20 -4
- package/src/components/TestResult/TestStepsEmpty/styles.scss +1 -1
- package/src/components/TestResult/TrDescription/styles.scss +1 -1
- package/src/components/TestResult/TrDropdown/index.tsx +2 -2
- package/src/components/TestResult/TrDropdown/styles.scss +1 -1
- package/src/components/TestResult/TrEmpty/styles.scss +1 -1
- package/src/components/TestResult/TrEnvironmentItem/styles.scss +4 -4
- package/src/components/TestResult/TrError/index.tsx +32 -7
- package/src/components/TestResult/TrError/styles.scss +23 -23
- package/src/components/TestResult/TrHeader/styles.scss +2 -2
- package/src/components/TestResult/TrHistory/styles.scss +6 -6
- package/src/components/TestResult/TrInfo/styles.scss +8 -8
- package/src/components/TestResult/TrLinks/index.tsx +2 -2
- package/src/components/TestResult/TrLinks/styles.scss +2 -2
- package/src/components/TestResult/TrMetadata/index.tsx +1 -1
- package/src/components/TestResult/TrMetadata/styles.scss +1 -1
- package/src/components/TestResult/TrNavigation/index.tsx +1 -1
- package/src/components/TestResult/TrNavigation/styles.scss +2 -2
- package/src/components/TestResult/TrOverview.tsx +2 -0
- package/src/components/TestResult/TrParameters/index.tsx +1 -1
- package/src/components/TestResult/TrParameters/styles.scss +1 -1
- package/src/components/TestResult/TrPrevStatuses/styles.scss +8 -8
- package/src/components/TestResult/TrPwTraces/styles.scss +1 -1
- package/src/components/TestResult/TrRetriesView/styles.scss +3 -3
- package/src/components/TestResult/TrSetup/index.tsx +9 -3
- package/src/components/TestResult/TrSeverity/styles.scss +7 -7
- package/src/components/TestResult/TrStatus/styles.scss +2 -35
- package/src/components/TestResult/TrSteps/TrAttachment.tsx +79 -43
- package/src/components/TestResult/TrSteps/TrAttachmentInfo.tsx +44 -17
- package/src/components/TestResult/TrSteps/TrErrorStep.tsx +3 -0
- package/src/components/TestResult/TrSteps/TrStep.tsx +9 -4
- package/src/components/TestResult/TrSteps/TrStepHeader.tsx +8 -5
- package/src/components/TestResult/TrSteps/index.tsx +7 -4
- package/src/components/TestResult/TrSteps/stepTreeExpansion.ts +27 -9
- package/src/components/TestResult/TrSteps/styles.scss +80 -20
- package/src/components/TestResult/TrTeardown/index.tsx +9 -3
- package/src/components/TestResult/bodyItems.ts +1 -1
- package/src/components/TestResult/index.tsx +8 -2
- package/src/components/TestResult/styles.scss +10 -1
- package/src/components/TestResult/trOverviewFocus.scss +4 -0
- package/src/components/Timeline/styles.scss +6 -6
- package/src/components/Tree/index.tsx +54 -5
- package/src/components/Tree/styles.scss +55 -35
- package/src/hooks/useTestResultOverviewFocusScroll.ts +23 -0
- package/src/index.html +30 -33
- package/src/index.tsx +12 -6
- package/src/locales/ar.json +61 -1
- package/src/locales/az.json +61 -1
- package/src/locales/de.json +61 -1
- package/src/locales/en.json +61 -1
- package/src/locales/es.json +61 -1
- package/src/locales/fr.json +61 -1
- package/src/locales/he.json +61 -1
- package/src/locales/hy.json +61 -1
- package/src/locales/it.json +61 -1
- package/src/locales/ja.json +61 -1
- package/src/locales/ka.json +61 -1
- package/src/locales/kr.json +61 -1
- package/src/locales/nl.json +61 -1
- package/src/locales/pl.json +61 -1
- package/src/locales/pt.json +61 -1
- package/src/locales/ru.json +61 -1
- package/src/locales/sv.json +61 -1
- package/src/locales/tr.json +61 -1
- package/src/locales/uk.json +61 -1
- package/src/locales/zh-TW.json +61 -1
- package/src/locales/zh.json +61 -1
- package/src/stores/keyboard.ts +371 -0
- package/src/stores/keyboardActions.ts +769 -0
- package/src/stores/locale.ts +1 -0
- package/src/stores/reportEnvSections.ts +6 -0
- package/src/stores/reportRootTabs.ts +95 -0
- package/src/stores/search.ts +147 -0
- package/src/stores/testResultOverviewNav.ts +119 -0
- package/src/stores/testResultTabs.ts +62 -0
- package/src/stores/timeline.ts +1 -1
- package/src/stores/tree.ts +42 -4
- package/src/stores/treeFilters/store.ts +3 -36
- package/src/styles/_pane-active.scss +8 -0
- package/src/styles.scss +1 -1
- package/src/utils/flattenTestResultOverview.ts +182 -0
- package/src/utils/trOverviewFocus.ts +18 -0
- package/test/components/EnvironmentPicker.test.tsx +21 -3
- package/test/components/Header/CiInfo.test.tsx +8 -0
- package/test/components/Header.test.tsx +8 -0
- package/test/components/ReportGlobals.test.tsx +9 -1
- package/test/components/TestResult/PwTraceButton.test.tsx +8 -0
- package/test/components/TestResult/TrErrorStep.test.tsx +8 -0
- package/test/components/TestResult/TrOverview.test.tsx +30 -10
- package/test/components/TestResult/TrSteps.test.tsx +73 -0
- package/test/components/TestResult/bodyItems.test.ts +9 -1
- package/test/components/TestResult/openPwTraceInNewTab.test.ts +8 -0
- package/test/components/TestResult/stepTreeExpansion.test.ts +10 -2
- package/test/components/Timeline.test.tsx +15 -7
- package/test/stores/keyboard/keyboardActions.test.ts +615 -0
- package/test/stores/search.test.ts +143 -0
- package/test/stores/treeFilters/actions.test.ts +8 -0
- package/test/utils/flattenTestResultOverview.test.ts +57 -0
- package/test/utils/ownerAddress.test.ts +9 -1
- package/test/utils/treeFilters.test.ts +9 -1
- package/types.d.ts +17 -0
- package/webpack.config.js +3 -0
- package/CONTRIBUTING.md +0 -34
- package/dist/multi/173.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/174.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/252.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/282.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/29.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/310.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/527.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/600.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/605.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/638.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/672.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/686.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/725.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/741.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/749.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/755.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/943.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/980.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/app-f008fb8342025f2b1ace.js +0 -2
- package/dist/multi/styles-9f7a23a0c8b79fa76981.css +0 -58
- package/dist/single/app-07332238da9897064301.js +0 -2
- package/src/assets/scss/day.scss +0 -53
- package/src/assets/scss/fonts.scss +0 -3
- package/src/assets/scss/night.scss +0 -63
- package/src/assets/scss/palette.scss +0 -393
- package/src/assets/scss/theme.scss +0 -330
- package/src/assets/scss/vars.scss +0 -11
- /package/dist/multi/{app-f008fb8342025f2b1ace.js.LICENSE.txt → app-d36b0855e3e7a53eeee9.js.LICENSE.txt} +0 -0
- /package/dist/single/{app-07332238da9897064301.js.LICENSE.txt → app-62171f5f51b5954a787c.js.LICENSE.txt} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.test-result-error {
|
|
2
2
|
padding: 8px 8px 12px 16px;
|
|
3
|
-
background-color: var(--bg-
|
|
3
|
+
background-color: var(--color-status-failed-bg-subtle);
|
|
4
4
|
border-radius: 8px;
|
|
5
5
|
position: relative;
|
|
6
6
|
overflow: hidden;
|
|
@@ -18,37 +18,37 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.tr-status-failed {
|
|
21
|
-
background-color: var(--bg-
|
|
21
|
+
background-color: var(--color-status-failed-bg-subtle);
|
|
22
22
|
&:before {
|
|
23
|
-
background-color: var(--
|
|
23
|
+
background-color: var(--color-status-failed-chart);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.tr-status-broken {
|
|
28
|
-
background-color: var(--bg-
|
|
28
|
+
background-color: var(--color-status-broken-bg-subtle);
|
|
29
29
|
&:before {
|
|
30
|
-
background-color: var(--
|
|
30
|
+
background-color: var(--color-status-broken-chart);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.tr-status-skipped {
|
|
35
|
-
background-color: var(--bg-
|
|
35
|
+
background-color: var(--color-status-skipped-bg-subtle);
|
|
36
36
|
&:before {
|
|
37
|
-
background-color: var(--
|
|
37
|
+
background-color: var(--color-status-skipped-chart);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.tr-status-unknown {
|
|
42
|
-
background-color: var(--bg-
|
|
42
|
+
background-color: var(--color-status-unknown-bg-subtle);
|
|
43
43
|
&:before {
|
|
44
|
-
background-color: var(--
|
|
44
|
+
background-color: var(--color-status-unknown-chart);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.tr-status-passed {
|
|
49
|
-
background-color: var(--bg-
|
|
49
|
+
background-color: var(--color-status-passed-bg-subtle);
|
|
50
50
|
&:before {
|
|
51
|
-
background-color: var(--
|
|
51
|
+
background-color: var(--color-status-passed-chart);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -61,27 +61,27 @@
|
|
|
61
61
|
.test-result-error-text {
|
|
62
62
|
margin-bottom: 8px;
|
|
63
63
|
padding-left: 8px;
|
|
64
|
-
color: var(--
|
|
64
|
+
color: var(--color-status-failed-text);
|
|
65
65
|
margin-right: auto;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.tr-color-failed {
|
|
69
|
-
color: var(--
|
|
69
|
+
color: var(--color-status-failed-text);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.tr-color-broken {
|
|
73
|
-
color: var(--
|
|
73
|
+
color: var(--color-status-broken-text);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.tr-color-skipped {
|
|
77
|
-
color: var(--
|
|
77
|
+
color: var(--color-status-skipped-text);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.tr-color-passed {
|
|
81
|
-
color: var(--
|
|
81
|
+
color: var(--color-status-passed-text);
|
|
82
82
|
}
|
|
83
83
|
.tr-color-unknown {
|
|
84
|
-
color: var(--
|
|
84
|
+
color: var(--color-status-unknown-text);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.test-result-error-trace {
|
|
@@ -143,18 +143,18 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.diff-green {
|
|
146
|
-
color: var(--
|
|
147
|
-
background:
|
|
146
|
+
color: var(--color-intent-success-text);
|
|
147
|
+
background: var(--color-intent-success-bg-subtle);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.diff-grey {
|
|
151
|
-
color: var(--
|
|
151
|
+
color: var(--color-text-secondary);
|
|
152
152
|
margin-bottom: 4px;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.diff-red {
|
|
156
|
-
color: var(--
|
|
157
|
-
background: var(--bg-
|
|
156
|
+
color: var(--color-intent-danger-text);
|
|
157
|
+
background: var(--color-intent-danger-bg-subtle);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.diff-buttons {
|
|
@@ -201,6 +201,6 @@
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.diff-buttons-title {
|
|
204
|
-
color: var(--
|
|
204
|
+
color: var(--color-text-secondary);
|
|
205
205
|
margin-right: 8px;
|
|
206
206
|
}
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.test-result-breadcrumb-link {
|
|
16
|
-
color: var(--
|
|
16
|
+
color: var(--color-text-secondary);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.test-result-breadcrumb {
|
|
20
20
|
display: flex;
|
|
21
21
|
min-width: 0;
|
|
22
22
|
gap: 4px;
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--color-text-secondary);
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
text-overflow: ellipsis;
|
|
26
26
|
overflow: hidden;
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
align-items: flex-start;
|
|
22
22
|
text-decoration: none;
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--color-text-primary);
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
|
-
background: var(--
|
|
26
|
+
background: var(--color-row-bg-hover);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
padding-top: 2px;
|
|
32
32
|
|
|
33
33
|
&[data-unknown] {
|
|
34
|
-
color: var(--
|
|
34
|
+
color: var(--color-text-muted);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
.item-time {
|
|
46
46
|
margin-left: auto;
|
|
47
47
|
line-height: 20px;
|
|
48
|
-
color: var(--
|
|
48
|
+
color: var(--color-text-secondary);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.test-result-history-item-link {
|
|
52
52
|
:root {
|
|
53
|
-
--allure-btn-icon-color: var(--
|
|
53
|
+
--allure-btn-icon-color: var(--color-control-bg-ghost);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
color: var(--
|
|
56
|
+
color: var(--color-icon-secondary);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.test-result-history-item-status {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
left: 0;
|
|
8
8
|
top: 0;
|
|
9
9
|
width: 100%;
|
|
10
|
-
background: var(--bg-
|
|
10
|
+
background: var(--color-bg-primary);
|
|
11
11
|
z-index: 1;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
left: 0;
|
|
17
17
|
top: 0;
|
|
18
18
|
width: 100%;
|
|
19
|
-
background: var(--bg-
|
|
20
|
-
z-index:
|
|
19
|
+
background: var(--color-bg-primary);
|
|
20
|
+
z-index: 2;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.test-result-info-data {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
margin-bottom: 8px;
|
|
28
28
|
|
|
29
29
|
& > *:not(:first-child):not(:empty) {
|
|
30
|
-
border-left: 1px solid var(--
|
|
30
|
+
border-left: 1px solid var(--color-border-default);
|
|
31
31
|
padding-left: 12px;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.test-result-duration {
|
|
41
|
-
color: var(--
|
|
41
|
+
color: var(--color-text-secondary);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.test-result-category {
|
|
45
|
-
color: var(--
|
|
45
|
+
color: var(--color-text-secondary);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.test-result-tabs {
|
|
49
|
-
border-bottom: 1px solid var(--
|
|
49
|
+
border-bottom: 1px solid var(--color-border-default);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.test-result-tab {
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
|
|
70
70
|
.metadata-icon {
|
|
71
71
|
margin-right: 8px;
|
|
72
|
-
color: var(--
|
|
72
|
+
color: var(--color-icon-secondary);
|
|
73
73
|
}
|
|
@@ -62,8 +62,8 @@ export type TrLinksProps = {
|
|
|
62
62
|
|
|
63
63
|
export const TrLinks: FunctionalComponent<TrLinksProps> = ({ id, links }) => {
|
|
64
64
|
const { t } = useI18n("ui");
|
|
65
|
-
const linksId = id
|
|
66
|
-
const linksShowAllId = id
|
|
65
|
+
const linksId = id ? `${id}-links` : null;
|
|
66
|
+
const linksShowAllId = id ? `${id}-links-showAll` : null;
|
|
67
67
|
const isOpened = !collapsedTrees.value.has(linksId);
|
|
68
68
|
const showAll = collapsedTrees.value.has(linksShowAllId);
|
|
69
69
|
const visibleLinks =
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
.test-result-links-wrapper {
|
|
9
9
|
width: 100%;
|
|
10
|
-
border-bottom: 1px solid var(--
|
|
10
|
+
border-bottom: 1px solid var(--color-border-default);
|
|
11
11
|
padding-bottom: 12px;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.test-result-link-text {
|
|
22
|
-
color: var(--
|
|
22
|
+
color: var(--color-link-text);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.test-result-links-list {
|
|
@@ -19,7 +19,7 @@ export type TrMetadataProps = {
|
|
|
19
19
|
export const TrMetadata: FunctionalComponent<TrMetadataProps> = ({ id, testResult }) => {
|
|
20
20
|
const { t } = useI18n("ui");
|
|
21
21
|
const { labels, groupedLabels } = testResult ?? {};
|
|
22
|
-
const labelsId = id
|
|
22
|
+
const labelsId = id ? `${id}-labels` : null;
|
|
23
23
|
const labelsShowAllId = id !== null ? `${id}-labels-showAll` : null;
|
|
24
24
|
const isOpened = !collapsedTrees.value.has(labelsId);
|
|
25
25
|
const entries = groupedLabels ? Object.entries(groupedLabels) : [];
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
white-space: nowrap;
|
|
20
20
|
text-overflow: ellipsis;
|
|
21
21
|
width: 100%;
|
|
22
|
-
color: var(--
|
|
22
|
+
color: var(--color-text-secondary);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.counter {
|
|
35
|
-
color: var(--
|
|
35
|
+
color: var(--color-text-secondary);
|
|
36
36
|
padding-left: 4px;
|
|
37
37
|
padding-right: 4px;
|
|
38
38
|
}
|
|
@@ -11,6 +11,7 @@ import { TrPwTraces } from "@/components/TestResult/TrPwTraces";
|
|
|
11
11
|
import { TrSetup } from "@/components/TestResult/TrSetup";
|
|
12
12
|
import { TrSteps } from "@/components/TestResult/TrSteps";
|
|
13
13
|
import { TrTeardown } from "@/components/TestResult/TrTeardown";
|
|
14
|
+
import { useTestResultOverviewFocusScroll } from "@/hooks/useTestResultOverviewFocusScroll";
|
|
14
15
|
import { useI18n } from "@/stores/locale";
|
|
15
16
|
import { currentTrId } from "@/stores/testResult";
|
|
16
17
|
|
|
@@ -21,6 +22,7 @@ export type TrOverviewProps = {
|
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
export const TrOverview: FunctionalComponent<TrOverviewProps> = ({ testResult }) => {
|
|
25
|
+
useTestResultOverviewFocusScroll();
|
|
24
26
|
const { parameters, groupedLabels, links, descriptionHtml, setup, teardown, id } = testResult || {};
|
|
25
27
|
const testResultId = id ?? currentTrId.value;
|
|
26
28
|
const { t } = useI18n("ui");
|
|
@@ -18,7 +18,7 @@ export type TrParametersProps = {
|
|
|
18
18
|
|
|
19
19
|
export const TrParameters: FunctionalComponent<TrParametersProps> = ({ id, parameters }) => {
|
|
20
20
|
const { t } = useI18n("ui");
|
|
21
|
-
const parametersId = id
|
|
21
|
+
const parametersId = id ? `${id}-parameters` : null;
|
|
22
22
|
const parametersShowAllId = id !== null ? `${id}-parameters-showAll` : null;
|
|
23
23
|
const isOpened = !collapsedTrees.value.has(parametersId);
|
|
24
24
|
const list = parameters ?? [];
|
|
@@ -20,35 +20,35 @@
|
|
|
20
20
|
top: 0;
|
|
21
21
|
bottom: 0;
|
|
22
22
|
margin: auto;
|
|
23
|
-
background: var(--
|
|
23
|
+
background: var(--color-border-medium);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.status-passed {
|
|
29
|
-
color: var(--
|
|
29
|
+
color: var(--color-status-passed-chart);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.status-failed {
|
|
33
|
-
color: var(--
|
|
33
|
+
color: var(--color-status-failed-chart);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.status-broken {
|
|
37
|
-
color: var(--
|
|
37
|
+
color: var(--color-status-broken-chart);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.status-skipped {
|
|
41
|
-
color: var(--
|
|
41
|
+
color: var(--color-status-skipped-chart);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.status-unknown {
|
|
45
|
-
color: var(--
|
|
45
|
+
color: var(--color-status-unknown-chart);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.test-result-prev-status-tooltip {
|
|
49
49
|
text-align: center;
|
|
50
|
-
background-color: var(--
|
|
51
|
-
color: var(--
|
|
50
|
+
background-color: var(--color-bg-inverse-raised);
|
|
51
|
+
color: var(--color-text-inverse);
|
|
52
52
|
padding: 2px 8px;
|
|
53
53
|
border-radius: 6px;
|
|
54
54
|
font-size: 12px;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
align-items: flex-start;
|
|
30
30
|
|
|
31
31
|
&:hover {
|
|
32
|
-
background: var(--
|
|
32
|
+
background: var(--color-row-bg-hover);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.item-time {
|
|
48
48
|
margin-left: auto;
|
|
49
49
|
line-height: 20px;
|
|
50
|
-
color: var(--
|
|
50
|
+
color: var(--color-text-secondary);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.test-result-retries-item-content {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.test-result-retries-item-link {
|
|
58
|
-
color: var(--
|
|
58
|
+
color: var(--color-icon-secondary);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.test-result-retries-item-status {
|
|
@@ -8,6 +8,7 @@ import { TrDropdown } from "@/components/TestResult/TrDropdown";
|
|
|
8
8
|
import { TrStep } from "@/components/TestResult/TrSteps/TrStep";
|
|
9
9
|
import { useI18n } from "@/stores/locale";
|
|
10
10
|
import { collapsedTrees, toggleTree } from "@/stores/tree";
|
|
11
|
+
import { trOverviewFocusAttrs, trOverviewHeaderFocusClass } from "@/utils/trOverviewFocus";
|
|
11
12
|
|
|
12
13
|
import * as styles from "@/components/TestResult/TrSteps/styles.scss";
|
|
13
14
|
|
|
@@ -17,19 +18,24 @@ export type TrSetupProps = {
|
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export const TrSetup: FunctionalComponent<TrSetupProps> = ({ setup, id }) => {
|
|
20
|
-
const
|
|
21
|
-
const isEarlyCollapsed = Boolean(!collapsedTrees.value.has(
|
|
21
|
+
const setupId = id ? `${id}-setup` : null;
|
|
22
|
+
const isEarlyCollapsed = setupId ? Boolean(!collapsedTrees.value.has(setupId)) : true;
|
|
22
23
|
const [isOpened, setIsOpen] = useState<boolean>(isEarlyCollapsed);
|
|
23
24
|
|
|
24
25
|
const handleClick = () => {
|
|
25
26
|
setIsOpen(!isOpened);
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
if (setupId) {
|
|
29
|
+
toggleTree(setupId);
|
|
30
|
+
}
|
|
27
31
|
};
|
|
28
32
|
const { t } = useI18n("execution");
|
|
29
33
|
|
|
30
34
|
return (
|
|
31
35
|
<div className={styles["test-result-steps"]}>
|
|
32
36
|
<TrDropdown
|
|
37
|
+
className={trOverviewHeaderFocusClass(setupId)}
|
|
38
|
+
{...trOverviewFocusAttrs(setupId)}
|
|
33
39
|
icon={allureIcons.lineTimeClockStopwatch}
|
|
34
40
|
isOpened={isOpened}
|
|
35
41
|
setIsOpen={handleClick}
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 6px;
|
|
5
|
-
color: var(--
|
|
5
|
+
color: var(--color-text-secondary);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.test-result-severity-text {
|
|
9
|
-
color: var(--
|
|
9
|
+
color: var(--color-text-secondary);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.severity-blocker {
|
|
13
|
-
color: var(--
|
|
13
|
+
color: var(--color-intent-danger-text);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.severity-critical {
|
|
17
|
-
color: var(--
|
|
17
|
+
color: var(--color-intent-warning-text);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.severity-normal {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--color-icon-secondary);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.severity-minor {
|
|
25
|
-
color: var(--
|
|
25
|
+
color: var(--color-intent-primary-text);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.severity-trivial {
|
|
29
|
-
color: var(--
|
|
29
|
+
color: var(--color-intent-success-text);
|
|
30
30
|
}
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
.
|
|
2
|
-
padding: 2px;
|
|
3
|
-
display: flex;
|
|
4
|
-
border-radius: 100px;
|
|
5
|
-
color: var(--constant-on-text-primary);
|
|
6
|
-
height: max-content;
|
|
7
|
-
}
|
|
1
|
+
@import "~@allurereport/web-components/mixins.scss";
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
padding: 0 4px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.test-result-status-icon {
|
|
14
|
-
color: var(--constant-on-text-primary);
|
|
15
|
-
padding: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.status-passed {
|
|
19
|
-
background-color: var(--bg-support-castor);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.status-failed {
|
|
23
|
-
background-color: var(--bg-support-capella);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.status-broken {
|
|
27
|
-
background-color: var(--bg-support-atlas);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.status-skipped {
|
|
31
|
-
background-color: var(--bg-support-rau);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.status-unknown {
|
|
35
|
-
background-color: var(--bg-support-skat);
|
|
36
|
-
}
|
|
3
|
+
@include status-label-shape("test-result-status", "test-result-status-icon", "test-result-status-text");
|