PublicDashboards: Change disabled label in Audit Table (#64260)

This commit is contained in:
juanicabanas 2023-03-06 19:06:34 -03:00 committed by GitHub
parent 27d961d712
commit bceb1bb96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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>