mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 18:36:08 +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}
|
||||
layout="vertical"
|
||||
name="tableTestForm"
|
||||
preserve={false}
|
||||
onFinish={handleFormSubmit}
|
||||
onValuesChange={handleValueChange}>
|
||||
<Form.Item
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user