From 4ccbd8cc4d82ff16272e7eb9821c06a059681dd8 Mon Sep 17 00:00:00 2001 From: Sam Bender Date: Wed, 1 Oct 2025 23:29:26 -0700 Subject: [PATCH 1/2] Normalize Playwright rendering flags --- apps/react/playwright.config.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/react/playwright.config.ts b/apps/react/playwright.config.ts index 94a310d6..140f2336 100644 --- a/apps/react/playwright.config.ts +++ b/apps/react/playwright.config.ts @@ -17,9 +17,17 @@ export default defineConfig({ reuseExistingServer: !process.env.CI, }, ], - use: { - baseURL: 'http://localhost:4173', - screenshot: 'only-on-failure', - }, + use: { + baseURL: 'http://localhost:4173', + screenshot: 'only-on-failure', + // Normalize rendering differences between macOS and Linux in CI runs. + launchOptions: { + args: [ + '--force-device-scale-factor=1', + '--disable-font-subpixel-positioning', + '--disable-lcd-text', + ], + }, + }, reporter: [['html', { open: 'never' }]], }); From 95bbec1014920bbaf8508e298d06a5e1152a8664 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Oct 2025 06:29:40 +0000 Subject: [PATCH 2/2] style: format code --- apps/react/playwright.config.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/react/playwright.config.ts b/apps/react/playwright.config.ts index 140f2336..98ab50ce 100644 --- a/apps/react/playwright.config.ts +++ b/apps/react/playwright.config.ts @@ -17,17 +17,17 @@ export default defineConfig({ reuseExistingServer: !process.env.CI, }, ], - use: { - baseURL: 'http://localhost:4173', - screenshot: 'only-on-failure', - // Normalize rendering differences between macOS and Linux in CI runs. - launchOptions: { - args: [ - '--force-device-scale-factor=1', - '--disable-font-subpixel-positioning', - '--disable-lcd-text', - ], - }, - }, + use: { + baseURL: 'http://localhost:4173', + screenshot: 'only-on-failure', + // Normalize rendering differences between macOS and Linux in CI runs. + launchOptions: { + args: [ + '--force-device-scale-factor=1', + '--disable-font-subpixel-positioning', + '--disable-lcd-text', + ], + }, + }, reporter: [['html', { open: 'never' }]], });