add data-testid to sequence panel
This commit is contained in:
parent
7c0c94004d
commit
ce56695904
4 changed files with 14 additions and 4 deletions
|
@ -20,7 +20,10 @@ const DopeSheet: React.VFC<{layoutP: Pointer<SequenceEditorPanelLayout>}> = ({
|
||||||
const height = useVal(layoutP.dopeSheetDims.height)
|
const height = useVal(layoutP.dopeSheetDims.height)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container style={{height: height + 'px'}}>
|
<Container
|
||||||
|
data-testid="SequencePanel-Object"
|
||||||
|
style={{height: height + 'px'}}
|
||||||
|
>
|
||||||
<DopeSheetBackground layoutP={layoutP} />
|
<DopeSheetBackground layoutP={layoutP} />
|
||||||
<VerticalScrollContainer>
|
<VerticalScrollContainer>
|
||||||
<Left layoutP={layoutP} />
|
<Left layoutP={layoutP} />
|
||||||
|
|
|
@ -119,7 +119,9 @@ const AnyCompositeRow: React.FC<{
|
||||||
<LeftRowHead_Icon isCollapsed={isCollapsed} onClick={toggleCollapsed}>
|
<LeftRowHead_Icon isCollapsed={isCollapsed} onClick={toggleCollapsed}>
|
||||||
<HiOutlineChevronRight />
|
<HiOutlineChevronRight />
|
||||||
</LeftRowHead_Icon>
|
</LeftRowHead_Icon>
|
||||||
<LeftRowHead_Label>{label}</LeftRowHead_Label>
|
<LeftRowHead_Label data-testid="SequencePanel-Title">
|
||||||
|
{label}
|
||||||
|
</LeftRowHead_Label>
|
||||||
</LeftRowHeader>
|
</LeftRowHeader>
|
||||||
{hasChildren && <LeftRowChildren>{children}</LeftRowChildren>}
|
{hasChildren && <LeftRowChildren>{children}</LeftRowChildren>}
|
||||||
</LeftRowContainer>
|
</LeftRowContainer>
|
||||||
|
|
|
@ -26,7 +26,10 @@ const Left: React.VFC<{
|
||||||
const width = val(layoutP.leftDims.width)
|
const width = val(layoutP.leftDims.width)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container style={{width: width + 'px', top: tree.top + 'px'}}>
|
<Container
|
||||||
|
data-testid="SequencePanel-Left"
|
||||||
|
style={{width: width + 'px', top: tree.top + 'px'}}
|
||||||
|
>
|
||||||
<ListContainer>
|
<ListContainer>
|
||||||
<SheetRow leaf={tree} />
|
<SheetRow leaf={tree} />
|
||||||
</ListContainer>
|
</ListContainer>
|
||||||
|
|
|
@ -151,7 +151,9 @@ const PrimitivePropRow: React.FC<{
|
||||||
}}
|
}}
|
||||||
isSelected={isSelected === true}
|
isSelected={isSelected === true}
|
||||||
>
|
>
|
||||||
<PrimitivePropRowHead_Label>{label}</PrimitivePropRowHead_Label>
|
<PrimitivePropRowHead_Label data-testid="SequencePanel-PropTitle">
|
||||||
|
{label}
|
||||||
|
</PrimitivePropRowHead_Label>
|
||||||
{controlIndicators}
|
{controlIndicators}
|
||||||
<PrimitivePropRowIconContainer
|
<PrimitivePropRowIconContainer
|
||||||
onClick={toggleSelect}
|
onClick={toggleSelect}
|
||||||
|
|
Loading…
Reference in a new issue