mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 00:47:38 -06:00
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:
parent
532cee2ee3
commit
593ab4559d
8
e2e/plugin-e2e/mssql/mssql.spec.ts
Normal file
8
e2e/plugin-e2e/mssql/mssql.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: 'mssql' });
|
||||
|
||||
await expect(await page.getByText('Type: Microsoft SQL Server', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Connection', exact: true })).toBeVisible();
|
||||
});
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user