grafana/e2e/plugin-e2e/elasticsearch/elasticsearch.spec.ts
Nathan Marrs 34d1a75ab0
ElasticSearch: Add playwright smoke test (#95092)
add smoke test to elastic search
2024-10-21 13:13:40 -07:00

9 lines
415 B
TypeScript

import { test, expect } from '@grafana/plugin-e2e';
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
await createDataSourceConfigPage({ type: 'elasticsearch' });
await expect(await page.getByText('Type: Elasticsearch', { exact: true })).toBeVisible();
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
});