#14554 test case name's length limitation-DBT (#14815)

This commit is contained in:
Shailesh Parmar 2024-01-22 19:12:36 +05:30 committed by GitHub
parent a9e193608c
commit 284ca34b18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 2 deletions

View File

@ -956,7 +956,7 @@ describe('Data Quality and Profiler should work properly', () => {
.not('.ant-select-dropdown-hidden')
.find(`[title="${profilerSetting.partitionIntervalType}"]`)
.click();
cy.get('[data-testid="column-name"]').click();
cy.get('#includeColumnsProfiler_partitionColumnName').click();
cy.get('.ant-select-dropdown')
.not('.ant-select-dropdown-hidden')
.find(`[title="${profilerSetting.partitionColumnName}"]`)

View File

@ -305,6 +305,13 @@ const TestCaseForm: React.FC<TestCaseFormProps> = ({
pattern: ENTITY_NAME_REGEX,
message: t('message.entity-name-validation'),
},
{
max: 256,
message: t('message.entity-maximum-size', {
entity: t('label.name'),
max: 256,
}),
},
{
validator: (_, value) => {
if (testCases.some((test) => test.name === value)) {

View File

@ -32,6 +32,7 @@ import { useHistory } from 'react-router-dom';
import { ReactComponent as SettingIcon } from '../../../assets/svg/ic-settings-primery.svg';
import { PAGE_HEADERS } from '../../../constants/PageHeaders.constant';
import {
DEFAULT_RANGE_DATA,
INITIAL_OPERATION_METRIC_VALUE,
INITIAL_ROW_METRIC_VALUE,
} from '../../../constants/profiler.constant';
@ -79,7 +80,7 @@ const TableProfilerChart = ({
onSettingButtonClick,
isProfilingEnabled,
customMetric: tableCustomMetric,
dateRangeObject,
dateRangeObject = DEFAULT_RANGE_DATA,
onDateRangeChange,
} = useTableProfiler();

View File

@ -233,6 +233,7 @@ const IncidentManagerDetailPage = () => {
</Col>
<Col className="p-x-lg" data-testid="entity-page-header" span={24}>
<EntityHeaderTitle
className="w-max-full-45"
displayName={testCaseData.data?.displayName}
icon={<TestCaseIcon className="h-9" />}
name={testCaseData.data?.name ?? ''}