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
+7 -1
View File
@@ -101,6 +101,8 @@ class CategoryValue extends React.Component {
onChange={
selected ? this.toggleOff.bind(this) : this.toggleOn.bind(this)
}
data-testclass="categorical-value-checkbox"
data-testid={`categorical-value-checkbox-${metadataField}`}
checked={selected}
type="checkbox"
/>
@@ -121,7 +123,11 @@ class CategoryValue extends React.Component {
</span>
</div>
<span>
<span>{count}</span>
<span
data-testid={`categorical-value-count-${metadataField}-${count}`}
>
{count}
</span>
<svg
style={{
marginLeft: 5,