mirror of https://github.com/grafana/grafana
Chore: convert DashboardsTable test to RTL (#50252)
* convert DashboardsTable test to RTL * ensure render does not throwpull/50285/head
parent
0c32dec9e2
commit
22fbcebabf
@ -1,88 +0,0 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`Render should render component 1`] = ` |
||||
<table |
||||
className="filter-table" |
||||
> |
||||
<tbody /> |
||||
</table> |
||||
`; |
||||
|
||||
exports[`Render should render table 1`] = ` |
||||
<table |
||||
className="filter-table" |
||||
> |
||||
<tbody> |
||||
<tr |
||||
key="0-0" |
||||
> |
||||
<td |
||||
className="width-1" |
||||
> |
||||
<Icon |
||||
name="apps" |
||||
/> |
||||
</td> |
||||
<td> |
||||
<span> |
||||
Graphite Carbon Metrics |
||||
</span> |
||||
</td> |
||||
<td |
||||
style={ |
||||
Object { |
||||
"textAlign": "right", |
||||
} |
||||
} |
||||
> |
||||
<Button |
||||
onClick={[Function]} |
||||
size="sm" |
||||
variant="secondary" |
||||
> |
||||
Import |
||||
</Button> |
||||
</td> |
||||
</tr> |
||||
<tr |
||||
key="0-1" |
||||
> |
||||
<td |
||||
className="width-1" |
||||
> |
||||
<Icon |
||||
name="apps" |
||||
/> |
||||
</td> |
||||
<td> |
||||
<a |
||||
href="" |
||||
> |
||||
Graphite Carbon Metrics |
||||
</a> |
||||
</td> |
||||
<td |
||||
style={ |
||||
Object { |
||||
"textAlign": "right", |
||||
} |
||||
} |
||||
> |
||||
<Button |
||||
onClick={[Function]} |
||||
size="sm" |
||||
variant="secondary" |
||||
> |
||||
Update |
||||
</Button> |
||||
<Button |
||||
icon="trash-alt" |
||||
onClick={[Function]} |
||||
size="sm" |
||||
variant="destructive" |
||||
/> |
||||
</td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
`; |
Loading…
Reference in new issue