mirror of https://github.com/grafana/grafana.git
11 lines
341 B
TypeScript
11 lines
341 B
TypeScript
import { screen, getAllByRole } from '@testing-library/react';
|
|
|
|
export function getLabelSelects(index = 0) {
|
|
const labels = screen.getByText(/Label filters/);
|
|
const selects = getAllByRole(labels.parentElement!.parentElement!.parentElement!, 'combobox');
|
|
return {
|
|
name: selects[3 * index],
|
|
value: selects[3 * index + 2],
|
|
};
|
|
}
|