mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 03:32:37 -06:00
PublicDashboards: Change disabled label in Audit Table (#64260)
This commit is contained in:
parent
27d961d712
commit
bceb1bb96d
@ -212,7 +212,7 @@ const renderPublicDashboardItemCorrectly = (pd: ListPublicDashboardResponse, idx
|
||||
const rowDataCells = within(tableRow).getAllByRole('cell');
|
||||
expect(rowDataCells).toHaveLength(3);
|
||||
|
||||
const statusTag = within(rowDataCells[1]).getByText(pd.isEnabled ? 'enabled' : 'disabled');
|
||||
const statusTag = within(rowDataCells[1]).getByText(pd.isEnabled ? 'enabled' : 'paused');
|
||||
const linkButton = within(rowDataCells[2]).getByTestId(selectors.ListItem.linkButton);
|
||||
const configButton = within(rowDataCells[2]).getByTestId(selectors.ListItem.configButton);
|
||||
const trashcanButton = within(rowDataCells[2]).queryByTestId(selectors.ListItem.trashcanButton);
|
||||
|
@ -65,7 +65,7 @@ export const PublicDashboardListTable = () => {
|
||||
</td>
|
||||
<td>
|
||||
<Tag
|
||||
name={pd.isEnabled ? 'enabled' : 'disabled'}
|
||||
name={pd.isEnabled ? 'enabled' : 'paused'}
|
||||
colorIndex={isOrphaned ? 9 : pd.isEnabled ? 20 : 15}
|
||||
/>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user