Skip to content

Commit

Permalink
Store playwright artifacts in separate folders for each test environm…
Browse files Browse the repository at this point in the history
…ent (#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
  • Loading branch information
mgunnerud authored Aug 29, 2024
1 parent 12d80ac commit 4c2d327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/playwright/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'}`),
});

/**
Expand All @@ -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,
Expand Down

0 comments on commit 4c2d327

Please sign in to comment.