Skip to content

Commit bca7a29

Browse files
committed
fix: simplify Playwright configuration for CMS and web apps
- Update Playwright config to use a single 'html' reporter for CMS - Adjust web app Playwright config to streamline reporter setup - This change enhances consistency and reduces complexity in test reporting
1 parent 0dfbfdc commit bca7a29

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

apps/cms/playwright.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,7 @@ export default defineConfig({
1818
/* Opt out of parallel tests on CI. */
1919
workers: process.env.CI ? 1 : undefined,
2020
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
21-
reporter: [
22-
[
23-
'html',
24-
{
25-
outputFolder: process.env.CI
26-
? '../../playwright-report'
27-
: 'playwright-report',
28-
},
29-
],
30-
],
21+
reporter: 'html',
3122
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3223
use: {
3324
/* Base URL to use in actions like `await page.goto('/')`. */

apps/web/playwright.config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ export default defineConfig({
1515
workers: process.env.CI ? 1 : undefined,
1616
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
1717
reporter: [
18-
[
19-
'html',
20-
{
21-
outputFolder: process.env.CI
22-
? '/home/runner/work/overland/overland/playwright-report'
23-
: 'playwright-report',
24-
},
25-
],
18+
['html'],
2619
['json', { outputFile: 'test-results/results.json' }],
2720
['junit', { outputFile: 'test-results/results.xml' }],
2821
],

0 commit comments

Comments
 (0)