@allurereport/web-classic 3.0.0-beta.10
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/.babelrc--old.cjs +18 -0
- package/.babelrc.js +46 -0
- package/.eslintrc--old.cjs +125 -0
- package/.eslintrc.cjs +22 -0
- package/README.md +27 -0
- package/dist/multi/10.app-970f027d.js +1 -0
- package/dist/multi/222.app-970f027d.js +1 -0
- package/dist/multi/26.app-970f027d.js +1 -0
- package/dist/multi/302.app-970f027d.js +1 -0
- package/dist/multi/304.app-970f027d.js +1 -0
- package/dist/multi/369.app-970f027d.js +1 -0
- package/dist/multi/389.app-970f027d.js +1 -0
- package/dist/multi/498.app-970f027d.js +1 -0
- package/dist/multi/60.app-970f027d.js +1 -0
- package/dist/multi/643.app-970f027d.js +1 -0
- package/dist/multi/671.app-970f027d.js +1 -0
- package/dist/multi/725.app-970f027d.js +1 -0
- package/dist/multi/770.app-970f027d.js +1 -0
- package/dist/multi/848.app-970f027d.js +1 -0
- package/dist/multi/853.app-970f027d.js +1 -0
- package/dist/multi/872.app-970f027d.js +1 -0
- package/dist/multi/895.app-970f027d.js +1 -0
- package/dist/multi/920.app-970f027d.js +1 -0
- package/dist/multi/979.app-970f027d.js +1 -0
- package/dist/multi/991.app-970f027d.js +1 -0
- package/dist/multi/JetBrainsMono_vf-9e9649b6..woff2 +0 -0
- package/dist/multi/JetBrainsMono_vf-b9a9c326..woff +0 -0
- package/dist/multi/app-970f027d.js +2 -0
- package/dist/multi/app-970f027d.js.LICENSE.txt +25 -0
- package/dist/multi/manifest.json +28 -0
- package/dist/multi/pt-root-ui_vf-22fe60ca..woff +0 -0
- package/dist/multi/pt-root-ui_vf-9d251e8b..woff2 +0 -0
- package/dist/multi/styles-970f027d.css +283 -0
- package/dist/single/app-2babff54.js +2 -0
- package/dist/single/app-2babff54.js.LICENSE.txt +25 -0
- package/dist/single/manifest.json +3 -0
- package/package--old.json +106 -0
- package/package.json +107 -0
- package/postcss.config.js +5 -0
- package/src/assets/scss/_common.scss +142 -0
- package/src/assets/scss/code.scss +71 -0
- package/src/assets/scss/day.scss +51 -0
- package/src/assets/scss/fonts.scss +3 -0
- package/src/assets/scss/index.scss +9 -0
- package/src/assets/scss/night.scss +61 -0
- package/src/assets/scss/palette.scss +393 -0
- package/src/assets/scss/theme.scss +117 -0
- package/src/assets/scss/typography.scss +218 -0
- package/src/assets/scss/vars.scss +8 -0
- package/src/components/ArrowButton/index.tsx +36 -0
- package/src/components/ArrowButton/styles.scss +35 -0
- package/src/components/BaseLayout/index.tsx +23 -0
- package/src/components/BaseLayout/styles.scss +63 -0
- package/src/components/Behaviors/BehaviorsList.tsx +67 -0
- package/src/components/Behaviors/index.tsx +60 -0
- package/src/components/Behaviors/styles.scss +196 -0
- package/src/components/Categories/CategoriesList.tsx +67 -0
- package/src/components/Categories/index.tsx +60 -0
- package/src/components/Categories/styles.scss +196 -0
- package/src/components/Footer/FooterLogo.tsx +16 -0
- package/src/components/Footer/FooterVersion.tsx +33 -0
- package/src/components/Footer/index.tsx +13 -0
- package/src/components/Footer/styles.scss +14 -0
- package/src/components/Graphs/index.tsx +2 -0
- package/src/components/Header/index.tsx +14 -0
- package/src/components/Header/styles.scss +26 -0
- package/src/components/HeaderActions/Filters.tsx +90 -0
- package/src/components/HeaderActions/HeaderActions.tsx +59 -0
- package/src/components/HeaderActions/SortBy.tsx +128 -0
- package/src/components/HeaderActions/styles.scss +82 -0
- package/src/components/LanguagePicker/index.tsx +41 -0
- package/src/components/LanguagePicker/styles.scss +3 -0
- package/src/components/MainReport/index.tsx +19 -0
- package/src/components/Metadata/index.tsx +121 -0
- package/src/components/Metadata/styles.scss +146 -0
- package/src/components/MetadataButton/index.tsx +32 -0
- package/src/components/MetadataButton/styles.scss +53 -0
- package/src/components/Modal/ModalView.hbs +13 -0
- package/src/components/Modal/ModalView.js +43 -0
- package/src/components/Modal/index.tsx +174 -0
- package/src/components/Modal/styles.scss +126 -0
- package/src/components/Overview/index.tsx +9 -0
- package/src/components/Packages/PackagesList.tsx +67 -0
- package/src/components/Packages/index.tsx +59 -0
- package/src/components/Packages/styles.scss +196 -0
- package/src/components/ReportBody/Filters.tsx +92 -0
- package/src/components/ReportBody/HeaderActions.tsx +21 -0
- package/src/components/ReportBody/SortBy.tsx +132 -0
- package/src/components/ReportBody/context.tsx +106 -0
- package/src/components/ReportBody/index.tsx +71 -0
- package/src/components/ReportBody/styles.scss +64 -0
- package/src/components/ReportHeader/ReportHeaderLabelList.tsx +12 -0
- package/src/components/ReportHeader/ReportHeaderLogo.tsx +10 -0
- package/src/components/ReportHeader/ReportHeaderPie.tsx +14 -0
- package/src/components/ReportHeader/index.tsx +33 -0
- package/src/components/ReportHeader/styles.scss +49 -0
- package/src/components/ReportLogo/index.tsx +16 -0
- package/src/components/ReportLogo/styles.scss +20 -0
- package/src/components/ReportLogoFull/index.tsx +20 -0
- package/src/components/ReportLogoFull/styles.scss +7 -0
- package/src/components/ReportMetadata/MetadataItem.tsx +45 -0
- package/src/components/ReportMetadata/MetadataSummary.tsx +81 -0
- package/src/components/ReportMetadata/MetadataTestType.tsx +16 -0
- package/src/components/ReportMetadata/MetadataWithIcon.tsx +21 -0
- package/src/components/ReportMetadata/index.tsx +46 -0
- package/src/components/ReportMetadata/styles.scss +99 -0
- package/src/components/SideBySide/index.tsx +54 -0
- package/src/components/SideBySide/styles.scss +59 -0
- package/src/components/SideNav/SideNav.tsx +78 -0
- package/src/components/SideNav/SideNavView.hbs +39 -0
- package/src/components/SideNav/SideNavView.js +81 -0
- package/src/components/SideNav/styles.scss +126 -0
- package/src/components/Suites/index.tsx +62 -0
- package/src/components/Suites/styles.scss +10 -0
- package/src/components/Tabs/index.tsx +33 -0
- package/src/components/Tabs/styles.scss +56 -0
- package/src/components/TestResult/TestResultAttachmentsView/index.tsx +27 -0
- package/src/components/TestResult/TestResultAttachmentsView/styles.scss +12 -0
- package/src/components/TestResult/TestResultDescription/index.tsx +27 -0
- package/src/components/TestResult/TestResultDescription/styles.scss +12 -0
- package/src/components/TestResult/TestResultDropdown/index.tsx +23 -0
- package/src/components/TestResult/TestResultDropdown/styles.scss +34 -0
- package/src/components/TestResult/TestResultEmpty/index.tsx +33 -0
- package/src/components/TestResult/TestResultEmpty/styles.scss +25 -0
- package/src/components/TestResult/TestResultError/index.tsx +48 -0
- package/src/components/TestResult/TestResultError/styles.scss +51 -0
- package/src/components/TestResult/TestResultHeader/index.tsx +53 -0
- package/src/components/TestResult/TestResultHeader/styles.scss +43 -0
- package/src/components/TestResult/TestResultHistory/TestResultHistoryItem.tsx +67 -0
- package/src/components/TestResult/TestResultHistory/index.tsx +26 -0
- package/src/components/TestResult/TestResultHistory/styles.scss +63 -0
- package/src/components/TestResult/TestResultInfo/TestResultInfoStatuses.tsx +30 -0
- package/src/components/TestResult/TestResultInfo/index.tsx +79 -0
- package/src/components/TestResult/TestResultInfo/styles.scss +50 -0
- package/src/components/TestResult/TestResultLinks/index.tsx +56 -0
- package/src/components/TestResult/TestResultLinks/styles.scss +30 -0
- package/src/components/TestResult/TestResultMetadata/index.tsx +27 -0
- package/src/components/TestResult/TestResultMetadata/styles.scss +8 -0
- package/src/components/TestResult/TestResultNavigation/index.tsx +80 -0
- package/src/components/TestResult/TestResultNavigation/styles.scss +48 -0
- package/src/components/TestResult/TestResultOverview.tsx +40 -0
- package/src/components/TestResult/TestResultParameters/index.tsx +30 -0
- package/src/components/TestResult/TestResultParameters/styles.scss +8 -0
- package/src/components/TestResult/TestResultPrevStatuses/index.tsx +49 -0
- package/src/components/TestResult/TestResultPrevStatuses/styles.scss +57 -0
- package/src/components/TestResult/TestResultRetriesView/TestResultRetriesItem.tsx +49 -0
- package/src/components/TestResult/TestResultRetriesView/index.tsx +20 -0
- package/src/components/TestResult/TestResultRetriesView/styles.scss +69 -0
- package/src/components/TestResult/TestResultSetup/index.tsx +49 -0
- package/src/components/TestResult/TestResultSeverity/index.tsx +27 -0
- package/src/components/TestResult/TestResultSeverity/styles.scss +29 -0
- package/src/components/TestResult/TestResultStatus/index.tsx +26 -0
- package/src/components/TestResult/TestResultStatus/styles.scss +36 -0
- package/src/components/TestResult/TestResultSteps/HtmlAttachmentPreview.tsx +12 -0
- package/src/components/TestResult/TestResultSteps/attachment.tsx +68 -0
- package/src/components/TestResult/TestResultSteps/attachmentCode.tsx +20 -0
- package/src/components/TestResult/TestResultSteps/attachmentImage.tsx +32 -0
- package/src/components/TestResult/TestResultSteps/attachmentVideo.tsx +15 -0
- package/src/components/TestResult/TestResultSteps/index.tsx +49 -0
- package/src/components/TestResult/TestResultSteps/styles.scss +225 -0
- package/src/components/TestResult/TestResultSteps/testResultAttachment.tsx +77 -0
- package/src/components/TestResult/TestResultSteps/testResultAttachmentInfo.tsx +83 -0
- package/src/components/TestResult/TestResultSteps/testResultStep.tsx +78 -0
- package/src/components/TestResult/TestResultSteps/testResultStepInfo.tsx +30 -0
- package/src/components/TestResult/TestResultSteps/wrongAttachment.tsx +8 -0
- package/src/components/TestResult/TestResultTabs/index.tsx +59 -0
- package/src/components/TestResult/TestResultTabs/styles.scss +76 -0
- package/src/components/TestResult/TestResultTeardown/index.tsx +49 -0
- package/src/components/TestResult/TestResultView.hbs +32 -0
- package/src/components/TestResult/TestResultView.js +90 -0
- package/src/components/TestResult/index.tsx +54 -0
- package/src/components/TestResult/styles.scss +29 -0
- package/src/components/TestResultView/index.tsx +31 -0
- package/src/components/ThemeButton/ThemeButton.tsx +20 -0
- package/src/components/Timeline/index.tsx +2 -0
- package/src/components/Tree/Tree.tsx +76 -0
- package/src/components/Tree/TreeHeader.tsx +82 -0
- package/src/components/Tree/TreeItem.tsx +49 -0
- package/src/components/Tree/TreeItemIcon.tsx +32 -0
- package/src/components/Tree/index.tsx +60 -0
- package/src/components/Tree/styles.scss +185 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +40 -0
- package/src/index.js +52 -0
- package/src/index.tsx +60 -0
- package/src/mixins.scss +128 -0
- package/src/rtl.scss +19 -0
- package/src/stores/behaviors.ts +127 -0
- package/src/stores/categories.ts +127 -0
- package/src/stores/chart.ts +32 -0
- package/src/stores/envInfo.ts +34 -0
- package/src/stores/index.ts +4 -0
- package/src/stores/locale.ts +83 -0
- package/src/stores/packages.ts +127 -0
- package/src/stores/router.ts +55 -0
- package/src/stores/stats.ts +36 -0
- package/src/stores/tabs.ts +7 -0
- package/src/stores/testResults.ts +66 -0
- package/src/stores/theme.ts +33 -0
- package/src/stores/tree.ts +127 -0
- package/src/stores/types.ts +5 -0
- package/src/styles.scss +91 -0
- package/src/translations/am.json +127 -0
- package/src/translations/az.json +127 -0
- package/src/translations/br.json +214 -0
- package/src/translations/constants.ts +124 -0
- package/src/translations/de.json +127 -0
- package/src/translations/en.json +128 -0
- package/src/translations/es.json +118 -0
- package/src/translations/fr.json +118 -0
- package/src/translations/he.json +118 -0
- package/src/translations/isv.json +216 -0
- package/src/translations/it.json +118 -0
- package/src/translations/ja.json +118 -0
- package/src/translations/ka.json +118 -0
- package/src/translations/kr.json +118 -0
- package/src/translations/nl.json +118 -0
- package/src/translations/pl.json +116 -0
- package/src/translations/pt.json +118 -0
- package/src/translations/ru.json +116 -0
- package/src/translations/sv.json +118 -0
- package/src/translations/tr.json +118 -0
- package/src/translations/zh.json +118 -0
- package/src/types/globals.d.ts +13 -0
- package/src/types/window.d.ts +8 -0
- package/src/utils/attachments.ts +156 -0
- package/src/utils/capitalize.ts +6 -0
- package/src/utils/copyToClipboard.ts +16 -0
- package/src/utils/isMac.ts +8 -0
- package/src/utils/navigate.ts +7 -0
- package/src/utils/statuses.js +1 -0
- package/src/utils/statuses.ts +55 -0
- package/src/utils/time.ts +17 -0
- package/src/utils/treeFilters.ts +139 -0
- package/src/variables.scss +71 -0
- package/test/utils/treeFilters.test.ts +448 -0
- package/tsconfig.json +25 -0
- package/types.d.ts +85 -0
- package/vitest.config.ts +18 -0
- package/webpack.config--old.js +127 -0
- package/webpack.config.js +108 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-family: "PTRootUIWebVF", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
3
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
4
|
+
--font-family-mono: "JetBrainsMonoVF", ui-monospace, monospace;
|
|
5
|
+
|
|
6
|
+
/* line-heights */
|
|
7
|
+
--line-height-xxl: 40px;
|
|
8
|
+
--line-height-xl: 32px;
|
|
9
|
+
--line-height-l: 24px;
|
|
10
|
+
--line-height-m: 20px;
|
|
11
|
+
--line-height-s: 16px;
|
|
12
|
+
|
|
13
|
+
/* font-sizes */
|
|
14
|
+
--font-size-3xl: 36px;
|
|
15
|
+
--font-size-2xl: 24px;
|
|
16
|
+
--font-size-xl: 18px;
|
|
17
|
+
--font-size-l: 16px;
|
|
18
|
+
--font-size-m: 14px;
|
|
19
|
+
--font-size-m-code: 13px;
|
|
20
|
+
--font-size-s: 12px;
|
|
21
|
+
--font-size-xs: 11px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:root[data-os="mac"] {
|
|
25
|
+
-webkit-font-smoothing: antialiased;
|
|
26
|
+
-moz-osx-font-smoothing: grayscale;
|
|
27
|
+
|
|
28
|
+
--font-weight-normal: 425;
|
|
29
|
+
--font-weight-bold: 625;
|
|
30
|
+
--font-weight-extra-bold: 700;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* For non macos users font weights are different and nor antialiased */
|
|
34
|
+
:root:not([data-os="mac"]) {
|
|
35
|
+
-webkit-font-smoothing: auto;
|
|
36
|
+
-moz-osx-font-smoothing: auto;
|
|
37
|
+
|
|
38
|
+
--font-weight-normal: 400;
|
|
39
|
+
--font-weight-bold: 600;
|
|
40
|
+
--font-weight-extra-bold: 700;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body {
|
|
44
|
+
/* paragraphs-text-m */
|
|
45
|
+
font-size: var(--font-size-m);
|
|
46
|
+
line-height: var(--line-height-m);
|
|
47
|
+
font-weight: var(--font-weight-normal);
|
|
48
|
+
letter-spacing: 0;
|
|
49
|
+
font-family: var(--font-family);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:global(.headings-head-l) {
|
|
53
|
+
font-size: var(--font-size-3xl);
|
|
54
|
+
line-height: var(--line-height-xxl);
|
|
55
|
+
font-weight: var(--font-weight-extra-bold);
|
|
56
|
+
letter-spacing: -0.016em; // -1.6%
|
|
57
|
+
font-family: var(--font-family);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:global(.headings-head-m) {
|
|
61
|
+
font-size: var(--font-size-2xl);
|
|
62
|
+
line-height: var(--line-height-xl);
|
|
63
|
+
font-weight: var(--font-weight-extra-bold);
|
|
64
|
+
letter-spacing: -0.016em; // -1.6%
|
|
65
|
+
font-family: var(--font-family);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:global(.headings-head-s) {
|
|
69
|
+
font-size: var(--font-size-xl);
|
|
70
|
+
line-height: var(--line-height-l);
|
|
71
|
+
font-weight: var(--font-weight-extra-bold);
|
|
72
|
+
letter-spacing: -0.01em; // -1%
|
|
73
|
+
font-family: var(--font-family);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:global(.paragraphs-text-l-bold) {
|
|
77
|
+
font-size: var(--font-size-l);
|
|
78
|
+
line-height: var(--line-height-l);
|
|
79
|
+
font-weight: var(--font-weight-bold);
|
|
80
|
+
letter-spacing: 0;
|
|
81
|
+
font-family: var(--font-family);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:global(.paragraphs-text-l) {
|
|
85
|
+
font-size: var(--font-size-l);
|
|
86
|
+
line-height: var(--line-height-l);
|
|
87
|
+
font-weight: var(--font-weight-normal);
|
|
88
|
+
letter-spacing: 0;
|
|
89
|
+
font-family: var(--font-family);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:global(.paragraphs-text-m-bold) {
|
|
93
|
+
font-size: var(--font-size-m);
|
|
94
|
+
line-height: var(--line-height-m);
|
|
95
|
+
font-weight: var(--font-weight-bold);
|
|
96
|
+
letter-spacing: 0;
|
|
97
|
+
font-family: var(--font-family);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:global(.paragraphs-text-m) {
|
|
101
|
+
font-size: var(--font-size-m);
|
|
102
|
+
line-height: var(--line-height-m);
|
|
103
|
+
font-weight: var(--font-weight-normal);
|
|
104
|
+
letter-spacing: 0;
|
|
105
|
+
font-family: var(--font-family);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:global(.paragraphs-text-s-bold) {
|
|
109
|
+
font-size: var(--font-size-s);
|
|
110
|
+
line-height: var(--line-height-m);
|
|
111
|
+
font-weight: var(--font-weight-bold);
|
|
112
|
+
letter-spacing: 0;
|
|
113
|
+
font-family: var(--font-family);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:global(.paragraphs-text-s) {
|
|
117
|
+
font-size: var(--font-size-s);
|
|
118
|
+
line-height: var(--line-height-m);
|
|
119
|
+
font-weight: var(--font-weight-normal);
|
|
120
|
+
letter-spacing: 0;
|
|
121
|
+
font-family: var(--font-family);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:global(.paragraphs-code-m) {
|
|
125
|
+
font-size: var(--font-size-m-code);
|
|
126
|
+
line-height: var(--line-height-m);
|
|
127
|
+
font-weight: var(--font-weight-normal);
|
|
128
|
+
letter-spacing: 0;
|
|
129
|
+
font-family: var(--font-family-mono);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:global(.paragraphs-code-s) {
|
|
133
|
+
font-size: var(--font-size-s);
|
|
134
|
+
line-height: var(--line-height-m);
|
|
135
|
+
font-weight: var(--font-weight-normal);
|
|
136
|
+
letter-spacing: 0;
|
|
137
|
+
font-family: var(--font-family-mono);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:global(.ui-text-l-ui-bold) {
|
|
141
|
+
font-size: var(--font-size-l);
|
|
142
|
+
line-height: var(--line-height-m);
|
|
143
|
+
font-weight: var(--font-weight-bold);
|
|
144
|
+
letter-spacing: 0;
|
|
145
|
+
font-family: var(--font-family);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:global(.ui-text-l-ui) {
|
|
149
|
+
font-size: var(--font-size-l);
|
|
150
|
+
line-height: var(--line-height-m);
|
|
151
|
+
font-weight: var(--font-weight-normal);
|
|
152
|
+
letter-spacing: 0;
|
|
153
|
+
font-family: var(--font-family);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:global(.ui-text-m-ui-bold) {
|
|
157
|
+
font-size: var(--font-size-m);
|
|
158
|
+
line-height: var(--line-height-s);
|
|
159
|
+
font-weight: var(--font-weight-bold);
|
|
160
|
+
letter-spacing: 0;
|
|
161
|
+
font-family: var(--font-family);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:global(.ui-text-m-ui) {
|
|
165
|
+
font-size: var(--font-size-m);
|
|
166
|
+
line-height: var(--line-height-s);
|
|
167
|
+
font-weight: var(--font-weight-normal);
|
|
168
|
+
letter-spacing: 0;
|
|
169
|
+
font-family: var(--font-family);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:global(.ui-text-s-ui-bold) {
|
|
173
|
+
font-size: var(--font-size-s);
|
|
174
|
+
line-height: var(--line-height-s);
|
|
175
|
+
font-weight: var(--font-weight-bold);
|
|
176
|
+
letter-spacing: 0;
|
|
177
|
+
font-family: var(--font-family);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:global(.ui-text-s-ui) {
|
|
181
|
+
font-size: var(--font-size-s);
|
|
182
|
+
line-height: var(--line-height-s);
|
|
183
|
+
font-weight: var(--font-weight-normal);
|
|
184
|
+
letter-spacing: 0;
|
|
185
|
+
font-family: var(--font-family);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:global(.ui-text-xs-ui-bold) {
|
|
189
|
+
font-size: var(--font-size-xs);
|
|
190
|
+
line-height: var(--line-height-s);
|
|
191
|
+
font-weight: var(--font-weight-bold);
|
|
192
|
+
letter-spacing: 0;
|
|
193
|
+
font-family: var(--font-family);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:global(.ui-text-xs-ui) {
|
|
197
|
+
font-size: var(--font-size-xs);
|
|
198
|
+
line-height: var(--line-height-s);
|
|
199
|
+
font-weight: var(--font-weight-normal);
|
|
200
|
+
letter-spacing: 0;
|
|
201
|
+
font-family: var(--font-family);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:global(.ui-code-m-ui) {
|
|
205
|
+
font-size: var(--font-size-m-code);
|
|
206
|
+
line-height: var(--line-height-s);
|
|
207
|
+
font-weight: var(--font-weight-normal);
|
|
208
|
+
letter-spacing: 0;
|
|
209
|
+
font-family: var(--font-family-mono);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:global(.ui-code-s-ui) {
|
|
213
|
+
font-size: var(--font-size-s);
|
|
214
|
+
line-height: var(--line-height-s);
|
|
215
|
+
font-weight: var(--font-weight-normal);
|
|
216
|
+
letter-spacing: 0;
|
|
217
|
+
font-family: var(--font-family-mono);
|
|
218
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--shadow-small: 0px 2px 10px 0px rgba(48, 57, 64, 0.08);
|
|
3
|
+
--shadow-medium: 0px 8px 24px 0px rgba(48, 57, 64, 0.12);
|
|
4
|
+
--shadow-raised: 0px 2px 6px 0px rgba(48, 57, 64, 0.08);
|
|
5
|
+
|
|
6
|
+
--color-change-transition-duration: 0.15s;
|
|
7
|
+
--interaction-transition-duration: 0.1s;
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SvgIcon, allureIcons } from "@allurereport/web-components";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import type { FunctionalComponent } from "preact";
|
|
4
|
+
import * as styles from "./styles.scss";
|
|
5
|
+
|
|
6
|
+
export interface ArrowButtonProps {
|
|
7
|
+
isOpened?: boolean;
|
|
8
|
+
iconSize?: "m" | "xs" | "s";
|
|
9
|
+
buttonSize?: "m" | "xs" | "s";
|
|
10
|
+
className?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const ArrowButton: FunctionalComponent<ArrowButtonProps> = ({
|
|
15
|
+
isOpened,
|
|
16
|
+
buttonSize = "m",
|
|
17
|
+
iconSize = "xs",
|
|
18
|
+
className,
|
|
19
|
+
icon = allureIcons.lineArrowsChevronDown,
|
|
20
|
+
...rest
|
|
21
|
+
}) => {
|
|
22
|
+
return (
|
|
23
|
+
<button className={clsx(styles["arrow-button"], styles[`arrow-button-${buttonSize}`])} {...rest}>
|
|
24
|
+
<SvgIcon
|
|
25
|
+
id={icon}
|
|
26
|
+
size={iconSize}
|
|
27
|
+
className={clsx(
|
|
28
|
+
styles["arrow-button-icon"],
|
|
29
|
+
isOpened && styles["arrow-button-icon--opened"],
|
|
30
|
+
styles[`icon-size-${iconSize}`],
|
|
31
|
+
className,
|
|
32
|
+
)}
|
|
33
|
+
/>
|
|
34
|
+
</button>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.arrow-button {
|
|
2
|
+
background: transparent;
|
|
3
|
+
border: none;
|
|
4
|
+
padding: 8px 4px;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
color: var(--on-icon-secondary);
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
background: var(--bg-control-flat-medium);
|
|
11
|
+
color: var(--on-icon-primary);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.arrow-button-s {
|
|
16
|
+
padding: 0 4px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.arrow-button-m {
|
|
20
|
+
padding: 6px 6px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.icon-size-m {
|
|
24
|
+
width: 15px;
|
|
25
|
+
height: 15px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.arrow-button-icon {
|
|
29
|
+
transform: rotate(-90deg);
|
|
30
|
+
transition: transform 200ms;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.arrow-button-icon--opened {
|
|
34
|
+
transform: rotate(0);
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useEffect } from "preact/hooks";
|
|
2
|
+
import Modal from "@/components/Modal";
|
|
3
|
+
import SideNav from "@/components/SideNav/SideNav";
|
|
4
|
+
import { fetchStats } from "@/stores";
|
|
5
|
+
import { route } from "@/stores/router";
|
|
6
|
+
import { testResultStore } from "@/stores/testResults";
|
|
7
|
+
import * as styles from "./styles.scss";
|
|
8
|
+
|
|
9
|
+
export const BaseLayout = ({ children }) => {
|
|
10
|
+
const { testResultId } = route.value.params;
|
|
11
|
+
const testResult = testResultStore.value;
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
fetchStats();
|
|
15
|
+
}, []);
|
|
16
|
+
return (
|
|
17
|
+
<div className={styles.layout}>
|
|
18
|
+
<SideNav />
|
|
19
|
+
{children}
|
|
20
|
+
<Modal testResult={testResult.data?.[testResultId]} />
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.layout {
|
|
2
|
+
margin: auto;
|
|
3
|
+
//padding: 12px 32px;
|
|
4
|
+
background: var(--bg-base-primary);
|
|
5
|
+
color: var(--on-text-primary);
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex: 1 1 auto;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wrapper {
|
|
14
|
+
//max-width: 920px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
//margin: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.content {
|
|
21
|
+
box-shadow: var(--shadow-small);
|
|
22
|
+
background: var(--bg-base-primary);
|
|
23
|
+
border-radius: 12px;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.test-results {
|
|
28
|
+
min-height: 320px;
|
|
29
|
+
padding-bottom: 32px;
|
|
30
|
+
padding-top: 12px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.logo {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
margin-bottom: 12px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.title {
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
line-height: 1.25;
|
|
41
|
+
color: var(--on-text-primary);
|
|
42
|
+
margin-bottom: 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.above {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
width: 100%;
|
|
49
|
+
padding-bottom: 12px;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.below {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
padding-top: 16px;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.test-result-errors {
|
|
61
|
+
padding: 0 24px;
|
|
62
|
+
margin-top: 12px;
|
|
63
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Button, Loadable, PageLoader, Text } from "@allurereport/web-components";
|
|
2
|
+
import { useEffect } from "preact/hooks";
|
|
3
|
+
import type { AwesomeStatus } from "types";
|
|
4
|
+
import Tree from "@/components/Tree/Tree";
|
|
5
|
+
import {
|
|
6
|
+
behaviorsStore,
|
|
7
|
+
clearBehaviorsFilters,
|
|
8
|
+
filteredBehaviors,
|
|
9
|
+
noTests,
|
|
10
|
+
noTestsFound,
|
|
11
|
+
setBehaviorsStatus,
|
|
12
|
+
} from "@/stores/behaviors";
|
|
13
|
+
import { useI18n } from "@/stores/locale";
|
|
14
|
+
import { currentTab } from "@/stores/tabs";
|
|
15
|
+
import * as styles from "./styles.scss";
|
|
16
|
+
|
|
17
|
+
export const BehaviorsList = () => {
|
|
18
|
+
const { t } = useI18n("empty");
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
setBehaviorsStatus(currentTab.value as AwesomeStatus);
|
|
22
|
+
}, [currentTab.value]);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<Loadable
|
|
26
|
+
source={behaviorsStore}
|
|
27
|
+
renderLoader={() => <PageLoader />}
|
|
28
|
+
renderData={() => {
|
|
29
|
+
if (noTests.value) {
|
|
30
|
+
return (
|
|
31
|
+
<div className={styles["tree-list"]}>
|
|
32
|
+
<div className={styles["tree-empty-results"]}>
|
|
33
|
+
<Text className={styles["tree-empty-results-title"]}>{t("no-results")}</Text>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (noTestsFound.value) {
|
|
40
|
+
return (
|
|
41
|
+
<div className={styles["tree-list"]}>
|
|
42
|
+
<div className={styles["tree-empty-results"]}>
|
|
43
|
+
<Text tag="p" className={styles["tree-empty-results-title"]}>
|
|
44
|
+
{t("no-tests-found")}
|
|
45
|
+
</Text>
|
|
46
|
+
<Button
|
|
47
|
+
className={styles["tree-empty-results-clear-button"]}
|
|
48
|
+
type="button"
|
|
49
|
+
text={t("clear-filters")}
|
|
50
|
+
size={"s"}
|
|
51
|
+
style={"outline"}
|
|
52
|
+
onClick={() => clearBehaviorsFilters()}
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<div className={styles["tree-list"]}>
|
|
61
|
+
<Tree tree={filteredBehaviors.value} statusFilter={currentTab.value as AwesomeStatus} root />
|
|
62
|
+
</div>
|
|
63
|
+
);
|
|
64
|
+
}}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Heading, Loadable, PageLoader } from "@allurereport/web-components";
|
|
2
|
+
import { useEffect } from "preact/compat";
|
|
3
|
+
import { BehaviorsList } from "@/components/Behaviors/BehaviorsList";
|
|
4
|
+
import { HeaderActions } from "@/components/HeaderActions/HeaderActions";
|
|
5
|
+
import SideBySide from "@/components/SideBySide";
|
|
6
|
+
import TestResult from "@/components/TestResult";
|
|
7
|
+
import { useI18n } from "@/stores";
|
|
8
|
+
import { fetchBehaviorsData } from "@/stores/behaviors";
|
|
9
|
+
import { route } from "@/stores/router";
|
|
10
|
+
import { fetchTestResult, testResultStore } from "@/stores/testResults";
|
|
11
|
+
import * as styles from "./styles.scss";
|
|
12
|
+
|
|
13
|
+
const Behaviors = () => {
|
|
14
|
+
const { params } = route.value;
|
|
15
|
+
const { testResultId } = params;
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
fetchBehaviorsData();
|
|
19
|
+
}, []);
|
|
20
|
+
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (testResultId) {
|
|
23
|
+
fetchTestResult(testResultId);
|
|
24
|
+
}
|
|
25
|
+
}, [testResultId]);
|
|
26
|
+
|
|
27
|
+
const testResult = (
|
|
28
|
+
<Loadable
|
|
29
|
+
source={testResultStore}
|
|
30
|
+
renderLoader={() => <PageLoader />}
|
|
31
|
+
transformData={(data) => data[testResultId]}
|
|
32
|
+
renderError={() => <div />}
|
|
33
|
+
renderData={(testResultItem) => (
|
|
34
|
+
<>
|
|
35
|
+
<div className={styles.wrapper} key={testResultItem?.id}>
|
|
36
|
+
<TestResult testResult={testResultItem} />
|
|
37
|
+
</div>
|
|
38
|
+
</>
|
|
39
|
+
)}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
const BehaviorsSide = () => {
|
|
44
|
+
const { t } = useI18n("nav");
|
|
45
|
+
return (
|
|
46
|
+
<div className={styles.suites}>
|
|
47
|
+
<Heading size={"s"} className={styles["suites-title"]}>
|
|
48
|
+
{t("behaviors")}
|
|
49
|
+
</Heading>
|
|
50
|
+
|
|
51
|
+
<HeaderActions />
|
|
52
|
+
<BehaviorsList />
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return <SideBySide left={<BehaviorsSide />} right={testResult} />;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default Behaviors;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
.suites {
|
|
2
|
+
padding: 8px;
|
|
3
|
+
}
|
|
4
|
+
.suites-title {
|
|
5
|
+
display: flex;
|
|
6
|
+
margin-bottom: 24px;
|
|
7
|
+
}
|
|
8
|
+
.wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tree {
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&:not(:first-child) {
|
|
16
|
+
border-top: 1px solid var(--on-border-muted);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tree-list {
|
|
21
|
+
min-height: 128px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tree-header {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 4px;
|
|
28
|
+
transition: background-color 300ms;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
padding: 4px 8px 4px 6px;
|
|
31
|
+
|
|
32
|
+
&:hover {
|
|
33
|
+
background: var(--bg-control-flat-medium);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tree-header-arrow {
|
|
38
|
+
transform: rotate(-90deg);
|
|
39
|
+
transition: transform 200ms;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tree-header-arrow-opened {
|
|
43
|
+
transform: rotate(0);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tree-header-title {
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
margin-right: 24px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.tree-count {
|
|
54
|
+
display: flex;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tree-item {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
padding: 6px 8px 6px 6px;
|
|
61
|
+
transition: background-color 300ms;
|
|
62
|
+
gap: 4px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
position: relative;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background: var(--bg-control-flat-medium);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:not(:first-child) {
|
|
71
|
+
border-top: 1px solid var(--on-border-muted);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.tree-item-marked {
|
|
75
|
+
background: var(--bg-base-secondary);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.item-title {
|
|
79
|
+
display: flex;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.item-time {
|
|
83
|
+
flex: none;
|
|
84
|
+
margin-left: auto;
|
|
85
|
+
color: var(--on-text-hint);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.test-count {
|
|
89
|
+
display: flex;
|
|
90
|
+
margin-left: auto;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.tree-content:not(.root) {
|
|
94
|
+
display: block;
|
|
95
|
+
padding-left: 24px;
|
|
96
|
+
margin-bottom: 12px;
|
|
97
|
+
border-top: 1px solid var(--on-border-muted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tree-item-icon {
|
|
101
|
+
padding: 2px 4px;
|
|
102
|
+
height: max-content;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.status-passed {
|
|
106
|
+
color: var(--bg-support-castor);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.status-failed {
|
|
110
|
+
color: var(--bg-support-capella);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.status-broken {
|
|
114
|
+
color: var(--bg-support-atlas);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.status-skipped {
|
|
118
|
+
color: var(--bg-support-rau);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.status-unknown {
|
|
122
|
+
color: var(--bg-support-skat);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.tree-header-bar {
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
font-family: var(--font-family);
|
|
128
|
+
max-width: 140px;
|
|
129
|
+
min-width: 46px;
|
|
130
|
+
border-radius: 4px;
|
|
131
|
+
height: 12px;
|
|
132
|
+
background: var(--on-text-hint);
|
|
133
|
+
margin-left: auto;
|
|
134
|
+
font-size: 10px;
|
|
135
|
+
font-weight: var(--font-weight-extra-bold);
|
|
136
|
+
line-height: 12px;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.tree-header-bar-item {
|
|
141
|
+
display: flex;
|
|
142
|
+
min-width: 16px;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
text-align: center;
|
|
145
|
+
padding: 0 6px;
|
|
146
|
+
flex-grow: 1;
|
|
147
|
+
|
|
148
|
+
&.passed {
|
|
149
|
+
background-color: var(--bg-support-castor);
|
|
150
|
+
color: var(--constant-on-text-primary);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.failed {
|
|
154
|
+
background-color: var(--bg-support-capella);
|
|
155
|
+
color: var(--constant-on-text-primary);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.broken {
|
|
159
|
+
background-color: var(--bg-support-atlas);
|
|
160
|
+
color: var(--constant-on-text-primary);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.skipped {
|
|
164
|
+
background-color: var(--bg-support-rau);
|
|
165
|
+
color: var(--constant-on-text-primary);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.unknown {
|
|
169
|
+
background-color: var(--bg-support-skat);
|
|
170
|
+
color: var(--constant-on-text-primary);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.tree-empty-results {
|
|
175
|
+
padding: 44px 24px;
|
|
176
|
+
text-align: center;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.tree-empty-results-title {
|
|
180
|
+
color: var(--on-text-secondary);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tree-empty-results-clear-button {
|
|
184
|
+
margin-top: 4px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.order {
|
|
188
|
+
user-select: none;
|
|
189
|
+
color: var(--on-text-hint);
|
|
190
|
+
min-width: 16px;
|
|
191
|
+
text-align: center;
|
|
192
|
+
box-sizing: content-box;
|
|
193
|
+
padding-top: 2px;
|
|
194
|
+
line-height: 16px;
|
|
195
|
+
width: 24px;
|
|
196
|
+
}
|