Add E2E smoke test (#1962)

creates a smoke test for the zabbix data source

closes https://github.com/grafana/data-sources/issues/194
This commit is contained in:
Gareth Dawson
2025-02-04 18:04:07 +07:00
committed by GitHub
parent 25354eea40
commit 525217ddad
4 changed files with 35 additions and 27 deletions

View File

@@ -14,7 +14,7 @@ const pluginE2eAuth = `${dirname(require.resolve('@grafana/plugin-e2e'))}/auth`;
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig<PluginOptions>({
testDir: './tests',
testDir: './tests/e2e',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -28,7 +28,7 @@ export default defineConfig<PluginOptions>({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:3000',
baseURL: process.env.GRAFANA_URL || `http://localhost:${process.env.PORT || 3000}`,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',