mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add E2E smoke tests for Jaeger, PostgreSQL, Zipkin (#99515)
This commit is contained in:
parent
92d6762a3a
commit
4570f7319d
8
e2e/plugin-e2e/jaeger/jaeger.spec.ts
Normal file
8
e2e/plugin-e2e/jaeger/jaeger.spec.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'jaeger' });
|
||||
|
||||
await expect(await page.getByText('Type: Jaeger', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
|
||||
});
|
8
e2e/plugin-e2e/postgres/postgres.spec.ts
Normal file
8
e2e/plugin-e2e/postgres/postgres.spec.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'grafana-postgresql-datasource' });
|
||||
|
||||
await expect(await page.getByText('Type: PostgreSQL', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
|
||||
});
|
8
e2e/plugin-e2e/zipkin/zipkin.spec.ts
Normal file
8
e2e/plugin-e2e/zipkin/zipkin.spec.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'zipkin' });
|
||||
|
||||
await expect(await page.getByText('Type: Zipkin', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
|
||||
});
|
@ -160,5 +160,32 @@ export default defineConfig<PluginOptions>({
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'jaeger',
|
||||
testDir: path.join(testDirRoot, '/jaeger'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'grafana-postgresql-datasource',
|
||||
testDir: path.join(testDirRoot, '/grafana-postgresql-datasource'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'zipkin',
|
||||
testDir: path.join(testDirRoot, '/zipkin'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user