ElasticSearch: Add playwright smoke test (#95092)

add smoke test to elastic search
This commit is contained in:
Nathan Marrs 2024-10-21 14:13:40 -06:00 committed by GitHub
parent c94468339c
commit 34d1a75ab0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View 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();
});

View File

@ -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'),