Commit 99fc2f6
authored
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.1 parent 1100519 commit 99fc2f6
793 files changed
Lines changed: 238 additions & 271 deletions
File tree
- .github/workflows
- packages
- code-studio/src
- styleguide
- components/src
- dashboard-core-plugins/src/panels
- tests
- docker-scripts
- figure.spec.ts-snapshots
- golden-layout.spec.ts-snapshots
- styleguide.spec.ts-snapshots
- table-multiselect.spec.ts-snapshots
- table-operations.spec.ts-snapshots
- table.spec.ts-snapshots
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
53 | 34 | | |
54 | | - | |
| 35 | + | |
55 | 36 | | |
56 | 37 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 38 | + | |
| 39 | + | |
61 | 40 | | |
62 | 41 | | |
63 | 42 | | |
| |||
73 | 52 | | |
74 | 53 | | |
75 | 54 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 55 | + | |
| 56 | + | |
85 | 57 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 58 | + | |
| 59 | + | |
89 | 60 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 61 | + | |
100 | 62 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 63 | + | |
| 64 | + | |
104 | 65 | | |
105 | 66 | | |
106 | 67 | | |
107 | 68 | | |
108 | 69 | | |
109 | 70 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
113 | 74 | | |
114 | | - | |
115 | | - | |
| 75 | + | |
| 76 | + | |
116 | 77 | | |
117 | 78 | | |
118 | 79 | | |
119 | | - | |
| 80 | + | |
120 | 81 | | |
121 | 82 | | |
122 | 83 | | |
123 | 84 | | |
124 | 85 | | |
125 | 86 | | |
126 | 87 | | |
127 | | - | |
| 88 | + | |
128 | 89 | | |
129 | 90 | | |
130 | 91 | | |
131 | 92 | | |
132 | 93 | | |
133 | 94 | | |
134 | 95 | | |
| 96 | + | |
135 | 97 | | |
136 | 98 | | |
137 | 99 | | |
| |||
147 | 109 | | |
148 | 110 | | |
149 | 111 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
154 | 116 | | |
155 | 117 | | |
156 | 118 | | |
157 | 119 | | |
158 | 120 | | |
159 | 121 | | |
160 | 122 | | |
161 | | - | |
| 123 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments