mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
CloudWatch: Add playwright smoke test (#95087)
add smoke test to cloudwatch
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@grafana/plugin-e2e';
|
||||
|
||||
test('Smoke test: decoupled frontend plugin loads', async ({ createDataSourceConfigPage, page }) => {
|
||||
await createDataSourceConfigPage({ type: 'cloudwatch' });
|
||||
|
||||
await expect(await page.getByText('Type: CloudWatch', { exact: true })).toBeVisible();
|
||||
await expect(await page.getByRole('heading', { name: 'Connection Details', exact: true })).toBeVisible();
|
||||
});
|
||||
@@ -88,5 +88,14 @@ export default defineConfig<PluginOptions>({
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
{
|
||||
name: 'cloudwatch',
|
||||
testDir: path.join(testDirRoot, '/cloudwatch'),
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
storageState: 'playwright/.auth/admin.json',
|
||||
},
|
||||
dependencies: ['authenticate'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user