Skip to content

Commit

Permalink
Making test suite list more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
craigatk committed Jan 17, 2020
1 parent b93de60 commit dd4b4b2
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions ui/src/TestSuite/TestSuiteList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ interface TestSuiteListProps {
testSuites: TestSuite[];
}

const headerStyle = {
paddingTop: "8px",
paddingBottom: "8px"
};

const cellStyle = {
padding: "6px 24px 6px 16px"
};

const TestSuiteList = ({ publicId, testSuites }: TestSuiteListProps) => {
return (
<div data-testid="test-suite-list">
Expand All @@ -33,7 +42,9 @@ const TestSuiteList = ({ publicId, testSuites }: TestSuiteListProps) => {
>
{rowData.name}
</CleanLink>
)
),
cellStyle,
headerStyle
},
{
title: "Group",
Expand All @@ -43,11 +54,13 @@ const TestSuiteList = ({ publicId, testSuites }: TestSuiteListProps) => {
<span data-testid={`test-suite-group-name-${rowData.idx}`}>
{rowData.group}
</span>
)
),
cellStyle,
headerStyle
},
{ title: "Passed", field: "passed" },
{ title: "Failed", field: "failed" },
{ title: "Duration", field: "duration" }
{ title: "Passed", field: "passed", cellStyle, headerStyle },
{ title: "Failed", field: "failed", cellStyle, headerStyle },
{ title: "Duration", field: "duration", cellStyle, headerStyle }
]}
data={testSuites.map(testSuite => ({
name: fullTestSuiteName(testSuite),
Expand Down

0 comments on commit dd4b4b2

Please sign in to comment.