mirror of https://github.com/grafana/grafana.git
12 lines
405 B
TypeScript
12 lines
405 B
TypeScript
export interface SelectorApi {
|
|
fromAriaLabel: (selector: string) => string;
|
|
fromDataTestId: (selector: string) => string;
|
|
fromSelector: (selector: string) => string;
|
|
}
|
|
|
|
export const Selector: SelectorApi = {
|
|
fromAriaLabel: (selector: string) => `[aria-label="${selector}"]`,
|
|
fromDataTestId: (selector: string) => `[data-testid="${selector}"]`,
|
|
fromSelector: (selector: string) => selector,
|
|
};
|