test: custom properties AUT (#18288)

This commit is contained in:
Sachin Chaurasiya 2024-10-16 15:03:43 +05:30 committed by GitHub
parent befa1f72e8
commit 05a703f08f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 23 deletions

View File

@ -269,6 +269,7 @@ export const CustomPropertyTable: FC<CustomPropertyTableProp> = ({
<Fragment>
<Table
bordered
className="entity-custom-properties-table"
columns={tableColumn}
data-testid="entity-custom-properties-table"
dataSource={customProperties}

View File

@ -294,28 +294,27 @@ export const CustomPropertyTable = <T extends ExtentionEntitiesKeys>({
</div>
</>
) : (
<Row
className="custom-properties-card"
data-testid="custom-properties-card"
gutter={[16, 16]}>
{dataSourceColumns.map((columns, colIndex) => (
<Col key={colIndex} span={8}>
{columns.map((record) => (
<div key={record.name} style={{ marginBottom: '16px' }}>
<PropertyValue
extension={extensionObject.extensionObject}
hasEditPermissions={hasEditAccess}
isRenderedInRightPanel={isRenderedInRightPanel}
isVersionView={isVersionView}
property={record}
versionDataKeys={extensionObject.addedKeysList}
onExtensionUpdate={onExtensionUpdate}
/>
</div>
))}
</Col>
))}
</Row>
<div className="custom-properties-card">
<Row data-testid="custom-properties-card" gutter={[16, 16]}>
{dataSourceColumns.map((columns, colIndex) => (
<Col key={colIndex} span={8}>
{columns.map((record) => (
<div key={record.name} style={{ marginBottom: '16px' }}>
<PropertyValue
extension={extensionObject.extensionObject}
hasEditPermissions={hasEditAccess}
isRenderedInRightPanel={isRenderedInRightPanel}
isVersionView={isVersionView}
property={record}
versionDataKeys={extensionObject.addedKeysList}
onExtensionUpdate={onExtensionUpdate}
/>
</div>
))}
</Col>
))}
</Row>
</div>
)}
</>
)}

View File

@ -829,7 +829,8 @@ a[href].link-text-grey,
.roles-list-table,
.list-table,
.kpi-table,
.custom-properties-card {
.custom-properties-card,
.entity-custom-properties-table {
margin-right: 64px;
}
}