Skip to content

Commit

Permalink
fix: test status in accordion build
Browse files Browse the repository at this point in the history
  • Loading branch information
mari1912 committed Jul 22, 2024
1 parent 3258ce4 commit c094e9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const AccordionBuildContent = ({
value:
(contentData.testStatus?.failTests ?? 0) +
(contentData.testStatus?.errorTests ?? 0),
label: <FormattedMessage id="buildAccordion.testFailed" />,
label: <FormattedMessage id="buildAccordion.testError" />,
color: Colors.Red,
},
{
Expand Down
8 changes: 4 additions & 4 deletions dashboard/src/routes/TreeDetails/TreeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ const TreeDetails = (): JSX.Element => {
buildErrors: value.valid ? 0 : 1,
status: value.valid ? 'valid' : 'invalid',
testStatus: {
failTests: value.test_status?.fail_tests ?? 0,
passTests: value.test_status?.pass_tests ?? 0,
errorTests: value.test_status?.error_tests ?? 0,
skipTests: value.test_status?.skip_tests ?? 0,
failTests: value.status?.fail_tests,
passTests: value.status?.pass_tests,
errorTests: value.status?.error_tests,
skipTests: value.status?.skip_tests,
},
buildLogs: value.log_url,
kernelConfig: value.config_url,
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/types/tree/TreeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type TreeDetailsBuild = {
log_url: string;
git_repository_branch: string;
git_repository_url: string;
test_status: {
status: {
fail_tests: number;
error_tests: number;
miss_tests: number;
Expand Down

0 comments on commit c094e9d

Please sign in to comment.