Skip to content

Commit

Permalink
feat(sanity): add timeline test ids
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed May 23, 2024
1 parent 47e5420 commit 038a1a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function TimelineItem({
<Root
$selected={isSelected}
$disabled={!isSelectable}
data-testid="timeline-item-button"
data-chunk-id={chunk.id}
data-first={isFirst ? true : undefined}
data-last={isLast ? true : undefined}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export function TimelineMenu({chunk, mode, placement}: TimelineMenuProps) {

return (
<Root
data-testid="timeline-menu"
constrainSize
content={open && content}
data-ui="versionMenu"
Expand All @@ -167,6 +168,7 @@ export function TimelineMenu({chunk, mode, placement}: TimelineMenuProps) {
ref={setPopover}
>
<Button
data-testid={open ? 'timeline-menu-close-button' : 'timeline-menu-open-button'}
disabled={!ready}
mode="bleed"
iconRight={ChevronDownIcon}
Expand Down

0 comments on commit 038a1a2

Please sign in to comment.