import { AppConfigPage, AppPage, test as base } from '@grafana/plugin-e2e'; import pluginJson from '../src/plugin.json'; type AppTestFixture = { appConfigPage: AppConfigPage; gotoPage: (path?: string) => Promise; }; export const test = base.extend({ appConfigPage: async ({ gotoAppConfigPage }, use) => { const configPage = await gotoAppConfigPage({ pluginId: pluginJson.id, }); await use(configPage); }, gotoPage: async ({ gotoAppPage }, use) => { await use((path) => gotoAppPage({ path, pluginId: pluginJson.id, }) ); }, }); export { expect } from '@grafana/plugin-e2e';