diff --git a/public/app/features/explore/spec/helper/interactions.ts b/public/app/features/explore/spec/helper/interactions.ts index dce38c66ef5..3e1d4f246fc 100644 --- a/public/app/features/explore/spec/helper/interactions.ts +++ b/public/app/features/explore/spec/helper/interactions.ts @@ -54,9 +54,9 @@ export const addQueryHistoryToQueryLibrary = async () => { await userEvent.click(button); }; -export const submitAddToQueryLibrary = async ({ description }: { description: string }) => { - const input = within(screen.getByRole('dialog')).getByLabelText('Description'); - await userEvent.type(input, description); +export const submitAddToQueryLibrary = async ({ title }: { title: string }) => { + const input = within(screen.getByRole('dialog')).getByLabelText('Title'); + await userEvent.type(input, title); const saveButton = screen.getByRole('button', { name: /^save$/i, });