QueryLibrary: Update add to lib spec method (#103751)

QueryLibrary: Update add to lib method
This commit is contained in:
Collin Fingar
2025-04-23 11:16:14 -04:00
committed by GitHub
parent 5959dd3d18
commit ee840b7d1f
@@ -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,
});