mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 10:56:02 +00:00
UI: Fixed test case value preserve issue and test case graph improvement (#9409)
This commit is contained in:
parent
6eccab6157
commit
3ebe985463
@ -241,6 +241,7 @@ const TestCaseForm: React.FC<TestCaseFormProps> = ({
|
|||||||
form={form}
|
form={form}
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
name="tableTestForm"
|
name="tableTestForm"
|
||||||
|
preserve={false}
|
||||||
onFinish={handleFormSubmit}
|
onFinish={handleFormSubmit}
|
||||||
onValuesChange={handleValueChange}>
|
onValuesChange={handleValueChange}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
@ -38,6 +38,7 @@ import {
|
|||||||
TestCaseResult,
|
TestCaseResult,
|
||||||
TestCaseStatus,
|
TestCaseStatus,
|
||||||
} from '../../../generated/tests/testCase';
|
} from '../../../generated/tests/testCase';
|
||||||
|
import { axisTickFormatter } from '../../../utils/ChartUtils';
|
||||||
import { getEncodedFqn } from '../../../utils/StringsUtils';
|
import { getEncodedFqn } from '../../../utils/StringsUtils';
|
||||||
import {
|
import {
|
||||||
getCurrentDateTimeStamp,
|
getCurrentDateTimeStamp,
|
||||||
@ -205,7 +206,7 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
<Col span={14}>
|
<Col span={16}>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<Loader />
|
<Loader />
|
||||||
) : (
|
) : (
|
||||||
@ -232,7 +233,11 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
|
|||||||
right: 8,
|
right: 8,
|
||||||
}}>
|
}}>
|
||||||
<XAxis dataKey="name" padding={{ left: 8, 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 />
|
<Tooltip />
|
||||||
<Legend />
|
<Legend />
|
||||||
{data.parameterValues?.length === 2 && referenceArea()}
|
{data.parameterValues?.length === 2 && referenceArea()}
|
||||||
@ -258,7 +263,7 @@ const TestSummary: React.FC<TestSummaryProps> = ({ data }) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={10}>
|
<Col span={8}>
|
||||||
<Row gutter={[8, 8]}>
|
<Row gutter={[8, 8]}>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<Typography.Text type="secondary">Name: </Typography.Text>
|
<Typography.Text type="secondary">Name: </Typography.Text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user