test: add data-testid attr (#2167)
This commit is contained in:
parent
21371aaa57
commit
9d2a4834a5
@ -58,7 +58,9 @@ export const GeneralSchemaDesigner = (props: any) => {
|
|||||||
return {
|
return {
|
||||||
insertPosition: 'afterEnd',
|
insertPosition: 'afterEnd',
|
||||||
wrap: rowCtx?.cols?.length > 1 ? undefined : gridRowColWrap,
|
wrap: rowCtx?.cols?.length > 1 ? undefined : gridRowColWrap,
|
||||||
component: <PlusOutlined style={{ cursor: 'pointer', fontSize: 14 }} />,
|
component: (
|
||||||
|
<PlusOutlined data-testid="GeneralSchemaDesigner-Initializer" style={{ cursor: 'pointer', fontSize: 14 }} />
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}, [rowCtx?.cols?.length]);
|
}, [rowCtx?.cols?.length]);
|
||||||
|
|
||||||
@ -84,7 +86,7 @@ export const GeneralSchemaDesigner = (props: any) => {
|
|||||||
<Space size={2} align={'center'}>
|
<Space size={2} align={'center'}>
|
||||||
{draggable && (
|
{draggable && (
|
||||||
<DragHandler>
|
<DragHandler>
|
||||||
<DragOutlined />
|
<DragOutlined data-testid="GeneralSchemaDesigner-DragHandler" />
|
||||||
</DragHandler>
|
</DragHandler>
|
||||||
)}
|
)}
|
||||||
{!disableInitializer &&
|
{!disableInitializer &&
|
||||||
@ -93,7 +95,15 @@ export const GeneralSchemaDesigner = (props: any) => {
|
|||||||
) : (
|
) : (
|
||||||
ctx?.renderSchemaInitializer?.(initializerProps)
|
ctx?.renderSchemaInitializer?.(initializerProps)
|
||||||
))}
|
))}
|
||||||
<SchemaSettings title={<MenuOutlined style={{ cursor: 'pointer', fontSize: 12 }} />} {...schemaSettingsProps}>
|
<SchemaSettings
|
||||||
|
title={
|
||||||
|
<MenuOutlined
|
||||||
|
data-testid="GeneralSchemaDesigner-SchemaSettings"
|
||||||
|
style={{ cursor: 'pointer', fontSize: 12 }}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
{...schemaSettingsProps}
|
||||||
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</SchemaSettings>
|
</SchemaSettings>
|
||||||
</Space>
|
</Space>
|
||||||
|
Loading…
Reference in New Issue
Block a user