CloudWatch: Add playwright smoke test (#95087)

add smoke test to cloudwatch
pull/95112/head
Nathan Marrs 7 months ago committed by GitHub
parent 594e9b1b73
commit c94468339c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      e2e/plugin-e2e/cloudwatch/cloudwatch.spec.ts
  2. 9
      playwright.config.ts

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

Loading…
Cancel
Save