From ee840b7d1f7dc28570721db649239a57c6bfe9a7 Mon Sep 17 00:00:00 2001 From: Collin Fingar Date: Wed, 23 Apr 2025 11:16:14 -0400 Subject: [PATCH] QueryLibrary: Update add to lib spec method (#103751) QueryLibrary: Update add to lib method --- public/app/features/explore/spec/helper/interactions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, });