Add E2E smoke test (#1962)

creates a smoke test for the zabbix data source

closes https://github.com/grafana/data-sources/issues/194
This commit is contained in:
Gareth Dawson
2025-02-04 18:04:07 +07:00
committed by GitHub
parent 25354eea40
commit 525217ddad
4 changed files with 35 additions and 27 deletions

8
tests/e2e/smoke.test.ts Normal file
View File

@@ -0,0 +1,8 @@
import { test, expect } from '@grafana/plugin-e2e';
test('Smoke test: plugin loads', async ({ createDataSourceConfigPage, page }) => {
await createDataSourceConfigPage({ type: 'alexanderzobnin-zabbix-datasource' });
await expect(await page.getByText('Type: Zabbix', { exact: true })).toBeVisible();
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
});