UI: Fixed test case value preserve issue and test case graph improvement (#9409)

This commit is contained in:
Shailesh Parmar 2022-12-20 12:05:25 +05:30 committed by GitHub
parent 6eccab6157
commit 3ebe985463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -241,6 +241,7 @@ const TestCaseForm: React.FC<TestCaseFormProps> = ({
form={form}
layout="vertical"
name="tableTestForm"
preserve={false}
onFinish={handleFormSubmit}
onValuesChange={handleValueChange}>
<Form.Item

View File

@ -38,6 +38,7 @@ import {
TestCaseResult,
TestCaseStatus,
} from '../../../generated/tests/testCase';
import { axisTickFormatter } from '../../../utils/ChartUtils';
import { getEncodedFqn } from '../../../utils/StringsUtils';
import {
getCurrentDateTimeStamp,
@ -205,7 +206,7 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
return (
<Row gutter={16}>
<Col span={14}>
<Col span={16}>
{isLoading ? (
<Loader />
) : (
@ -232,7 +233,11 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
right: 8,
}}>
<XAxis dataKey="name" padding={{ left: 8, right: 8 }} />
<YAxis allowDataOverflow padding={{ top: 8, bottom: 8 }} />
<YAxis
allowDataOverflow
padding={{ top: 8, bottom: 8 }}
tickFormatter={(value) => axisTickFormatter(value)}
/>
<Tooltip />
<Legend />
{data.parameterValues?.length === 2 && referenceArea()}
@ -258,7 +263,7 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
</div>
)}
</Col>
<Col span={10}>
<Col span={8}>
<Row gutter={[8, 8]}>
<Col span={24}>
<Typography.Text type="secondary">Name: </Typography.Text>