Add test ids and classes (#633)

* data test ids and classes

* suggest
This commit is contained in:
Colin Megill
2019-03-07 13:01:41 -08:00
committed by Charlotte Weaver
parent a0f54b4871
commit 8795f0f32c
6 changed files with 24 additions and 3 deletions
@@ -331,6 +331,8 @@ class HistogramBrush extends React.Component {
width={this.width}
height={this.height}
id={`histogram_${field}_svg`}
data-testclass="histogram-svg"
data-testid={`histogram_${field}_svg`}
ref={svgRef => {
this.drawHistogram(svgRef);
}}
@@ -341,7 +343,12 @@ class HistogramBrush extends React.Component {
justifyContent: "center"
}}
>
<span style={{ fontStyle: "italic" }}>{field}</span>
<span
data-testclass="brushable-histogram-field-name"
style={{ fontStyle: "italic" }}
>
{field}
</span>
</div>
{isDiffExp ? (