MSSQL: Add playwright smoke test (#94977)

test(mssql-datasource): add smoke test to assert decoupled plugin assets are built and load
This commit is contained in:
Jack Westbrook 2024-10-21 11:36:18 +02:00 committed by GitHub
parent 532cee2ee3
commit 593ab4559d
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: 'mssql' });
await expect(await page.getByText('Type: Microsoft SQL Server', { exact: true })).toBeVisible();
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
});

View File

@ -70,6 +70,15 @@ export default defineConfig<PluginOptions>({
},
dependencies: ['authenticate'],
},
{
name: 'mssql',
testDir: path.join(testDirRoot, '/mssql'),
use: {
...devices['Desktop Chrome'],
storageState: 'playwright/.auth/admin.json',
},
dependencies: ['authenticate'],
},
{
name: 'extensions-test-app',
testDir: 'e2e/test-plugins/grafana-extensionstest-app',