Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { TestPage, ClickablePageObjectType, ClickablePageObject, Selector } from '@grafana/toolkit/src/e2e';
export interface Panel {
panelTitle: ClickablePageObjectType;
share: ClickablePageObjectType;
}
export const panel = new TestPage({
pageObjects: {
panelTitle: new ClickablePageObject(Selector.fromAriaLabel('Panel Title')),
share: new ClickablePageObject(Selector.fromAriaLabel('Share panel menu item')),
},
});
export const dashboardsPageFactory = (dashboardTitle: string) =>
new TestPage({
url: '/dashboards',
pageObjects: {
dashboard: new ClickablePageObject(Selector.fromAriaLabel(dashboardTitle)),
},
});