How to use the @grafana/toolkit/src/e2e.pages.getPluginPage 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 / packages / grafana-toolkit / src / plugins / e2e / commonPluginTests.ts View on Github external
scenario: async (browser: Browser, page: Page) => {
    const settings = getEndToEndSettings();
    const pluginPage = pages.getPluginPage(settings.plugin.id);
    await pluginPage.init(page);
    await pluginPage.navigateTo();
    // TODO: find a better way to avoid the 'loading' page
    await sleep(500);

    const fileName = 'plugin-page';
    await takeScreenShot(page, fileName);
  },
});