feat: Integrate Grafana Loki

This commit is contained in:
gpt-engineer-app[bot]
2025-10-30 15:54:32 +00:00
parent 8ac61e01e3
commit 72a7cb7f7c
9 changed files with 1261 additions and 2 deletions

View File

@@ -24,7 +24,13 @@ export default defineConfig({
reporter: [
['html'],
['list'],
['json', { outputFile: 'test-results.json' }]
['json', { outputFile: 'test-results.json' }],
// Grafana Loki reporter for centralized logging
['./tests/helpers/loki-reporter.ts', {
lokiUrl: process.env.GRAFANA_LOKI_URL,
username: process.env.GRAFANA_LOKI_USERNAME,
password: process.env.GRAFANA_LOKI_PASSWORD,
}]
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */