@allurereport/web-awesome 3.0.0-beta.10 → 3.0.0-beta.11
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/dist/multi/{141.app-d01d0c66.js → 141.app-f4b5d260.js} +1 -1
- package/dist/multi/{222.app-d01d0c66.js → 222.app-f4b5d260.js} +1 -1
- package/dist/multi/335.app-f4b5d260.js +1 -0
- package/dist/multi/{34.app-d01d0c66.js → 34.app-f4b5d260.js} +1 -1
- package/dist/multi/{349.app-d01d0c66.js → 349.app-f4b5d260.js} +1 -1
- package/dist/multi/378.app-f4b5d260.js +1 -0
- package/dist/multi/{406.app-d01d0c66.js → 406.app-f4b5d260.js} +1 -1
- package/dist/multi/457.app-f4b5d260.js +1 -0
- package/dist/multi/{53.app-d01d0c66.js → 53.app-f4b5d260.js} +1 -1
- package/dist/multi/{584.app-d01d0c66.js → 584.app-f4b5d260.js} +1 -1
- package/dist/multi/{690.app-d01d0c66.js → 690.app-f4b5d260.js} +1 -1
- package/dist/multi/{747.app-d01d0c66.js → 747.app-f4b5d260.js} +1 -1
- package/dist/multi/{767.app-d01d0c66.js → 767.app-f4b5d260.js} +1 -1
- package/dist/multi/{816.app-d01d0c66.js → 816.app-f4b5d260.js} +1 -1
- package/dist/multi/{83.app-d01d0c66.js → 83.app-f4b5d260.js} +1 -1
- package/dist/multi/{873.app-d01d0c66.js → 873.app-f4b5d260.js} +1 -1
- package/dist/multi/{920.app-d01d0c66.js → 920.app-f4b5d260.js} +1 -1
- package/dist/multi/{991.app-d01d0c66.js → 991.app-f4b5d260.js} +1 -1
- package/dist/multi/app-f4b5d260.js +2 -0
- package/dist/multi/{app-d01d0c66.js.LICENSE.txt → app-f4b5d260.js.LICENSE.txt} +0 -8
- package/dist/multi/manifest.json +20 -20
- package/dist/multi/{styles-d01d0c66.css → styles-f4b5d260.css} +32 -30
- package/dist/single/app-b182550e.js +2 -0
- package/dist/single/{app-6596cb08.js.LICENSE.txt → app-b182550e.js.LICENSE.txt} +0 -8
- package/dist/single/manifest.json +1 -1
- package/package.json +4 -4
- package/src/assets/scss/palette.scss +391 -391
- package/src/assets/scss/theme.scss +9 -1
- package/src/assets/scss/vars.scss +0 -1
- package/src/components/BaseLayout/styles.scss +10 -2
- package/src/components/EnvironmentPicker/index.tsx +51 -0
- package/src/components/EnvironmentPicker/styles.scss +9 -0
- package/src/components/Footer/FooterLogo.tsx +1 -2
- package/src/components/Header/index.tsx +4 -2
- package/src/components/LanguagePicker/index.tsx +1 -1
- package/src/components/MainReport/styles.scss +2 -1
- package/src/components/Metadata/index.tsx +6 -4
- package/src/components/MetadataButton/index.tsx +12 -4
- package/src/components/MetadataButton/styles.scss +3 -0
- package/src/components/ReportBody/index.tsx +3 -2
- package/src/components/ReportHeader/ReportHeaderLogo.tsx +6 -2
- package/src/components/ReportHeader/ReportHeaderPie.tsx +1 -2
- package/src/components/ReportMetadata/MetadataSummary.tsx +53 -63
- package/src/components/ReportMetadata/index.tsx +50 -3
- package/src/components/SideBySide/styles.scss +2 -3
- package/src/components/SplitLayout/index.tsx +2 -2
- package/src/components/SplitLayout/styles.scss +2 -1
- package/src/components/TestResult/TestStepsEmpty/index.tsx +2 -2
- package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/index.tsx +4 -4
- package/src/components/TestResult/{TestResultDescription → TrDescription}/index.tsx +2 -2
- package/src/components/TestResult/{TestResultDropdown → TrDropdown}/index.tsx +1 -1
- package/src/components/TestResult/{TestResultEmpty → TrEmpty}/index.tsx +6 -6
- package/src/components/TestResult/TrEnvironmentItem/index.tsx +82 -0
- package/src/components/TestResult/TrEnvironmentItem/styles.scss +60 -0
- package/src/components/TestResult/TrEnvironmentsView/index.tsx +64 -0
- package/src/components/TestResult/TrEnvironmentsView/styles.scss +11 -0
- package/src/components/TestResult/TrError/TrDiff.tsx +3 -5
- package/src/components/TestResult/TrError/index.tsx +21 -6
- package/src/components/TestResult/TrError/styles.scss +92 -2
- package/src/components/TestResult/{TestResultHeader/TestResultBreadcrumbs.tsx → TrHeader/TrBreadcrumbs.tsx} +3 -3
- package/src/components/TestResult/{TestResultHeader → TrHeader}/index.tsx +6 -4
- package/src/components/TestResult/{TestResultHistory/TestResultHistoryItem.tsx → TrHistory/TrHistoryItem.tsx} +3 -3
- package/src/components/TestResult/{TestResultHistory → TrHistory}/index.tsx +5 -5
- package/src/components/TestResult/{TestResultInfo/TestResultInfoStatuses.tsx → TrInfo/TrInfoStatuses.tsx} +1 -1
- package/src/components/TestResult/{TestResultInfo → TrInfo}/index.tsx +37 -23
- package/src/components/TestResult/{TestResultLinks → TrLinks}/index.tsx +6 -6
- package/src/components/TestResult/{TestResultMetadata → TrMetadata}/index.tsx +4 -4
- package/src/components/TestResult/{TestResultNavigation → TrNavigation}/index.tsx +3 -2
- package/src/components/TestResult/TrOverview.tsx +47 -0
- package/src/components/TestResult/{TestResultParameters → TrParameters}/index.tsx +2 -2
- package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/index.tsx +6 -6
- package/src/components/TestResult/TrPwTraces/PwTrace.tsx +34 -0
- package/src/components/TestResult/TrPwTraces/PwTraceButton.tsx +33 -0
- package/src/components/TestResult/TrPwTraces/index.tsx +29 -0
- package/src/components/TestResult/TrPwTraces/styles.scss +20 -0
- package/src/components/TestResult/{TestResultRetriesView/TestResultRetriesItem.tsx → TrRetriesView/TrRetriesItem.tsx} +3 -3
- package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/index.tsx +4 -6
- package/src/components/TestResult/{TestResultSetup → TrSetup}/index.tsx +11 -11
- package/src/components/TestResult/{TestResultSeverity → TrSeverity}/index.tsx +1 -1
- package/src/components/TestResult/{TestResultStatus → TrStatus}/index.tsx +3 -2
- package/src/components/TestResult/{TestResultSteps/testResultAttachment.tsx → TrSteps/TrAttachment.tsx} +10 -7
- package/src/components/TestResult/{TestResultSteps/testResultAttachmentInfo.tsx → TrSteps/TrAttachmentInfo.tsx} +8 -8
- package/src/components/TestResult/{TestResultSteps/testResultStep.tsx → TrSteps/TrStep.tsx} +22 -13
- package/src/components/TestResult/{TestResultSteps/testResultStepInfo.tsx → TrSteps/TrStepInfo.tsx} +2 -2
- package/src/components/TestResult/{TestResultSteps → TrSteps}/index.tsx +8 -8
- package/src/components/TestResult/{TestResultSteps → TrSteps}/styles.scss +2 -1
- package/src/components/TestResult/{TestResultSteps → TrSteps}/wrongAttachment.tsx +1 -1
- package/src/components/TestResult/{TestResultTabs → TrTabs}/index.tsx +6 -6
- package/src/components/TestResult/{TestResultTeardown → TrTeardown}/index.tsx +11 -11
- package/src/components/TestResult/index.tsx +42 -30
- package/src/components/TestResult/styles.scss +2 -1
- package/src/components/Tree/index.tsx +94 -15
- package/src/components/Tree/styles.scss +16 -1
- package/src/i18n/constants.ts +3 -3
- package/src/i18n/locales/az.json +12 -2
- package/src/i18n/locales/de.json +11 -2
- package/src/i18n/locales/en.json +11 -2
- package/src/i18n/locales/es.json +11 -2
- package/src/i18n/locales/fr.json +11 -2
- package/src/i18n/locales/he.json +11 -2
- package/src/i18n/locales/{am.json → hy.json} +11 -2
- package/src/i18n/locales/it.json +11 -2
- package/src/i18n/locales/ja.json +11 -2
- package/src/i18n/locales/ka.json +11 -2
- package/src/i18n/locales/kr.json +11 -2
- package/src/i18n/locales/nl.json +11 -2
- package/src/i18n/locales/pl.json +11 -2
- package/src/i18n/locales/pt.json +10 -2
- package/src/i18n/locales/ru.json +11 -2
- package/src/i18n/locales/sv.json +11 -2
- package/src/i18n/locales/tr.json +11 -2
- package/src/i18n/locales/zh.json +11 -2
- package/src/index.tsx +36 -33
- package/src/stores/chart.ts +3 -3
- package/src/stores/env.ts +88 -0
- package/src/stores/locale.ts +2 -1
- package/src/stores/stats.ts +52 -7
- package/src/stores/testResults.ts +6 -6
- package/src/stores/tree.ts +48 -17
- package/src/stores/variables.ts +38 -0
- package/dist/multi/335.app-d01d0c66.js +0 -1
- package/dist/multi/378.app-d01d0c66.js +0 -1
- package/dist/multi/476.app-d01d0c66.js +0 -1
- package/dist/multi/app-d01d0c66.js +0 -2
- package/dist/single/app-6596cb08.js +0 -2
- package/src/components/ReportLogo/index.tsx +0 -16
- package/src/components/ReportLogo/styles.scss +0 -20
- package/src/components/ReportLogoFull/index.tsx +0 -20
- package/src/components/ReportLogoFull/styles.scss +0 -7
- package/src/components/TestResult/TestResultOverview.tsx +0 -43
- /package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultDescription → TrDescription}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultDropdown → TrDropdown}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultEmpty → TrEmpty}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultHeader → TrHeader}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultHistory → TrHistory}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultInfo → TrInfo}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultLinks → TrLinks}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultMetadata → TrMetadata}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultNavigation → TrNavigation}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultParameters → TrParameters}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultSeverity → TrSeverity}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultStatus → TrStatus}/styles.scss +0 -0
- /package/src/components/TestResult/{TestResultTabs → TrTabs}/styles.scss +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getReportOptions } from "@allurereport/web-commons";
|
|
2
|
-
import { SvgIcon, allureIcons } from "@allurereport/web-components";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import type { AwesomeReportOptions } from "types";
|
|
5
|
-
import * as styles from "./styles.scss";
|
|
6
|
-
|
|
7
|
-
export const ReportLogo = (props: { className?: string; logo?: never }) => {
|
|
8
|
-
const { className } = props;
|
|
9
|
-
const { logo } = getReportOptions<AwesomeReportOptions>() ?? {};
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div className={clsx(styles["report-logo"], className)}>
|
|
13
|
-
{logo ? <img src={logo} alt="report logo" /> : <SvgIcon id={allureIcons.reportLogo} inline />}
|
|
14
|
-
</div>
|
|
15
|
-
);
|
|
16
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.report-logo {
|
|
2
|
-
padding: 8px;
|
|
3
|
-
background: var(--bg-base-secondary);
|
|
4
|
-
border-radius: 8px;
|
|
5
|
-
width: 48px;
|
|
6
|
-
height: 48px;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
|
|
11
|
-
img {
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
object-fit: contain;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.text {
|
|
19
|
-
color: var(--on-text-primary);
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SvgIcon, allureIcons } from "@allurereport/web-components";
|
|
2
|
-
import { Text } from "@allurereport/web-components";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
|
-
import * as styles from "./styles.scss";
|
|
5
|
-
|
|
6
|
-
export const ReportLogoFull = (props: {
|
|
7
|
-
/**
|
|
8
|
-
* Additional class name
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
}) => {
|
|
12
|
-
const { className } = props;
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<Text type="paragraph" size="m" bold className={clsx(className, styles.text)}>
|
|
16
|
-
<SvgIcon id={allureIcons.reportLogo} size="m" inline className={styles.logo} />
|
|
17
|
-
<span>Allure Report</span>
|
|
18
|
-
</Text>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { FunctionalComponent } from "preact";
|
|
2
|
-
import type { AwesomeTestResult } from "types";
|
|
3
|
-
import * as styles from "@/components/BaseLayout/styles.scss";
|
|
4
|
-
import { TestResultDescription } from "@/components/TestResult/TestResultDescription";
|
|
5
|
-
import { TestResultLinks } from "@/components/TestResult/TestResultLinks";
|
|
6
|
-
import { TestResultMetadata } from "@/components/TestResult/TestResultMetadata";
|
|
7
|
-
import { TestResultParameters } from "@/components/TestResult/TestResultParameters";
|
|
8
|
-
import { TestResultSetup } from "@/components/TestResult/TestResultSetup";
|
|
9
|
-
import { TestResultSteps } from "@/components/TestResult/TestResultSteps";
|
|
10
|
-
import { TestResultTeardown } from "@/components/TestResult/TestResultTeardown";
|
|
11
|
-
import TestStepsEmpty from "@/components/TestResult/TestStepsEmpty";
|
|
12
|
-
import { TrError } from "@/components/TestResult/TrError";
|
|
13
|
-
|
|
14
|
-
export type TestResultOverviewProps = {
|
|
15
|
-
testResult?: AwesomeTestResult;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const TestResultOverview: FunctionalComponent<TestResultOverviewProps> = ({ testResult }) => {
|
|
19
|
-
const { error, parameters, groupedLabels, links, description, setup, steps, teardown, id } = testResult || {};
|
|
20
|
-
const isNoSteps = !setup?.length && !steps.length && !teardown.length;
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
{Boolean(error?.message) && (
|
|
25
|
-
<div className={styles["test-result-errors"]}>
|
|
26
|
-
<TrError {...error} />
|
|
27
|
-
</div>
|
|
28
|
-
)}
|
|
29
|
-
{Boolean(parameters?.length) && <TestResultParameters parameters={parameters} />}
|
|
30
|
-
{Boolean(groupedLabels && Object.keys(groupedLabels || {})?.length) && (
|
|
31
|
-
<TestResultMetadata testResult={testResult} />
|
|
32
|
-
)}
|
|
33
|
-
{Boolean(links?.length) && <TestResultLinks links={links} />}
|
|
34
|
-
{Boolean(description) && <TestResultDescription description={description} />}
|
|
35
|
-
<div className={styles["test-results"]}>
|
|
36
|
-
{isNoSteps && <TestStepsEmpty />}
|
|
37
|
-
{Boolean(setup?.length) && <TestResultSetup id={id} setup={setup} />}
|
|
38
|
-
{Boolean(steps?.length) && <TestResultSteps id={id} steps={steps} />}
|
|
39
|
-
{Boolean(teardown?.length) && <TestResultTeardown id={id} teardown={teardown} />}
|
|
40
|
-
</div>
|
|
41
|
-
</>
|
|
42
|
-
);
|
|
43
|
-
};
|
/package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/styles.scss
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|