Skip to content

Commit f94576d

Browse files
committed
add test-id to panel charts to ease e2e tests when titles change
1 parent b2ce9af commit f94576d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • frontend/public/components/monitoring/dashboards

frontend/public/components/monitoring/dashboards/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ const Card: React.FC<CardProps> = React.memo(({ panel }) => {
644644
data-test={`${panel.title.toLowerCase().replace(/\s+/g, '-')}-chart`}
645645
isClickable
646646
isSelectable
647+
data-test-id={panel.id ? `chart-${panel.id}` : undefined}
647648
>
648649
<CardHeader
649650
actions={{

0 commit comments

Comments
 (0)