* add simple test apps that use usePluginComponent hook and exposeComponent api * add e2e test * update readme * Update README.md * fix lint issue * pr feedback
10 lines
364 B
TypeScript
10 lines
364 B
TypeScript
import { test, expect } from '@grafana/plugin-e2e';
|
|
|
|
const pluginId = 'myorg-componentconsumer-app';
|
|
const exposedComponentTestId = 'exposed-component';
|
|
|
|
test('should display component exposed by another app', async ({ page }) => {
|
|
await page.goto(`/a/${pluginId}`);
|
|
await expect(await page.getByTestId(exposedComponentTestId)).toHaveText('Hello World!');
|
|
});
|