mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ElasticSearch: Add playwright smoke test (#95092)
add smoke test to elastic search
This commit is contained in:
parent
c94468339c
commit
34d1a75ab0
8
e2e/plugin-e2e/elasticsearch/elasticsearch.spec.ts
Normal file
8
e2e/plugin-e2e/elasticsearch/elasticsearch.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: 'elasticsearch' });
|
||||
|
||||
await expect(await page.getByText('Type: Elasticsearch', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
|
||||
});
|
@ -61,6 +61,15 @@ export default defineConfig<PluginOptions>({
|
||||
},
|
||||
dependencies: ['createUserAndAuthenticate'],
|
||||
},
|
||||
{
|
||||
name: 'elasticsearch',
|
||||
testDir: path.join(testDirRoot, '/elasticsearch'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'mysql',
|
||||
testDir: path.join(testDirRoot, '/mysql'),
|
||||
|
Loading…
Reference in New Issue
Block a user