Skip to content

Commit 670181d

Browse files
Merge pull request #13340 from jgbernalp/add-data-id-to-dashboards-panels
OU-286: add test-id to panel charts to ease e2e tests when titles change
2 parents 7901f65 + f94576d commit 670181d

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
@@ -643,6 +643,7 @@ const Card: React.FC<CardProps> = React.memo(({ panel }) => {
643643
data-test={`${panel.title.toLowerCase().replace(/\s+/g, '-')}-chart`}
644644
isClickable
645645
isSelectable
646+
data-test-id={panel.id ? `chart-${panel.id}` : undefined}
646647
>
647648
<CardHeader
648649
actions={{

0 commit comments

Comments
 (0)