add data-testid to sequence panel

This commit is contained in:
jrkb 2023-09-22 10:22:19 +02:00
parent 7c0c94004d
commit ce56695904
4 changed files with 14 additions and 4 deletions

View file

@ -20,7 +20,10 @@ const DopeSheet: React.VFC<{layoutP: Pointer<SequenceEditorPanelLayout>}> = ({
const height = useVal(layoutP.dopeSheetDims.height)
return (
<Container style={{height: height + 'px'}}>
<Container
data-testid="SequencePanel-Object"
style={{height: height + 'px'}}
>
<DopeSheetBackground layoutP={layoutP} />
<VerticalScrollContainer>
<Left layoutP={layoutP} />

View file

@ -119,7 +119,9 @@ const AnyCompositeRow: React.FC<{
<LeftRowHead_Icon isCollapsed={isCollapsed} onClick={toggleCollapsed}>
<HiOutlineChevronRight />
</LeftRowHead_Icon>
<LeftRowHead_Label>{label}</LeftRowHead_Label>
<LeftRowHead_Label data-testid="SequencePanel-Title">
{label}
</LeftRowHead_Label>
</LeftRowHeader>
{hasChildren && <LeftRowChildren>{children}</LeftRowChildren>}
</LeftRowContainer>

View file

@ -26,7 +26,10 @@ const Left: React.VFC<{
const width = val(layoutP.leftDims.width)
return (
<Container style={{width: width + 'px', top: tree.top + 'px'}}>
<Container
data-testid="SequencePanel-Left"
style={{width: width + 'px', top: tree.top + 'px'}}
>
<ListContainer>
<SheetRow leaf={tree} />
</ListContainer>

View file

@ -151,7 +151,9 @@ const PrimitivePropRow: React.FC<{
}}
isSelected={isSelected === true}
>
<PrimitivePropRowHead_Label>{label}</PrimitivePropRowHead_Label>
<PrimitivePropRowHead_Label data-testid="SequencePanel-PropTitle">
{label}
</PrimitivePropRowHead_Label>
{controlIndicators}
<PrimitivePropRowIconContainer
onClick={toggleSelect}