diff --git a/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx b/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx index 161f6b57443..3323ef01ff4 100644 --- a/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx +++ b/public/app/features/explore/AddToDashboard/AddToDashboardModal.tsx @@ -18,11 +18,11 @@ enum SaveTarget { const SAVE_TARGETS: Array> = [ { - label: 'New Dashboard', + label: 'New dashboard', value: SaveTarget.NewDashboard, }, { - label: 'Existing Dashboard', + label: 'Existing dashboard', value: SaveTarget.ExistingDashboard, }, ]; @@ -141,7 +141,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => { ( - + )} @@ -195,7 +195,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => { Open in new tab diff --git a/public/app/features/explore/AddToDashboard/index.test.tsx b/public/app/features/explore/AddToDashboard/index.test.tsx index 62db02ba6b4..fe265e71545 100644 --- a/public/app/features/explore/AddToDashboard/index.test.tsx +++ b/public/app/features/explore/AddToDashboard/index.test.tsx @@ -86,7 +86,7 @@ describe('AddToDashboardButton', () => { await openModal(); - userEvent.click(screen.getByRole('button', { name: /open$/i })); + userEvent.click(screen.getByRole('button', { name: /open dashboard$/i })); await waitForAddToDashboardResponse(); @@ -138,7 +138,7 @@ describe('AddToDashboardButton', () => { await openModal(); - userEvent.click(screen.getByRole('button', { name: /open$/i })); + userEvent.click(screen.getByRole('button', { name: /open dashboard$/i })); await waitForAddToDashboardResponse(); @@ -170,7 +170,7 @@ describe('AddToDashboardButton', () => { userEvent.click(screen.getByRole('radio', { name: /existing dashboard/i })); - userEvent.click(screen.getByRole('button', { name: /open$/i })); + userEvent.click(screen.getByRole('button', { name: /open dashboard$/i })); await waitForAddToDashboardResponse(); expect(locationService.push).not.toHaveBeenCalled(); @@ -255,7 +255,7 @@ describe('AddToDashboardButton', () => { }); userEvent.click(screen.getByLabelText('Select option')); - userEvent.click(screen.getByRole('button', { name: /open$/i })); + userEvent.click(screen.getByRole('button', { name: /open dashboard$/i })); await waitFor(async () => { expect(screen.queryByRole('dialog')).not.toBeInTheDocument();