mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Partner data sources smoke tests (#98446)
* Add smoke tests for remaining partner data sources * Fix test names and run them * Use text check for gcm
This commit is contained in:
8
e2e/plugin-e2e/azuremonitor/azuremonitor.spec.ts
Normal file
8
e2e/plugin-e2e/azuremonitor/azuremonitor.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'grafana-azure-monitor-datasource' });
|
||||
|
||||
await expect(await page.getByText('Type: Azure Monitor', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Authentication', exact: true })).toBeVisible();
|
||||
});
|
||||
8
e2e/plugin-e2e/cloudmonitoring/cloudmonitoring.spec.ts
Normal file
8
e2e/plugin-e2e/cloudmonitoring/cloudmonitoring.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'stackdriver' });
|
||||
|
||||
await expect(await page.getByText('Type: Google Cloud Monitoring', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByText('Google JWT File', { exact: true })).toBeVisible();
|
||||
});
|
||||
8
e2e/plugin-e2e/graphite/graphite.spec.ts
Normal file
8
e2e/plugin-e2e/graphite/graphite.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'graphite' });
|
||||
|
||||
await expect(await page.getByText('Type: Graphite', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'HTTP', exact: true })).toBeVisible();
|
||||
});
|
||||
8
e2e/plugin-e2e/influxdb/influxdb.spec.ts
Normal file
8
e2e/plugin-e2e/influxdb/influxdb.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'influxdb' });
|
||||
|
||||
await expect(await page.getByText('Type: InfluxDB', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'HTTP', exact: true })).toBeVisible();
|
||||
});
|
||||
8
e2e/plugin-e2e/opentsdb/opentsdb.spec.ts
Normal file
8
e2e/plugin-e2e/opentsdb/opentsdb.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'opentsdb' });
|
||||
|
||||
await expect(await page.getByText('Type: OpenTSDB', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'HTTP', exact: true })).toBeVisible();
|
||||
});
|
||||
@@ -115,5 +115,50 @@ export default defineConfig<PluginOptions>({
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'azuremonitor',
|
||||
testDir: path.join(testDirRoot, '/azuremonitor'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'cloudmonitoring',
|
||||
testDir: path.join(testDirRoot, '/cloudmonitoring'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'graphite',
|
||||
testDir: path.join(testDirRoot, '/graphite'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'influxdb',
|
||||
testDir: path.join(testDirRoot, '/influxdb'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'opentsdb',
|
||||
testDir: path.join(testDirRoot, '/opentsdb'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user