PublicDashboards: Change disabled label in Audit Table (#64260)
This commit is contained in:
+1
-1
@@ -212,7 +212,7 @@ const renderPublicDashboardItemCorrectly = (pd: ListPublicDashboardResponse, idx
|
|||||||
const rowDataCells = within(tableRow).getAllByRole('cell');
|
const rowDataCells = within(tableRow).getAllByRole('cell');
|
||||||
expect(rowDataCells).toHaveLength(3);
|
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 linkButton = within(rowDataCells[2]).getByTestId(selectors.ListItem.linkButton);
|
||||||
const configButton = within(rowDataCells[2]).getByTestId(selectors.ListItem.configButton);
|
const configButton = within(rowDataCells[2]).getByTestId(selectors.ListItem.configButton);
|
||||||
const trashcanButton = within(rowDataCells[2]).queryByTestId(selectors.ListItem.trashcanButton);
|
const trashcanButton = within(rowDataCells[2]).queryByTestId(selectors.ListItem.trashcanButton);
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@ export const PublicDashboardListTable = () => {
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Tag
|
<Tag
|
||||||
name={pd.isEnabled ? 'enabled' : 'disabled'}
|
name={pd.isEnabled ? 'enabled' : 'paused'}
|
||||||
colorIndex={isOrphaned ? 9 : pd.isEnabled ? 20 : 15}
|
colorIndex={isOrphaned ? 9 : pd.isEnabled ? 20 : 15}
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user