Skip to content

Commit

Permalink
chore: add data-test attributes to single value svg elements
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Oct 17, 2024
1 parent b05581b commit b51fc0f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ export function renderSingleValueSVG() {
const dynamicStyles = new DynamicStyles(this.userOptions?.isPdfExport)
const valueElement = this.renderer
.text(formattedValue)
.attr('data-test', 'visualization-primary-value')
.css({ color: fontColor, visibility: 'hidden' })
.add()
const subTextElement = subText
? this.renderer
.text(subText)
.attr('data-test', 'visualization-subtext')
.css({ color: fontColor, visibility: 'hidden' })
.add()
: null
Expand Down

0 comments on commit b51fc0f

Please sign in to comment.