Skip to content

Commit

Permalink
Add Playwright.css from main
Browse files Browse the repository at this point in the history
  • Loading branch information
mofojed committed Dec 16, 2024
1 parent 580d243 commit c686164
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/code-studio/src/AppRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { DownloadServiceWorkerUtils } from '@deephaven/iris-grid';
import MonacoWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
import AppRouter from './main/AppRouter';

// load addional css for playwright docker tests
if (import.meta.env.VITE_PLAYWRIGHT_CSS === '1') {
await import('./Playwright.css');
}

export function AppRoot(): JSX.Element {
DownloadServiceWorkerUtils.register(
new URL(
Expand Down
18 changes: 18 additions & 0 deletions packages/code-studio/src/Playwright.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* This stylesheet is only applied during playwright tests.
* Attempting to fix kerning issues with webkit
* by disabling ligatures, kerning and smoothing for all tests
* https://github.com/microsoft/playwright/issues/20203
*
* In theory this makes it more deterministic and consistent.
*
*/

* {
-webkit-font-smoothing: none !important;
font-variant-ligatures: none !important;
font-feature-settings: 'liga' 0 !important;
font-kerning: none !important;
text-rendering: optimizespeed !important;
}

0 comments on commit c686164

Please sign in to comment.