From 4c2d327606c6fa0c070331c024dc12d71078dada Mon Sep 17 00:00:00 2001 From: Martin Gunnerud Date: Thu, 29 Aug 2024 10:19:09 +0200 Subject: [PATCH] Store playwright artifacts in separate folders for each test environment (#355) * store playwright artifacts in separate folders for each test environment * set casing of folder name; in linux-based systems folder names are case sensitive * change default env --- frontend/playwright/playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/playwright/playwright.config.ts b/frontend/playwright/playwright.config.ts index 658dcc74..3932218a 100644 --- a/frontend/playwright/playwright.config.ts +++ b/frontend/playwright/playwright.config.ts @@ -8,7 +8,7 @@ enum TestNames { } dotenv.config({ - path: path.resolve(__dirname, `config/.env.${process.env.environment ?? 'at22'}`), + path: path.resolve(__dirname, `config/.env.${process.env.environment ?? 'AT22'}`), }); /** @@ -32,6 +32,7 @@ export default defineConfig({ }, ], ], + outputDir: `test-results/${process.env.environment?.toUpperCase() ?? 'AT22'}`, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { headless: true,