How to use the @grafana/toolkit/src/e2e.Selector.fromAriaLabel function in @grafana/toolkit

To help you get started, we’ve selected a few @grafana/toolkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github grafana / grafana / public / e2e-test / pages / panels / panel.ts View on Github external
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')),
  },
});
github grafana / grafana / public / e2e-test / pages / dashboards / dashboardsPage.ts View on Github external
export const dashboardsPageFactory = (dashboardTitle: string) =>
  new TestPage({
    url: '/dashboards',
    pageObjects: {
      dashboard: new ClickablePageObject(Selector.fromAriaLabel(dashboardTitle)),
    },
  });