-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: e2e combined improvements (#1998)
Contains several changes that all touch many snapshots. Combined to reduce snapshot churn. The primary goal was to address webkit kerning issues caused by: microsoft/playwright#20203 Recommend to review using `.` vscode mode and initially collapsing all snapshot folders. 1. Moves e2e test to execute inside docker container so enviroment is consitent between ci and local - changes e2e.yml to build a docker container, then uses that for each matrix test - dockerfile remove deja vu stuff, environment is now the same and grid.tsx - dockercompose adds service that runs the image from CI with matrix config via env variables - Fixes dockerfile and compose to *actually use the node version installed by nvm* (existing code didn't actually use the version installed by nvm, only the commands inside the -i interactive session would) - Get rid of interactive mode and make source work - Sym link nvm node binaries to clobber the version installed by playwright jammy container - Churns snapshots 2. Removes deprecated ButtonOld - removed button old component - changes to style guide to no longer display that component - removed usage in chart filter overlay - renames snapshots to by id instead of index for buttons - Churns snapshots 3. Disable kerning and smoothing in webkit playwright tests: - theory is webkit kerning may be non-deterministic, disabling entirely may avoid those diffs - adds Playwright.css dynamically imported based of a env VITE_PLAYWRIGHT variable to AppRoot - initially tried using built in https://playwright.dev/docs/test-snapshots#stylepath however, results were inconsistent as canvas grids may or may not re-render after playwright appended the styles - Updated playwright version to 1.44 - Churns snapshots 4. Optimize ThemeColors section in style guide - Makes styleguide section load faster - Remove all the ContrastColor() which have poor performance and were being done of every swatch. Instead text next to swatch - Move slow NormailzeColors() call in tooltip into props so it doesn't run unless tooltip is shown - Churns snapshots 5. Run golden-layout tests in parallel - I don't see a reason why these need to be serial, so might be slightly faster in parallel BREAKING CHANGE: Removed ButtonOld component, use Button instead.
- Loading branch information
Showing
793 changed files
with
238 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.