Query Library: Change test helpers (#106775)
This commit is contained in:
@@ -43,9 +43,10 @@ export const openQueryLibrary = async () => {
|
||||
const button = screen.getByRole('button', { name: 'Add query from library' });
|
||||
await userEvent.click(button);
|
||||
await waitFor(async () => {
|
||||
screen.getByRole('dialog', {
|
||||
name: 'Drawer title Query library',
|
||||
const container = screen.getByRole('dialog', {
|
||||
name: /Drawer title/,
|
||||
});
|
||||
within(container).getByText('Query library');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -334,7 +334,8 @@ export const withinQueryHistory = () => {
|
||||
};
|
||||
|
||||
export const withinQueryLibrary = () => {
|
||||
const container = screen.getByRole('dialog', { name: 'Drawer title Query library' });
|
||||
const container = screen.getByRole('dialog', { name: /Drawer title/ });
|
||||
within(container).getByText('Query library');
|
||||
return within(container);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user