grafana/e2e-playwright/test-plugins/grafana-extensionstest-app/tests/useExposedComponent.spec.ts

17 lines
479 B
TypeScript

import { test, expect } from '@grafana/plugin-e2e';
import { testIds } from '../testIds';
import pluginJson from '../plugin.json';
test.describe(
'grafana-extensionstest-app',
{
tag: ['@plugins'],
},
() => {
test('should display component exposed by another app', async ({ page }) => {
await page.goto(`/a/${pluginJson.id}/exposed-components`);
await expect(page.getByTestId(testIds.appB.exposedComponent)).toHaveText('Hello World!');
});
}
);